/* 
   FORCEGYM - Core Stylesheet
   Design: Fitness Premium, Dark, High Contrast
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Montserrat:wght@700;900&family=Bebas+Neue&display=swap');

:root {
    /* Colors - More vibrant and high-contrast */
    --bg: #050507;
    --panel: #0E0E12;
    --panel2: #09090C;
    --text: #FFFFFF;
    --muted: #8E8E93;
    --orange: #FF5E00;
    /* More vibrant orange */
    --orange-glow: rgba(255, 94, 0, 0.5);
    --blue-accent: #00D1FF;
    /* Cool blue for contrast */
    --blue-glow: rgba(0, 209, 255, 0.3);
    --border: rgba(255, 255, 255, 0.05);
    --glass: rgba(255, 255, 255, 0.02);
    --glass-heavy: rgba(10, 10, 14, 0.85);

    /* Typography Scale */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --font-accent: 'Bebas Neue', cursive;
    --base-size: 16px;
    --h1: clamp(3.5rem, 12vw, 7rem);
    --h2: clamp(2.5rem, 6vw, 4rem);
    --h3: clamp(1.5rem, 3vw, 2.25rem);

    /* Shadows & Glows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 10px 20px -3px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 30px 60px -10px rgba(0, 0, 0, 0.8);
    --glow-orange: 0 0 30px rgba(255, 94, 0, 0.2);
    --glow-blue: 0 0 30px rgba(0, 209, 255, 0.15);

    /* Layout */
    --container-max: 1280px;
    --header-height: 90px;
    --header-height-mobile: 70px;
    --section-gap: clamp(60px, 12vh, 120px);
    /* Slightly reduced for mobile premium feel */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Evitar desbordamientos horizontales accidentales */
    max-width: 100%;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    font-size: var(--base-size);
    line-height: 1.7;
    overflow-x: hidden;
    scroll-behavior: initial;
    position: relative;
    /* Safe areas para móviles modernos con notch */
    padding-bottom: env(safe-area-inset-bottom);
    width: 100%;
}

/* Bloqueo de scroll cuando el menú está abierto */
body.menu-open {
    overflow: hidden !important;
}

/* --- Typography --- */
h1,
h2,
h3,
.title-font {
    font-family: var(--font-heading);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
    /* NUEVO: Más compacto para títulos grandes */
}

h1 {
    font-size: var(--h1);
}

h2 {
    font-size: var(--h2);
    margin-top: 10px;
}

h3 {
    font-size: var(--h3);
}

p {
    color: var(--muted);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

/* --- Environment & Ambience --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}

.mouse-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
}

.bg-ambient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.bg-blob {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--blue-glow) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.1;
    animation: float 20s infinite alternate ease-in-out;
}

@keyframes float {
    0% {
        transform: translate(-10%, -10%) scale(1);
    }

    100% {
        transform: translate(10%, 10%) scale(1.1);
    }
}

/* --- Layout Utilities --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    /* NUEVO: Más padding lateral en móvil */
}

.section-padding {
    padding: var(--section-gap) 0;
}

.flex {
    display: flex;
}

.flex-center {
    align-items: center;
    justify-content: center;
}

.flex-between {
    justify-content: space-between;
    align-items: center;
}

.grid {
    display: grid;
    gap: 32px;
}

/* --- Components --- */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 18px 36px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: none;
    gap: 14px;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background-color: var(--orange);
    color: #fff;
    box-shadow: 0 10px 30px -5px var(--orange-glow);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary:active {
    transform: scale(0.96);
    filter: brightness(0.9);
    transition: 0.1s;
}

.btn-outline:active {
    transform: scale(0.96);
    background: rgba(255, 255, 255, 0.05);
    transition: 0.1s;
}

.btn-primary:hover {
    background-color: #ff751a;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px -10px var(--orange-glow);
}

.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.glass:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--orange);
}


.btn-outline {
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: var(--border);
    border-color: var(--orange);
    transform: translateY(-5px);
}

/* Badge / Pills */
.badge {
    background: rgba(255, 122, 24, 0.1);
    border: 1px solid rgba(255, 122, 24, 0.2);
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--orange);
    display: inline-block;
    margin-bottom: 24px;
    letter-spacing: 0.1em;
}

/* Cards */
.card {
    background-color: var(--panel);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 12px;
    /* NUEVO: Consistente */
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: rgba(255, 122, 24, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 122, 24, 0.1);
}

/* Instalaciones Grid Specific */
.img-placeholder {
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    /* NUEVO: Proporción consistente */
}

.img-feature {
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: absolute;
    top: 0;
    left: 0;
}

/* NUEVO: Overlay de gradiente premium */
.img-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
    transition: opacity 0.4s ease;
}

.img-placeholder:hover .img-feature {
    transform: scale(1.1);
}

.img-placeholder:hover::after {
    opacity: 0.8;
}

/* Labels en Imágenes */
/* Labels en Imágenes */
.img-placeholder span {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 22px;
    text-transform: uppercase;
    text-align: center;
    z-index: 2;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease;
}

.img-placeholder:hover span {
    transform: translateY(-5px);
}

/* INSTALACIONES FIX */
.installations-section .section-kicker {
    color: var(--orange);
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 13px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
}

.installations-section .section-title {
    font-size: var(--h2);
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text);
}

.installations-section .section-description {
    color: var(--muted);
    max-width: 700px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
}

.installations-section .grid {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 50px;
}

.installations-section .img-placeholder {
    aspect-ratio: 4/5;
    /* Un poco más alto para verse más premium en grilla */
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.installations-section .img-placeholder:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg), var(--orange-glow);
    border-color: var(--orange);
}

.installations-section .img-placeholder span {
    font-size: 26px;
    /* Más grande como se pidió */
    font-weight: 800;
    letter-spacing: -0.02em;
    padding: 40px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 100%);
    bottom: 0;
}

@media (max-width: 992px) {
    .installations-section .grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .installations-section .grid {
        grid-template-columns: 1fr !important;
    }

    .installations-section .section-title {
        font-size: 32px;
    }

    .installations-section .img-placeholder {
        aspect-ratio: 16/9;
        /* En móvil mejor apaisado para no ocupar todo el scroll */
    }
}

/* --- Scroll Progress Bar --- */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 9999;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.1);
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--orange);
    box-shadow: 0 0 15px var(--orange-glow);
    transition: width 0.1s ease-out;
}

.scroll-logo {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    height: 22px;
    width: auto;
    filter: drop-shadow(0 0 5px var(--orange-glow));
    transition: left 0.1s ease-out;
    pointer-events: none;
}

/* --- Logo Badge --- */
.logo-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 122, 24, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    animation: floatBadge 3s infinite ease-in-out;
    z-index: 5;
}

.logo-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

/* --- Watermark --- */
.watermark-container {
    position: relative;
}

.watermark-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    background: url('../img/forcegym_logo_transparente.png') no-repeat center/contain;
    opacity: 0.04;
    transform: translate(-50%, -50%) rotate(-15deg);
    pointer-events: none;
    z-index: -1;
}

@media (max-width: 768px) {
    .logo-badge {
        width: 38px;
        height: 38px;
        top: 8px;
        right: 8px;
    }

    .scroll-logo {
        height: 16px;
    }

    .watermark-container::before {
        width: 250px;
        height: 250px;
    }
}

/* --- reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(5px);
    transition: all 0.7s cubic-bezier(0.2, 0, 0.2, 1);
    will-change: transform, opacity, filter;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        transition: none;
        opacity: 1;
        transform: none;
        filter: none;
    }
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--panel);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--orange);
    border-color: var(--orange);
    transform: translateY(-5px);
}

.site-header {
    height: var(--header-height);
    background-color: rgba(11, 11, 14, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: all 0.4s ease;
    padding-top: env(safe-area-inset-top);
}

@media (max-width: 768px) {
    .site-header {
        height: calc(var(--header-height-mobile) + env(safe-area-inset-top));
    }
}

.site-header.sticky {
    height: 70px;
    background-color: rgba(11, 11, 14, 0.9);
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 900;
    font-family: var(--font-heading);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--orange);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* --- Hero Section (BLINDADO) --- */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100svh;
    /* Modern mobile browsers */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    z-index: 1;
    padding-top: var(--header-height);
}

@media (max-width: 768px) {
    .hero {
        padding-top: var(--header-height-mobile);
        min-height: 85vh;
        /* Better for content framing on very small mobile */
    }
}

/* Fallback robusto como fondo */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/hero.jpg') no-repeat;
    background-size: cover;
    background-position: 50% 20%;
    z-index: 0;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

@media (max-width: 768px) {
    .hero::before {
        background-position: center top;
        /* Better portrait framing */
    }
}

@media (min-width: 1024px) {
    .hero::before {
        background-position: center;
    }
}

/* Ocultar fondo cuando el video esté listo */
.hero.video-ready::before {
    opacity: 0;
    visibility: hidden;
}

#heroVideo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 20%;
    z-index: 0;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}

/* En móvil (Option A), desactivamos el video completamente para performance */
@media (max-width: 768px) {
    #heroVideo {
        display: none !important;
    }
}

.hero.video-ready #heroVideo {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(5, 5, 7, 0.8) 0%,
            rgba(5, 5, 7, 0.3) 30%,
            rgba(5, 5, 7, 0.3) 70%,
            var(--bg) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    /* Por encima de la capa de overlay */
    width: 100%;
}


@keyframes zoomOut {
    0% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.hero-section .container {
    position: relative;
    z-index: 3;
    /* Arriba de todo */
    text-align: center;
}

.hero-title {
    font-size: clamp(2.8rem, 12vw, 7.5rem);
    line-height: 0.9;
    letter-spacing: -0.03em;
    margin-bottom: 30px;
    text-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    color: #FFFFFF;
    font-family: var(--font-heading);
}

.hero-title-a {
    display: block;
    font-weight: 700;
    opacity: 0;
    transform: translateY(15px);
    animation: premiumFadeIn 0.8s cubic-bezier(0.2, 0, 0.2, 1) forwards;
}

.hero-title-b {
    display: block;
    font-size: 1.15em;
    font-weight: 900;
    color: var(--orange);
    opacity: 0;
    transform: translateY(15px);
    animation:
        premiumFadeIn 0.8s cubic-bezier(0.2, 0, 0.2, 1) 0.15s forwards,
        subtlePulse 4s ease-in-out infinite 1.5s;
}

@keyframes subtlePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

@keyframes premiumFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {

    .hero-title-b,
    .hero-title-a {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

.hero-section p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--text);
    opacity: 0.8;
}


/* --- Responsive Layouts --- */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }

    .grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }

    .section-padding {
        padding: 80px 0;
    }
}

@media (max-width: 768px) {
    .site-header {
        height: auto !important;
        padding-top: env(safe-area-inset-top) !important;
        padding-bottom: 8px !important;
    }

    .nav-container {
        padding: 10px 16px !important;
        display: grid !important;
        grid-template-columns: auto 1fr auto !important;
        /* Layout de 3 zonas */
        align-items: center !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .logo {
        font-size: 16px !important;
        gap: 6px !important;
        max-width: 140px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex-shrink: 0;
    }

    .logo span {
        font-size: 16px !important;
    }

    /* Contenedor Derecha: Hamburger + CTA */
    .header-actions {
        grid-column: 3;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* FIX QUIRÚRGICO DEFINTIVO: Ocultar botón de WhatsApp del HEADER en móvil */
    :is(header, nav, .navbar, .header, #header, .site-header) :is(a, button, div, li, span)[class*="whats" i],
    :is(header, nav, .navbar, .header, #header, .site-header) a[href*="wa.me"],
    :is(header, nav, .navbar, .header, #header, .site-header) a[href*="whatsapp"],
    :is(header, nav, .navbar, .header, #header, .site-header) [aria-label*="whatsapp" i] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* Hamburguesa siempre visible, centrada y alineada en el header */
    :is(header, nav, .navbar, .header, #header, .site-header) :is(.hamburger, .menu-toggle, .nav-toggle, .mobile-menu-btn, button[aria-label*="menu" i]) {
        width: 44px !important;
        height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 9999 !important;
        position: relative !important;
    }

    @media (max-width: 360px) {
        .logo {
            max-width: 140px;
            /* Más espacio para el logo ahora que no hay botón */
        }
    }

    .hero-section {
        min-height: 88vh !important;
        display: flex;
        align-items: center;
        padding-top: calc(80px + env(safe-area-inset-top)) !important;
        padding-bottom: 40px !important;
        text-align: center;
    }

    .hero-content {
        padding: 0 20px !important;
    }

    .hero-title {
        font-size: clamp(38px, 10vw, 54px) !important;
        line-height: 0.95 !important;
        margin-bottom: 20px !important;
        padding: 0 20px;
    }

    .hero-section .badge {
        padding: 6px 14px !important;
        font-size: 10px !important;
        margin-bottom: 16px !important;
    }

    .btn:active {
        transform: scale(0.95) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
    }

    .hero-btns {
        flex-direction: column !important;
        gap: 12px !important;
        padding: 0 20px !important;
        width: 100% !important;
    }

    .hero-btns .btn {
        width: 100% !important;
        justify-content: center !important;
    }

    .btn-outline {
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        border-width: 1px;
    }

    .metrics-row {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin-top: 40px !important;
        padding: 0 20px !important;
    }

    .btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 16px 20px !important;
    }

    .metrics-row {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin-top: 60px !important;
    }

    .metric-item {
        padding: 20px !important;
        flex: none !important;
    }

    .metric-item .counter {
        font-size: 36px !important;
    }

    .metric-item div:last-child {
        font-size: 9px !important;
        letter-spacing: 2px !important;
    }
}

/* Respaldo para móviles grandes / tablets pequeñas */
@media (max-width: 900px) {

    header .header-cta-whatsapp,
    header .btn-whatsapp,
    header a[href*="wa.me"],
    header a[href*="whatsapp"] {
        display: none !important;
    }
}

/* Animations Helper */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- NUEVO: Mobile Menu Button --- */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    z-index: 2000 !important;
    /* Aumentado según requerimiento */
    width: 44px;
    /* Área táctil mínima */
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 10px;
    flex-shrink: 0;
    position: relative;
    /* EVITA QUE SE COMPRIMA - CAUSA RAÍZ */
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: #fff;
    transition: 0.3s;
    display: block;
}

@media (max-width: 992px) {
    .mobile-menu-btn {
        display: flex;
    }

    /* Menu Drawer Premium */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        /* Oculto a la derecha */
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background-color: rgba(11, 11, 14, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start !important;
        justify-content: center;
        padding: 40px;
        gap: 30px;
        z-index: 1050;
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        border-left: 1px solid var(--border);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
        display: flex;
    }

    .nav-links a {
        font-size: 24px !important;
        font-family: var(--font-heading);
        font-weight: 800;
        letter-spacing: 1px;
    }

    /* Overlay para cerrar el menú */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        opacity: 0;
        visibility: hidden;
        z-index: 1040;
        transition: 0.4s;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Hamburguesa animada */
    .mobile-menu-btn.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-btn.open span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* --- CONTACTO PREMIUM --- */
.premium-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition-delay: 0.2s;
}

.premium-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.premium-form label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
    padding-left: 4px;
}

.premium-form input,
.premium-form textarea {
    background: var(--panel2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 24px;
    color: var(--text);
    font-family: var(--font-main);
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    outline: none;
    width: 100%;
}

.premium-form input::placeholder,
.premium-form textarea::placeholder {
    color: rgba(163, 163, 172, 0.3);
}

.premium-form input:hover,
.premium-form textarea:hover {
    border-color: rgba(255, 122, 24, 0.3);
}

.premium-form input:focus,
.premium-form textarea:focus {
    border-color: var(--orange);
    background: var(--panel);
    box-shadow: 0 0 25px rgba(255, 122, 24, 0.1);
}

.premium-form textarea {
    resize: none;
    min-height: 150px;
}

/* Redefiniendo botón específico del formulario para más impacto */
.premium-form .btn-primary {
    margin-top: 10px;
    height: 64px;
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    justify-content: center;
}

.premium-form .btn-primary:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 20px 40px var(--orange-glow);
}

/* --- INTERACTIVE MAP --- */
.map-container {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.map-container:hover {
    border-color: rgba(255, 122, 24, 0.4);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    filter: none !important;
    opacity: 1;
}

.map-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .map-container {
        height: 350px !important;
    }
}

/* --- PLANES PREMIUM Overhaul --- */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.plan-card {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 24px;
    position: relative;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
}

.plan-card.featured-plan {
    background: linear-gradient(145deg, var(--panel), #1a1a25);
    border-color: var(--orange);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 20px 40px rgba(255, 94, 0, 0.15);
}

.plan-card.featured-plan::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    background: var(--orange);
    border-radius: 50%;
    z-index: -1;
    filter: blur(40px);
    opacity: 0.5;
}

.plan-name-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text);
}

.plan-price-block {
    margin-bottom: 30px;
}

.plan-price-block .amount {
    font-size: 48px;
    font-weight: 900;
    color: var(--text);
    font-family: var(--font-accent);
}

.plan-price-block .period {
    color: var(--muted);
    font-size: 14px;
}

.plan-benefits-list {
    margin-bottom: 40px;
    flex-grow: 1;
}

.plan-benefits-list li {
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-benefits-list li::before {
    content: '✓';
    color: var(--orange);
    font-weight: 900;
}

.plan-actions {
    display: flex;
    gap: 10px;
}

.plan-actions .btn {
    flex: 1;
    padding: 15px;
    font-size: 14px;
}

/* --- PLANES PREMIUM Overhaul --- */
.plans-section {
    padding: var(--section-gap) 0;
    background-color: var(--panel2);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.plan-card {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 24px;
    position: relative;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
}

.plan-card.featured-plan {
    background: linear-gradient(145deg, var(--panel), #1a1a25);
    border-color: var(--orange);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 20px 40px rgba(255, 94, 0, 0.15);
}

.plan-card.featured-plan .badge-hot {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--orange);
    color: #fff;
    padding: 5px 15px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.plan-name-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text);
    font-family: var(--font-heading);
}

.plan-price-block {
    margin-bottom: 30px;
}

.plan-price-block .amount {
    font-size: 48px;
    font-weight: 900;
    color: var(--text);
    font-family: var(--font-accent);
}

.plan-price-block .period {
    color: var(--muted);
    font-size: 14px;
}

.plan-benefits-list {
    margin-bottom: 40px;
    flex-grow: 1;
    list-style: none;
    padding: 0;
}

.plan-benefits-list li {
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-benefits-list li::before {
    content: '✓';
    color: var(--orange);
    font-weight: 900;
}

.plan-actions {
    display: flex;
    gap: 10px;
}

.plan-actions .btn {
    flex: 1;
    padding: 15px;
    font-size: 14px;
}

.plans-footnote {
    margin-top: 60px;
    text-align: center;
}

.plans-footnote p {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .plan-card.featured-plan {
        transform: scale(1);
    }
}

/* --- Premium Motion Extensions --- */

/* Status Badge & Dot */
.online-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #2DFF6A;
    letter-spacing: 0.5px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #2DFF6A;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px rgba(45, 255, 106, 0.5);
}

.status-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: inherit;
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

/* Breathing Pulse Button */
.pulse-btn.active {
    animation: breathingPulse 3s ease-in-out infinite;
}

@keyframes breathingPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1);
    }
}

/* Specific for floating button scale */
.floating-whatsapp.pulse-btn.active {
    animation: breathingPulseFloating 3s ease-in-out infinite;
}

/* --- Floating WhatsApp Visibility --- */
.floating-whatsapp {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    bottom: calc(30px + env(safe-area-inset-bottom));
    right: 30px;
}

.floating-whatsapp.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

@media (max-width: 768px) {
    .floating-whatsapp {
        width: 52px !important;
        height: 52px !important;
        font-size: 26px !important;
        bottom: calc(20px + env(safe-area-inset-bottom)) !important;
        right: 20px !important;
    }
}

/* Hover Enhancements */
.hero-btns .btn-primary:hover {
    box-shadow: 0 0 30px var(--orange-glow);
    transform: translateY(-2px);
}

.floating-whatsapp:hover {
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.4);
}

@media (prefers-reduced-motion: reduce) {

    .motion-word,
    .status-dot::after,
    .pulse-btn.active,
    .floating-whatsapp.pulse-btn.active {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ==========================================================================
   SURGICAL MOBILE HEADER FIX - DEFINITIVE
   ========================================================================== */
@media (max-width: 768px) {

    /* Hide WhatsApp in header/nav specifically */
    :is(header, nav, .navbar, .header, #header, .site-header) :is(a, button, div, li, span)[class*="whats" i],
    :is(header, nav, .navbar, .header, #header, .site-header) a[href*="wa.me"],
    :is(header, nav, .navbar, .header, #header, .site-header) a[href*="whatsapp"],
    :is(header, nav, .navbar, .header, #header, .site-header) [aria-label*="whatsapp" i] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* Ensure hamburger menu is always visible and clickable */
    :is(header, nav, .navbar, .header, #header, .site-header) :is(.mobile-menu-btn, .hamburger, .menu-toggle, .nav-toggle, button[aria-label*="menu" i]) {
        width: 44px !important;
        height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 9999 !important;
        position: relative !important;
    }
}