/* =========================================
   CETRAC - ESTILOS GENERALES
========================================= */

:root {
    --azul: #21145f;
    --azul-oscuro: #171044;
    --dorado: #d8b72e;
    --dorado-claro: #f0d96b;
    --blanco: #ffffff;
    --gris: #f5f6fa;
    --texto: #303344;
    --texto-claro: #6c7180;

    --sombra: 0 12px 35px rgba(23, 16, 68, 0.10);
    --radio: 14px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--texto);
    background: var(--blanco);
    line-height: 1.7;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.container {
    width: min(1180px, 90%);
    margin: 0 auto;
}

.section {
    padding: 90px 0;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 50px;
    text-align: center;
}

.section-tag {
    display: inline-block;
    margin-bottom: 12px;
    color: #9b7b00;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-heading h2 {
    color: var(--azul);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.25;
    margin-bottom: 16px;
}

.section-heading p {
    color: var(--texto-claro);
    font-size: 15px;
}


/* =========================================
   BOTONES
========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 13px 24px;
    border: 2px solid transparent;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    transition: 0.25s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--dorado);
    color: var(--azul-oscuro);
}

.btn-primary:hover {
    background: var(--dorado-claro);
    transform: translateY(-3px);
}

.btn-outline {
    color: var(--blanco);
    border-color: rgba(255, 255, 255, 0.75);
    background: transparent;
}

.btn-outline:hover {
    color: var(--azul);
    background: var(--blanco);
}


/* =========================================
   HEADER
========================================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--blanco);
    box-shadow: 0 3px 18px rgba(0, 0, 0, 0.08);
}

.nav-container {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo img {
    width: 190px;
    max-height: 72px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-menu>a {
    color: var(--azul);
    font-size: 12px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-menu>a:hover {
    color: #a88900;
}

.nav-menu .nav-cta {
    padding: 12px 18px;
    border-radius: 5px;
    background: var(--azul);
    color: var(--blanco);
}

.nav-menu .nav-cta:hover {
    background: var(--azul-oscuro);
    color: var(--dorado-claro);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 6px;
    background: var(--azul);
    color: var(--blanco);
    font-size: 20px;
    cursor: pointer;
}


/* =========================================
   HERO
========================================= */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 650px;
    padding: 90px 0;
    overflow: hidden;

    background:
        linear-gradient(90deg,
            rgba(23, 16, 68, 0.96) 0%,
            rgba(23, 16, 68, 0.87) 48%,
            rgba(23, 16, 68, 0.28) 100%),
        url('../img/hero-trailer.png') center 55% / cover no-repeat;

    color: var(--blanco);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg,
            rgba(23, 16, 68, 0.28),
            transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1180px;
}

.hero-label {
    display: inline-block;
    margin-bottom: 22px;
    padding: 8px 13px;
    border-left: 4px solid var(--dorado);
    background: rgba(255, 255, 255, 0.10);
    color: var(--dorado-claro);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.hero h1 {
    max-width: 800px;
    margin-bottom: 22px;
    font-size: clamp(36px, 5.5vw, 66px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.5px;
}

.hero h1 span {
    display: block;
    color: var(--dorado);
}

.hero-content>p {
    max-width: 650px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 16px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 45px;
}

.hero-features div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 600;
}

.hero-features i {
    color: var(--dorado);
    font-size: 20px;
}


/* =========================================
   NOSOTROS
========================================= */

.about-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    gap: 55px;
}

.about-image {
    position: relative;
}

.about-image::before {
    content: "";
    position: absolute;
    top: -14px;
    left: -14px;
    width: 45%;
    height: 45%;
    border-top: 5px solid var(--dorado);
    border-left: 5px solid var(--dorado);
    border-radius: 8px 0 0 0;
}

.about-image img {
    position: relative;
    width: 100%;
    height: 470px;
    object-fit: cover;
    border-radius: var(--radio);
    box-shadow: var(--sombra);
}

.about-content h3 {
    margin-bottom: 15px;
    color: var(--azul);
    font-size: 27px;
}

.about-content>p {
    margin-bottom: 25px;
    color: var(--texto-claro);
    font-size: 14px;
}

.mission-box {
    margin-top: 16px;
    padding: 18px 20px;
    border-left: 4px solid var(--dorado);
    border-radius: 0 8px 8px 0;
    background: var(--gris);
}

.mission-box h4 {
    margin-bottom: 7px;
    color: var(--azul);
    font-size: 15px;
}

.mission-box h4 i {
    margin-right: 7px;
    color: #a88900;
}

.mission-box p {
    color: var(--texto-claro);
    font-size: 13px;
}


/* =========================================
   PROGRAMA
========================================= */

.program {
    background: var(--gris);
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.program-card {
    position: relative;
    padding: 30px 26px;
    border: 1px solid #e8e6f0;
    border-radius: var(--radio);
    background: var(--blanco);
    box-shadow: 0 8px 25px rgba(23, 16, 68, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.program-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--sombra);
}

.module-number {
    display: inline-block;
    margin-bottom: 18px;
    padding: 6px 11px;
    border-radius: 4px;
    background: var(--dorado);
    color: var(--azul-oscuro);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.program-card h3 {
    margin-bottom: 5px;
    color: var(--azul);
    font-size: 25px;
}

.program-card>p {
    min-height: 48px;
    margin-bottom: 20px;
    color: var(--texto-claro);
    font-size: 13px;
}

.program-card ul {
    padding-left: 18px;
}

.program-card li {
    margin-bottom: 11px;
    color: var(--texto);
    font-size: 13px;
}

.program-card li::marker {
    color: #b39411;
}

.program-cta {
    margin-top: 45px;
    padding: 38px 25px;
    border-radius: var(--radio);
    background: var(--azul);
    color: var(--blanco);
    text-align: center;
}

.program-cta h3 {
    margin-bottom: 8px;
    font-size: clamp(23px, 3vw, 32px);
}

.program-cta p {
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}


/* =========================================
   BENEFICIOS
========================================= */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.benefit-card {
    padding: 30px 22px;
    border: 1px solid #ecebf2;
    border-radius: var(--radio);
    background: var(--blanco);
    box-shadow: 0 8px 25px rgba(23, 16, 68, 0.04);
    transition: 0.25s ease;
}

.benefit-card:hover {
    transform: translateY(-6px);
    border-color: var(--dorado);
    box-shadow: var(--sombra);
}

.benefit-card>i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 22px;
    border-radius: 12px;
    background: var(--azul);
    color: var(--dorado);
    font-size: 24px;
}

.benefit-card h3 {
    margin-bottom: 12px;
    color: var(--azul);
    font-size: 17px;
    line-height: 1.4;
}

.benefit-card p {
    color: var(--texto-claro);
    font-size: 13px;
}


/* =========================================
   GALERÍA
========================================= */

/* gallery {
    background: var(--gris);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.gallery-grid img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radio);
    box-shadow: var(--sombra);
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.025);
} */

/* =========================================
   GALERÍA - CARRUSEL SLIDE
========================================= */

.gallery {
    background: var(--gris);
}

.gallery-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: var(--radio);
    box-shadow: var(--sombra);
}

.gallery-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
    will-change: transform;
}

.gallery-slide {
    position: relative;
    flex: 0 0 100%;
    min-width: 0;
    height: 480px;
    overflow: hidden;
    background: var(--azul-oscuro);
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Efecto hover de las imágenes */
.gallery-slide:hover img {
    transform: scale(1.04);
}

/* Flechas de navegación */
.gallery-btn {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: var(--dorado);
    color: var(--azul-oscuro);
    font-size: 18px;
    cursor: pointer;
    transform: translateY(-50%);
    transition: 0.25s ease;
}

.gallery-btn:hover {
    background: var(--blanco);
    transform: translateY(-50%) scale(1.08);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

/* Indicadores inferiores */
.gallery-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 10px;
    transform: translateX(-50%);
}

.gallery-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 2px solid var(--blanco);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: 0.25s ease;
}

.gallery-dot.active {
    width: 28px;
    border-color: var(--dorado);
    border-radius: 10px;
    background: var(--dorado);
}

/* Responsive: tablets */
@media (max-width: 1024px) {
    .gallery-slide {
        height: 400px;
    }
}

/* Responsive: celulares */
@media (max-width: 768px) {
    .gallery-slide {
        height: 320px;
    }

    .gallery-btn {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }

    .gallery-prev {
        left: 12px;
    }

    .gallery-next {
        right: 12px;
    }
}

@media (max-width: 420px) {
    .gallery-slide {
        height: 250px;
    }

    .gallery-btn {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }
}

/* =========================================
   CONTACTO
========================================= */

.contact {
    background:
        linear-gradient(120deg,
            var(--azul-oscuro),
            var(--azul));
    color: var(--blanco);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 70px;
}

.contact .section-tag {
    color: var(--dorado);
}

.contact-content h2 {
    margin-bottom: 20px;
    font-size: clamp(30px, 4vw, 43px);
    line-height: 1.2;
}

.contact-content>p {
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-top: 20px;
}

.contact-item>i {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.10);
    color: var(--dorado);
}

.contact-item strong {
    display: block;
    margin-bottom: 3px;
    font-size: 14px;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
}

.contact-card {
    padding: 42px 35px;
    border-radius: var(--radio);
    background: var(--blanco);
    color: var(--texto);
    text-align: center;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.contact-card>i {
    margin-bottom: 20px;
    color: #25d366;
    font-size: 55px;
}

.contact-card h3 {
    margin-bottom: 15px;
    color: var(--azul);
    font-size: 25px;
}

.contact-card p {
    margin-bottom: 25px;
    color: var(--texto-claro);
    font-size: 14px;
}

.contact-card .btn {
    width: 100%;
}


/* =========================================
   FOOTER
========================================= */

.footer {
    background: #100b35;
    color: var(--blanco);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-top: 45px;
    padding-bottom: 40px;
}

.footer-brand img {
    width: 180px;
    max-height: 75px;
    margin-bottom: 15px;
    object-fit: contain;
}

.footer-brand p {
    max-width: 350px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
}

.footer-social h4 {
    margin-bottom: 15px;
    color: var(--dorado);
    font-size: 14px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-right: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: var(--blanco);
    transition: 0.2s ease;
}

.footer-social a:hover {
    border-color: var(--dorado);
    background: var(--dorado);
    color: var(--azul-oscuro);
}

.footer-bottom {
    padding: 18px 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
}


/* =========================================
   WHATSAPP FLOTANTE
========================================= */

.whatsapp-float {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 999;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 62px;
    height: 62px;

    border: 3px solid var(--blanco);
    border-radius: 50%;

    background: #25d366;
    color: var(--blanco);

    font-size: 32px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.22);

    transition: transform 0.25s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}


/* =========================================
   RESPONSIVE: TABLETS
========================================= */

@media (max-width: 1024px) {

    .nav-container {
        gap: 18px;
    }

    .logo img {
        width: 155px;
    }

    .nav-menu {
        gap: 15px;
    }

    .nav-menu>a {
        font-size: 11px;
    }

    .hero {
        min-height: 600px;
    }

    .about-grid {
        gap: 35px;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        gap: 35px;
    }
}


/* =========================================
   RESPONSIVE: CELULARES
========================================= */

@media (max-width: 768px) {

    .section {
        padding: 65px 0;
    }

    .nav-container {
        min-height: 75px;
    }

    .logo img {
        width: 150px;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-menu {
        position: absolute;
        top: 75px;
        left: 0;
        right: 0;

        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        padding: 12px 5% 22px;
        background: var(--blanco);
        box-shadow: 0 12px 18px rgba(0, 0, 0, 0.10);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu>a {
        padding: 13px 8px;
        border-bottom: 1px solid #eee;
        font-size: 13px;
    }

    .nav-menu .nav-cta {
        margin-top: 12px;
        text-align: center;
    }

    .hero {
        min-height: 650px;
        padding: 75px 0;
        background-position: 60% center;
    }

    .hero h1 {
        font-size: clamp(34px, 9vw, 52px);
        letter-spacing: -0.8px;
    }

    .hero-content>p {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 380px;
    }

    .hero-features {
        flex-direction: column;
        gap: 14px;
        margin-top: 32px;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .about-image img {
        height: 340px;
    }

    .program-grid {
        grid-template-columns: 1fr;
    }

    .program-card>p {
        min-height: auto;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid img {
        height: 280px;
    }

    .contact-card {
        padding: 32px 24px;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* =========================================
   RESPONSIVE: CELULARES PEQUEÑOS
========================================= */

@media (max-width: 420px) {

    .container {
        width: 92%;
    }

    .hero {
        min-height: 620px;
    }

    .hero-label {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero-buttons .btn {
        padding: 13px 14px;
        font-size: 11px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 56px;
        height: 56px;
        font-size: 28px;
    }
}

