:root {
    --bg-dark: #030611;
    --bg-darker: #010309;
    --primary-blue: #0025CC;
    --neon-blue: #1A43FF;
    --action-brand: #1A43FF;
    --action-brand-hover: #6682FF;
    --text-white: #ffffff;
    --text-gray: #9fb3c4;
    --card-bg: rgba(0, 23, 128, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-bg-hover: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(102, 130, 255, 0.12);
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --action-text: #ffffff;
    --modal-bg: rgba(1, 3, 9, 0.97);
    --street-view-accent: #3b82f6;

    /* ==========================================
       STRICT FLUID TYPOGRAPHY FRAMEWORK (Clamped)
       Based on Viewport range: 320px (20rem) to 1920px (120rem)
       Mathematical Formula: clamp(min, (min - 0.2 * (max - min))rem + (max - min)vw, max)
       ========================================== */
    --fs-display: clamp(2.5rem, 2rem + 2.5vw, 5rem);               /* H1 / Hero Main: 40px -> 80px */
    --fs-h2: clamp(1.75rem, 1.5rem + 1.25vw, 3rem);               /* H2 / Section Titles: 28px -> 48px */
    --fs-h3: clamp(1.375rem, 1.275rem + 0.5vw, 1.875rem);         /* H3 / Card Titles: 22px -> 30px */
    --fs-h4: clamp(1.125rem, 1.075rem + 0.25vw, 1.375rem);        /* H4 / Subtitles / Medium: 18px -> 22px */
    --fs-body: clamp(0.95rem, 0.92rem + 0.15vw, 1.1rem);          /* Body text / Standard: 15.2px -> 17.6px */
    --fs-small: clamp(0.75rem, 0.725rem + 0.125vw, 0.875rem);     /* Small / Labels / Badges: 12px -> 14px */
    --fs-tiny: clamp(0.65rem, 0.63rem + 0.1vw, 0.75rem);          /* Tiny / Micro labels: 10.4px -> 12px */

    /* Proportional Line Heights */
    --lh-display: 1.1;
    --lh-h2: 1.2;
    --lh-h3: 1.3;
    --lh-h4: 1.4;
    --lh-body: 1.6;
    --lh-small: 1.5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    position: relative;
    background-image: 
        radial-gradient(circle at 80% 15%, rgba(26, 67, 255, 0.07) 0%, transparent 50%),
        radial-gradient(circle at 15% 45%, rgba(0, 37, 204, 0.05) 0%, transparent 60%),
        radial-gradient(circle at 75% 80%, rgba(26, 67, 255, 0.04) 0%, transparent 55%);
    background-attachment: fixed;
}

/* Tech Grid Background with Scroll Transformation */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-image: 
        linear-gradient(to right, rgba(26, 67, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(26, 67, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    pointer-events: none;
    transform: perspective(1000px) rotateX(15deg) translateY(calc(var(--scroll-y, 0px) * -0.05));
    transition: transform 0.1s linear;
    will-change: transform;
}

/* Progressive Disclosure Classes */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px; /* Espacio superior preventivo */
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 0 30px; /* Mayor aire superior para diseño premium */
}

.navbar .logo {
    font-size: var(--fs-h3);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-white);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.navbar .logo svg {
    color: var(--primary-blue);
}

.hero-video-container.visible {
    opacity: 1;
}

/* Navbar Responsive Enhancements */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    cursor: pointer;
    padding: 10px;
    z-index: 2100;
}

.mobile-menu-close {
    display: none;
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: var(--text-white);
    cursor: pointer;
}

.nav-links {
    display: none;
}

@media(min-width: 800px) {
    .nav-links {
        display: flex;
        gap: 35px;
    }
    .nav-links a {
        color: var(--text-gray);
        text-decoration: none;
        font-weight: 500;
        font-size: var(--fs-body);
        transition: color 0.3s;
    }
    .nav-links a:hover {
        color: var(--text-white);
    }
}

@media(max-width: 799px) {
    .navbar {
        padding: 20px 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-darker);
        z-index: 2500;
        gap: 25px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .mobile-menu-close {
        display: block;
    }

    .nav-links a {
        font-size: var(--fs-h2);
        text-decoration: none;
        color: var(--text-white);
    }

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

.btn-primary {
    background: var(--action-brand);
    color: var(--action-text);
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(26, 67, 255, 0.25);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    background: var(--action-brand-hover);
}

/* Hero Section with Cinematic 3D Multilayer Parallax ("La Ciudad Cobra Vida") */
.hero {
    position: relative;
    text-align: center;
    padding: 180px 0 160px;
    min-height: 85vh;
    margin-bottom: 40px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    perspective: 1200px;
    transform-style: preserve-3d;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transform-style: preserve-3d;
}

/* Oscurecimiento dinámico al hacer scroll - Eliminado por petición del usuario */
/*
.hero::after {
    content: '';
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: var(--bg-darker);
    pointer-events: none;
    z-index: 5;
    opacity: calc((var(--scroll-y, 0px) / 1px) * 0.0015);
    will-change: opacity;
}
*/

/* Capa Trasera: Horizonte, Cielo y Video (Efecto Parallax Suave) */
.layer-back {
    z-index: 1;
    width: 100%;
    height: 115%;
    top: -7.5%;
    left: 0;
    transform-origin: center center;
    /* Eliminamos el translateZ para que el vídeo no se encoja y cubra el 100% de la pantalla */
    transform: translateY(calc(var(--scroll-y, 0px) * 0.08));
    /* Dynamic blur based on scroll depth */
    filter: blur(calc(var(--scroll-y, 0px) * 0.015));
    will-change: transform, filter;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-video-bg.loaded {
    opacity: 0.55;
}

.hero-poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-poster-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(3, 6, 17, 0.8) 0%, 
        rgba(3, 6, 17, 0.55) 50%,
        var(--bg-dark) 100%
    );
    z-index: 0;
}

/* YouTube Background Specific Support */
.hero-video-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-video-container.visible {
    opacity: 1;
}

.yt-bg {
    width: 100vw;
    height: 56.25vw; /* 16:9 */
    min-height: 100vh;
    min-width: 177.77vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Capa Intermedia: Edificios y Tótem LED de N16Studio (Movimiento Medio + Efecto 3D Window) */
.layer-mid {
    z-index: 2;
    transform: translateY(calc(var(--scroll-y, 0px) * 0.32)) translateZ(-60px);
}

.urban-mid-scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.mid-buildings {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 65%;
    z-index: 1;
    pointer-events: none;
}

/* Tótem LED 3D */
.totem-3d-billboard {
    position: absolute;
    bottom: 5%;
    left: 75%;
    z-index: 5;
    perspective: 800px;
    transform-origin: bottom center;
}

.totem-structure {
    width: 150px;
    height: 240px;
    transform: rotateY(calc(-20deg + var(--scroll-y, 0px) * 0.02deg)) rotateX(calc(7deg + var(--scroll-y, 0px) * 0.01deg)) scale(calc(1 + var(--scroll-y, 0px) * 0.00035));
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.totem-screen-outer {
    width: 100%;
    height: 185px;
    background: rgba(9, 14, 31, 0.95);
    border: 3px solid rgba(102, 130, 255, 0.25);
    border-radius: 12px;
    padding: 5px;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.7),
        0 0 25px rgba(0, 242, 254, 0.2),
        inset 0 0 15px rgba(26, 67, 255, 0.35);
    transform-style: preserve-3d;
    position: relative;
}

/* Sutil resplandor de pantalla LED */
.totem-screen-outer::before {
    content: '';
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    background: linear-gradient(135deg, #00f2fe 0%, #1A43FF 100%);
    z-index: -1;
    border-radius: 14px;
    opacity: 0.5;
    filter: blur(10px);
}

.totem-screen-inner {
    width: 100%;
    height: 100%;
    background: #010206;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Slideshow de Anuncios Animados */
@keyframes adSlideshowMove {
    0%, 28% { transform: translateY(0); }
    33%, 61% { transform: translateY(-100%); }
    66%, 94% { transform: translateY(-200%); }
    100% { transform: translateY(0); }
}

.ad-slideshow {
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: adSlideshowMove 12s cubic-bezier(0.85, 0, 0.15, 1) infinite;
}

.ad-slide {
    height: 100%;
    width: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;
    box-sizing: border-box;
}

.ad-slide .brand-text {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.95), 0 0 20px rgba(0, 242, 254, 0.5);
    font-family: var(--font-sans);
    line-height: 1.1;
}

.ad-slide .promo-text {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #2af598;
    text-shadow: 0 0 10px rgba(42, 245, 152, 0.95), 0 0 20px rgba(42, 245, 152, 0.5);
    line-height: 1.2;
}

.ad-slide .cta-text {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ff007f;
    text-shadow: 0 0 10px rgba(255, 0, 127, 0.95), 0 0 20px rgba(255, 0, 127, 0.5);
    line-height: 1.2;
}

.ad-slide .sub-text {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-gray);
    margin-top: 8px;
    text-transform: uppercase;
}

/* Efecto Scanline analógico retro-digital */
.screen-scanline {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: rgba(0, 242, 254, 0.3);
    opacity: 0.7;
    z-index: 10;
    pointer-events: none;
    animation: scanlineAnimation 4s linear infinite;
}

@keyframes scanlineAnimation {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(180px); }
}

.screen-vignette {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, transparent 40%, rgba(0,0,0,0.85) 100%);
    z-index: 9;
    pointer-events: none;
}

.totem-pillar {
    width: 22px;
    height: 45px;
    background: linear-gradient(90deg, #090e1f 0%, #17224d 50%, #090e1f 100%);
    border-left: 1px solid rgba(255,255,255,0.05);
    border-right: 1px solid rgba(255,255,255,0.05);
}

.totem-base {
    width: 55px;
    height: 12px;
    background: #090e1f;
    border-radius: 4px 4px 0 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.totem-glow-reflection {
    position: absolute;
    bottom: -8px;
    width: 90px;
    height: 15px;
    background: radial-gradient(ellipse, rgba(0, 242, 254, 0.25) 0%, transparent 70%);
    z-index: -2;
    filter: blur(3px);
}

/* Capa Delantera: Hojas y Vegetación (Movimiento Rápido - 45%) */
.layer-front {
    z-index: 3;
    transform: translateY(calc(var(--scroll-y, 0px) * 0.45)) scale(1.05) translateZ(40px);
}

.foreground-scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

.front-vegetation {
    width: 100%;
    height: 40%;
    z-index: 10;
    pointer-events: none;
    bottom: 0;
}

/* Contenido del Hero en primer plano con z-index alto */
.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    pointer-events: all; /* Para permitir clics en buscador */
}

.hero-subtitle {
    color: var(--text-gray);
    font-style: italic;
    font-size: var(--fs-h4);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.hero-subtitle::before, .hero-subtitle::after {
    content: '';
    height: 1px;
    width: 60px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2) 50%, transparent);
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: var(--fs-display);
    font-weight: 700;
    line-height: var(--lh-display);
    margin-bottom: 20px;
    letter-spacing: -1px;
    color: var(--text-white);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero h1 .highlight {
    color: var(--primary-blue);
    text-shadow: 0 0 40px rgba(29, 78, 216, 0.4);
}

.hero p {
    color: var(--text-gray);
    font-size: var(--fs-body);
    max-width: 850px;
    margin: 0 auto;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Media Queries Responsivas para Hero */
@media (max-width: 900px) {
    .totem-3d-billboard {
        left: 50%;
        transform: translateX(-50%);
        bottom: 2%;
        opacity: 0.8;
    }
    .totem-structure {
        width: 110px;
        height: 170px;
        transform: rotateY(0deg) rotateX(0deg) scale(0.9);
    }
    .totem-screen-outer {
        height: 130px;
    }
    .ad-slide .brand-text {
        font-size: 0.9rem;
    }
    .ad-slide .promo-text, .ad-slide .cta-text {
        font-size: 0.78rem;
    }
    .ad-slide .sub-text {
        font-size: 0.45rem;
        margin-top: 4px;
    }
    .mid-buildings {
        height: 50%;
        opacity: 0.4;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0 80px;
        border-radius: 0 0 20px 20px;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .totem-3d-billboard {
        display: none; /* Ocultamos tótem físico en pantallas muy pequeñas para favorecer legibilidad */
    }

    .mid-buildings {
        height: 40%;
        opacity: 0.35;
    }

    .front-vegetation {
        height: 25%;
    }
}

/* Glass Cards Grid */
.pantallas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 0 0 60px;
    position: relative;
    z-index: 10;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.card:hover {
    background: var(--glass-bg-hover);
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.ref {
    display: inline-block;
    background: rgba(29, 78, 216, 0.15);
    color: #60a5fa;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: var(--fs-small);
    font-weight: 700;
    margin-bottom: 15px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    letter-spacing: 1px;
}

.card h2 {
    font-family: var(--font-serif);
    font-size: var(--fs-h3);
    font-weight: 700;
    line-height: var(--lh-h3);
    margin-top: 5px;
}

.resolution, .location {
    font-size: var(--fs-small);
    color: var(--text-gray);
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}

.icon {
    color: var(--primary-blue);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Progressive Video Loading Styles */
.progressive-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    background: #000;
    transition: filter 0.8s ease, opacity 0.5s ease;
    filter: blur(5px); /* Start with a slight blur for low quality */
}

.progressive-video.loaded {
    opacity: 1;
}

.progressive-video.is-high-quality {
    filter: blur(0); /* Remove blur when high quality is loaded */
}

.description {
    font-size: var(--fs-body);
    color: #cbd5e1;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Pricing Style - Glassmorphism Inner */
.pricing {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-radius: 12px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

.price-row:hover {
    transform: translateY(-2px) scale(1.02);
    background: rgba(255,255,255,0.05);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.price-row.highlight {
    background: linear-gradient(to right, rgba(0, 242, 254, 0.06), rgba(0, 0, 0, 0.3));
    border: 1px solid rgba(0, 242, 254, 0.25);
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.price-row.highlight:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: rgba(0, 242, 254, 0.6);
    box-shadow: 0 12px 25px rgba(0, 242, 254, 0.2), 0 0 10px rgba(42, 245, 152, 0.1);
    background: linear-gradient(to right, rgba(0, 242, 254, 0.1), rgba(0, 0, 0, 0.4));
}

.price-row.highlight:hover .discount-badge {
    animation: pulseGlow 1.5s infinite alternate;
}

@keyframes pulseGlow {
    from {
        box-shadow: 0 0 15px rgba(0, 242, 254, 0.35);
    }
    to {
        box-shadow: 0 0 25px rgba(0, 242, 254, 0.8), 0 0 10px rgba(42, 245, 152, 0.5);
        transform: scale(1.05);
    }
}

@keyframes cartPulse {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.2);
        box-shadow: 0 0 35px var(--action-brand), 0 0 15px rgba(0, 242, 254, 0.5);
    }
    100% {
        transform: scale(1);
    }
}

.cart-pulse-active {
    animation: cartPulse 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
}


.price-row.highlight .price-amount {
    font-weight: 900;
}

.price-row.highlight .price-amount .price-num {
    background: linear-gradient(135deg, #00f2fe 0%, #2af598 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.price-label {
    font-size: var(--fs-small);
    color: var(--text-gray);
    font-weight: 600;
    text-transform: uppercase;
}

.price-amount {
    font-size: var(--fs-h4);
    font-weight: 800;
    color: var(--text-white);
    display: inline-flex;
    align-items: flex-start;
    line-height: 1;
}

.price-amount .price-num {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.price-amount .price-symbol {
    font-size: 0.55em;
    font-weight: 300;
    margin-top: 0.05em;
    margin-left: 1px;
    opacity: 0.9;
}

.price-amount .price-period {
    font-size: 0.35em;
    font-weight: 300;
    margin-top: 0.85em;
    margin-left: 1px;
    opacity: 0.6;
    text-transform: lowercase;
}

.discount-badge {
    position: absolute;
    top: -12px;
    left: 15px;
    background: linear-gradient(135deg, #00f2fe 0%, #2af598 100%);
    color: #050811;
    font-size: var(--fs-small);
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
    letter-spacing: 0.5px;
}

/* Footer & Buttons */
.card-action {
    margin-top: auto;
}

.btn-card {
    width: 100%;
    text-align: center;
    background: var(--action-brand);
    color: var(--action-text);
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 10px 20px rgba(26, 67, 255, 0.15);
}

.btn-card:hover {
    background: var(--action-brand-hover);
    transform: translateY(-2px);
}

/* Stats Bar similar to reference image */
.stats-bar {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 40px;
    margin: 40px auto 60px;
    max-width: 900px;
    flex-wrap: wrap;
    gap: 50px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.stats-group {
    display: flex;
    align-items: center;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: var(--fs-h2);
    font-weight: 800;
    color: var(--text-white);
}

.stat-label {
    font-size: var(--fs-small);
    color: var(--text-gray);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
}

@media (max-width: 768px) {
    .stats-bar {
        padding: 20px;
        justify-content: center;
        text-align: center;
    }
    .stats-group {
        width: 100%;
        justify-content: center;
        gap: 20px;
    }
    .stat-divider {
        display: none;
    }
    .stat-value {
        font-size: var(--fs-h3);
    }
    .stat-action {
        width: 100%;
    }
    .stat-action a {
        width: 100%;
        display: block;
    }
}

footer {
    text-align: center;
    padding: 30px 0 50px;
    color: var(--text-gray);
    font-size: var(--fs-small);
    border-top: 1px solid rgba(255,255,255,0.05);
}

footer a {
    color: var(--neon-blue);
    text-decoration: none;
    margin-left: 10px;
    transition: 0.3s;
}

footer a:hover {
    color: var(--neon-blue);
}

.footer-labels {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 20px;
    margin-top: 15px;
}

@media (max-width: 600px) {
    .footer-labels {
        gap: 8px 15px;
        font-size: 0.85rem;
    }
    /* Ocultamos los puntos de separación en móvil para evitar que se corten o queden huérfanos */
    .footer-labels span[style*="&bull;"],
    .footer-labels span:nth-child(even) {
        display: none !important;
    }
}

/* Media Kit Button - Premium Expert Style */
.media-kit-cta {
    margin: 40px auto 30px;
    max-width: 600px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.05), rgba(0, 0, 0, 0.4));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.media-kit-cta:hover {
    transform: scale(1.02);
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.1), rgba(0, 0, 0, 0.6));
}

.media-kit-info {
    text-align: center;
}

.media-kit-info h4 {
    font-size: var(--fs-h4);
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-white);
}

.media-kit-info p {
    font-size: var(--fs-small);
    color: var(--text-gray);
    margin: 0;
}

.btn-media-kit {
    background: var(--action-brand);
    color: var(--action-text);
    padding: 14px 28px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    font-size: var(--fs-body);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    text-transform: uppercase;
}

.btn-media-kit:hover {
    transform: translateY(-3px);
    background: var(--action-brand-hover);
}

.btn-media-kit svg {
    color: var(--primary-blue);
}

.agency-badge {
    background: rgba(59, 130, 246, 0.1);
    color: #93c5fd;
    font-size: var(--fs-tiny);
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* View Switcher */
.view-switcher {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    position: relative;
    z-index: 20;
}

.view-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-gray);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: var(--fs-body);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
}

.view-btn svg {
    opacity: 0.6;
    transition: opacity 0.3s;
}

.view-btn:hover {
    background: var(--glass-bg-hover);
    color: var(--text-white);
    transform: translateY(-2px);
}

.view-btn.active {
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.2), rgba(29, 78, 216, 0.1));
    border-color: var(--primary-blue);
    color: var(--text-white);
}

.view-btn.active svg {
    color: var(--primary-blue);
    opacity: 1;
}

/* Portfolio Section Styling */
.portfolio-section {
    padding: 100px 0;
    text-align: center;
}

.section-header {
    margin-bottom: 60px;
}

/* Logo Ticker Styling */
.logo-ticker {
    overflow: hidden;
    padding: 40px 0;
    position: relative;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 80px;
    background: rgba(0,0,0,0.1);
}

.logo-ticker::before, .logo-ticker::after {
    content: "";
    position: absolute;
    top: 0;
    width: 15%;
    height: 100%;
    z-index: 2;
}

.logo-ticker::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark) 0%, transparent 100%);
}

.logo-ticker::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark) 0%, transparent 100%);
}

.ticker-track {
    display: flex;
    width: fit-content;
    animation: scroll-ticker 30s linear infinite;
    gap: 80px;
}

@keyframes scroll-ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ticker-item img {
    height: 40px;
    width: auto;
    filter: invert(1) brightness(0.7);
    opacity: 0.4;
    transition: all 0.3s;
}

.ticker-item:hover img {
    filter: invert(1) brightness(1);
    opacity: 1;
    transform: scale(1.1);
}

/* Campaign Showcase Styling */
.campaign-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.campaign-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 450px;
    background: var(--bg-darker);
    border: 1px solid var(--glass-border);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.campaign-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-blue);
}

.campaign-img-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.campaign-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.campaign-card:hover .campaign-img-wrapper img {
    transform: scale(1.1);
}

.campaign-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px 30px;
    background: linear-gradient(to top, rgba(10,15,29,1) 0%, rgba(10,15,29,0.8) 40%, transparent 100%);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.campaign-overlay h3 {
    font-size: var(--fs-h3);
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-white);
    font-family: var(--font-serif);
}

.campaign-overlay p {
    color: var(--text-gray);
    font-size: var(--fs-small);
    margin: 0;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    text-align: center;
}

.section-title-wrapper {
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: var(--fs-h2);
    margin-top: 10px;
    line-height: var(--lh-h2);
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.step-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 45px 35px;
    border-radius: 28px;
    width: 320px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: left;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.step-card:hover {
    background: var(--glass-bg-hover);
    transform: translateY(-8px);
    border-color: var(--action-brand);
    box-shadow: none;
}

.step-card.highlight {
    border-color: rgba(29, 78, 216, 0.4);
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.05), rgba(255, 255, 255, 0.03));
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 35px;
}

.step-number {
    font-size: 3rem;
    font-weight: 900;
    font-family: var(--font-sans);
    opacity: 0.05;
    line-height: 0.8;
    color: var(--text-white);
}

.step-icon {
    width: 64px;
    height: 64px;
    background: rgba(29, 78, 216, 0.1);
    border: 1px solid rgba(29, 78, 216, 0.2);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-blue);
    box-shadow: inset 0 0 20px rgba(0, 242, 254, 0.1);
}

.step-card h3 {
    font-family: var(--font-serif);
    font-size: var(--fs-h3);
    margin-bottom: 18px;
    color: var(--text-white);
}

.step-card p {
    color: var(--text-gray);
    font-size: var(--fs-body);
    line-height: 1.7;
}

.step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1100px) {
    .step-connector {
        display: none;
    }
    .steps-container {
        gap: 30px;
        flex-direction: column;
    }
    .step-card {
        width: 100%;
        max-width: 450px;
    }
}

/* PDF Download Button Styling */
.download-pdf-btn {
    position: relative;
}

/* WCAG 2.2 Compliance: Expand tap target to at least 48x48px without affecting aesthetics */
.download-pdf-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    transform: translate(-50%, -50%);
    background: transparent;
    z-index: 10;
}

.download-pdf-btn:hover {
    background: var(--primary-blue) !important;
    color: #fff !important;
    border-color: var(--primary-blue) !important;
    transform: scale(1.1);
}

@media print {
    body { background: #fff !important; color: #000 !important; }
    .navbar, .view-switcher, .stats-bar, footer, .view-btn, .btn-primary, .print-controls { display: none !important; }
    .container { width: 100% !important; max-width: 100% !important; margin: 0 !important; padding: 0 !important; }
    .card { background: #fff !important; border: 1px solid #eee !important; color: #000 !important; break-inside: avoid; }
    .ref { background: #f1f5f9 !important; color: #1d4ed8 !important; border: 1px solid #e2e8f0 !important; }
}

/* --- Cesta de Selección (Fav Checkout) --- */
.floating-basket {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--action-brand);
    color: var(--action-text);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(26, 67, 255, 0.4);
    z-index: 999;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.floating-basket:hover {
    transform: scale(1.1) rotate(5deg);
    background: var(--action-brand-hover);
    box-shadow: none;
}

.basket-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: var(--fs-tiny);
    font-weight: 800;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-dark);
}

/* Sidebar de Selección */
.selection-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: var(--bg-darker);
    border-left: 1px solid var(--glass-border);
    backdrop-filter: blur(30px);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 0; /* Padding movido a los hijos */
    box-shadow: -20px 0 50px rgba(0,0,0,0.5);
    overflow: hidden;
}

@media (max-width: 500px) {
    .selection-sidebar {
        width: 100%;
        right: -100%;
        padding: 20px;
    }
}

.selection-sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.5);
    flex-shrink: 0;
}

.sidebar-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    -webkit-overflow-scrolling: touch;
}

.sidebar-header h2 {
    font-family: var(--font-serif);
    font-size: var(--fs-h3);
    margin: 0;
}

.close-sidebar {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    transition: color 0.3s;
}

.close-sidebar:hover {
    color: var(--text-white);
}

.selection-list {
    margin-bottom: 30px;
}

@media (max-width: 500px) {
    .sidebar-header { padding: 20px; }
    .sidebar-body { padding: 20px; }
}

.selection-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 15px;
    position: relative;
}

.selection-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.selection-item-info h4 {
    font-size: var(--fs-body);
    margin-bottom: 5px;
}

.selection-item-info p {
    font-size: var(--fs-small);
    color: var(--text-gray);
}

.remove-item {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.remove-item:hover {
    opacity: 1;
}

/* Formulario de Presupuesto */
.budget-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.budget-form input, .budget-form textarea {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    padding: 12px 15px;
    border-radius: 8px;
    color: white;
    font-family: var(--font-sans);
    font-size: 16px;
}

.budget-form input:focus, .budget-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: rgba(255,255,255,0.08);
}

/* Prevent mobile Safari iOS focus zoom on inputs */
@media (max-width: 799px) {
    input, textarea, select {
        font-size: 16px !important;
    }
}

/* Botón Añadir a Cesta en Card */
.btn-add-selection {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-gray);
    padding: 10px;
    border-radius: 8px;
    font-size: var(--fs-small);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 10px;
    width: 100%;
}

.btn-add-selection:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-white);
    border-color: rgba(255,255,255,0.2);
}

.btn-add-selection.in-cart {
    background: rgba(0, 242, 254, 0.08);
    border-color: rgba(0, 242, 254, 0.4);
    color: #00f2fe;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: linear-gradient(135deg, #00f2fe 0%, #2af598 100%);
    color: #050811;
    padding: 12px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.2);
    z-index: 3000;
    transform: translateY(150%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
}

.toast-notification.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

/* Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 1500;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Predictive Search Styles (Expert Enhancement) */
.search-container {
    position: relative;
    z-index: 1000;
    width: 90%;
    max-width: 600px;
    margin: 40px auto 0;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-dark);
    border: 2px solid var(--action-brand);
    border-radius: 20px;
    color: #fff;
    padding: 20px 30px 20px 60px;
    font-size: var(--fs-body);
    width: 100%;
    outline: none;
    transition: all 0.4s;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3), inset 0 0 20px rgba(26, 67, 255, 0.05);
}

.search-wrapper input:focus {
    border-color: var(--action-brand-hover);
    box-shadow: 0 15px 50px rgba(26, 67, 255, 0.2), inset 0 0 30px rgba(26, 67, 255, 0.1);
    transform: translateY(-2px);
}

.search-icon {
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    margin-right: 15px;
}

#predictive-search {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: var(--fs-body);
    font-family: var(--font-sans);
    outline: none;
    width: 100%;
}

#predictive-search::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.suggestions-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    right: 0;
    background: rgba(10, 15, 29, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 2000;
}

.suggestion-item {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.suggestion-item .item-icon {
    width: 36px;
    height: 36px;
    background: rgba(29, 78, 216, 0.1);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.suggestion-item .item-content {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.suggestion-item .item-text {
    font-size: var(--fs-body);
    font-weight: 600;
}

.suggestion-item .item-label {
    font-size: var(--fs-small);
    color: var(--text-gray);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Educational Tooltips */
.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    box-sizing: content-box;
    border: 16px solid transparent; /* WCAG 2.2: Expand tap target area to 48px x 48px */
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.2);
    background-clip: padding-box; /* Limit background to the visual 16px circle */
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.4); /* Draw border on the inner 16px circle */
    color: #60a5fa;
    font-size: 10px;
    font-weight: bold;
    margin: -16px -16px -16px -10px; /* Offset the transparent border to prevent layout shifts */
    cursor: help;
    position: relative;
    font-family: var(--font-sans);
    vertical-align: middle;
}

.tooltip-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #0f172a;
    color: #f8fafc;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    white-space: normal;
    min-width: 200px;
    text-align: center;
    line-height: 1.4;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 1000;
    pointer-events: none;
}

.tooltip-icon::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #0f172a transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

/* Hover-capable devices only (prevents sticky tooltips on touch screens) */
@media (hover: hover) {
    .tooltip-icon:hover::after,
    .tooltip-icon:hover::before {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

/* Active class for both hover and touch interactions */
.tooltip-icon.active::after,
.tooltip-icon.active::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Mobile responsive fixes: Align bubble to the right to prevent clipping at the screen edge */
@media (max-width: 767px) {
    .tooltip-icon::after {
        left: auto;
        right: -12px;
        transform: translateY(10px);
        min-width: 220px;
        max-width: 240px;
    }
    
    .tooltip-icon::before {
        left: auto;
        right: 18px;
        transform: translateY(10px);
    }
    
    .tooltip-icon.active::after {
        transform: translateY(0);
    }
    
    .tooltip-icon.active::before {
        transform: translateY(0);
    }
}

/* --- Thumb Zone Navigation (Expert Recommendation #15) --- */
.thumb-nav {
    display: none; /* Hidden on desktop */
}

@media (max-width: 799px) {
    .thumb-nav {
        height: 60px;
        width: 60px !important;
        position: fixed;
        bottom: 25px;
        right: 25px;
        left: auto;
        transform: none;
        background: var(--primary-blue);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 50% !important;
        z-index: 9999;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        animation: thumb-slide-up 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .thumb-nav.nav-hidden {
        transform: translateY(120px) !important;
        opacity: 0;
    }

    .thumb-nav.nav-scrolling-up {
        transform: translateY(0) !important;
        opacity: 1;
    }
    
    .floating-basket {
        display: none !important; /* Managed by thumb nav on mobile */
    }
    
    footer {
        padding-bottom: 120px !important;
    }
}

@keyframes thumb-slide-up {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.thumb-item-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 60px;
    height: 100%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    padding: 0;
}

.thumb-item-btn:hover, .thumb-item-btn.active {
    color: var(--primary-blue);
}

.thumb-item-btn.active::after {
    content: '';
    position: absolute;
    bottom: 8px;
    width: 4px;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-blue);
}

.thumb-item-btn svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s;
}

.thumb-item-btn:active svg {
    transform: scale(0.85);
}

.thumb-item-btn span {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.thumb-item-btn .badge-count {
    position: absolute;
    top: 10px;
    right: 8px;
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
}

/* --- Expandable Thumb Menu --- */
.thumb-menu-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.thumb-main-btn {
    width: 60px !important;
    height: 60px !important;
    background: transparent !important;
    color: white !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.menu-label-btn {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

@keyframes n16-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.thumb-main-btn:active {
    transform: scale(0.9);
}

.thumb-menu-wrapper.active .thumb-main-btn {
    transform: rotate(45deg);
    background: #ef4444 !important; /* Rojo para cerrar si se desea o se mantiene */
}

.thumb-menu-wrapper.active .thumb-main-btn .menu-label-btn {
    display: none;
}

.thumb-menu-wrapper.active .thumb-main-btn::after {
    content: '+';
    font-size: 2rem;
    font-weight: 400;
}

.thumb-sub-items {
    position: absolute;
    bottom: 75px;
    right: 0;
    left: auto;
    transform: translateY(20px) scale(0.8);
    transform-origin: bottom right;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    min-width: 150px;
}

.thumb-menu-wrapper.active .thumb-sub-items {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.thumb-sub-item {
    width: 100% !important;
    height: 50px !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    gap: 15px !important;
    padding: 0 15px !important;
    border-radius: 15px !important;
}

.thumb-sub-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.thumb-sub-item svg {
    width: 20px !important;
    height: 20px !important;
}

.thumb-sub-item span {
    font-size: 0.75rem !important;
}

/* Double-Tap Favorite Feedback Animation */
@keyframes heartPop {
    0% { transform: translate(-50%, -50%) scale(0) rotate(-15deg); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.2) rotate(0deg); opacity: 0.9; }
    100% { transform: translate(-50%, -80%) scale(1) rotate(0deg); opacity: 0; }
}

.heart-animation {
    pointer-events: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ef4444;
    font-size: 5rem;
    z-index: 1000;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
    animation: heartPop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.photo-container, .sheet-body {
    position: relative;
    overflow: hidden;
}

.screen-img {
    user-select: none;
    -webkit-user-drag: none;
    cursor: pointer;
}
/* --- Expert Recommendation: Skeleton Screens (Carga Visual) --- */
@keyframes skeleton-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.03) 25%, 
        rgba(255, 255, 255, 0.08) 50%, 
        rgba(255, 255, 255, 0.03) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 2s infinite linear;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.card-skeleton {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    height: 450px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skeleton-image {
    width: 100%;
    height: 180px;
}

.skeleton-text {
    height: 15px;
    width: 100%;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-title {
    height: 25px;
    width: 80%;
    margin-bottom: 10px;
}

.skeleton-price {
    height: 50px;
    width: 100%;
    margin-top: auto;
}
/* --- Loading Spinner --- */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Expert Recommendation: Micro-interacciones (Ripple & Scale Down) --- */
.ripple-btn {
    position: relative;
    overflow: hidden !important; /* Ensure ripple stays inside */
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.ripple-btn:active {
    transform: scale(0.96) !important;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0);
    animation: ripple-animation 0.7s cubic-bezier(0, 0, 0.2, 1);
    pointer-events: none;
    z-index: 9999;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Street View Modal & Button Styles */
.btn-streetview {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 24px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100px;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
    text-decoration: none;
    width: 100%;
}

.btn-streetview:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.15);
}

.btn-streetview .label {
    font-size: var(--fs-small);
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1.2;
}

.btn-streetview .value {
    font-size: var(--fs-h4);
    color: #f1f5f9;
    font-weight: 600;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 8px;
}

.streetview-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.streetview-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.streetview-modal-container {
    width: 95%;
    max-width: 1000px;
    height: 85vh;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.8);
    transform: scale(0.9) translateY(40px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.streetview-modal-overlay.active .streetview-modal-container {
    transform: scale(1) translateY(0);
}

.streetview-header {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.streetview-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.streetview-title h3 {
    font-family: var(--font-serif);
    font-size: var(--fs-h3);
    color: #fff;
    margin: 0;
}

.close-streetview {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.close-streetview:hover {
    background: #ef4444;
    color: #fff;
    transform: rotate(90deg);
}

.streetview-iframe-wrapper {
    flex-grow: 1;
    position: relative;
    background: #000;
}

.streetview-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.streetview-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f172a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.5s;
}

.streetview-loader .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(59, 130, 246, 0.1);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Investor Presentation Mode Styles */
.presentation-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 2000000;
    opacity: 0;
    transition: opacity 0.5s ease;
    color: #fff;
    font-family: var(--font-sans);
}

.presentation-overlay.active {
    display: flex;
    opacity: 1;
}

.presentation-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.presentation-slide {
    flex: 1;
    display: none;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 60px;
    gap: 60px;
    animation: slideEnter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.presentation-slide.active {
    display: grid;
}

@keyframes slideEnter {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.pres-image-side {
    height: 80vh;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.1);
}

.pres-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pres-info-side {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.pres-badge {
    background: var(--primary-blue);
    padding: 8px 20px;
    border-radius: 100px;
    width: fit-content;
    font-weight: 800;
    font-size: var(--fs-small);
    letter-spacing: 2px;
}

.pres-title {
    font-family: var(--font-serif);
    font-size: var(--fs-display);
    line-height: var(--lh-display);
    margin: 0;
}

.pres-location {
    font-size: var(--fs-h3);
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 15px;
}

.pres-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.pres-stat-item {
    background: rgba(255,255,255,0.03);
    padding: 30px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.05);
}

.pres-stat-label {
    font-size: var(--fs-small);
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pres-stat-value {
    font-size: var(--fs-display);
    font-weight: 800;
    margin-top: 10px;
    color: #fff;
}

.pres-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 30px;
    background: rgba(255,255,255,0.05);
    padding: 15px 30px;
    border-radius: 100px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.pres-nav-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.5;
    transition: 0.3s;
}

.pres-nav-btn:hover {
    opacity: 1;
    transform: scale(1.2);
}

.pres-counter {
    font-weight: 700;
    font-size: var(--fs-body);
    color: var(--text-gray);
}

.close-pres {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}

.close-pres:hover {
    background: #ef4444;
    color: #fff;
    transform: rotate(90deg);
}

@media (max-width: 1200px) {
    .presentation-slide {
        grid-template-columns: 1fr;
        padding: 40px;
        overflow-y: auto;
    }
    .pres-image-side {
        height: 40vh;
    }
}


/* Card Photo Carousel Premium Styles */
.photo-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    user-select: none;
    touch-action: pan-y; /* Allow vertical scrolling while swiping horizontally */
}

.photo-carousel-track {
    display: flex;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
    height: 180px;
}

.photo-carousel-track img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    -webkit-user-drag: none;
    user-select: none;
}

.photo-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.45);
    padding: 5px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.photo-carousel-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.photo-carousel-dots .dot.active {
    background-color: #00f2fe !important; /* Cyan accent color matching marketing actions */
    box-shadow: 0 0 8px #00f2fe;
    transform: scale(1.2);
    width: 8px; /* Slightly wider active dot for modern layout feel */
    border-radius: 4px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(1, 3, 9, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 12;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.photo-carousel:hover .carousel-arrow {
    opacity: 1;
}

.carousel-arrow:hover {
    background: var(--neon-blue);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.prev {
    left: 10px;
}

.carousel-arrow.next {
    right: 10px;
}

/* Hide arrows on mobile touch devices */
@media (hover: none) {
    .carousel-arrow {
        display: none !important;
    }
}

/* Premium Skeleton Loading (Idea 7: Luminous Mesh Scan) */
.card-skeleton {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    height: 100%;
    min-height: 420px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.02) 25%,
        rgba(0, 242, 254, 0.08) 37%,
        rgba(255, 255, 255, 0.02) 63%
    );
    background-size: 400% 100%;
    animation: skeleton-shimmer 1.4s ease infinite;
    border-radius: 6px;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.skeleton-image {
    height: 180px;
    width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
}

.skeleton-title {
    height: 22px;
    width: 75%;
    margin-bottom: 15px;
}

.skeleton-text {
    height: 12px;
    width: 90%;
    margin-bottom: 10px;
}

.skeleton-text.short {
    height: 12px;
    width: 55%;
    margin-bottom: 25px;
}

.skeleton-price {
    height: 110px;
    width: 100%;
    border-radius: 12px;
    margin-top: auto;
}

/* Disabled Submit Buttons (RGPD Consent Inequivoco) */
button:disabled,
button[disabled],
.btn-primary:disabled,
.btn-primary[disabled],
.btn-cta:disabled,
.btn-cta[disabled] {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    background: #475569 !important;
    color: #94a3b8 !important;
    box-shadow: none !important;
    transform: none !important;
}



