/* =========================
   CONFIGURACIÓN GENERAL
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #172033;
    background: #ffffff;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1250px;
    margin: auto;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =========================
   HEADER
========================= */

.header {
    background: white;
    border-bottom: 1px solid #eeeeee;
}

.header-content {
    min-height: 115px;
    display: flex;
    align-items: center;
    gap: 30px;
}

/* =========================
   LOGOTIPO
========================= */

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 105px;
    height: 105px;
    flex-shrink: 0;
}

.logo-img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    display: block;
    border-radius: 50%;
}

.header-description {
    max-width: 360px;
    border-left: 2px solid #f7c900;
    padding-left: 20px;
    font-size: 14px;
}

.header-actions {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.language {
    border: 1px solid #bbb;
    background: white;
    padding: 9px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.language.active {
    background: #f7c900;
    border-color: #f7c900;
    font-weight: bold;
}

.whatsapp-button,
.whatsapp-large {
    background: #12a85a;
    color: white;
    font-weight: bold;
    padding: 11px 20px;
    border-radius: 6px;
}

.whatsapp-button i,
.whatsapp-large i {
    margin-right: 8px;
}


/* =========================
   NAVIGATION
========================= */

.navigation {
    background: white;
    border-bottom: 1px solid #ddd;
}

.nav-container {
    display: flex;
    justify-content: center;
}

.nav-link {
    padding: 14px 22px;
    font-weight: bold;
    font-size: 14px;
}

.nav-link:hover,
.nav-link.active {
    background: #f7c900;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 520px;
    position: relative;

    background-image:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.65),
            rgba(0, 0, 0, 0.25),
            rgba(0, 0, 0, 0.05)
        ),
        url("imagenes/hero.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    min-height: 520px;
    display: flex;
    align-items: center;
}

.hero-text {
    max-width: 620px;
    color: white;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.05;
    margin-bottom: 25px;
}

.hero h1 span {
    color: #f7c900;
}

.hero p {
    font-size: 19px;
    max-width: 600px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}


/* =========================
   BOTONES
========================= */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    border-radius: 5px;
    font-weight: bold;
    border: 2px solid transparent;
}

.btn-primary {
    background: #f7c900;
    color: #111;
}

.btn-primary:hover {
    background: #e5b900;
}

.btn-outline {
    border-color: white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: #111;
}


/* =========================
   SECCIONES
========================= */

.section {
    padding: 80px 0;
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
}

.section h2,
.two-columns h2 {
    font-size: 34px;
    line-height: 1.2;
    margin-bottom: 15px;
}

.yellow-line {
    width: 65px;
    height: 5px;
    background: #f7c900;
    margin-bottom: 25px;
}

.two-columns p {
    margin-bottom: 25px;
}


/* =========================
   BENEFICIOS
========================= */

.benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 15px;
}

.benefit i {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #f7c900;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================
   USA
========================= */

.usa-section {
    background:
        linear-gradient(
            rgba(240,245,250,.94),
            rgba(240,245,250,.94)
        ),
        url("images/usa.jpg");

    background-size: cover;
    padding: 70px 0;
}

.usa-content {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 70px;
}

.usa-text h2 {
    font-size: 35px;
    margin-bottom: 20px;
}

.usa-text p {
    max-width: 700px;
    margin-bottom: 25px;
}

.usa-benefits p {
    font-weight: bold;
    margin-bottom: 10px;
}


/* =========================
   PROGRAMA
========================= */

.program-section {
    background: #f6f7f8;
}

.section-heading {
    max-width: 600px;
    margin-bottom: 45px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.step {
    text-align: center;
    position: relative;
    padding: 25px;
    background: white;
    border-radius: 10px;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 20px;
    width: 35px;
    height: 35px;
    background: #f7c900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.step > i {
    font-size: 40px;
    margin: 15px 0;
}

.step h3 {
    margin-bottom: 10px;
}


/* =========================
   INSTALACIONES
========================= */

.facilities {
    background: #111820;
    color: white;
    padding: 0;
}

.facilities-content {
    display: grid;
    grid-template-columns: 350px 1fr;
}

.facilities-text {
    padding: 70px 40px 70px 0;
}

.facilities-text h2 {
    font-size: 38px;
}

.facilities-text h2 span {
    color: #f7c900;
}

.facilities-text p {
    margin: 20px 0 30px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.gallery-item {
    position: relative;
    height: 180px;
    overflow: hidden;
    border: 2px solid white;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
}

.gallery-item:hover img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* =========================
   PREGUNTAS FRECUENTES
========================= */

.faq-section {
    background: #ffffff;
    padding: 80px 0;
}

.faq-heading {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 45px;
}

.faq-heading h2 {
    font-size: 38px;
    margin-bottom: 15px;
}

.faq-heading p {
    color: #555;
    font-size: 17px;
}


.faq-container {
    max-width: 900px;
    margin: auto;
}


.faq-item {
    border-bottom: 1px solid #dddddd;
    background: white;
}


.faq-question {
    width: 100%;
    border: none;
    background: white;
    padding: 22px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-size: 17px;
    font-weight: bold;
    color: #172033;
    cursor: pointer;
}


.faq-question i {
    color: #f7c900;
    font-size: 18px;
    transition: transform 0.3s ease;
}


.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer p {
    padding: 0 45px 22px 10px;
    color: #555;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

/* =========================
   CONTACTO
========================= */

.contact-section {
    background: #f7c900;
    padding: 70px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 60px;
}

.contact-form h2 {
    font-size: 35px;
}

.contact-form p {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

input,
select,
textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
}

textarea {
    min-height: 120px;
    resize: vertical;
    margin-bottom: 10px;
}

.submit-button {
    background: #111820;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.contact-info {
    padding-top: 10px;
}

.contact-info h3 {
    font-size: 25px;
    margin-bottom: 25px;
}

.whatsapp-large {
    display: inline-block;
    margin-bottom: 30px;
}

.contact-info p {
    margin: 15px 0;
}

.contact-info p i {
    width: 25px;
}

.motto {
    margin-top: 30px;
    font-size: 36px;
    font-style: italic;
    font-weight: bold;
}


/* =========================
   FOOTER
========================= */

.footer {
    background: #111820;
    color: white;
    padding-top: 45px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 30px;
    align-items: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 13px;
}

.footer-links a:hover {
    color: #f7c900;
}

.social {
    text-align: right;
}

.social a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid white;
    border-radius: 50%;
    margin-left: 8px;
}

.copyright {
    text-align: center;
    padding: 25px;
    margin-top: 35px;
    border-top: 1px solid #333;
    font-size: 12px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .header-content {
        flex-direction: column;
        padding: 20px 0;
    }

    .header-description {
        border-left: none;
        border-top: 2px solid #f7c900;
        padding: 15px 0 0;
        text-align: center;
    }

    .header-actions {
        margin: auto;
        justify-content: center;
    }

    .nav-container {
        overflow-x: auto;
        justify-content: flex-start;
    }

    .two-columns,
    .usa-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr 1fr;
    }

    .facilities-content {
        grid-template-columns: 1fr;
    }

    .facilities-text {
        padding: 50px 0;
    }

}


@media (max-width: 600px) {

    .hero {
        min-height: 600px;
    }

    .hero-content {
        min-height: 600px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .benefits,
    .steps,
    .form-row {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: 1fr 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social {
        text-align: center;
    }

}

/* =========================
   SERVICIOS DE RECUPERACIÓN
========================= */

.services-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.services-section .section-heading {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.services-section .section-heading h2 {
    font-size: 38px;
    margin-bottom: 15px;
    color: #172033;
}

.services-section .section-heading p {
    font-size: 17px;
    line-height: 1.7;
    color: #555;
}


/* CONTENEDOR DE TARJETAS */

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}


/* TARJETAS */

.service-card {
    background: #ffffff;
    padding: 35px 25px;
    text-align: center;
    border-radius: 10px;
    border: 1px solid #eeeeee;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* EFECTO AL PASAR EL MOUSE */

.service-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.10);
}


/* ICONOS */

.service-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f7c900;
    color: #172033;

    border-radius: 50%;

    font-size: 25px;
}


/* TÍTULOS */

.service-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #172033;
}


/* DESCRIPCIÓN */

.service-card p {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
    margin: 0;
}


/* =========================
   TABLET
========================= */

@media (max-width: 1000px) {

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================
   CELULAR
========================= */

@media (max-width: 600px) {

    .services-section {
        padding: 60px 20px;
    }

    .services-section .section-heading h2 {
        font-size: 30px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 30px 20px;
    }

}

/* =========================
   MODERN PAGE LOADER
========================= */

#page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #172033;

    opacity: 1;
    visibility: visible;

    transition:
        opacity 0.6s ease,
        visibility 0.6s ease;
}

#page-loader.loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    width: 300px;
    text-align: center;

    animation: loaderContentIn 0.8s ease forwards;
}

.loader-logo {
    width: 105px;
    height: 105px;

    object-fit: contain;

    margin-bottom: 18px;

    animation: loaderLogo 1.8s ease-in-out infinite;
}

.loader-title {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 5px;

    color: #ffffff;

    line-height: 1;
}

.loader-subtitle {
    margin-top: 8px;

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;

    color: #f7c900;
}

.loader-line {
    width: 220px;
    height: 3px;

    margin: 28px auto 12px;

    background: rgba(255, 255, 255, 0.15);

    overflow: hidden;
    border-radius: 10px;
}

.loader-progress {
    width: 0%;
    height: 100%;

    background: #f7c900;

    animation: loaderProgress 1.2s ease forwards;
}

.loader-text {
    font-size: 12px;
    letter-spacing: 1px;

    color: rgba(255, 255, 255, 0.65);
}


/* =========================
   LOADER ANIMATIONS
========================= */

@keyframes loaderContentIn {

    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


@keyframes loaderLogo {

    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }

}


@keyframes loaderProgress {

    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .loader-content {
        width: 260px;
    }

    .loader-logo {
        width: 90px;
        height: 90px;
    }

    .loader-title {
        font-size: 28px;
        letter-spacing: 4px;
    }

    .loader-subtitle {
        font-size: 9px;
        letter-spacing: 2px;
    }

    .loader-line {
        width: 190px;
    }

}

/* =========================
   MAPA INTERACTIVO
========================= */

.interactive-map-section {
    background: #f8f9fa;
    padding: 90px 0;
}

.interactive-map-section .section-heading {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 45px;
}

.interactive-map-section .section-heading h2 {
    font-size: 38px;
    color: #172033;
    margin-bottom: 15px;
}

.interactive-map-section .section-heading p {
    font-size: 17px;
    line-height: 1.7;
    color: #555;
}


/* =========================
   CONTENEDOR DEL MAPA
========================= */

.map-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}


/* =========================
   IMAGEN DEL MAPA
========================= */

.interactive-map {
    position: relative;

    width: 100%;

    overflow: hidden;

    border-radius: 14px;

    background: #172033;

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.15);
}

.map-image {
    display: block;

    width: 100%;
    height: auto;

    user-select: none;
}


/* =========================
   MARCADORES
========================= */

.map-marker {

    position: absolute;

    transform: translate(-50%, -50%);

    width: 38px;
    height: 38px;

    border-radius: 50%;

    border: 3px solid #172033;

    background: #f7c900;

    color: #172033;

    font-size: 15px;
    font-weight: 800;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.35);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


/* ANILLO */

.map-marker::before {

    content: "";

    position: absolute;

    width: 100%;
    height: 100%;

    border-radius: 50%;

    border: 2px solid rgba(247, 201, 0, 0.7);

    animation: markerPulse 2s infinite;

}


/* HOVER */

.map-marker:hover {

    transform:
        translate(-50%, -50%)
        scale(1.18);

    background: #172033;

    color: #ffffff;

    box-shadow:
        0 7px 20px rgba(0, 0, 0, 0.45);

    z-index: 20;
}


/* ACTIVO */

.map-marker.active {

    background: #172033;

    color: #ffffff;

    transform:
        translate(-50%, -50%)
        scale(1.18);

    z-index: 30;
}


/* =========================
   ANIMACIÓN
========================= */

@keyframes markerPulse {

    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    70% {
        transform: scale(1.7);
        opacity: 0;
    }

    100% {
        transform: scale(1.7);
        opacity: 0;
    }

}


/* =========================
   PANEL DE INFORMACIÓN
========================= */

.map-info-panel {

    position: absolute;

    top: 25px;
    right: 25px;

    width: 320px;

    background: #ffffff;

    border-radius: 12px;

    padding: 28px;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.25);

    border-top: 4px solid #f7c900;

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(-10px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;

    z-index: 50;
}


/* PANEL ABIERTO */

.map-info-panel.active {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);

}


/* =========================
   BOTÓN CERRAR
========================= */

.map-close {

    position: absolute;

    top: 10px;
    right: 12px;

    border: none;

    background: transparent;

    color: #172033;

    font-size: 25px;

    cursor: pointer;

    line-height: 1;

    transition:
        color 0.2s ease;
}

.map-close:hover {
    color: #f7c900;
}


/* =========================
   NÚMERO DEL PANEL
========================= */

.map-info-number {

    width: 38px;
    height: 38px;

    border-radius: 50%;

    background: #f7c900;

    color: #172033;

    font-weight: 800;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 15px;
}


/* =========================
   TEXTO
========================= */

.map-info-panel h3 {

    margin: 0;

    padding-right: 20px;

    font-size: 23px;

    color: #172033;
}


.map-info-line {

    width: 45px;

    height: 3px;

    background: #f7c900;

    margin: 14px 0;
}


.map-info-panel p {

    margin: 0;

    font-size: 15px;

    line-height: 1.7;

    color: #555;
}


/* =========================
   INSTRUCCIÓN
========================= */

.map-instruction {

    text-align: center;

    margin-top: 20px;

    font-size: 14px;

    color: #666;
}


.map-instruction i {

    color: #f7c900;

    margin-right: 6px;
}


/* =========================
   TABLET
========================= */

@media (max-width: 900px) {

    .map-info-panel {

        width: 280px;

        right: 15px;
        top: 15px;

        padding: 23px;
    }

}


/* =========================
   CELULAR
========================= */

@media (max-width: 600px) {

    .interactive-map-section {

        padding: 60px 15px;
    }


    .interactive-map-section .section-heading h2 {

        font-size: 30px;
    }


    .interactive-map-section .section-heading p {

        font-size: 15px;
    }


    .interactive-map {

        border-radius: 10px;
    }


    .map-marker {

        width: 29px;
        height: 29px;

        border-width: 2px;

        font-size: 12px;
    }


    .map-info-panel {

        position: fixed;

        left: 15px;
        right: 15px;

        bottom: 15px;

        top: auto;

        width: auto;

        padding: 24px;

        transform:
            translateY(30px);

    }


    .map-info-panel.active {

        transform:
            translateY(0);

    }


    .map-info-panel h3 {

        font-size: 20px;
    }

}

/* =========================
   WHATSAPP FLOTANTE
========================= */

.whatsapp-float {

    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 62px;
    height: 62px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #25D366;

    color: #ffffff;

    border-radius: 50%;

    text-decoration: none;

    font-size: 31px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.25);

    z-index: 9990;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


/* HOVER */

.whatsapp-float:hover {

    transform: scale(1.1);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.32);

}


/* =========================
   ANILLO ANIMADO
========================= */

.whatsapp-float::before {

    content: "";

    position: absolute;

    inset: -5px;

    border-radius: 50%;

    border: 2px solid rgba(37, 211, 102, 0.45);

    animation:
        whatsappPulse 2s infinite;

}


/* =========================
   TOOLTIP
========================= */

.whatsapp-tooltip {

    position: absolute;

    right: 75px;

    top: 50%;

    transform:
        translateY(-50%)
        translateX(10px);

    background: #172033;

    color: #ffffff;

    padding: 10px 15px;

    border-radius: 7px;

    font-size: 13px;

    font-weight: 600;

    white-space: nowrap;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;

}


/* FLECHA DEL TOOLTIP */

.whatsapp-tooltip::after {

    content: "";

    position: absolute;

    right: -6px;

    top: 50%;

    transform: translateY(-50%);

    border-width: 5px 0 5px 6px;

    border-style: solid;

    border-color:
        transparent
        transparent
        transparent
        #172033;

}


/* MOSTRAR TOOLTIP */

.whatsapp-float:hover .whatsapp-tooltip {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(-50%)
        translateX(0);

}


/* =========================
   ANIMACIÓN
========================= */

@keyframes whatsappPulse {

    0% {

        transform: scale(1);

        opacity: 0.8;

    }

    70% {

        transform: scale(1.35);

        opacity: 0;

    }

    100% {

        transform: scale(1.35);

        opacity: 0;

    }

}


/* =========================
   CELULAR
========================= */

@media (max-width: 600px) {

    .whatsapp-float {

        width: 56px;
        height: 56px;

        right: 18px;
        bottom: 18px;

        font-size: 28px;

    }


    .whatsapp-tooltip {

        display: none;

    }

}

/* =========================
   ANIMACIONES AL HACER SCROLL
========================= */

.scroll-animate {

    opacity: 0;

    transform: translateY(45px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;

}


.scroll-animate.show {

    opacity: 1;

    transform: translateY(0);

}


/* =========================
   VARIACIONES
========================= */

.scroll-left {

    opacity: 0;

    transform: translateX(-50px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;

}


.scroll-left.show {

    opacity: 1;

    transform: translateX(0);

}


.scroll-right {

    opacity: 0;

    transform: translateX(50px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;

}


.scroll-right.show {

    opacity: 1;

    transform: translateX(0);

}


/* =========================
   ESCALADO
========================= */

.scroll-scale {

    opacity: 0;

    transform: scale(0.92);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;

}


.scroll-scale.show {

    opacity: 1;

    transform: scale(1);

}


/* =========================
   REDUCIR MOVIMIENTO
   PARA ACCESIBILIDAD
========================= */

@media (prefers-reduced-motion: reduce) {

    .scroll-animate,
    .scroll-left,
    .scroll-right,
    .scroll-scale {

        opacity: 1;

        transform: none;

        transition: none;

    }

}

/* =====================================================
   MENÚ MÓVIL
===================================================== */

.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    color: #172033;
    font-size: 26px;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}


/* =====================================================
   MENÚ PARA CELULAR
===================================================== */

@media (max-width: 768px) {

    .navigation {
        position: relative;
        z-index: 1000;
    }


    .nav-container {
        position: relative;
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }


    /* BOTÓN ☰ */

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 48px;
        height: 48px;

        border-radius: 8px;

        transition:
            background 0.2s ease,
            color 0.2s ease;
    }


    .menu-toggle:hover {
        background: #f5f5f5;
    }


    .menu-toggle.active {
        color: #f7c900;
    }


    /* =================================================
       PANEL DEL MENÚ
    ================================================= */

    .nav-links {

        position: fixed;

        top: 0;
        left: 0;

        width: 100%;
        height: 100vh;

        background: #ffffff;

        display: flex;
        flex-direction: column;

        justify-content: flex-start;

        gap: 0;

        padding:

            90px
            20px
            30px;

        overflow-y: auto;

        opacity: 0;
        visibility: hidden;

        transform: translateX(100%);

        transition:
            transform 0.3s ease,
            opacity 0.3s ease,
            visibility 0.3s ease;

        z-index: 1050;

        -webkit-overflow-scrolling: touch;
    }


    /* =================================================
       MENÚ ABIERTO
    ================================================= */

    .nav-links.active {

        opacity: 1;

        visibility: visible;

        transform: translateX(0);

    }


    /* =================================================
       ENLACES
    ================================================= */

    .nav-links .nav-link {

        width: 100%;

        min-height: 58px;

        display: flex;

        align-items: center;

        justify-content: center;

        padding: 15px 20px;

        margin-bottom: 6px;

        text-align: center;

        font-size: 17px;

        font-weight: 600;

        color: #172033;

        border-bottom: 1px solid #eeeeee;

        text-decoration: none;

        border-radius: 6px;

        transition:
            background 0.2s ease,
            color 0.2s ease;

        flex-shrink: 0;
    }


    /* HOVER / TOQUE */

    .nav-links .nav-link:hover,
    .nav-links .nav-link:active {

        background: #f7c900;

        color: #172033;

    }


    /* ENLACE ACTIVO */

    .nav-links .nav-link.active {

        background: #f7c900;

        color: #172033;

    }


    /* =================================================
       BOTÓN DE CERRAR POR ENCIMA DEL MENÚ
    ================================================= */

    .menu-toggle.active {

        position: fixed;

        top: 18px;
        right: 18px;

        z-index: 1200;

        background: #172033;

        color: #ffffff;

        border-radius: 50%;

    }


    .menu-toggle.active:hover {

        background: #25304a;

    }

}

/* =====================================================
   LIGHTBOX DE GALERÍA
===================================================== */

.gallery-lightbox {

    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    background: rgba(10, 14, 25, 0.94);

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 30px;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;

    z-index: 99999;
}


/* LIGHTBOX ABIERTO */

.gallery-lightbox.active {

    opacity: 1;

    visibility: visible;

}


/* =====================================================
   CONTENIDO
===================================================== */

.lightbox-content {

    position: relative;

    max-width: 1100px;
    width: 90%;

    max-height: 90vh;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

}


.lightbox-content img {

    display: block;

    max-width: 100%;

    max-height: 78vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 8px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.45);

    transform: scale(0.95);

    transition:
        transform 0.3s ease;

}


.gallery-lightbox.active
.lightbox-content img {

    transform: scale(1);

}


/* =====================================================
   TÍTULO DE LA IMAGEN
===================================================== */

.lightbox-caption {

    margin-top: 18px;

    color: #ffffff;

    font-size: 18px;

    font-weight: 600;

    text-align: center;

}


/* =====================================================
   BOTONES
===================================================== */

.lightbox-close,
.lightbox-prev,
.lightbox-next {

    position: absolute;

    border: none;

    background: rgba(255, 255, 255, 0.12);

    color: #ffffff;

    width: 50px;
    height: 50px;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    cursor: pointer;

    font-size: 20px;

    transition:
        background 0.2s ease,
        transform 0.2s ease;

    z-index: 10;
}


.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {

    background: #f7c900;

    color: #172033;

    transform: scale(1.08);

}


/* CERRAR */

.lightbox-close {

    top: 25px;

    right: 25px;

}


/* ANTERIOR */

.lightbox-prev {

    left: 25px;

    top: 50%;

    transform: translateY(-50%);
}


.lightbox-prev:hover {

    transform:
        translateY(-50%)
        scale(1.08);

}


/* SIGUIENTE */

.lightbox-next {

    right: 25px;

    top: 50%;

    transform: translateY(-50%);
}


.lightbox-next:hover {

    transform:
        translateY(-50%)
        scale(1.08);

}


/* =====================================================
   GALERÍA CLICKEABLE
===================================================== */

.gallery-item {

    cursor: pointer;

}


.gallery-item img {

    transition:
        transform 0.35s ease,
        filter 0.35s ease;

}


.gallery-item:hover img {

    transform: scale(1.04);

    filter: brightness(0.9);

}


/* =====================================================
   LIGHTBOX DE GALERÍA
===================================================== */

.gallery-lightbox {

    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    background: rgba(10, 14, 25, 0.94);

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 30px;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;

    z-index: 99999;
}


/* =====================================================
   LIGHTBOX ABIERTO
===================================================== */

.gallery-lightbox.active {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

}


/* =====================================================
   CONTENEDOR
===================================================== */

.lightbox-content {

    position: relative;

    width: 90%;

    max-width: 1100px;

    max-height: 90vh;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

}


/* =====================================================
   IMAGEN
===================================================== */

.lightbox-content img {

    display: block;

    max-width: 90vw;

    max-height: 78vh;

    width: auto;

    height: auto;

    object-fit: contain;

    border-radius: 8px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.45);

    transform: scale(0.95);

    transition:
        transform 0.3s ease;

}


/* ANIMACIÓN */

.gallery-lightbox.active
.lightbox-content img {

    transform: scale(1);

}


/* =====================================================
   TEXTO
===================================================== */

.lightbox-caption {

    margin-top: 18px;

    color: #ffffff;

    font-size: 18px;

    font-weight: 600;

    text-align: center;

}


/* =====================================================
   BOTONES
===================================================== */

.lightbox-close,
.lightbox-prev,
.lightbox-next {

    position: absolute;

    border: none;

    background: rgba(255, 255, 255, 0.12);

    color: #ffffff;

    width: 50px;

    height: 50px;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    cursor: pointer;

    font-size: 20px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;

    z-index: 10;

}


/* HOVER */

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {

    background: #f7c900;

    color: #172033;

}


/* =====================================================
   CERRAR
===================================================== */

.lightbox-close {

    top: 25px;

    right: 25px;

}


.lightbox-close:hover {

    transform: scale(1.08);

}


/* =====================================================
   ANTERIOR
===================================================== */

.lightbox-prev {

    left: 25px;

    top: 50%;

    transform:
        translateY(-50%);

}


.lightbox-prev:hover {

    transform:
        translateY(-50%)
        scale(1.08);

}


/* =====================================================
   SIGUIENTE
===================================================== */

.lightbox-next {

    right: 25px;

    top: 50%;

    transform:
        translateY(-50%);

}


.lightbox-next:hover {

    transform:
        translateY(-50%)
        scale(1.08);

}


/* =====================================================
   GALERÍA CLICKEABLE
===================================================== */

.gallery-item {

    cursor: pointer;

}


.gallery-item img {

    transition:
        transform 0.35s ease,
        filter 0.35s ease;

}


.gallery-item:hover img {

    transform:
        scale(1.04);

    filter:
        brightness(0.9);

}


/* =====================================================
   CELULAR
===================================================== */

@media (max-width: 600px) {

    .gallery-lightbox {

        padding: 15px;

    }


    .lightbox-content {

        width: 100%;

        max-width: 100%;

        max-height: 85vh;

        display: flex;

        align-items: center;

        justify-content: center;

    }


    .lightbox-content img {

        display: block;

        max-width: 90vw;

        max-height: 70vh;

        width: auto;

        height: auto;

        object-fit: contain;

        border-radius: 5px;

    }


    .lightbox-caption {

        font-size: 16px;

        margin-top: 12px;

        color: #ffffff;

        text-align: center;

    }


    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {

        width: 44px;

        height: 44px;

        font-size: 17px;

    }


    .lightbox-close {

        top: 15px;

        right: 15px;

    }


    .lightbox-prev {

        left: 10px;

    }


    .lightbox-next {

        right: 10px;

    }

}

/* Panel visible cuando se selecciona un punto */
.map-info-panel.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* =========================================
   IMAGEN DEL PANEL DEL MAPA
========================================= */

.map-info-image-container {
    width: 100%;
    max-width: 420px;
    margin: 15px auto;
    overflow: hidden;
    border-radius: 12px;
}

.map-info-image-container img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
}

/* Pantallas pequeñas */
@media (max-width: 768px) {

    .map-info-image-container {
        max-width: 100%;
    }

    .map-info-image-container img {
        height: 180px;
    }
}

/* =========================================
   INSIGNIA 40 AÑOS - HERO
========================================= */

.hero {
    position: relative;
}

.hero-experiencia {
    position: absolute;
    top: 25px;
    right: 40px;
    z-index: 5;
    width: 440px;
}

.hero-experiencia img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* =========================================
   VERSIÓN PARA CELULAR
========================================= */

@media (max-width: 768px) {

    .hero-experiencia {
        top: 15px;
        right: 15px;
        width: 120px;
    }

}

/* =========================================
   EASTER EGG - CÓDIGO SECRETO
========================================= */

.secret-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 99999;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.35s ease,
                visibility 0.35s ease;
}

.secret-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.secret-box {
    position: relative;
    width: min(700px, 100%);
    max-height: 90vh;
    overflow-y: auto;

    background: #111;
    color: #fff;

    border-radius: 20px;
    padding: 35px;

    text-align: center;

    box-shadow:
        0 0 40px rgba(255, 255, 255, 0.08),
        0 20px 60px rgba(0, 0, 0, 0.6);

    transform: scale(0.85);
    transition: transform 0.4s ease;
}

.secret-overlay.active .secret-box {
    transform: scale(1);
}

.secret-close {
    position: absolute;
    top: 15px;
    right: 15px;

    width: 40px;
    height: 40px;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.1);
    color: #fff;

    font-size: 20px;
    cursor: pointer;

    transition: 0.25s ease;
}

.secret-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.secret-icon {
    font-size: 45px;
    margin-bottom: 10px;
}

.secret-box h2 {
    margin: 0;
    font-size: 28px;
    letter-spacing: 1px;
}

.secret-line {
    width: 80px;
    height: 3px;
    margin: 15px auto 20px;
    background: #fff;
    border-radius: 10px;
}

.secret-message,
.secret-greetings,
.secret-transformers {
    font-size: 17px;
    line-height: 1.7;
    margin: 12px 0;
}

.secret-transformers {
    font-size: 19px;
    margin-top: 20px;
}

.secret-small {
    font-size: 13px;
    opacity: 0.6;
    font-style: italic;
    margin: 20px 0;
}

/* VIDEO */

.secret-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    margin-top: 25px;
    overflow: hidden;
    border-radius: 14px;
    background: #000;
}

.secret-video iframe {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    border: 0;
}

/* BOTÓN */

.secret-button {
    margin-top: 25px;

    padding: 12px 25px;

    border: none;
    border-radius: 30px;

    background: #fff;
    color: #111;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.25s ease;
}

.secret-button:hover {
    transform: translateY(-2px);
}

/* CELULAR */

@media (max-width: 600px) {

    .secret-box {
        padding: 28px 18px;
        max-height: 92vh;
    }

    .secret-box h2 {
        font-size: 22px;
    }

    .secret-message,
    .secret-greetings {
        font-size: 15px;
    }

    .secret-transformers {
        font-size: 17px;
    }

}