/* ==========================================================================
   GALOPER BRANDING: MUDANZAS DEL PACÍFICO - DESIGN SYSTEM
   Base: HTML5 / CSS3 Puro (Optimizado para cPanel / BanaHosting)
   Tipografía: Google Sans Flex (Variable Font)
   Estética: Waabi Tech-Logistics Look
   ========================================================================== */

/* --- 1. VARIABLES GLOBALES DE MARCA --- */
:root {
    /* Paleta de Colores (Premium Black & Yellow) */
    --brand-yellow: #FBC02D;
    --text-white: #f8f9fa;
    --bg-black: #111111;
    --bg-dark-gray: #1a1a1a;
    --border-color: #e5e5e5;
    
    /* Sistema Tipográfico (Google Sans Flex) */
    --font-primary: "Google Sans Flex", sans-serif;
    
    /* Utilidades */
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); /* Curva orgánica */
    --hero-progress: 0;
    --hero-w: 100vw;
    --hero-h: 100vh;
    --hero-radius: 0px;
}

/* --- 2. RESET & CONFIGURACIÓN BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-optical-sizing: auto;
    background-color: #f4efef;
    color: var(--text-white);
    overflow-x: hidden;
    /* Suavizado de fuentes en Mac/Windows */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- 3. LOADER DE CARGA --- */
.site-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #0f1012;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.7s;
}

.site-loader.loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.loader-logo {
    height: clamp(52px, 8vw, 80px);
    width: auto;
    object-fit: contain;
    opacity: 0;
    transform: translateY(16px);
    animation: loaderLogoIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.loader-bar {
    width: clamp(120px, 22vw, 200px);
    height: 2px;
    background: rgba(255,255,255,0.12);
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    animation: loaderLogoIn 0.4s ease 0.5s forwards;
}

.loader-bar-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: #FBC02D;
    border-radius: 2px;
    animation: loaderFill 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

@keyframes loaderLogoIn {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes loaderFill {
    0%   { width: 0%; }
    60%  { width: 75%; }
    100% { width: 100%; }
}

/* --- 4. TOP BAR (Cintillo Promocional) --- */
.top-bar {
    background-color: var(--text-white);
    color: var(--bg-black);
    text-align: center;
    padding: 10px 48px 9px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 100;
    letter-spacing: normal;
    line-height: 1;
}

.top-bar a {
    color: var(--bg-black);
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}

.close-topbar {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: var(--bg-black);
    line-height: 1;
}

/* --- 4. NAVEGACIÓN PRINCIPAL (Píldora Flotante) --- */
.pill-nav {
    position: fixed;
    top: 56px; /* Debajo de la top-bar inicial */
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    transition: top 0.3s ease, transform 0.3s ease;
    width: fit-content;
}

/* Estado al hacer scroll: Sube hacia el borde */
.pill-nav.scrolled {
    top: 18px;
}

.pill-content {
    background-color: var(--text-white);
    color: var(--bg-black);
    display: flex;
    align-items: center;
    padding: 12px 22px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    gap: 22px;
    position: relative; /* Contexto para el dropdown */
    z-index: 2; /* Siempre encima del dropdown */
    min-width: 260px;
    width: 100%;
}

.logo {
    font-weight: 800;
    font-size: 0.88rem;
    letter-spacing: normal;
}

.current-page {
    font-weight: 500;
    font-size: 0.78rem;
    padding-left: 18px;
    border-left: 1px solid var(--border-color);
    font-variation-settings: "wdth" 105;
}

/* --- 5. BOTÓN HAMBURGUESA (Animado) --- */
.hamburger-menu {
    position: relative;
    width: 18px;
    height: 14px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
}

.hamburger-menu .line {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--bg-black);
    border-radius: 2px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s, width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.line-1 { top: 0; }
.line-2 { bottom: 0; }

/* Transformación a "X" cuando el menú está abierto */
.pill-nav.menu-open .line-1 {
    transform: translateY(4px);
}
.pill-nav.menu-open .line-2 {
    transform: translateY(-4px);
}

.hamburger-menu:hover .line,
.hamburger-menu:focus-visible .line {
    width: 16px;
}

/* --- 6. MENÚ DESPLEGABLE ORGÁNICO (Dropdown) --- */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px); /* 10px de separación debajo de la píldora */
    left: 0;
    width: 100%;
    min-width: 0;
    background-color: var(--text-white);
    border-radius: 14px;
    padding: 20px 24px 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.18);
    
    /* Configuración Inicial (Oculto) */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(0.992);
    transform-origin: top center;
    transition:
        opacity 0.56s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.56s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.56s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1; /* Detrás de la píldora, pero encima del Hero */
}

/* Estado Activo (Visible) */
.pill-nav.menu-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.menu-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.menu-list li a {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1.45rem;
    color: var(--bg-black);
    text-decoration: none;
    font-weight: 600; /* Medium-Bold para los enlaces */
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
    
    /* Reset de variables de fuente por seguridad */
    font-variation-settings: "slnt" 0, "wdth" 100, "GRAD" 0, "ROND" 0;
}

/* Thumbnails de los enlaces */
.menu-list li img {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

/* Efectos Hover */
.menu-list li a:hover {
    color: #555;
    transform: translateX(10px); /* Movimiento sutil premium */
}

.menu-list li a:hover img {
    transform: scale(1.05);
}

.menu-list li a.active {
    color: var(--brand-yellow);
}

/* --- 7. HERO SECTION (Sticky Zoom-Out a Cuadrado) --- */
.waabi-hero {
    position: relative;
    height: 230vh;
    width: 100%;
    background-color: #e9e9e9;
}

.hero-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.hero-stage.allow-overflow {
    overflow: visible;
}

.hero-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--hero-w);
    height: var(--hero-h);
    border-radius: var(--hero-radius);
    transform: translate(-50%, -50%);
    overflow: hidden;
    z-index: 0;
}

.hero-bg.media-persist {
    position: fixed;
    top: 50%;
    left: 50%;
    transform-origin: center center;
    pointer-events: none;
    z-index: 0;
}

.hero-bg.media-persist.is-floating {
    z-index: 2500;
}

.bg-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: saturate(0.72) contrast(0.9) brightness(1.04);
    transform: scale(calc(1.05 - (0.08 * var(--hero-progress))));
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    opacity: 0;
}

.hero-content {
    position: absolute;
    left: clamp(26px, 6vw, 84px);
    right: 24px;
    bottom: clamp(80px, 14vh, 132px);
    z-index: 2;
    max-width: 840px;
    opacity: calc(1 - (1.35 * var(--hero-progress)));
    transform: translateY(calc(40px * var(--hero-progress)));
    transition: opacity 0.18s linear;
    pointer-events: none;
}

.monumental-title {
    font-size: clamp(4.1rem, 9.2vw, 7.6rem);
    font-weight: 500;
    line-height: 0.95;
    color: var(--text-white);
    letter-spacing: normal;
    font-variation-settings: "slnt" 0, "wdth" 100, "GRAD" 0, "ROND" 0;
    text-wrap: balance;
}

/* Hero text: líneas y palabras animadas */
.hero-line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.06em; /* evita corte de descendentes */
}

.hw {
    display: inline-block;
    margin-right: 0.22em;
    opacity: 0;
    transform: translateY(100%) skewY(4deg);
    will-change: transform, opacity;
}

/* Estado visible — añadido por JS tras el loader */
.monumental-title.words-revealed .hw {
    opacity: 1;
    transform: translateY(0) skewY(0deg);
}

/* --- 8. TARJETAS LATERALES DEL HERO --- */
.hero-side-cards {
    position: absolute;
    right: clamp(18px, 4vw, 64px);
    bottom: clamp(92px, 14vh, 136px);
    z-index: 3;
    display: flex;
    align-items: flex-end;
    gap: 14px;
    opacity: calc(1 - (1.18 * var(--hero-progress)));
    transform: translateY(calc(34px * var(--hero-progress)));
    transition: opacity 0.18s linear;
}

.hero-card {
    border-radius: 18px;
    padding: 16px 16px 14px;
    width: min(230px, 42vw);
    min-height: 176px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.hero-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-card-tag {
    font-size: 0.62rem;
    font-weight: 650;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #666;
}

.hero-card-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 16, 18, 0.18);
}

.hero-card-number {
    margin-top: auto;
    font-size: clamp(1.78rem, 3.3vw, 2.24rem);
    line-height: 0.95;
    font-weight: 560;
    letter-spacing: -0.02em;
}

.hero-card-title {
    font-size: 0.98rem;
    line-height: 1.08;
    font-weight: 530;
    max-width: 18ch;
}

.hero-card-copy {
    font-size: 0.72rem;
    line-height: 1.35;
    opacity: 0.78;
    max-width: 30ch;
}

.hero-card-quote {
    border: none;
    color: #101113;
    background: #FFAE42;
    box-shadow: 0 20px 34px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-card-quote:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 42px rgba(0, 0, 0, 0.23);
}

.hero-card-quote:focus-visible {
    outline: 2px solid var(--brand-yellow);
    outline-offset: 2px;
}

.hero-card-glass {
    color: #f6f6f6;
    background: linear-gradient(160deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.11) 48%, rgba(255,255,255,0.07) 100%);
    border: 1px solid rgba(255,255,255,0.34);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.35),
        inset -1px 0 0 rgba(255,255,255,0.16),
        0 22px 38px rgba(0,0,0,0.2);
    backdrop-filter: blur(22px) saturate(145%);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
}

.hero-card-glass::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 16px;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255,255,255,0.32), rgba(255,255,255,0.03) 40%, rgba(255,255,255,0.02) 100%);
}

.hero-card-glass::after {
    content: "";
    position: absolute;
    top: 10px;
    right: -24px;
    width: 120px;
    height: calc(100% - 20px);
    border-radius: 999px;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.34));
    filter: blur(7px);
    opacity: 0.72;
    animation: glassShine 5.2s ease-in-out infinite;
}

.hero-card-glass .hero-card-tag,
.hero-card-glass .hero-card-copy {
    color: rgba(248, 249, 250, 0.88);
}

.hero-card-glass .hero-card-icon {
    border-color: rgba(255, 255, 255, 0.4);
}

/* --- 9. INDICADOR DE SCROLL --- */
.scroll-indicator {
    position: absolute;
    bottom: 10%;
    right: clamp(20px, 4vw, 56px);
    width: 22px;
    height: 22px;
    background-color: var(--brand-yellow);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s;
    animation: float 3s ease-in-out infinite;
    opacity: calc(1 - (1.8 * var(--hero-progress)));
}

.scroll-indicator:hover {
    transform: scale(1.08);
    background-color: #ffe082;
}

/* --- 10. SECCIÓN EMPRESA (Referencia Layout) --- */
.company-section {
    background: #efefef;
    color: #17181b;
    padding: clamp(66px, 9.5vw, 138px) clamp(16px, 2.4vw, 30px) clamp(30px, 4.8vw, 64px);
}

.company-wrap {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(320px, 36%) 1.06fr 0.97fr 0.97fr;
    grid-template-areas:
        "media copy copy copy"
        "media stat1 stat2 stat3";
    gap: clamp(10px, 1.3vw, 16px);
}

.company-media-card,
.company-copy-card,
.company-stat-card {
    background: #e9e9e9;
    border-radius: 18px;
}

.company-media-card {
    grid-area: media;
    min-height: clamp(430px, 56vw, 680px);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.company-media-card.receiving-video {
    overflow: visible;
    background: transparent;
}

.company-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.86) contrast(0.96);
}

.company-media-card > .hero-bg.docked {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border-radius: 18px;
    transform: none !important;
    left: 0;
    top: 0;
    z-index: 2;
}

.company-copy-card {
    grid-area: copy;
    padding: clamp(24px, 3vw, 36px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.company-eyebrow {
    color: #a1a1a1;
    font-size: clamp(0.92rem, 1.2vw, 1.12rem);
    font-weight: 620;
    letter-spacing: 0.01em;
    margin-bottom: clamp(16px, 2.2vw, 26px);
}

.company-copy-card h2 {
    margin: 0;
    color: #8f8f92;
    font-size: clamp(1.24rem, 1.95vw, 2.18rem);
    line-height: 1.28;
    font-weight: 455;
    max-width: 26ch;
    text-wrap: balance;
}

.company-copy-card strong {
    color: #141518;
    font-weight: 610;
}

.company-stat-card {
    min-height: clamp(170px, 20vw, 226px);
    padding: clamp(18px, 2.2vw, 26px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
}

.company-wrap .company-stat-card:nth-of-type(3) { grid-area: stat1; }
.company-wrap .company-stat-card:nth-of-type(4) { grid-area: stat2; }
.company-wrap .company-stat-card:nth-of-type(5) { grid-area: stat3; }

.company-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #f2f2f2;
    color: #2a2b2f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: auto;
}

.company-stat-value {
    margin: 0;
    color: #16171a;
    font-size: clamp(1.9rem, 3.1vw, 3.5rem);
    line-height: 1;
    font-weight: 600;
}

.company-stat-label {
    margin: 0;
    color: #b3b4b8;
    font-size: clamp(0.82rem, 1vw, 1.08rem);
    letter-spacing: 0.02em;
    font-weight: 560;
}

/* Tarjeta destacada: 3,600+ HOGARES TRASLADADOS */
.company-wrap .company-stat-card:nth-of-type(3) {
    background: #FBC02D;
}
.company-wrap .company-stat-card:nth-of-type(3) .company-stat-icon {
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
}
.company-wrap .company-stat-card:nth-of-type(3) .company-stat-value {
    color: #fff;
}
.company-wrap .company-stat-card:nth-of-type(3) .company-stat-label {
    color: rgba(255, 255, 255, 0.82);
}

/* --- 11. CONTENIDO POST-EMPRESA --- */
.story-services-intro,
.services-grid-section,
.benefits-strip,
.family-kpi-section,
.cta-end-section {
    background: #efefef;
    color: #1a1b1f;
}

.story-services-intro {
    padding: clamp(26px, 3.8vw, 52px) 16px clamp(52px, 7vw, 108px);
}

.story-services-head {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.35fr 0.9fr;
    gap: clamp(34px, 4.2vw, 64px);
    align-items: start;
}

.story-services-head h2 {
    margin: 0;
    font-size: clamp(1.9rem, 3.15vw, 3.4rem);
    line-height: 1.08;
    font-weight: 510;
    color: #1c1d20;
    max-width: 14ch;
    letter-spacing: -0.01em;
}

.story-services-note {
    background: transparent;
    border-radius: 0;
    padding: 2px 0 0;
    max-width: 39ch;
}

.story-services-note p {
    margin: 0;
    color: #9b9ca1;
    font-size: 0.92rem;
    line-height: 1.45;
}

.story-services-note p + p {
    margin-top: 10px;
}

.story-services-note a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    border-radius: 999px;
    min-height: 34px;
    padding: 8px 16px;
    background: #17181b;
    color: #f7f7f7;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 620;
}

.services-grid-section {
    padding: clamp(26px, 3.8vw, 58px) 16px clamp(68px, 9vw, 132px);
}

.services-grid {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 1.8vw, 24px);
}

.service-card {
    background: #e9e9e9;
    border-radius: 16px;
    padding: 12px;
}

.service-card img {
    width: 100%;
    height: clamp(238px, 19vw, 288px);
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

.service-card h3 {
    margin: 12px 0 7px;
    color: #242529;
    font-size: 1.04rem;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.service-card p {
    margin: 0;
    color: #9b9ca1;
    font-size: 0.82rem;
    line-height: 1.48;
}

.benefits-strip {
    max-width: 1320px;
    margin: 0 auto;
    padding: clamp(20px, 3.2vw, 44px) 16px clamp(74px, 9.6vw, 142px);
    display: grid;
    grid-template-columns: 1.2fr 0.86fr;
    align-items: start;
    gap: clamp(22px, 2.8vw, 42px);
}

.benefits-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.benefits-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #17181b;
    color: #f7f7f7;
    text-decoration: none;
    min-height: 34px;
    padding: 8px 16px;
    font-size: 0.72rem;
    font-weight: 620;
}

.benefits-strip h3 {
    margin: 0;
    font-size: clamp(1.36rem, 2.22vw, 2.16rem);
    line-height: 1.15;
    color: #1d1e22;
    font-weight: 520;
    max-width: 26ch;
}

.benefits-copy {
    max-width: 38ch;
}

.benefits-copy p {
    margin: 0 0 10px;
    color: #9a9ba1;
    font-size: 0.96rem;
    line-height: 1.4;
}

.family-kpi-section {
    padding: clamp(20px, 3.2vw, 46px) 16px clamp(54px, 8vw, 116px);
}

.family-kpi-media {
    max-width: 1340px;
    margin: 0 auto;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.family-kpi-media img,
.family-kpi-media video {
    width: 100%;
    height: clamp(460px, 56vw, 760px);
    object-fit: cover;
    display: block;
}

.kpi-float {
    position: absolute;
    background: #f7f7f7;
    color: #141518;
    border-radius: 16px;
    width: 250px;
    min-height: 186px;
    padding: 16px 15px 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.kpi-float-top {
    top: 48%;
    right: 18px;
}

.kpi-float-left {
    bottom: 14px;
    right: 284px;
}

.kpi-float-right {
    bottom: 14px;
    right: 18px;
    background: #f7f7f7;
}

.kpi-float-right .kpi-value,
.kpi-float-right .kpi-label {
    color: #141518;
}

.kpi-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #ededed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.84rem;
    margin-bottom: auto;
}

.kpi-value {
    margin: 0;
    font-size: clamp(1.7rem, 2.25vw, 2.6rem);
    line-height: 1;
    font-weight: 650;
}

.kpi-label {
    margin: 4px 0 0;
    color: #a3a4a9;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    font-weight: 620;
    text-transform: uppercase;
}

/* Tarjeta destacada: 10K+ CLIENTES FELICES */
.kpi-float-top {
    background: #FBC02D;
}
.kpi-float-top .kpi-icon {
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
}
.kpi-float-top .kpi-value {
    color: #fff;
}
.kpi-float-top .kpi-label {
    color: rgba(255, 255, 255, 0.82);
}

.cta-end-section {
    padding: clamp(20px, 2.8vw, 40px) 16px clamp(56px, 8vw, 110px);
    text-align: center;
}

.cta-logo {
    display: block;
    margin: 0 auto clamp(24px, 3.2vw, 40px);
    height: clamp(72px, 10vw, 120px);
    width: auto;
    object-fit: contain;
}

.cta-end-section h2 {
    max-width: 860px;
    margin: 0 auto;
    color: #1e1f23;
    font-size: clamp(2.1rem, 3.3vw, 3.7rem);
    line-height: 1.1;
    font-weight: 510;
    letter-spacing: -0.012em;
    text-wrap: balance;
}

.cta-end-section a {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 16px;
    border-radius: 999px;
    background: #17181b;
    color: #f7f7f7;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 620;
}

.site-footer {
    background: #efefef;
    color: #1e1f23;
    padding: 28px 16px 28px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: 1px solid #e2e2e2;
}

.site-footer-head {
    max-width: 1380px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    border-bottom: 1px solid #dfdfdf;
    padding-bottom: 18px;
}

.footer-brand {
    margin: 0;
    font-size: 1rem;
    font-weight: 650;
}

.footer-copy {
    margin: 0;
    color: #8f9096;
    font-size: 0.72rem;
    max-width: 40ch;
}

.site-footer-nav {
    max-width: 1380px;
    margin: 10px auto 0;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer-nav a {
    color: #575961;
    text-decoration: none;
    font-size: 0.72rem;
}

/* --- 12. MODAL COTIZADOR --- */
.quote-modal[hidden] {
    display: none;
}

.quote-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 24px;
}

.quote-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 10, 0.56);
    backdrop-filter: blur(2px);
}

.quote-modal-panel {
    position: relative;
    width: min(530px, 100%);
    border-radius: 18px;
    background: #f5f5f2;
    color: #0f1112;
    padding: 28px 22px 24px;
    box-shadow: 0 25px 54px rgba(0, 0, 0, 0.32);
    z-index: 1;
}

.quote-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(15, 17, 18, 0.09);
    color: #0f1112;
    font-size: 1.2rem;
    cursor: pointer;
}

.quote-modal-kicker {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 630;
    color: #666;
}

.quote-modal-title {
    margin-top: 8px;
    font-size: clamp(1.45rem, 3vw, 1.86rem);
    line-height: 1.05;
}

.quote-modal-subtitle {
    margin-top: 8px;
    font-size: 0.86rem;
    line-height: 1.4;
    color: #515151;
}

.quote-form {
    margin-top: 16px;
    display: grid;
    gap: 12px;
}

.quote-form label {
    display: grid;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 530;
    letter-spacing: 0.02em;
}

.quote-form input {
    border: 1px solid #d4d4d4;
    border-radius: 10px;
    padding: 11px 12px;
    font-family: inherit;
    font-size: 0.86rem;
    background-color: #fff;
    color: #101113;
}

.quote-form input:focus-visible {
    outline: 2px solid rgba(251, 192, 45, 0.72);
    outline-offset: 1px;
    border-color: transparent;
}

.quote-form button {
    margin-top: 4px;
    border: none;
    border-radius: 10px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 650;
    cursor: pointer;
    background: #101113;
    color: #f8f9fa;
}

@keyframes glassShine {
    0% {
        transform: translateX(0);
        opacity: 0.56;
    }
    50% {
        transform: translateX(-16px);
        opacity: 0.84;
    }
    100% {
        transform: translateX(0);
        opacity: 0.56;
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* --- 13. MEDIA QUERIES (Responsive Mobile) --- */
@media (max-width: 768px) {
    .top-bar {
        padding: 10px 34px 9px 16px;
        font-size: 0.68rem;
    }

    .waabi-hero {
        height: 100vh;
        min-height: 720px;
    }

    .hero-stage {
        position: relative;
        height: 100%;
    }

    .hero-stage.allow-overflow {
        overflow: hidden;
    }

    .hero-bg {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        transform: none;
    }

    .hero-content {
        opacity: 1;
        transform: translateY(-50%);
        top: 50%;
        bottom: auto;
        left: 14px;
        right: 14px;
        max-width: 100%;
    }

    .monumental-title {
        font-size: clamp(3.1rem, 13.5vw, 4.4rem);
        line-height: 0.99;
        letter-spacing: normal;
    }

    .hero-side-cards {
        right: 14px;
        left: 14px;
        bottom: auto;
        top: 65%;
        transform: none;
        opacity: 1;
        gap: 10px;
    }

    .hero-card {
        width: 50%;
        min-height: 146px;
        border-radius: 15px;
        padding: 12px 12px 11px;
    }

    .hero-card-number {
        font-size: clamp(1.2rem, 6.6vw, 1.65rem);
    }

    .hero-card-title {
        font-size: 0.78rem;
    }

    .hero-card-copy {
        font-size: 0.64rem;
        line-height: 1.3;
    }
    
    .pill-nav {
        top: 54px;
        width: calc(100% - 32px);
    }
    
    .pill-content {
        justify-content: space-between;
        min-width: 0;
        width: 100%;
        padding: 12px 18px;
    }

    .logo {
        font-size: 0.84rem;
    }

    .current-page {
        font-size: 0.74rem;
    }
    
    /* En móviles ocultamos la página actual para que el menú no se amontone */
    .current-page {
        display: none; 
    }
    
    .dropdown-menu {
        min-width: unset; /* Permite que tome el ancho del contenedor en móvil */
    }

    .menu-list li a {
        font-size: 1.2rem; /* Letra un poco más chica en móvil para el menú */
    }
    
    .scroll-indicator {
        bottom: 26%;
        right: 20px;
        width: 20px;
        height: 20px;
        opacity: 1;
    }

    .company-section {
        padding: 44px 12px 28px;
    }

    .company-wrap {
        grid-template-columns: 1fr;
        grid-template-areas:
            "copy"
            "stat1"
            "stat2"
            "stat3";
        gap: 10px;
    }

    .company-media-card {
        display: none;
    }

    .company-copy-card {
        padding: 18px 16px 20px;
    }

    .company-copy-card h2 {
        font-size: 1.85rem;
    }

    .company-stat-card {
        min-height: 140px;
        padding: 16px;
    }

    .company-stat-icon {
        width: 46px;
        height: 46px;
        font-size: 1.12rem;
    }

    .story-services-intro {
        padding: 16px 10px 30px;
    }

    .story-services-head {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .story-services-head h2 {
        font-size: 2.7rem;
        letter-spacing: -0.01em;
        max-width: 12ch;
    }

    .story-services-note {
        padding: 0;
        max-width: 100%;
    }

    .story-services-note a,
    .benefits-pill,
    .cta-end-section a {
        min-height: 32px;
        padding: 7px 13px;
    }

    .services-grid-section {
        padding: 20px 10px 36px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .service-card {
        padding: 10px;
        border-radius: 12px;
    }

    .service-card img {
        height: 240px;
        border-radius: 10px;
    }

    .service-card h3 {
        font-size: 0.82rem;
        margin: 10px 0 5px;
    }

    .service-card p {
        font-size: 0.72rem;
        line-height: 1.4;
    }

    .benefits-strip {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 18px 10px 38px;
    }

    .benefits-pill {
        font-size: 0.62rem;
        padding: 7px 12px;
    }

    .benefits-strip h3 {
        font-size: 1.5rem;
    }

    .benefits-main {
        gap: 12px;
    }

    .benefits-copy p {
        font-size: 0.68rem;
        line-height: 1.35;
    }

    .family-kpi-section {
        padding: 10px 10px 28px;
    }

    .family-kpi-media img,
    .family-kpi-media video {
        height: 260px;
    }

    .kpi-float {
        width: 108px;
        min-height: 104px;
        padding: 10px 8px 8px;
        border-radius: 10px;
    }

    .kpi-float-top {
        top: 42px;
        right: 10px;
    }

    .kpi-float-left {
        bottom: 8px;
        right: 128px;
    }

    .kpi-float-right {
        right: 10px;
        bottom: 8px;
    }

    .kpi-icon {
        width: 20px;
        height: 20px;
        border-radius: 6px;
        font-size: 0.62rem;
        margin-bottom: 6px;
    }

    .kpi-value {
        font-size: 1.25rem;
    }

    .kpi-label {
        font-size: 0.46rem;
    }

    .cta-end-section {
        padding: 26px 10px 34px;
    }

    .cta-end-section h2 {
        font-size: 2.45rem;
        max-width: 11ch;
    }

    .cta-end-section a {
        font-size: 0.62rem;
        padding: 7px 12px;
    }

    .site-footer {
        padding: 28px 10px 26px;
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
    }

    .site-footer-head {
        display: block;
        padding-bottom: 10px;
    }

    .footer-copy {
        margin-top: 6px;
        font-size: 0.56rem;
    }

    .site-footer-nav {
        gap: 10px;
    }

    .site-footer-nav a {
        font-size: 0.56rem;
    }

    .quote-modal {
        padding: 14px;
    }

    .quote-modal-panel {
        padding: 22px 14px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-card-glass::after {
        animation: none;
    }

    .loader-logo,
    .loader-bar {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .loader-bar-fill {
        animation: none;
        width: 100%;
    }

    .hw {
        opacity: 1;
        transform: none;
        transition: none;
    }

    /* Deshabilitar animaciones de scroll en usuarios con movimiento reducido */
    .company-eyebrow,
    .company-copy-card h2,
    .company-stat-card,
    .story-services-head h2,
    .story-services-note,
    .service-card,
    .benefits-strip h3,
    .benefits-copy,
    .kpi-float,
    .cta-logo,
    .cta-end-section h2,
    .cta-end-section a,
    .site-footer-head,
    .site-footer-nav {
        opacity: 1 !important;
        transform: none !important;
    }

}

/*Estilos generales del boton whatsapp*/
.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  animation: breathe 2s ease-in-out infinite;
  }
  
  /*Estilos solo al icono whatsapp*/
  .whatsapp-btn i {
  color: #fff;
  font-size: 24px;
  animation: beat 2s ease-in-out infinite;
  text-decoration: none;
  }

  /*Estilos con animation contorno respirando*/
  @keyframes breathe {
    0% {
      box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
      box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
    }
    
    /*Estilos de animacion del icono latiendo*/
    @keyframes beat {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.2);
    }
    100% {
      transform: scale(1);
    }
    }
