:root {
    --bg-body: 255, 255, 255;
    --bg-body-text: 255, 255, 255;

    --bg-glass: ;

    --time-hidden-xs: 0.25s;
    --time-hidden-sm: 0.5s;
    --time-hideen-md: 1s;
    --time-hidden-xl: 2s;

    --glass-light: rgba(255, 255, 255, 0.2);
    --glass-ultra-light: rgba(255, 255, 255, 0.1);

    --card-blur-full: rgba(255, 255, 255, 1);
    --card-blur-md: rgba(255, 255, 255, 0.5);
    --card-blur-lg: rgba(255, 255, 255, 0.25);

    --nav-bg-glass: rgba(255, 255, 255, 0.8);

    --nav-text: #fff;

    --card-hover: #A9D6E5;

    --section-bg-glass: rgba(255, 255, 255, 0.99);

    --primary-white: #FFFFFF;
    --primary-black: #000;
    --primary-deep-blue: #2E6F95;
    --primary-dark-blue: #A9D6E5;
    --primary-red: #C1121F;
    --primary-orange: #F77F00;
    --primary-gray: #6C757D;
    --radius-line: 2px;
    --radius-sm: 10px;
    --radius-md: 20px;
    --radius-xl: 40px;
    --radius-xxl: 60px;
}

.dark-mode {
    --bg-body: 255, 255, 255;
    --bg-body-text: 255, 255, 255;

    --bg-glass: ;

    --section-bg-glass: rgba(13, 13, 13, 0.99);

    --card-blur: rgb(0, 0, 0);

    --glass-light: rgba(255, 255, 255, 0.2);

    --nav-bg: 255, 255, 255;
    --nav-bg-glass: rgba(83, 83, 83, 0.8);

    --nav-text: #fff;

    --card-hover: #A9D6E5;

    --primary-white: #000000;
    --primary-black: #ffffff;
    --primary-deep-blue: #A9D6E5;
    /* transition: all 0.5s ease; */
}

/* ====== Reset Basico ======= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat',
        sans-serif;
}

html {
    overflow-x: hidden;
    background: var(--primary-white);
}

body {
    transition: all 0.5s ease
}

.no-scroll {
    overflow: hidden;
    /* height: 100%;
    position: fixed;
    width: 100%; */
}

.mode {
    grid-area: 1 / 1;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.mode svg {
    width: 1.6rem;
    height: 1.6rem;
}

.mode-active {
    /* border: 1px solid black; */
    border-radius: var(--radius-xl);
    padding: 10px;
    cursor: pointer;
}

/* Base general hidden class - do not touch, affects cards! */
.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--time-hidden-xs) ease;
}

.mode-active:hover {
    cursor: pointer;
}

#btnsMode {
    position: relative;
    width: 3.2rem;
    height: 3.2rem;
    display: grid;
    place-items: center;
    cursor: pointer;
    border-radius: 50%;
    background: var(--glass-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#btnsMode:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Light mode icon (Sun) */
.mode.sun.hidden {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

.mode.sun.mode-active {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    color: #F77F00;
}

/* Dark mode icon (Moon) */
.mode.moon.hidden {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.mode.moon.mode-active {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    color: var(--primary-dark-blue);
}

.dark-mode #btnsMode {
    background: rgba(20, 20, 20, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode #btnsMode:hover {
    background: rgba(50, 50, 50, 0.5);
}



.logo-img {
    /* margin: 5px; */
    width: 8rem;
    padding: 0.3rem 0 0.3rem 0.5rem;
}

.navbar {
    position: fixed;
    display: flex;
    justify-content: center;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    align-items: center;
    background: transparent;
    z-index: 30;
    border-radius: var(--radius-xxl);
    font-size: 1.2rem;
    padding: 0.8rem;
    transition: all 0.5s ease;
}

.nav-container {
    /* top: 1rem; */
    left: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0rem;
    position: absolute;
    background: transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9;
    border-radius: var(--radius-xxl);
    font-size: 1.2rem;
    padding: 0.6rem;
    transition: all 0.5s ease;
}

.scrolled {
    background: var(--nav-bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0, 0.3);
    transition: all 0.5s ease;
}

.scrolled::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
}

.navbar.scrolled a:hover {
    color: var(--primary-dark-blue);
    transition: all 0.5 ease;
}

.nav-links {
    position: relative;
    z-index: 10;
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);

}

.nav-links.scrolled {
    background: transparent;
    z-index: 9;
}

.nav-links a {
    position: relative;
    border-radius: var(--radius-sm);
    padding: 0.7rem;
    color: var(--nav-text);
    font-weight: 500;
    transition: all 0.5s ease;

}

.nav-links.scrolled a {
    color: var(--primary-deep-blue);
    font-weight: 500;
    transition: all 0.5 ease;
}

.nav-links a:hover {
    text-shadow: 0 0 10px var(--primary-white);
    background: var(--glass-light);
    transition: all 0.5s ease;
}

.nav-links a::after {
    position: absolute;
    content: "";
    transform: scaleX(0);
    transform-origin: center;
    background: linear-gradient(90deg, #A9D6E5, #F77F00);
    bottom: 4px;
    left: 10%;
    height: 2px;
    border-radius: var(--radius-line);
    width: 80%;
    transition: all 0.5s ease;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-social {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-social-link {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    transition: all 0.4s ease;
}

.nav-social-link svg {
    width: 1.3rem;
    height: 1.3rem;
}

.nav-social-link:hover {
    background: var(--glass-light);
    transform: scale(1.15);
}

.nav-social-link::after {
    display: none;
}

.btn-primary {
    background: linear-gradient(90deg, #2E6F95, #3a8ab5, #A9D6E5, #2E6F95);
    background-size: 400%;
    position: relative;
    padding: 1.2rem;
    font-size: 1.1rem;
    min-height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 250px;
    /* height: 50px; */
    text-align: center;
    color: var(--primary-white) !important;
    text-transform: uppercase;
    text-decoration: none;
    box-sizing: border-box;
    border: none;
    border-radius: var(--radius-xl);
    z-index: 10;
    margin: 0 0 0 auto;
    user-select: none;
    cursor: pointer;
    transition: all 0.5s ease;
    animation: btn-cotizar 1.0.5s infinite alternate;

}

/* .btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    filter: blur(15px);
    border-radius: inherit;
    z-index: -1;
    background: linear-gradient(0deg, #03a9f4, #0173ff);
    animation: aura 1.0.5s infinite alternate;
} */

.btn-primary:hover {
    background: linear-gradient(90deg, #2E6F95, #3a8ab5, #A9D6E5, #2E6F95);
    background-size: 400%;
    box-shadow: 0 0 15px #2E6F95, 0 0 30px rgba(46, 111, 149, 0.5);
    transform: translateY(-3px);
}

/* .btn-primary::before {
    content: "";
    position: absolute;
    top: -3px;
    right: -3px;
    bottom: -3px;
    left: -3px;
    z-index: -1;
    background: linear-gradient(135deg, #03a9f4, #1751ff, #2815ff, #02afff);
    background-size: 400%;
    border-radius: 32px;
    filter: blur(10px);
    opacity: 0;
    transition: opacity .0.5s ease;
}

.btn-primary:hover::before {
    opacity: 1;
} */

.btn-colors {
    background-size: 400%;
}

.header-container {
    height: 100vh;
    width: 100%;
    background-image: linear-gradient(to bottom, rgba(46, 111, 149, 0.85) 0%, rgba(247, 127, 0, 0.3) 100%),
        url("./assets/img/hero.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.msg-parallax {
    color: var(--primary-white);
    font-size: 80px;
    font-weight: bold;
    font-family: 'Cormorant', serif !important;
}

.text-gradient {
    background: linear-gradient(135deg, #F77F00 0%, #A9D6E5 50%, #2E6F95 100%);
    font-family: 'Satisfy', serif !important;

    align-items: center;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-explorar {
    display: flex;
    border: 0px;
    opacity: 0.7;
    border-radius: var(--radius-xl);
    padding: 0.5rem;
    z-index: 1;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;

}

.btn-explorar:hover {
    /* border: 0px; */
    transform: scale(1.1);
    opacity: 0.8;
    cursor: pointer;
    border-radius: var(--radius-xl);
    padding: 0.5rem;
    transition: all 0.5s ease;
}

.btn-explorar svg {
    width: 1rem;
}

.btn-explorar-text {
    padding-left: 5px;
}

a {
    text-decoration: none;
    /* color: white; */
}

.section-bg {
    /* width: 100%; */
    padding: 2rem 5%;
    align-content: center;
    justify-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* margin: 0 auto; */
    min-height: 110vh;
    z-index: 1;
    transition: background 0.5s ease, z-index 0s;

}

.section-bg:has(.card-active) {
    z-index: 20;
}

.section-bg::before {
    min-height: 120vh;
    height: 100%;
    width: 100%;
    /* filter: blur(20px); */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 90%, rgba(247, 127, 0, 0.5), transparent 20%),
        radial-gradient(circle at 110% 40%, rgba(46, 111, 149, 0.5), transparent 40%),
        linear-gradient(to bottom, var(--section-bg-glass) 0%, var(--section-bg-glass) 100%);
    /* url("./assets/img/hero.jpg"); */
    /* background-repeat: no-repeat;
    background-size: cover;
    background-position: center; */
    background-attachment: fixed;
    transition: background 0.5s ease;

}

/* .hidden {
    display: none;
    pointer-events: none;
} */

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1300px;
    position: relative;
}

.card {
    display: flex;
    border-radius: var(--radius-md);
    background: var(--primary-white);
    transform: scale(1);
    position: relative;
    height: 40vh;
    width: 100%;
    z-index: 1;
    max-width: 350px;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    transition: transform var(--time-hidden-sm) cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow var(--time-hidden-sm) cubic-bezier(0.4, 0, 0.2, 1),
        border-radius var(--time-hidden-sm) ease;
}

@media (hover: hover) {
    .card:not(.card-active):hover {
        box-shadow: 0 0 20px 10px var(--card-hover);
        transform: scale(1.05);
        transition: box-shadow 0.5s ease, transform 0.5s ease;
        animation: none;
    }
}

@keyframes hint-click {

    0%,
    75%,
    100% {
        transform: scale(1);
        box-shadow: none;
    }

    82%,
    93% {
        transform: scale(1.02);
        box-shadow: 0 0 15px 5px var(--card-hover);
    }
}

@keyframes hint-icon-fade {

    0%,
    70%,
    100% {
        opacity: 0;
        transform: translate(-20%, 20px) scale(1.2);
    }

    75%,
    95% {
        opacity: 1;
    }

    82%,
    93% {
        transform: translate(-50%, 0px) scale(0.9);
        color: var(--primary-dark-blue);
    }
}

/* Aplicar el latido a las tarjetas inactivas cada 6s */
.card:not(.card-active) {
    animation: hint-click 6s infinite ease-in-out;
}

.card .click-hint {
    position: absolute;
    top: 28%;
    left: 80%;
    /* width: 60px; */
    transform: translate(-50%, 0);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
}

/* Circulo en la punta del dedo */
.card .click-hint::before {
    content: '';
    position: absolute;
    top: 22%;
    left: 22%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: var(--primary-deep-blue);
    border: 2px solid var(--primary-white);
    border-radius: 50%;
    box-shadow: 0 0 8px 2px var(--primary-dark-blue);
}

.card .click-hint img {
    width: 120px;
    height: 120px;
    display: block;
    filter: none;
    transform: rotate(-45deg);
    transform-origin: center center;
}

.card:not(.card-active) .click-hint {
    animation: hint-icon-fade 6s infinite ease-in-out;
}

/* Desfasar la animacion */
.card:nth-child(1):not(.card-active),
.card:nth-child(1):not(.card-active) .click-hint {
    animation-delay: 0s;
}

.card:nth-child(2):not(.card-active),
.card:nth-child(2):not(.card-active) .click-hint {
    animation-delay: 1.5s;
}

.card:nth-child(3):not(.card-active),
.card:nth-child(3):not(.card-active) .click-hint {
    animation-delay: 3s;
}

.card:nth-child(4):not(.card-active),
.card:nth-child(4):not(.card-active) .click-hint {
    animation-delay: 4.5s;
}



/* .card:hover .card-img {
    transform: scale(1.1);
} */

.card .card-img {
    object-fit: cover;
    position: absolute;
    z-index: 5;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* will-change activado por JS solo durante animaciones */
    transition: width var(--time-hidden-sm) cubic-bezier(0.4, 0, 0.2, 1),
        height var(--time-hidden-sm) cubic-bezier(0.4, 0, 0.2, 1),
        top var(--time-hidden-sm) cubic-bezier(0.4, 0, 0.2, 1),
        left var(--time-hidden-sm) cubic-bezier(0.4, 0, 0.2, 1),
        border-radius var(--time-hidden-sm) ease;
}

/* .card:hover .card-img {} */

.card::after {
    content: "";
    opacity: 1;
    position: absolute;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 50%);
    top: 0;
    left: 0;
    z-index: 5;
    height: 100%;
    width: 100%;
    pointer-events: none;
    transition: opacity 0.4s ease 0.5s;
}

/* .card:hover::after {
    transform: scale(1.1);
    transition: transform 0.5s ease;
} */


.card .card-title-container {
    display: flex;
    position: absolute;
    align-items: center;
    color: var(--primary-white);
    z-index: 9;
    bottom: 0;
    top: 85%;
    height: 0;
    left: 0.5rem;
    gap: 5px;
    transition: top var(--time-hidden-sm) cubic-bezier(0.4, 0, 0.2, 1),
        height var(--time-hidden-sm) cubic-bezier(0.4, 0, 0.2, 1),
        color var(--time-hidden-sm) ease,
        left var(--time-hidden-sm) ease;
}

.card .desc-container {
    z-index: 3;
    position: absolute;
    display: flex;
    flex-direction: column;
    right: 0;
    left: 0;
    bottom: 0;
    height: 80%;
    width: calc(100vw - 1rem);
    padding: 10px;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-deep-blue) !important;
    transition: opacity var(--time-hidden-sm) ease,
        height var(--time-hidden-sm) cubic-bezier(0.4, 0, 0.2, 1);
}

.card .card-desc {
    z-index: 5;
    position: absolute;
    left: 0;
    display: block;
    /* FIX: era flex y colapsaba al cerrar la tarjeta */
    /* bottom: 2%; */
    width: calc(100vw - 1rem);
    padding: 10px;
    transition: opacity var(--time-hidden-xs) ease;
}

.card figure {
    border-radius: var(--radius-sm);
    height: 2rem;
    width: 2rem;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    background: var(--primary-deep-blue);
    color: var(--primary-white);

}

.card .card-title {
    font-family: 'Cormorant';
    font-style: italic;
    font-size: 2rem;
    /* color: var(--primary-white); */
}

.card-active {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: center;
    position: fixed;
    max-height: 89vh;
    max-width: 94vw;
    background: var(--primary-white);
    top: 6rem;
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 11;
    height: calc(100vh - 5.5rem);
    width: calc(100% - 4rem);
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: 0 0 20px 10px var(--card-hover);
    /* will-change activado por JS solo durante animaciones */
    transition: width var(--time-hidden-sm) cubic-bezier(0.4, 0, 0.2, 1),
        height var(--time-hidden-sm) cubic-bezier(0.4, 0, 0.2, 1),
        left var(--time-hidden-sm) cubic-bezier(0.4, 0, 0.2, 1),
        top var(--time-hidden-sm) cubic-bezier(0.4, 0, 0.2, 1),
        transform var(--time-hidden-sm) cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow var(--time-hidden-sm) ease;
}

.card-active .card-img {
    position: absolute;
    object-fit: cover;
    border-radius: var(--radius-xl);
    object-position: center;
    top: 2%;
    left: 1.5%;
    width: 30%;
    height: 96%;
    z-index: 9;
    transition: width var(--time-hidden-sm) cubic-bezier(0.4, 0, 0.2, 1),
        height var(--time-hidden-sm) cubic-bezier(0.4, 0, 0.2, 1),
        top var(--time-hidden-sm) cubic-bezier(0.4, 0, 0.2, 1),
        left var(--time-hidden-sm) cubic-bezier(0.4, 0, 0.2, 1),
        border-radius var(--time-hidden-sm) ease;
}

.card-active .img-clone {
    position: absolute;
    object-fit: cover;
    border-radius: var(--radius-xl);
    object-position: center;
    top: 2%;
    left: 1.5%;
    width: 30%;
    height: 96%;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.card-active .slider-progress-line {
    position: absolute;
    top: 96%;
    left: 1.5%;
    width: 30%;
    height: 4px;
    background: rgb(46, 111, 149);
    z-index: 12;
    border-radius: 2px;
    overflow: hidden;
}

.card-active .slider-progress-line::after {
    content: '';
    display: block;
    height: 100%;
    width: 0%;
    background: var(--primary-red);
}

@keyframes progress-bar {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

/* .card-active .card-title {
        color: var(--primary-deep-blue);
        transition: all 0.3s ease;
    } */

.card-active .card-title-container {
    display: flex;
    align-items: center;
    position: absolute;
    color: var(--primary-deep-blue);
    z-index: 9;
    height: auto;
    padding: 5px;
    top: 5%;
    bottom: auto;
    /* IMPORTANTE: evita que se estire hasta abajo */
    left: 33%;
    gap: 8px;
    transition: top var(--time-hidden-sm) ease, left var(--time-hidden-sm) cubic-bezier(0.4, 0, 0.2, 1), height var(--time-hidden-sm) ease, color var(--time-hidden-sm) ease;
}

.card-active .card-title-container .card-title {
    font-size: 2.5rem;
    font-weight: 700;
}

.card-active .card-title-container figure {
    width: 32px;
    height: 32px;
}


.card-active .desc-container {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    gap: 15px;
    position: absolute;
    width: calc(97% - 33%);
    opacity: 1;
    bottom: 3%;
    top: 15%;
    left: 33%;
    padding: 1rem 1.5rem 1rem 0;
    z-index: 3;
    height: auto;
    transition: opacity var(--time-hidden-sm) ease, height var(--time-hidden-sm) ease, left var(--time-hidden-sm) cubic-bezier(0.4, 0, 0.2, 1), width var(--time-hidden-sm) cubic-bezier(0.4, 0, 0.2, 1);
}

.card-active .card-desc {
    z-index: 5;
    display: block;
    /* FIX: era flex y rompía los saltos de línea */
    font-size: 1.15rem;
    line-height: 1.7;
    overflow-y: auto;
    left: 0;
    width: 100%;
    height: 80%;
    color: var(--primary-deep-blue);
    transition: opacity var(--time-hidden-xs) ease;
}

.card .close-card {
    display: flex;
    cursor: pointer;
    position: absolute;
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--primary-white);
    z-index: 10;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--primary-red);
    border-radius: var(--radius-xxl);
    padding: 1rem;
    bottom: 2rem;
    /* right: 2rem; */
    left: auto;
    transition: opacity var(--time-hidden-xs) ease;
}

.card-active::after {
    opacity: 0;
    transition: opacity 1s ease 0.1s;
}

/* Gallery strip (hidden by default, shown in active) */
.card-gallery {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
}

.card-gallery img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    scroll-snap-align: start;
    border: 2px solid rgba(46, 111, 149, 0.15);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.card-gallery img:hover {
    border-color: var(--primary-deep-blue);
    transform: scale(1.05);
}

/* CTA button inside expanded card */
.card-cta {
    display: inline-block;
    background: var(--primary-deep-blue);
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-xl);
    text-align: center;
    margin-top: 0.5rem;
    transition: background 0.3s ease, transform 0.3s ease;
}

.card-cta:hover {
    background: #3a8ab5;
    transform: translateY(-2px);
}

/* Show gallery + CTA when card is active */
.card-active .card-gallery {
    opacity: 1;
    pointer-events: all;
}

.card-active .card-cta {
    opacity: 1;
    pointer-events: all;
}

.card-hidden {
    /* display: none; */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.menu-toggle {
    display: none;
}

.menu-container {
    display: none;
}

main {
    background: var(--primary-white);
    transition: background 0.5s ease;
}

/* ====== Contact Section ====== */
.contact-section {
    padding: 5rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(46, 111, 149, 0.12), transparent 45%),
        radial-gradient(circle at 15% 80%, rgba(247, 127, 0, 0.10), transparent 35%);
    pointer-events: none;
}

.contact-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    width: 100%;
    text-align: center;
}

.contact-title {
    font-family: 'Cormorant', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-deep-blue);
    margin-bottom: 0.5rem;
}

.contact-subtitle {
    color: var(--primary-deep-blue);
    opacity: 0.7;
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 3rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(46, 111, 149, 0.12);
    text-decoration: none;
    color: var(--primary-deep-blue);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
        box-shadow 0.4s ease,
        border-color 0.4s ease;
    cursor: default;
}

a.contact-card {
    cursor: pointer;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(46, 111, 149, 0.8);
    border-color: rgba(46, 111, 149, 0.35);
}

.contact-card-whatsapp:hover {
    box-shadow: 0 12px 36px rgba(37, 211, 102, 0.80);
    border-color: rgba(37, 211, 102, 0.4);
}

.contact-card-icon {
    width: 3.5rem;
    height: 3.5rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #2E6F95, #3a8ab5);
    color: #fff;
    box-shadow: 0 4px 16px rgba(46, 111, 149, 0.3);
    transition: transform 0.4s ease;
}

.contact-card:hover .contact-card-icon {
    transform: scale(1.12);
}

.contact-card-icon svg {
    width: 1.4rem;
    height: 1.4rem;
}

.contact-card-icon-wa {
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.contact-card-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.55;
}

.contact-card-value {
    font-family: 'Cormorant', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-deep-blue);
}

/* Dark mode overrides */
.dark-mode .contact-card {
    background: rgba(30, 30, 30, 0.6);
    border-color: rgba(46, 111, 149, 0.15);
}

.dark-mode .contact-card-label,
.dark-mode .contact-card-value {
    color: var(--primary-black);
}

.main-footer {
    background: var(--primary-deep-blue);
    color: var(--primary-white);
    padding: 4rem 2rem 2rem;
    font-family: 'Google Sans', sans-serif;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-brand .footer-logo {
    width: 140px;
    filter: brightness(0) invert(1);
    margin-bottom: 1.5rem;
}

.footer-slogan {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.8;
    max-width: 300px;
}

.footer-heading {
    font-family: 'Cormorant', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-white);
}


.footer-contact-info p {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.footer-contact-info i {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-rights {
    font-size: 0.85rem;
    opacity: 0.6;
}

.main-footer .footer-social-media {
    display: flex;
    gap: 1rem;
}

.main-footer .social-link {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-white);
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

.main-footer .social-link i {
    width: 18px;
    height: 18px;
}

.main-footer .social-link:hover {
    background: var(--primary-white);
    color: var(--primary-deep-blue);
    transform: translateY(-3px);
}

.section-whatsapp .btn-whatsapp {
    position: fixed;
    display: grid;
    place-items: center;
    width: 3.2rem;
    height: 3.2rem;
    bottom: 1rem;
    right: 2rem;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: var(--radius-xxl);
    z-index: 20;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.section-whatsapp .btn-whatsapp svg {
    width: 1.6rem;
    height: 1.6rem;
    color: #fff;
}

.section-whatsapp .btn-whatsapp:hover {
    transform: scale(1.12);
}

/* Float Chat Window */
.float-chat {
    position: fixed;
    bottom: 15rem;
    right: 2rem;
    width: 320px;
    z-index: 21;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.float-chat.chat-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #075e54;
    color: #fff;
    padding: 0.8rem 1rem;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.chat-avatar {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: #25d366;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1rem;
}

.chat-name {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
}

.chat-status {
    display: block;
    font-size: 0.7rem;
    opacity: 0.8;
}

.chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.chat-close:hover {
    opacity: 1;
}

.chat-body {
    background: #e5ddd5;
    padding: 1.2rem 1rem;
    min-height: 100px;
}

.chat-bubble {
    background: #fff;
    border-radius: 0 8px 8px 8px;
    padding: 0.7rem 0.9rem;
    max-width: 85%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
}

.chat-bubble p {
    font-size: 0.85rem;
    color: #333;
    line-height: 1.4;
    margin: 0;
}

.chat-time {
    display: block;
    text-align: right;
    font-size: 0.65rem;
    color: #999;
    margin-top: 4px;
}

.chat-footer {
    padding: 0.6rem 1rem;
    background: #f0f0f0;
}

.chat-send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.7rem;
    background: #25d366;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    border-radius: var(--radius-xl);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.chat-send-btn:hover {
    background: #128c7e;
}

.chat-send-btn svg {
    width: 1rem;
    height: 1rem;
}

@keyframes animate-btn-cotizar {
    0% {
        background-position: 0%;
    }

    100% {
        background-position: 400%;
    }
}

/* ========================================= */
/* ABOUT & PROCESS SECTIONS */
/* ========================================= */

.section-title {
    font-family: 'Cormorant', serif;
    font-size: 3rem;
    font-style: italic;
    color: var(--primary-deep-blue);
    margin-bottom: 0.5rem;
    text-align: center;
}

.dark-mode .section-title {
    color: var(--primary-dark-blue);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--primary-gray);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 500;
}

.dark-mode .section-subtitle {
    color: #ccc;
}

/* ABOUT SECTION */
.about-section {
    padding: 5rem 10%;
    background: var(--primary-white);
    transition: background 0.5s ease;
}

.dark-mode .about-section {
    background: #000;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    justify-items: center;
    margin-top: 2rem;
}

.team-card {
    background: var(--primary-white);
    border-radius: var(--radius-md);
    width: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border: 1px solid rgba(46, 111, 149, 0.1);
}

.dark-mode .team-card {
    background: #111;
    border-color: rgba(169, 214, 229, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(46, 111, 149, 0.2);
}

.dark-mode .team-card:hover {
    box-shadow: 0 15px 40px rgba(169, 214, 229, 0.2);
}

.team-img-wrapper {
    width: 100%;
    height: 350px;
    overflow: hidden;
    position: relative;
}

.team-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 1;
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.team-card:hover .team-img {
    transform: scale(1.05);
}

.team-info {
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
    background: var(--primary-white);
}

.dark-mode .team-info {
    background: #111;
}

.team-name {
    font-size: 1.5rem;
    color: var(--primary-deep-blue);
    margin-bottom: 0.5rem;
    font-family: 'Cormorant', serif;
    font-weight: bold;
}

.dark-mode .team-name {
    color: var(--primary-dark-blue);
}

.team-role {
    color: var(--primary-orange);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-destinations {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1rem;
}

.dark-mode .team-destinations {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.team-destinations span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    background: rgba(46, 111, 149, 0.1);
    color: var(--primary-deep-blue);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.dark-mode .team-destinations span {
    background: rgba(169, 214, 229, 0.1);
    color: var(--primary-dark-blue);
}

.team-destinations svg {
    width: 14px;
    height: 14px;
}

/* PROCESS SECTION (MAP/TIMELINE) */
.process-section {
    padding: 5rem 10%;
    background: rgba(169, 214, 229, 0.1);
    /* light blue bg */
    transition: background 0.5s ease;
}

.dark-mode .process-section {
    background: #0a0a0a;
}

.process-content {
    max-width: 1200px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto 0;
}

/* Desktop Timeline wrapper */
@media (min-width: 992px) {
    .timeline {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding-top: 2rem;
    }

    /* Horizontal line */
    .timeline::before {
        content: '';
        position: absolute;
        top: 2.8rem;
        left: 0;
        width: 100%;
        height: 6px;
        background: linear-gradient(90deg, #2E6F95, #F77F00, #2E6F95);
        border-radius: 10px;
        z-index: 1;
        opacity: 0.5;
    }

    .timeline-item {
        position: relative;
        flex: 1;
        text-align: center;
        padding: 0 10px;
        z-index: 2;
    }

    .timeline-icon {
        width: 4rem;
        height: 4rem;
        margin: 0 auto;
        background: var(--primary-white);
        border: 4px solid var(--primary-deep-blue);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary-orange);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transition: all 0.4s ease;
        position: relative;
    }

    .dark-mode .timeline-icon {
        background: #111;
        border-color: var(--primary-dark-blue);
        box-shadow: 0 5px 15px rgba(255, 255, 255, 0.05);
    }

    .timeline-item:hover .timeline-icon {
        transform: scale(1.1) translateY(-5px);
        background: var(--primary-deep-blue);
        color: var(--primary-white);
        border-color: var(--primary-white);
    }

    .timeline-content {
        margin-top: 1.5rem;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
        color: var(--primary-deep-blue);
        margin-bottom: 0.5rem;
        font-weight: bold;
    }

    .dark-mode .timeline-content h3 {
        color: var(--primary-dark-blue);
    }

    .timeline-content p {
        font-size: 0.85rem;
        color: var(--primary-gray);
        line-height: 1.4;
    }

    .dark-mode .timeline-content p {
        color: #ccc;
    }
}

/* Mobile Timeline wrapper */
@media (max-width: 991px) {
    .timeline {
        padding-left: 1rem;
    }

    /* Vertical line */
    .timeline::before {
        content: '';
        position: absolute;
        top: 0;
        left: 15px;
        height: 100%;
        width: 4px;
        background: linear-gradient(180deg, #2E6F95, #F77F00, #2E6F95);
        border-radius: 10px;
    }

    .timeline-item {
        position: relative;
        margin-bottom: 3rem;
        padding-left: 3rem;
    }

    .timeline-item:last-child {
        margin-bottom: 0;
    }

    .timeline-icon {
        position: absolute;
        left: -5px;
        top: 0;
        width: 2.8rem;
        height: 2.8rem;
        background: var(--primary-white);
        border: 3px solid var(--primary-deep-blue);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary-orange);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 2;
    }

    .timeline-icon svg {
        width: 1.2rem;
        height: 1.2rem;
    }

    .dark-mode .timeline-icon {
        background: #111;
        border-color: var(--primary-dark-blue);
    }

    .timeline-content {
        background: var(--primary-white);
        padding: 1.5rem;
        border-radius: var(--radius-md);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(46, 111, 149, 0.1);
        position: relative;
    }

    .dark-mode .timeline-content {
        background: #111;
        border-color: rgba(169, 214, 229, 0.1);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    }

    /* triangle pointer */
    .timeline-content::before {
        content: '';
        position: absolute;
        top: 15px;
        left: -10px;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--primary-white) transparent transparent;
    }

    .dark-mode .timeline-content::before {
        border-color: transparent #111 transparent transparent;
    }

    .timeline-content h3 {
        font-size: 1.2rem;
        color: var(--primary-deep-blue);
        margin-bottom: 0.5rem;
        font-weight: bold;
    }

    .dark-mode .timeline-content h3 {
        color: var(--primary-dark-blue);
    }

    .timeline-content p {
        font-size: 0.95rem;
        color: var(--primary-gray);
        line-height: 1.5;
    }

    .dark-mode .timeline-content p {
        color: #ccc;
    }
}

/* ========================================= */
/* GLOBE 3D SECTION */
/* ========================================= */
.globe-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: #000;
    overflow: hidden;
    margin: 0 calc(-50vw + 50%);
    left: 0;
}

#globeViz {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.globe-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5rem 2rem 2rem;
}

.globe-text-center {
    pointer-events: auto;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    backdrop-filter: blur(5px);
    max-width: 600px;
    margin: 0 auto;
}

.text-white {
    color: #fff !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.globe-card {
    pointer-events: auto;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    width: 500px;
    position: absolute;
    bottom: 2rem;
    right: 5rem;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.globe-card.active-card {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 768px) {

    .globe-overlay {
        padding: 0.7rem;
    }

    .globe-card {
        right: 50%;
        transform: translate(50%, 30px);
        bottom: 0.5rem;
        width: 95%;
        /* height: 35%; */
        /* max-width: 350px; */
    }

    .globe-text-center {
        text-align: center;
        padding: 0.5rem;
        max-width: 600px;
    }

    .globe-card.active-card {
        transform: translate(50%, 0);
    }

    .globe-section {
        height: 95vh;
        /* slightly smaller on mobile */
    }

    .globe-img-wrapper {
        /* position: relative; */
        /* width: 10%; */
        height: 16rem;
    }
}

.globe-img-wrapper {
    position: relative;
    width: 100%;
    /* height: 300px; */
}

.globe-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.globe-pulse-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(5px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-red);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(193, 18, 31, 0.7);
    animation: pulsing 1.5s infinite;
}

.pulse-text {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 1px;
}

@keyframes pulsing {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(193, 18, 31, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(193, 18, 31, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(193, 18, 31, 0);
    }
}

.globe-card-info {
    padding: 0.6rem;
}

.globe-card-info h3 {
    margin: 0 0 0.5rem;
    font-size: 2rem;
    font-family: 'Cormorant', serif;
    font-style: italic;
    color: var(--primary-dark-blue);
}

.globe-card-info p {
    margin: 0;
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.4;
}

@media (max-width: 1000px) {
    .navbar {
        top: 0.4rem;
        left: 0.1rem;
        right: 0.1rem;
        padding: 0.2rem;
        align-items: center;
        transition: all 0.5s ease;
    }

    .logo-img {
        width: 7rem;
    }

    .nav-container {
        gap: 7px;
        top: 0.1rem;
        left: 0.5rem;
        right: 0.5rem;
        /* width: 90%; */
        /* padding: 0.2rem; */
        align-items: center;
        justify-content: space-around;
        padding: 0.3rem 1rem;
        z-index: 9;
        transition: all 0.5s ease;
    }

    .nav-links {
        opacity: 0;
        pointer-events: none;
        gap: 0.1rem;
        display: flex;
        background: var(--glass-light);
        flex-direction: column;
        position: absolute;
        top: 4.5rem;
        /* width: 90vw; */
        left: 0.5rem;
        right: 0.5rem;
        color: var(--primary-deep-blue);
        padding: 0.5rem;
        border-radius: var(--radius-xl);
        box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
        align-items: center;
        transition: all 0.5s ease;
    }

    .nav-links.nav-active {
        opacity: 1;
        pointer-events: all;
        /* background: var(--nav-bg-glass); */
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .btn-primary {
        font-size: 0.8rem;
        font-weight: bold;
        margin: 0 auto;
        padding: 0.4rem;
        animation: btn-cotizar 1.0.5s infinite alternate;

    }

    .btn-primary::after {
        content: "";
        position: absolute;
        inset: 0;
        filter: blur(15px);
        border-radius: inherit;
        z-index: -1;
        background: linear-gradient(0deg, #2E6F95, #3a8ab5);
        animation: aura 1.0.5s infinite alternate;
    }

    .msg-parallax {
        font-size: 3.5rem;
    }

    /* #btnsMode {
        height: 2.8rem;
        width: 2.8rem;
    } */

    .menu-container {
        display: inline-block;
        cursor: pointer;
        z-index: 10;
    }

    .bar1,
    .bar2,
    .bar3 {
        width: 35px;
        height: 5px;
        background: var(--primary-white);
        margin: 6px 0;
        transition: 0.4s;
    }

    .nav-active.scrolled {
        background: var(--nav-bg-glass);
        backdrop-filter: blur(10px);
        color: var(--primary-deep-blue) !important;
        -webkit-backdrop-filter: blur(10px);
        z-index: 10;
        /* box-shadow: 10px 10px; */
        transition: all 0.5s ease;

    }

    .scrolled .menu-container div {
        z-index: 10;
        background: var(--primary-deep-blue);

    }

    .change {
        z-index: 10;
    }

    .change .bar1 {
        transform: translate(0, 11px) rotate(-45deg);
    }

    .change .bar2 {
        opacity: 0;
    }

    .change .bar3 {
        transform: translate(0, -11px) rotate(45deg);
    }

    .section-bg {
        min-height: 100vh;
    }

    /* Optimizaciones GPU mobile */
    .header-container {
        background-attachment: scroll;
        /* fixed no funciona en iOS y es pesado en Android */
    }

    .contact-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.9);
    }

    .card-container {
        grid-template-columns: auto auto;
        /* max-width: 400px; */
        gap: 1rem;
        justify-content: center;
        width: auto;
    }

    .card {
        max-height: 180px;
        width: 45vw;
        transition: transform var(--time-hidden-sm) cubic-bezier(0.4, 0, 0.2, 1),
            box-shadow 0.5s ease,
            width var(--time-hidden-sm) cubic-bezier(0.4, 0, 0.2, 1),
            height var(--time-hidden-sm) cubic-bezier(0.4, 0, 0.2, 1),
            max-height var(--time-hidden-sm) cubic-bezier(0.4, 0, 0.2, 1),
            border-radius var(--time-hidden-sm) ease;
    }

    /* hover desactivado en móvil via @media (hover: hover) en regla global */

    .card .desc-container {
        display: flex;
        flex-direction: column;
        position: absolute;
        justify-content: space-between;
        gap: 5px;
        z-index: 3;
        bottom: 0;
        left: 0;
        padding: 10px;
        height: 58%;
        width: calc(100vw - 1rem);
        transition: opacity var(--time-hidden-sm) ease,
            height var(--time-hidden-sm) cubic-bezier(0.4, 0, 0.2, 1);
    }

    .card::after {
        content: "";
        opacity: 1;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 5;
        height: 100%;
        width: 100%;
        pointer-events: none;
        transition: opacity 0.5s ease 0.5s;
    }

    .card figure {
        border-radius: var(--radius-sm);
        /* height: 2rem; */
        /* width: 2rem; */
        padding: 5px;
        display: flex;
        justify-content: center;
        align-content: center;
        align-items: center;
        background: var(--primary-deep-blue);
        color: var(--primary-white);
        transition: padding var(--time-hidden-sm) ease;

    }

    .card .card-img {
        /* height: 100%; */
        position: absolute;

    }

    .card .close-card {
        display: flex;
        cursor: none;
        position: absolute;
        font-weight: 600;
        font-size: 1.4rem;
        color: var(--primary-white);
        z-index: 10;
        align-items: center;
        justify-content: center;
        gap: 6px;
        background: var(--primary-red);
        border-radius: var(--radius-xl);
        padding: 8px;
        right: 2rem;
        left: 2rem;
        margin: 0 auto;
        bottom: 0;
        transition: opacity var(--time-hidden-xs) ease;
    }

    .card-active {
        display: flex;
        align-items: center;
        flex-direction: row;
        justify-content: center;
        position: fixed;
        max-height: none !important;
        max-width: 100vw;
        top: 4.8rem;
        left: 50%;
        transform: translate(-50%, 0);
        z-index: 11;
        height: calc(100vh - 5.3rem) !important;
        width: calc(100% - 1rem);
        overflow: hidden;
        border-radius: var(--radius-xl);
        box-shadow: 0 0 20px 10px var(--card-hover);
        transition: width var(--time-hidden-sm) cubic-bezier(0.4, 0, 0.2, 1),
            height var(--time-hidden-sm) cubic-bezier(0.4, 0, 0.2, 1),
            left var(--time-hidden-sm) cubic-bezier(0.4, 0, 0.2, 1),
            top var(--time-hidden-sm) cubic-bezier(0.4, 0, 0.2, 1),
            max-height var(--time-hidden-sm) cubic-bezier(0.4, 0, 0.2, 1),
            transform var(--time-hidden-sm) cubic-bezier(0.4, 0, 0.2, 1),
            box-shadow var(--time-hidden-sm) ease;
    }

    .card-active .card-img {
        position: absolute;
        object-fit: cover;
        border-radius: var(--radius-xl);
        object-position: top center;
        top: 1%;
        left: 1.5%;
        width: 97%;
        height: 35%;
        z-index: 9;
        transition: width var(--time-hidden-sm) cubic-bezier(0.4, 0, 0.2, 1),
            height var(--time-hidden-sm) cubic-bezier(0.4, 0, 0.2, 1),
            top var(--time-hidden-sm) cubic-bezier(0.4, 0, 0.2, 1),
            left var(--time-hidden-sm) cubic-bezier(0.4, 0, 0.2, 1),
            border-radius var(--time-hidden-sm) ease;
    }

    .card-active .img-clone {
        object-position: top center;
        top: 1%;
        left: 1.5%;
        width: 97%;
        height: 35%;
    }

    .card-active .slider-progress-line {
        top: 35.5%;
        left: 1.5%;
        width: 97%;
    }

    /* .card-active .card-title {
        color: var(--primary-deep-blue);
        transition: all 0.3s ease;
    } */

    .card-active .card-title-container {
        display: flex;
        align-items: center;
        position: absolute;
        color: var(--primary-deep-blue);
        z-index: 9;
        height: auto;
        padding: 5px;
        top: 38%;
        bottom: auto;
        left: 0;
        gap: 8px;
        transition: top var(--time-hidden-sm) ease, height var(--time-hidden-sm) ease, color var(--time-hidden-sm) ease;
    }

    .card-active .card-title-container .card-title {
        font-size: 2.2rem;
        font-weight: 700;
    }

    .card-active .card-title-container figure {
        width: 32px;
        height: 32px;
    }

    .card-active .desc-container {
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        gap: 15px;
        position: absolute;
        width: calc(100vw - 2rem);
        opacity: 1;
        bottom: 0;
        top: auto;
        left: 0;
        color: var(--primary-deep-blue) !important;
        padding: 10px 1rem;
        z-index: 3;
        height: 54%;
        transition: opacity var(--time-hidden-sm) ease, height var(--time-hidden-sm) ease;
    }

    .card-active .card-desc {
        z-index: 5;
        display: block;
        /* FIX: era flex */
        font-size: 1rem;
        line-height: 1.6;
        overflow-y: auto;
        left: 0;
        width: 100%;
        height: 80%;
        transition: opacity var(--time-hidden-xs) ease;
    }

    .card-active .close-card {
        display: flex;
        cursor: pointer;
        position: absolute;
        font-weight: 600;
        font-size: 1.4rem;
        color: var(--primary-white);
        z-index: 10;
        align-items: center;
        justify-content: center;
        gap: 6px;
        background: var(--primary-red);
        border-radius: var(--radius-xxl);
        padding: 8px;
        bottom: 0.7rem;
        transition: opacity var(--time-hidden-xs) ease;
    }

    .card-active::after {
        opacity: 0;
        transition: opacity 1s ease 0.1s;
    }


    /* Gallery responsive */
    .card-active .card-gallery img {
        width: 100px;
        height: 65px;
    }

    .card-active .card-cta {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }

    .card-active .card-desc {
        font-size: 0.9rem;
    }

    .team-card {
        width: 100%;
    }

    /* Contact responsive */
    .contact-section {
        padding: 3rem 1rem;
    }

    .contact-title {
        font-size: 2.2rem;
    }

    .contact-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-card {
        padding: 1.8rem 1.2rem;
    }

    /* WhatsApp button responsive */
    .section-whatsapp .btn-whatsapp {
        width: 2.8rem;
        height: 2.8rem;
        bottom: 0.8rem;
        right: 1rem;
    }

    .section-whatsapp .btn-whatsapp svg {
        width: 1.8rem;
        height: 1.8rem;
    }

    .float-chat {
        right: 1rem;
        bottom: 5rem;
        width: calc(100vw - 2rem);
        max-width: 320px;
    }

    /* Nav social on mobile */
    .nav-social {
        justify-content: center;
    }

}

@keyframes btn-cotizar {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.05);
    }
}

@keyframes aura {
    from {
        transform: scale(1);
        opacity: 0;
    }

    to {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Very small phones */
@media (max-width: 480px) {
    .msg-parallax {
        font-size: 2.5rem;
    }

    .btn-primary {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .btn-explorar {
        font-size: 0.8rem;
    }

    .card-container {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .card {
        width: 95vw;
        max-height: 160px;
    }

    .contact-title {
        font-size: 1.8rem;
    }

    .contact-subtitle {
        font-size: 0.85rem;
    }

    .contact-card {
        padding: 1.4rem 1rem;
    }

    .float-chat {
        width: calc(100vw - 1.5rem);
        right: 0.5rem;
        bottom: 12rem;
    }

    .main-footer {
        padding: 3rem 1.5rem 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-brand .footer-logo {
        margin: 0 auto 1.5rem;
    }

    .footer-slogan {
        margin: 0 auto;
    }

    .footer-contact-info p {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column-reverse;
        text-align: center;
        margin-top: 1.5rem;
    }

    .main-footer .footer-social-media {
        justify-content: center;
        margin-bottom: 1rem;
    }
}

/* Floating Socials */
.floating-social-container {
    position: fixed;
    bottom: 1rem;
    right: 2rem;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 1.2rem;
    z-index: 22;
    /* High enough to float over footer */
}

.floating-social-container .btn-whatsapp {
    position: static !important;
    bottom: auto !important;
    right: auto !important;
}

.btn-social:not(.btn-whatsapp) {
    display: grid;
    place-items: center;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.btn-facebook {
    background: linear-gradient(135deg, #1877f2, #0d5cbe);
}

.btn-social:not(.btn-whatsapp) svg {
    width: 1.8rem;
    height: 1.8rem;
}

.btn-social:not(.btn-whatsapp):hover {
    transform: scale(1.12) translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

@media (max-width: 1000px) {
    .floating-social-container {
        bottom: 0.8rem;
        right: 1rem;
        gap: 0.8rem;
    }

    .btn-social:not(.btn-whatsapp) {
        width: 2.8rem;
        height: 2.8rem;
    }

    .btn-social:not(.btn-whatsapp) svg {
        width: 1.5rem;
        height: 1.5rem;
    }
}

/* =========================================
   FAQ SECTION
   ========================================= */
.faq-section {
    padding: 5rem 10%;
    background: var(--primary-white);
    transition: background 0.5s ease;
}

.dark-mode .faq-section {
    background: #000;
}

.faq-content {
    max-width: 900px;
    margin: 0 auto;
}

.faq-text-center {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-grid {
    display: grid;
    gap: 1rem;
}

.faq-item {
    background: var(--primary-white);
    border: 1px solid rgba(46, 111, 149, 0.12);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dark-mode .faq-item {
    background: #111;
    border-color: rgba(169, 214, 229, 0.15);
}

.faq-item:hover {
    border-color: rgba(46, 111, 149, 0.3);
    box-shadow: 0 4px 16px rgba(46, 111, 149, 0.1);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.3rem 1.5rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(46, 111, 149, 0.04);
}

.dark-mode .faq-question:hover {
    background: rgba(169, 214, 229, 0.05);
}

.faq-icon {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(46, 111, 149, 0.1), rgba(169, 214, 229, 0.2));
    color: var(--primary-deep-blue);
    transition: all 0.3s ease;
}

.dark-mode .faq-icon {
    background: rgba(169, 214, 229, 0.1);
    color: var(--primary-dark-blue);
}

.faq-icon svg {
    width: 1.2rem;
    height: 1.2rem;
}

.faq-question h3 {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-deep-blue);
    margin: 0;
}

.dark-mode .faq-question h3 {
    color: var(--primary-dark-blue);
}

.faq-toggle {
    display: grid;
    place-items: center;
    transition: transform 0.3s ease;
    color: var(--primary-gray);
}

.faq-toggle svg {
    width: 1.2rem;
    height: 1.2rem;
}

.faq-open .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
        padding 0.4s ease;
    padding: 0 1.5rem;
}

.faq-open .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--primary-gray);
    padding-left: 3.5rem;
}

.dark-mode .faq-answer p {
    color: #ccc;
}

.faq-open .faq-icon {
    background: linear-gradient(135deg, #2E6F95, #3a8ab5);
    color: #fff;
    box-shadow: 0 4px 12px rgba(46, 111, 149, 0.3);
}

/* FAQ responsive */
@media (max-width: 1000px) {
    .faq-section {
        padding: 3rem 5%;
    }

    .faq-question {
        padding: 1rem;
        gap: 0.8rem;
    }

    .faq-question h3 {
        font-size: 0.95rem;
    }

    .faq-answer p {
        padding-left: 3.3rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .faq-question h3 {
        font-size: 0.88rem;
    }

    .faq-icon {
        width: 2.2rem;
        height: 2.2rem;
        min-width: 2.2rem;
    }

    .faq-answer p {
        padding-left: 3rem;
        font-size: 0.85rem;
    }
}

/* ==================================
   GALLERY PAGE STYLES
   ================================== */
.header-gallery {
    height: 60vh;
    background-image: linear-gradient(to bottom, rgba(46, 111, 149, 0.85) 0%, rgba(247, 127, 0, 0.3) 100%),
        url("./assets/img/hero.jpg");
    /* Or a dynamic hero image */
}

.gallery-wrapper {
    padding-top: 5rem;
    min-height: 100vh;
}

.gallery-about {
    padding-top: 2rem;
    padding-bottom: 3rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(46, 111, 149, 0.15);
}

.gallery-lead {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-lead .section-subtitle {
    max-width: 600px;
    margin: 0 auto;
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: minmax(200px, auto);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    break-inside: avoid;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    cursor: pointer;
}

.gallery-item:nth-child(even) {
    grid-row-end: span 2;
}

.gallery-item:nth-child(odd) {
    grid-row-end: span 3;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    padding: 1.2rem;
    color: var(--primary-white);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-content {
    transform: translateY(0);
}

.quote-icon {
    color: var(--primary-orange);
    width: 1.8rem;
    height: 1.8rem;
    margin-bottom: 0.5rem;
}

.review-text {
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.review-author {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.author-name {
    font-weight: bold;
    font-size: 1.1rem;
}

.author-dest {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--primary-dark-blue);
}

.author-dest svg {
    width: 1rem;
    height: 1rem;
}

@media (max-width: 768px) {
    .gallery-masonry {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        grid-row-end: span 2 !important;
        /* Make mobile more consistent */
    }

    .gallery-overlay {
        opacity: 1;
        /* Always visible on mobile */
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.1) 80%);
    }

    .gallery-content {
        transform: translateY(0);
        /* Always up on mobile */
        background: rgba(0, 0, 0, 0.4);
    }
}

/* ====== PAGE TRANSITIONS ====== */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--section-bg-glass, rgba(255, 255, 255, 0.99));
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-transition-overlay.is-active {
    opacity: 1;
    pointer-events: all;
}

/* Fade-in on page load */
body {
    animation: pageEnter 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes pageEnter {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ═══════════════════════════════════════════
   LEGAL CONSENT BANNER
   ═══════════════════════════════════════════ */
.legal-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 5rem 2rem;
    background: rgba(10, 45, 65, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 2px solid rgba(169, 214, 229, 0.35);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(100%);
    animation: legalSlideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1s forwards;
}

.legal-banner.legal-hidden {
    animation: legalSlideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes legalSlideUp {
    to {
        transform: translateY(0);
    }
}

@keyframes legalSlideDown {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(110%);
    }
}

.legal-banner-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.legal-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: legalWiggle 2s ease-in-out infinite;
}

@keyframes legalWiggle {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-8deg);
    }

    75% {
        transform: rotate(8deg);
    }
}

.legal-text {
    flex: 1;
}

.legal-title {
    font-family: 'Cormorant', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.15rem;
}

.legal-desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

.legal-link {
    color: var(--primary-dark-blue);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s;
}

.legal-link:hover {
    color: #fff;
}

.legal-actions {
    display: flex;
    gap: 0.6rem;
    flex-shrink: 0;
}

.legal-btn {
    border: none;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.legal-btn-accept {
    padding: 0.85rem 2.2rem;
    font-size: 1rem;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
    animation: legalPulse 2s ease-in-out infinite;
}

@keyframes legalPulse {

    0%,
    100% {
        box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
    }

    50% {
        box-shadow: 0 6px 28px rgba(37, 211, 102, 0.7);
    }
}

.legal-btn-accept:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.6);
}

.legal-btn-reject {
    padding: 0.5rem 1rem;
    font-size: 0.72rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.legal-btn-reject:hover {
    color: rgba(255, 255, 255, 0.65);
    border-color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 640px) {
    .legal-banner {
        padding: 2.3rem;
    }

    .legal-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }

    .legal-icon {
        font-size: 1.8rem;
    }

    .legal-actions {
        width: 100%;
    }

    .legal-btn {
        flex: 1;
        padding: 0.7rem 1rem;
    }
}