/* =========================
   TIPOGRAFÍA GENERAL
========================= */

body {
    scroll-behavior: smooth;
    font-family: 'Open Sans', sans-serif;
    color: #333;
    font-size: 18px;
    line-height: 1.7;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 30px; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.3rem; }

h1, h2, h3, h4, h5 {
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
}

code {
    font-family: 'Roboto Mono', monospace;
}

/* =========================
   NAVBAR
========================= */

.navbar {
    background-color: #ffffff;
    opacity: 0.7;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    height: 120px;
    padding: 0 !important;
    display: flex;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    width: 250px;
    max-height: none;
}

.navbar-nav .nav-link {
    color: #0a1f44 !important;
    font-weight: 600;
    font-size: 125%;
    padding: 18px 12px;
    transition: 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #b20608 !important;
}

.navbar-collapse {
    margin-left: -50px;
}

.btn-whatsapp {
    background-color: #25D366;
    color: #ffffff;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 30px;
    transition: 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #1ebe5d;
    transform: translateY(-2px);
}

/* =========================
   HERO
========================= */

.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
}

.hero-content h1 {
    font-size: 3rem;
}

.hero-content p {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 1px;
}

/* =========================
   SECCIONES GENERALES
========================= */

.section-padding {
    padding: 100px 0;
}

/* =========================
   CARDS
========================= */

.card {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card i {
    font-size: 3rem;
    color: #003366;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* =========================
   CERTIFICACIONES
========================= */

#certificaciones {
    padding: 120px 0;
}

#certificaciones h2 {
    margin-bottom: 60px;
}

.cert-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 240px;
    transition: transform 0.3s ease;
}

.cert-img {
    max-height: 120px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.cert-item:hover {
    transform: translateY(-6px);
}

.cert-img:hover {
    transform: scale(1.05);
}

.cert-title {
    margin-top: auto;
    padding-top: 15px;
    font-weight: 600;
    font-size: 1rem;
    color: #0a1f44;
    text-align: center;
    width: 100%;
}

.cert-item img[src="imag/Comun.png"] {
    margin-top: 15px;
}


.cert-title::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background-color: #0d6efd;
    margin: 8px auto 0;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.cert-item:hover .cert-title::after {
    width: 70px;
}

/* =========================
   NOSOTROS
========================= */

#nosotros {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0;
}

#nosotros .container {
    transform: translateY(-40px);
}

.icon-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: #0d6efd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-circle i {
    font-size: 32px;
    color: #ffffff;
}

/* =========================
   BOTONES
========================= */

.btn-primary {
    background-color: #003366;
    border: none;
    font-weight: 500;
    letter-spacing: 1px;
    transition: 0.3s ease;
}

.btn-primary:hover {
    background-color: #001f3f;
}

/* =========================
   FOOTER
========================= */
.footer-custom {
    background-color: #272d38; /* Azul corporativo */
    font-family: 'Poppins', sans-serif;
}

/* TÍTULOS */
.footer-custom h5 {
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

/* NOMBRE PRINCIPAL */
.footer-custom h5:first-child {
    font-size: 1.8rem;  /* Más grande */
    color: #ffffff;
}

/* PÁRRAFOS */
.footer-custom p {
    font-size: 0.95rem;
    color: #dcdcdc;
}

/* LINKS */
.footer-link {
    color: #dcdcdc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #6b3537; /* Rojo corporativo */
    padding-left: 4px;
}

/* ICONOS */
.footer-custom i {
    color: #6b3537;
}

/* LÍNEA DIVISORA */
.footer-custom hr {
    border-color: rgba(255,255,255,0.2);
}

/* COPYRIGHT */
.footer-custom small {
    color: #b5b5b5;
}

.footer-custom small a {
    color: #6b3537;
    text-decoration: none;
}

.footer-custom small a:hover {
    text-decoration: underline;
}


/* =========================
   IMAGEN CLICKEABLE
========================= */
.bg-light img {
    cursor: pointer;
    transition: transform 0.3s ease;
}



/* Bajar únicamente el logo de Comunicaciones */
.cert-item:nth-child(4) .cert-img {
    transform: translateY(55px);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

    body {
        font-size: 16px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 1.8rem;
    }
}