/* ============================================
   CORSAAV SOLUCIONES CORPORATIVAS
   Estilos Responsive
   Breakpoints:
   - Desktop pequeño: <= 1200px
   - Tablet horizontal: <= 1024px
   - Tablet vertical: <= 820px
   - Móvil grande: <= 640px
   - Móvil pequeño: <= 480px
   ============================================ */

/* ============================================
   DESKTOP — Sticky hero + section overlay (>= 769px)
   ============================================ */
@media (min-width: 769px) {
    .hero-pin {
        position: relative;
        height: 200vh;
        z-index: 0;
    }

    #inicio.hero-section {
        position: sticky;
        top: 0;
        height: 100vh;
        min-height: 100vh;
        z-index: 1;
        overflow: hidden;
    }

    /* Capas posteriores al hero: por encima del pin sticky (evita tapar #servicios, etc.) */
    .hero-pin ~ .section {
        z-index: 5;
    }

    .section-empresa--overlap {
        position: relative;
        z-index: 5;
        margin-top: -100vh;
        background: var(--color-gray-50);
        border-radius: 32px 32px 0 0;
        box-shadow: 0 -30px 80px rgba(6, 26, 47, 0.18);
        padding-top: var(--space-12);
    }
}

@media (prefers-reduced-motion: reduce) and (min-width: 769px) {
    .hero-pin {
        height: auto;
    }

    #inicio.hero-section {
        position: relative;
        height: auto;
        min-height: 100vh;
    }

    .section-empresa--overlap {
        margin-top: 0;
        border-radius: 0;
        box-shadow: none;
    }
}

/* ============================================
   DESKTOP PEQUEÑO (<= 1200px)
   ============================================ */
@media (max-width: 1200px) {
    :root {
        --fs-6xl: 3rem;
        --fs-5xl: 2.5rem;
    }

    .container {
        padding: 0 2rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantages-grid {
        --advantage-cols: 3;
        grid-template-columns: repeat(3, 1fr);
    }

    .advantage-card:nth-child(5),
    .advantage-card:nth-child(6) {
        grid-column: auto;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-title {
        font-size: var(--fs-3xl);
    }

    .featured-stack {
        gap: var(--space-16);
    }
}

/* ============================================
   TABLET HORIZONTAL (<= 1024px)
   ============================================ */
@media (max-width: 1024px) {
    /* Menú móvil premium */
    .menu-toggle {
        display: flex;
        z-index: 10001;
    }

    body.menu-open .menu-toggle {
        display: none;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(360px, 86vw);
        height: 100dvh;
        min-height: 100dvh;
        max-height: 100dvh;
        background-color: #061A2F;
        background-image: none;
        opacity: 1;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        isolation: isolate;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 0;
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.35);
        transition: right var(--transition-base);
        z-index: 9999;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    body.menu-open .site-header {
        z-index: 10000;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    body.menu-open .site-header.transparent {
        background-color: transparent;
    }

    .main-nav.open {
        right: 0;
    }

    .mobile-nav-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-3);
        padding: 1.125rem 1.25rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        flex-shrink: 0;
    }

    .mobile-nav-brand {
        color: var(--color-white);
        min-width: 0;
    }

    .mobile-nav-brand .brand-mark {
        height: 34px;
    }

    .mobile-nav-brand .brand-name {
        color: var(--color-white);
        font-size: var(--fs-base);
    }

    .mobile-nav-brand .brand-tagline {
        color: rgba(255, 255, 255, 0.72);
        font-size: 0.625rem;
    }

    .mobile-nav-close {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--radius-md);
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.06);
        color: var(--color-white);
        cursor: pointer;
        transition: background var(--transition-fast), border-color var(--transition-fast);
    }

    .mobile-nav-close:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.24);
    }

    .mobile-nav-close svg {
        width: 20px;
        height: 20px;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
        padding: 0.75rem 1.25rem 1.5rem;
        flex: 0 0 auto;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-list li + li {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .main-nav .nav-link {
        display: block;
        width: 100%;
        padding: 0.9rem 0.25rem;
        font-size: var(--fs-lg);
        font-weight: var(--fw-medium);
        color: rgba(255, 255, 255, 0.88) !important;
        border-radius: 0;
        background: transparent;
        border: none;
    }

    .main-nav .nav-link:hover,
    .main-nav .nav-link:focus-visible {
        color: var(--color-white) !important;
        background: transparent;
    }

    .main-nav .nav-link.active {
        color: var(--color-cyan) !important;
        background: transparent;
    }

    .main-nav .nav-link.active::after {
        display: none;
    }

    body.menu-open {
        overflow: hidden;
    }

    /* Overlay cuando el menú está abierto */
    body.menu-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.55);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        z-index: 9997;
        animation: fadeIn var(--transition-base);
    }

    .mobile-nav-head {
        display: flex;
    }

    /* Hero — tablet: fondo full-bleed con overlay suave */
    .hero-content {
        max-width: 100%;
        padding-right: 60px;
    }

    .hero-visual-slider {
        opacity: 1;
    }

    .hero-visual img {
        inset: 0;
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: cover;
        opacity: 1;
    }

    .hero-visual-slider::before {
        background:
            linear-gradient(
                90deg,
                rgba(3, 13, 31, 0.52) 0%,
                rgba(3, 13, 31, 0.22) 20%,
                transparent 38%
            ),
            linear-gradient(
                0deg,
                rgba(3, 13, 31, 0.48) 0%,
                transparent 30%,
                transparent 75%,
                rgba(3, 13, 31, 0.16) 100%
            );
    }

    .hero-arrow {
        width: 48px;
        height: 48px;
    }

    .hero-dots-wrap--sr {
        display: none !important;
    }

    .hero-progress-track {
        width: 140px;
    }

    .section-header--empresa {
        margin-bottom: var(--space-10);
    }

    .mvv-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .mvv-number {
        width: 80px;
        height: 80px;
        font-size: var(--fs-lg);
    }

    /* Soluciones por especialidad → 1 columna */
    .featured-block,
    .featured-block-reverse,
    .featured-block-premium {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        max-width: 720px;
        margin: 0 auto;
    }

    .featured-block-reverse .featured-media,
    .featured-block-reverse .featured-content {
        order: initial;
    }

    .featured-content {
        text-align: left;
        padding: var(--space-4) var(--space-2) 0;
    }

    .featured-title,
    .featured-lead {
        max-width: none;
    }

    .featured-chips {
        justify-content: flex-start;
    }

    .featured-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .featured-actions .btn-primary,
    .featured-scope-toggle {
        width: 100%;
        text-align: center;
    }

    .featured-scope-toggle {
        padding: var(--space-3);
    }

    .featured-scope-inner {
        padding: var(--space-5);
    }

    .featured-scope-grid li {
        padding: 14px 0 14px 36px;
    }

    .featured-scope-grid li::before {
        width: 36px;
        top: 14px;
        font-size: 11px;
    }

    .featured-scope-focus li {
        padding: 14px 0 14px 24px;
    }

    .featured-scope-focus li::before {
        width: 24px;
        top: 14px;
    }

    .featured-eyebrow::after {
        left: 0;
        transform: none;
    }

    /* Contacto */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .contact-info {
        order: 2;
    }

    .contact-form-wrapper {
        order: 1;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-description {
        max-width: none;
    }
}

/* ============================================
   FOOTER — escritorio (>= 769px)
   ============================================ */
@media (min-width: 769px) {
    .footer-bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }

    .footer-bottom .footer-legal {
        order: unset;
        justify-content: flex-end;
        gap: var(--space-6);
    }

    .footer-bottom .footer-legal a {
        font-size: var(--fs-sm);
    }

    .footer-copyright {
        order: unset;
        max-width: none;
        font-size: var(--fs-sm);
        text-align: left;
    }

    .footer-rights-extra {
        display: inline;
    }

    .footer-bottom .footer-mobile-only {
        display: none !important;
    }

    .footer-legal-cookies--desktop {
        display: inline !important;
    }
}

/* ============================================
   TABLET VERTICAL (<= 820px)
   ============================================ */
@media (max-width: 820px) {
    :root {
        --fs-6xl: 2.5rem;
        --fs-5xl: 2.25rem;
        --fs-4xl: 2rem;
        --header-height: 72px;
    }

    .section {
        padding: var(--space-20) 0;
    }

    .section-header {
        margin-bottom: var(--space-12);
    }

    /* Advantages: 2 columnas */
    .advantages-grid {
        --advantage-cols: 2;
        grid-template-columns: repeat(2, 1fr);
    }

    .advantage-card:nth-child(5),
    .advantage-card:nth-child(6) {
        grid-column: auto;
    }

    /* Hero — tablet vertical */
    .hero-content-wrap {
        padding-bottom: 120px;
    }

    .hero-progress {
        left: clamp(20px, 6vw, 48px);
        bottom: clamp(44px, 8vh, 68px);
    }

    .hero-progress-track {
        width: min(140px, 36vw);
    }

    /* Featured blocks - más compactos */
    .featured-stack {
        gap: var(--space-12);
    }

    .featured-title {
        font-size: var(--fs-2xl);
    }

    /* Métricas */
    .metrics-strip {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        padding: var(--space-8);
    }

    .metric-number {
        font-size: var(--fs-4xl);
    }

    /* Cookie banner */
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .cookie-banner-actions {
        justify-content: center;
    }
}

/* ============================================
   MÓVIL (<= 768px) — Hero, carrusel, servicios
   ============================================ */
@media (max-width: 768px) {
    html {
        scroll-padding-top: calc(var(--header-height) + 8px);
    }

    /* Hero apilado en móvil: sin pin sticky ni overlay */
    .hero-pin {
        height: auto;
    }

    #inicio.hero-section {
        position: relative;
        height: auto;
        min-height: auto;
    }

    .section-empresa--overlap {
        margin-top: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .hero {
        position: relative;
        height: auto;
        min-height: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        min-height: auto;
        padding-bottom: 1.25rem;
        overflow: hidden;
    }

    .hero-content-wrap {
        order: 1;
        position: relative;
        z-index: 5;
        width: 100%;
        flex: 0 0 auto;
        padding-top: calc(var(--header-height) + 1.25rem);
        padding-bottom: 1.25rem;
    }

    .hero-content {
        max-width: 100%;
        padding-right: 0;
        padding-left: 0;
        text-align: left;
    }

    .hero-title {
        font-size: clamp(1.85rem, 8.5vw, 2.5rem);
        margin-bottom: var(--space-4);
        line-height: 1.12;
    }

    .hero-subtitle {
        font-size: var(--fs-base);
        margin-bottom: var(--space-6);
        max-width: 38ch;
        line-height: 1.55;
    }

    .hero-actions {
        display: none;
    }

    /* Bloque visual del carrusel — 16:9 premium */
    .hero-visual-slider {
        order: 2;
        position: relative;
        inset: auto;
        width: calc(100% - 2 * var(--container-padding));
        margin: 0 auto;
        aspect-ratio: 16 / 9;
        height: auto;
        min-height: 210px;
        max-height: min(56vw, 340px);
        flex: 0 0 auto;
        opacity: 1;
        pointer-events: auto;
        border-radius: 18px;
        overflow: hidden;
        background-color: #061A2F;
        box-shadow:
            0 18px 44px rgba(0, 0, 0, 0.32),
            inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    }

    .hero-visual-slider::before {
        display: none;
    }

    .hero-visual {
        position: absolute;
        inset: 0;
        border-radius: inherit;
    }

    .hero-visual img {
        position: absolute;
        inset: 0;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: cover;
        object-position: center center;
        opacity: 1;
        transform: none;
    }

    .hero-visual.slide-consultoria img,
    .hero-visual.slide-construccion img,
    .hero-visual.slide-logistica img,
    .hero-visual.slide-automatizacion-soluciones img,
    .hero-visual.slide-comercializacion img {
        width: 100%;
        height: 100%;
    }

    .hero-visual:not(.active) img {
        animation: none;
        transform: none;
    }

    .hero-visual.active img {
        animation: none;
        transform: none;
    }

    /* Carrusel móvil: sin flechas encima del contenido */
    .hero-arrow {
        display: none !important;
    }

    .hero-progress {
        display: none;
    }

    /* Dots debajo del carrusel, fuera de la imagen */
    .hero-dots-wrap.hero-dots-wrap--sr {
        display: block !important;
        visibility: visible !important;
        position: relative !important;
        order: 3;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        clip: auto !important;
        clip-path: none !important;
        white-space: normal !important;
        border: 0 !important;
        margin: 0 !important;
        padding: 1rem var(--container-padding) 0.5rem;
        pointer-events: auto !important;
        z-index: 6;
        flex: 0 0 auto;
    }

    .hero-dots-wrap .container {
        padding: 0;
        max-width: none;
    }

    .hero-dots {
        justify-content: center;
        align-items: center;
        gap: 0.625rem;
        flex-wrap: wrap;
    }

    .hero-dot {
        min-width: 0;
        width: 9px;
        height: 9px;
        padding: 0;
        border-radius: var(--radius-full);
        border: 1px solid rgba(255, 255, 255, 0.45);
        background: transparent;
        opacity: 1;
        box-shadow: none;
    }

    .hero-dot:hover {
        border-color: rgba(255, 255, 255, 0.75);
        opacity: 1;
    }

    .hero-dot.active {
        background: var(--color-cyan);
        border-color: var(--color-cyan);
        box-shadow: 0 0 0 3px rgba(0, 167, 200, 0.22);
    }

    .hero-dot .dot-number,
    .hero-dot .dot-name {
        display: none;
    }

    /* Carrusel de servicios — móvil */
    .section-servicios .section-header {
        margin-bottom: var(--space-6);
    }

    .services-carousel-outer {
        padding-top: 0;
    }

    .service-card-body {
        min-height: 220px;
        padding: var(--space-5);
    }

    .service-card-body .service-link {
        width: 100%;
        justify-content: center;
    }

    /* Legacy cards (si aplica) */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .service-card {
        overflow: hidden;
        border-radius: var(--radius-lg);
    }

    /* Soluciones por especialidad */
    .featured-block-premium {
        display: flex;
        flex-direction: column;
        padding: var(--space-5);
        gap: var(--space-5);
    }

    .featured-block-premium .featured-media {
        order: 1;
    }

    .featured-block-premium .featured-content {
        order: 2;
        padding: 0;
    }

    .featured-chips {
        gap: var(--space-2);
    }

    .featured-chips li:nth-child(n+6) {
        display: none;
    }

    .featured-actions .btn-primary,
    .featured-scope-toggle {
        min-height: 48px;
    }

    .featured-anchor {
        scroll-margin-top: calc(var(--header-height) + var(--space-4));
    }

    /* WhatsApp + cookies sin empalme */
    .whatsapp-float {
        bottom: 18px;
        right: 16px;
        width: 52px;
        height: 52px;
        z-index: calc(var(--z-fixed) - 1);
    }

    body:has(.cookie-banner:not([hidden])) .whatsapp-float {
        bottom: calc(132px + env(safe-area-inset-bottom, 0px));
    }

    .cookie-banner {
        padding: var(--space-4) 0 calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
        max-height: 45vh;
        overflow-y: auto;
    }

    .cookie-banner-content {
        gap: var(--space-4);
    }

    .cookie-banner-text p {
        font-size: var(--fs-xs);
    }

    body.menu-open .whatsapp-float {
        opacity: 0;
        pointer-events: none;
    }

    /* Footer móvil — compacto y premium */
    .site-footer {
        background-color: #061A2F;
        padding: var(--space-12) 0 calc(var(--space-12) + 76px + env(safe-area-inset-bottom, 0px));
    }

    .footer-desktop-only {
        display: none !important;
    }

    .footer-description--desktop {
        display: none;
    }

    .footer-description--mobile {
        display: block;
        max-width: 34ch;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        font-size: var(--fs-sm);
        line-height: var(--lh-snug);
        color: rgba(255, 255, 255, 0.72);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
        margin-bottom: var(--space-6);
        padding-bottom: var(--space-5);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        text-align: center;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-brand .brand {
        justify-content: center;
    }

    .footer-brand .brand-mark {
        height: 38px;
    }

    .footer-brand .brand-name {
        font-size: var(--fs-lg);
    }

    .footer-brand .brand-tagline {
        font-size: 0.65rem;
    }

    .footer-col--contact {
        order: 2;
    }

    .footer-contact-actions,
    .footer-col--accordion {
        display: none !important;
    }

    .footer-location {
        display: block;
        margin-bottom: var(--space-4);
    }

    .footer-social {
        justify-content: center;
        margin-top: 0;
        gap: var(--space-4);
    }

    .footer-social a {
        width: 40px;
        height: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--space-3);
    }

    .footer-bottom .footer-legal {
        order: 1;
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--space-2);
    }

    .footer-bottom .footer-legal .footer-mobile-only {
        display: list-item;
    }

    .footer-legal-sep.footer-mobile-only {
        display: list-item;
    }

    .footer-legal-cookies--mobile.footer-mobile-only {
        display: inline;
    }

    .footer-bottom .footer-legal a {
        font-size: var(--fs-xs);
        color: rgba(255, 255, 255, 0.72);
    }

    .footer-bottom .footer-legal a:hover {
        color: var(--color-cyan);
    }

    .footer-legal-cookies--desktop {
        display: none;
    }

    .footer-legal-cookies--mobile.footer-mobile-only {
        display: inline;
    }

    .footer-copyright {
        order: 2;
        font-size: var(--fs-xs);
        color: rgba(255, 255, 255, 0.55);
        line-height: var(--lh-snug);
        max-width: 28ch;
    }

    .footer-rights-extra {
        display: none;
    }

    .whatsapp-float {
        bottom: calc(22px + env(safe-area-inset-bottom, 0px));
        right: 16px;
    }
}

/* ============================================
   MÓVIL GRANDE (<= 640px)
   ============================================ */
@media (max-width: 640px) {
    :root {
        --container-padding: 1.25rem;
        --fs-6xl: 2.25rem;
        --fs-5xl: 2rem;
        --fs-4xl: 1.75rem;
        --fs-3xl: 1.625rem;
        --fs-2xl: 1.375rem;
        --fs-xl: 1.125rem;
        --fs-lg: 1rem;
    }

    .container {
        padding: 0 var(--container-padding);
    }

    /* Header */
    .brand-mark {
        height: 36px;
    }

    .brand-name {
        font-size: var(--fs-lg);
    }

    .brand-tagline {
        font-size: 0.6875rem;
    }

    /* Hero — refinamientos en pantallas pequeñas (layout base en <=768px) */
    .hero-title {
        font-size: clamp(1.75rem, 8.2vw, 2.25rem);
        letter-spacing: 0.02em;
    }

    .hero-visual-slider {
        min-height: 190px;
        max-height: min(52vw, 300px);
    }

    .hero-dots-wrap.hero-dots-wrap--sr {
        padding-bottom: 1.25rem;
    }

    .scroll-indicator {
        display: none;
    }

    /* Sections */
    .section {
        padding: var(--space-16) 0;
    }

    /* Empresa */
    .mvv-card-inner {
        padding: var(--space-8) var(--space-6);
    }

    .values-list {
        grid-template-columns: 1fr;
    }

    /* Servicios — refinamientos táctiles */
    .service-heading {
        gap: var(--space-2);
    }

    .service-icon {
        width: 38px;
        height: 38px;
    }

    .service-icon svg {
        width: 20px;
        height: 20px;
    }

    .service-title {
        font-size: var(--fs-base);
    }

    /* Featured blocks móvil */
    .featured-stack {
        gap: var(--space-12);
    }

    /* Scroll reveal: entrada vertical sutil en móvil */
    #soluciones .featured-block {
        transform: translateY(40px);
    }

    #soluciones .featured-block.featured-block-reverse {
        transform: translateY(40px);
    }

    #soluciones .featured-block.reveal-visible {
        transform: translateY(0);
    }

    .featured-block-premium {
        padding: var(--space-5);
    }

    .featured-media {
        aspect-ratio: 16 / 9;
        min-height: 0;
        border-radius: var(--radius-lg);
    }

    .featured-media--banner img {
        padding: var(--space-2);
    }

    .featured-title {
        font-size: var(--fs-2xl);
    }

    .featured-lead {
        font-size: var(--fs-sm);
    }

    .featured-chips li {
        font-size: 0.7rem;
        padding: 0.45rem 0.85rem;
    }

    /* Ventajas */
    .advantages-grid {
        --advantage-cols: 1;
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .advantage-card:nth-child(5),
    .advantage-card:nth-child(6),
    .advantage-card:nth-child(7) {
        grid-column: auto;
        width: auto;
        max-width: none;
        justify-self: stretch;
    }

    .advantage-card {
        padding: var(--space-6);
    }

    /* Confianza */
    .trust-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .trust-card {
        padding: var(--space-6);
    }

    /* Contacto */
    .contact-info,
    .contact-form-wrapper {
        padding: var(--space-6);
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }

    .contact-actions {
        flex-direction: column;
    }

    .contact-actions .btn {
        width: 100%;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: var(--fs-sm);
    }

    /* WhatsApp flotante — tamaño táctil */
    .whatsapp-float {
        width: 50px;
        height: 50px;
    }

    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }

    /* Modales */
    .modal-content-lightbox {
        padding: var(--space-4);
        max-width: 98vw;
    }

    .lightbox-figure img {
        max-height: calc(88vh - 80px);
    }

    .lightbox-caption {
        font-size: var(--fs-xs);
    }

    .modal-content-large {
        padding: var(--space-6);
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions .btn {
        width: 100%;
    }
}

/* ============================================
   MÓVIL PEQUEÑO (<= 480px)
   ============================================ */
@media (max-width: 480px) {
    :root {
        --fs-6xl: 2rem;
        --fs-5xl: 1.875rem;
    }

    /* Hero — móvil pequeño */
    .hero-title {
        font-size: clamp(1.65rem, 9vw, 2rem);
    }

    .section-title {
        line-height: 1.15;
    }

    /* Ajustar formularios para mejor usabilidad táctil */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 1rem;
        font-size: 16px;
    }

    /* Cookie banner móvil */
    .cookie-banner {
        padding: var(--space-4) 0;
    }

    .cookie-banner-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-banner-actions .btn {
        width: 100%;
    }

    /* Footer móvil pequeño */
    .site-footer {
        padding-top: var(--space-10);
        padding-bottom: calc(var(--space-10) + 72px + env(safe-area-inset-bottom, 0px));
    }

    .footer-description--mobile {
        max-width: none;
        font-size: var(--fs-xs);
    }

    .footer-copyright {
        max-width: none;
    }

    /* Intro — móvil pequeño */
    .intro-mark {
        gap: 14px;
        letter-spacing: 0.04em;
    }

    .intro-brand {
        letter-spacing: 0.16em;
    }

    .intro-subbrand {
        letter-spacing: 0.22em;
    }

    @keyframes introSubbrand {
        from {
            opacity: 0;
            transform: translateY(12px);
            letter-spacing: 0.22em;
        }
        to {
            opacity: 1;
            transform: translateY(0);
            letter-spacing: 0.32em;
        }
    }
}

/* ============================================
   AJUSTES PARA ALTURA REDUCIDA
   ============================================ */
@media (max-height: 700px) and (min-width: 1025px) {
    .hero {
        min-height: 600px;
    }

    .hero-content-wrap {
        padding-bottom: 120px;
    }

    .hero-title {
        font-size: clamp(2.2rem, 4.5vw, 4rem);
    }

    .hero-text {
        margin-bottom: var(--space-6);
    }
}

/* ============================================
   IMPRESIÓN
   ============================================ */
@media print {
    .site-header,
    .site-intro,
    .whatsapp-float,
    .cookie-banner,
    .modal,
    .scroll-indicator,
    .hero-actions,
    .hero-arrow,
    .hero-progress,
    .hero-dots-wrap,
    .hero-accents,
    .hero-visual-slider {
        display: none !important;
    }

    .hero {
        background: var(--color-white) !important;
        color: var(--color-navy) !important;
        min-height: auto !important;
    }

    .hero-title,
    .hero-subtitle,
    .hero-text,
    .hero-badge {
        color: var(--color-navy) !important;
        text-shadow: none !important;
    }

    .section {
        padding: var(--space-8) 0;
        page-break-inside: avoid;
    }

    .featured-block {
        page-break-inside: avoid;
    }

    body {
        color: #000;
    }
}
