:root {
    --bg-color: #08080a;
    --accent: #4ECDC4;
    --accent-soft: rgba(78, 205, 196, 0.15);
    --accent-glow: rgba(78, 205, 196, 0.35);
    --accent-glow-subtle: rgba(78, 205, 196, 0.08);
    --accent-dim: rgba(78, 205, 196, 0.5);
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --border-subtle: rgba(78, 205, 196, 0.1);
    --border-hover: rgba(78, 205, 196, 0.3);
    --card-bg: rgba(255, 255, 255, 0.025);
    --card-bg-hover: rgba(78, 205, 196, 0.04);
}

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

body,
html {
    width: 100%;
    min-height: 100%;
    background-color: #050810;
    font-family: 'Inter', sans-serif;
    -moz-osx-font-smoothing: grayscale;
    color: #f0f4ff;
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 77, 77, 0.04), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 229, 204, 0.06), transparent 45%),
        #050810;
    pointer-events: none;
}

/* --- HERO SECTION --- */
#hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    /* Mobile viewport safety */
    overflow: hidden;
    /* Protect particle borders */
}

/* --- Preloader Layer (Z: 9999) --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader-bg-texture {
    position: absolute;
    top: -1%;
    left: -1%;
    width: 102vw;
    height: 102vh;
    z-index: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
        url('fondo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(3px);
    pointer-events: none;
}

#preloader-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

.preloader-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    width: 100%;
}

.video-container {
    position: relative;
    width: 320px;
    /* Small, elegant size */
    max-width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: radial-gradient(circle, rgba(200, 200, 200, 0.1) 0%, transparent 60%);
    filter: blur(25px);
    z-index: -1;
}

#preloader-video {
    width: 100%;
    height: auto;
    object-fit: contain;
    mix-blend-mode: screen;
    /* Integrates video blacks into background */
}

/* ProgressBar Automotriz */
.progress-container {
    width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.progress-bar-bg {
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    /* Gradient metálico azulado sutil o gris azulado (Azul eléctrico o plateado) */
    background: linear-gradient(90deg, #333333 0%, #888888 50%, #ffffff 100%);
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    /* Transition applied by JS mostly, but we add a soft linear one */
}

.progress-glow {
    position: absolute;
    right: 0;
    top: -4px;
    width: 15px;
    height: 10px;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, transparent 80%);
    filter: blur(2px);
}

.particle-spark {
    position: absolute;
    background-color: #ffffff;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform, opacity;
}

.progress-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: 40px;
    /* Fixed height to prevent layout shift */
}

#progress-text {
    font-family: 'Space Grotesk', 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 5px;
    color: #ffffff;
}

#motor-status {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 3px;
    color: #9aa0a6;
    opacity: 0;
    transition: opacity 0.5s ease;
    text-transform: uppercase;
}

#ambient-light {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65vw;
    height: 65vw;
    z-index: 5;
    /* Glow radial blanco grisáceo muy tenue *detrás* de la Toyota */
    background: radial-gradient(circle at center, rgba(220, 220, 220, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

/* Fondo (Background Layer) Z: 0 */
#background-texture {
    position: absolute;
    top: -1%;
    left: -1%;
    width: 102vw;
    height: 102vh;
    z-index: 0;
    background-image:
        linear-gradient(rgba(5, 8, 16, 0.6), rgba(5, 8, 16, 0.8)),
        url('fondo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(2px);
    pointer-events: none;
}

/* Tipografía de Fondo Z: 10 */
#text-layer-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    /* Max ancho 90% view */
    height: 100%;
    z-index: 10;
    transform: translate(-50%, -50%);
    pointer-events: none;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
    will-change: transform;
}

#text-layer {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: clamp(14px, 2vw, 26px);
    color: #ffffff;
    letter-spacing: clamp(2px, 0.5vw, 6px);
    text-align: center;
    white-space: normal;
    text-transform: uppercase;
    text-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(78, 205, 196, 0.15), 0 2px 5px rgba(0, 0, 0, 0.8);
    margin-bottom: 25px;
    z-index: 61;
}

/* Spotlight Effect Z: 15 */
#mouse-spotlight {
    position: absolute;
    /* Using absolute inside body instead of fixed */
    top: 0;
    left: 0;
    width: 800px;
    height: 800px;
    /* Soft diffuse spot illuminating slightly */
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 15;
    transform: translate(-50%, -50%);
    will-change: transform;
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Particles.js (Z: 2) */
#particles-js {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    /* Mouse events are captured globally by window via particles.js detect_on: 'window' */
}

/* Producto Central (Hero Layer) Z: 50 */
#product-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 50;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    will-change: transform;
    perspective: 1500px;
}

.product-wrapper {
    position: relative;
    width: 100%;
    transform-style: preserve-3d;
    will-change: transform;
}

/* Typography Footer */
#product-typography {
    position: absolute;
    bottom: clamp(18px, 4vh, 46px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 60;
    width: 100%;
}

#product-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(11px, 1.2vw, 14px);
    font-weight: 300;
    color: #9aa0a6;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

#product-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(18px, 2.2vw, 30px);
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 14px;
    text-transform: uppercase;
    text-shadow: 0 0 25px var(--accent-glow), 0 0 50px rgba(78, 205, 196, 0.1), 2px 2px 5px rgba(0, 0, 0, 0.8);
}

/* Floor Reflection Z: -1 relative to wrapper */
#floor-reflection {
    position: absolute;
    bottom: -8%;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: 25px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    filter: blur(10px);
}

#product-image {
    width: 100%;
    max-width: clamp(320px, 60vw, 900px);
    height: auto;
    display: block;
    margin: 0 auto;
    image-rendering: high-quality;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.95));
}

/* Shader de Barrido Metálico (Metal Sweep) Z: 60 */
#metallic-sweep {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 60;
    pointer-events: none;
    /* Soft multi-layered sweep for realistic glow */
    background: linear-gradient(-60deg, transparent 0%, rgba(255, 255, 255, 0.4) 45%, rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0.4) 55%, transparent 100%);
    background-size: 50% 100%;
    background-repeat: no-repeat;

    -webkit-mask-image: url('logos/toyota.png');
    -webkit-mask-size: 100% auto;
    -webkit-mask-repeat: no-repeat;
    mask-image: url('logos/toyota.png');
    mask-size: 100% auto;
    mask-repeat: no-repeat;

    /* Animation definition: 8.5s cycle (barrido cada 8-10s) */
    animation: metal-sweep 8.5s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes metal-sweep {
    0% {
        background-position: -200% 0;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    20% {
        background-position: 300% 0;
        opacity: 1;
    }

    25% {
        opacity: 0;
        background-position: 300% 0;
    }

    100% {
        background-position: 300% 0;
        opacity: 0;
    }
}

/* Sistema de Navegación Superior Z: 100 (Fixed/Apple Style) */
#header-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(8, 8, 10, 0.75);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    transition: all 0.3s ease;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 1px 20px rgba(78, 205, 196, 0.03);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

#logo {
    justify-self: start;
    width: clamp(34px, 3.2vw, 54px);
    height: auto;
    image-rendering: -webkit-optimize-contrast;
    transition: all 0.3s ease;
}

#logo-link:hover #logo {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

#nav-system {
    justify-self: center;
    display: flex;
    gap: 30px;
}

#nav-system a {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 12px;
    letter-spacing: 5px;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

#nav-system a:hover {
    opacity: 1;
    color: var(--accent);
    text-shadow: 0 0 12px var(--accent-glow-subtle);
}

.btn-action {
    justify-self: end;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
    color: #ffffff;
    background: transparent;
    border: 1px solid var(--accent-dim);
    padding: 12px 24px;
    transition: all 0.4s ease;
    cursor: pointer;
    pointer-events: auto;
}

.btn-action:hover {
    background: var(--accent);
    color: #000000;
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* --- Mobile Safeties & Responsiveness --- */
@media (max-width: 768px) {
    #header-layer {
        padding: 0.5rem 0;
    }

    .header-inner {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 15px;
        justify-content: center;
        text-align: center;
    }

    #logo {
        justify-self: center;
    }

    .btn-action {
        justify-self: center;
        padding: 8px 16px;
    }

    #nav-system {
        gap: 15px;
    }
}

/* =========================================
   SCROLLING CONTENT SECTIONS (MAC/APPLE STYLE)
========================================= */
main#main-content {
    background-color: var(--bg-color);
    position: relative;
    z-index: 20;
}

/* CAR TYPES SECTION */
#car-types-section {
    padding: 60px 4%;
    background-color: var(--bg-color);
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.car-types-title {
    font-size: clamp(24px, 3vw, 32px);
    font-family: 'Space Grotesk', 'Montserrat', sans-serif;
    font-weight: 500;
    margin-bottom: 30px;
    padding-left: 10px;
    color: #fff;
    text-shadow: 0 0 20px var(--accent-glow-subtle);
}

.car-types-nav {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 10px 5%;
    max-width: 100vw;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.car-types-nav::-webkit-scrollbar {
    height: 0px;
    background: transparent;
    display: none;
}

.car-type-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    gap: 15px;
    color: #86868b;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    outline: none;
    cursor: pointer;
    flex: 0 0 auto;
    scroll-snap-align: center;
    padding: 10px;
}

.car-type-img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: grayscale(0.5) opacity(0.7);
}

.car-type-link span {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
}

.car-type-link:hover {
    color: var(--accent);
    transform: translateY(-5px);
}

.car-type-link:hover .car-type-img {
    transform: scale(1.15);
    filter: grayscale(0) opacity(1) drop-shadow(0px 0px 15px var(--accent-glow));
}

.car-type-link:hover span {
    color: #fff;
    text-shadow: 0 0 10px var(--accent-glow);
}

.hero-overlap {
  position: relative;
  width: 100vw;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  /* Degradado azul oscuro LV a negro profundo hacia la derecha */
  background: linear-gradient(90deg, #051430 0%, #020610 50%, #000000 100%);
  overflow: hidden;
  margin-left: calc(-50vw + 50%);
  /* PADDING TOP AUMENTADO (130px) PARA QUE EL NAVBAR NO TAPE EL TÍTULO */
  padding: 130px 20px 50px;
  box-sizing: border-box;
}

.hero-overlap__top {
  position: relative;
  z-index: 3;
}

.hero-overlap__top h2 {
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  letter-spacing: 6px;
  text-transform: uppercase;
  text-shadow: 0 4px 15px rgba(0,0,0,0.5);
  margin: 0;
}

.hero-overlap__bg-text {
  position: absolute;
  /* Subimos el texto ligeramente para que quede bien centrado detrás del auto */
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  white-space: nowrap;
  font-family: 'Space Grotesk', sans-serif;
  /* TAMAÑO REDUCIDO DRÁSTICAMENTE (de 15rem a 8.5rem máximo) */
  font-size: clamp(2.5rem, 7.5vw, 8.5rem);
  font-weight: 900;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 1.5vw;
  user-select: none;
  pointer-events: none;
}

.hero-overlap__outline {
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.4);
}

.hero-overlap__solid {
  color: rgba(255, 255, 255, 0.95);
}

.hero-overlap__car-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px; /* Reducido levemente para que el auto no tape todo el texto */
  display: flex;
  justify-content: center;
  flex: 1;
  align-items: center;
}

.hero-overlap__car {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.8));
  transition: transform 0.5s ease;
}

.hero-overlap__car:hover {
  transform: scale(1.02) translateY(-10px);
}

.hero-overlap__bottom {
  position: relative;
  z-index: 3;
  text-align: center;
}

.hero-overlap__bottom .subtitle {
  color: var(--text-secondary, #cccccc);
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.8rem, 1.5vw, 1.2rem);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-overlap__bottom .highlight {
  color: var(--accent, #4ECDC4);
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  letter-spacing: 5px;
  text-transform: uppercase;
  text-shadow: 0 0 20px var(--accent-glow, rgba(78, 205, 196, 0.4));
  margin: 0;
}

/* Responsive Móvil */
@media (max-width: 768px) {
  .hero-overlap {
    min-height: 60vh;
    padding: 100px 15px 40px; /* Asegurar espacio para el menu en celular */
  }
  .hero-overlap__bg-text {
    flex-direction: column;
    gap: 0;
    line-height: 0.85;
  }
  .hero-overlap__car {
    transform: scale(1.15);
  }
}

/* CATALOG SECTION */
#catalog-section {
    padding: 100px 5%;
    background-color: var(--bg-color);
    color: #fff;
    min-height: 80vh;
}

.catalog-header {
    text-align: center;
    margin-bottom: 60px;
}

.catalog-header h2 {
    font-size: clamp(28px, 4vw, 48px);
    font-family: 'Space Grotesk', 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: -1px;
}

.catalog-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    display: block;
    margin-top: 8px;
}

.catalog-category {
    margin-bottom: 60px;
    scroll-margin-top: 100px;
    /* Apple Header offset via native CSS */
}

.catalog-category h3 {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-weight: 400;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.catalog-carousel {
    display: flex;
    overflow-x: auto;
    gap: 24px;
    padding: 20px 50px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.catalog-carousel::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for clean look */
}

/* Flechas Carrusel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    opacity: 0;
    pointer-events: none;
}

.carousel-wrapper:hover .carousel-btn {
    opacity: 1;
    pointer-events: auto;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.05);
}

.carousel-btn.left-arrow {
    left: 0;
}

.carousel-btn.right-arrow {
    right: 0;
}

/* Tarjetas (Cards) Premium */
.catalog-card {
    min-width: 320px;
    width: clamp(320px, 25vw, 400px);
    background: rgba(10, 15, 26, 0.6);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-snap-align: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s, border-color 0.5s, background 0.5s;
    cursor: pointer;
    border: 1px solid rgba(0, 229, 204, 0.1);
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 229, 204, 0.05), 0 8px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

/* Corner glow pseudo-element */
.catalog-card::before {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at top right, rgba(78, 205, 196, 0.12) 0%, transparent 70%);
    border-radius: 0 20px 0 0;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.5s ease;
    opacity: 0.6;
}

.catalog-card:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.08), 0 0 40px rgba(78, 205, 196, 0.04), 0 20px 50px rgba(0, 0, 0, 0.5);
    background: var(--card-bg-hover);
    border-color: var(--border-hover);
}

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

.catalog-card:hover .card-info h4 {
    color: var(--accent);
    transition: color 0.3s ease;
}

.card-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 25px;
    transition: transform 0.5s ease;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.5));
}

.catalog-card:hover .card-img {
    transform: scale(1.05);
}

.card-info {
    text-align: left;
    width: 100%;
    flex-grow: 1;
}

.card-info h4 {
    font-size: 22px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.card-specs {
    font-size: 13px;
    color: #86868b;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Price Format Styles */
.price-container {
    margin-top: 8px;
    margin-bottom: 8px;
}
.price-normal {
    font-size: 0.9em;
    color: #8892b0;
    text-decoration: line-through;
    margin-bottom: 2px;
}
.price-oferta {
    font-size: 1.35em;
    font-weight: 700;
    color: #00e5cc;
    text-shadow: 0 0 10px rgba(0, 229, 204, 0.4);
}
.price-single {
    font-size: 1.25em;
    font-weight: 600;
    color: #f0f4ff;
    margin-top: 4px;
}

/* Overlay Hover - "Ver características" */
.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    border-radius: 20px;
    pointer-events: none;
    /* Let clicks pass through to card */
}

.catalog-card:hover .card-overlay {
    opacity: 1;
}

.overlay-text {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 24px;
    border: 1px solid var(--border-hover);
    border-radius: 30px;
    background: rgba(78, 205, 196, 0.08);
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.catalog-card:hover .overlay-text {
    transform: translateY(0);
}

/* Botón WhatsApp Fijo en la Card */
.btn-primary.whatsapp-cta {
    background: var(--accent);
    color: #000;
    width: 100%;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: none;
    letter-spacing: 0;
    z-index: 3;
    position: relative;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-primary.whatsapp-cta svg {
    width: 20px;
    height: 20px;
}

.btn-primary:hover {
    opacity: 0.9;
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    color: #2997ff;
    border: none;
    padding: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s;
}

.btn-secondary:hover {
    color: #5aa9ff;
}

@media (max-width: 768px) {
    .catalog-card {
        min-width: 280px;
    }

    .card-actions {
        opacity: 1;
    }
}

/* VENDER BANNER */
.apple-banner {
    background: linear-gradient(135deg, #0f1012 0%, #08080a 100%);
    padding: 80px 5%;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.banner-content h2 {
    font-size: clamp(24px, 3vw, 40px);
    margin-bottom: 15px;
}

.banner-content p {
    color: #a1a1a6;
    max-width: 600px;
    margin: 0 auto 30px auto;
    font-size: 16px;
    line-height: 1.5;
}

/* CONTACT SECTION */
#contact-section {
    padding: 80px 5%;
    text-align: center;
    background-color: var(--bg-color);
}

#contact-section h2 {
    font-size: clamp(28px, 4vw, 48px);
    margin-bottom: 15px;
}

#contact-section p {
    color: #a1a1a6;
    margin-bottom: 40px;
}

.btn-whatsapp-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--accent);
    color: #000;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.btn-whatsapp-large:hover {
    background-color: #3dbdb5;
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--accent-glow);
}

/* =========================================
   DRIVE SECTION (VIDEO + GLASSMETRICS)
========================================= */
.drive-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.drive-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.drive-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
}

.drive-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    padding: 0 5%;
    text-align: center;
}

.drive-title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 50px;
    letter-spacing: -1px;
}

.drive-widgets {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Glass Cards */
.glass-card {
    width: 320px;
    padding: 25px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-subtle);
    text-align: left;
}

.glass-card h3 {
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: #ccc;
}

.metric {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.metric strong {
    font-size: 1.1rem;
    color: #fff;
}

.status-ok {
    color: #4cff8f !important;
}

/* Línea tipo pista */
.road-line {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
}

.road-progress {
    height: 100%;
    width: 0%;
    background: #fff;
    animation: roadMove 8s linear infinite;
}

@keyframes roadMove {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

/* Señal satélite */
.signal-container {
    position: relative;
    height: 80px;
    margin: 20px 0;
}

.signal-line {
    width: 2px;
    height: 50px;
    background: #fff;
    margin: 0 auto;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.2;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.2;
    }
}

.connection-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.connection-progress {
    height: 100%;
    width: 94%;
    background: #fff;
}

.connect-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
}

.connect-btn:hover {
    background: #fff;
    color: #000;
}

/* Responsive Drive section */
@media (max-width: 768px) {
    .drive-section {
        height: auto;
        padding: 80px 0;
    }

    .drive-title {
        font-size: 2rem;
    }

    .drive-widgets {
        flex-direction: column;
        align-items: center;
    }

    /* Smaller Carousel UI on touch devices */
    .carousel-btn {
        width: 36px;
        height: 36px;
    }

    .catalog-carousel {
        padding: 20px 20px;
    }
}

/* APPLE FOOTER */
#apple-footer {
    background-color: #0a0a0c;
    padding: 40px 5%;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-subtle);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: #515154;
    text-decoration: none;
    margin: 0 5px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #a1a1a6;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* MODALS */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: #111113;
    width: 90%;
    max-width: 500px;
    padding: 40px 30px;
    border-radius: 18px;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(78, 205, 196, 0.05);
    border: 1px solid var(--border-subtle);
}

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

/* .modal-close now defined in comprehensive section below */

.modal-box h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.modal-box p {
    color: #a1a1a6;
    font-size: 14px;
    margin-bottom: 25px;
}

.apple-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.apple-form input,
.apple-form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #424245;
    background: #000;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}

.apple-form input:focus,
.apple-form textarea:focus {
    border-color: #2997ff;
}

.apple-form textarea {
    resize: vertical;
    min-height: 100px;
}

.apple-form .btn-primary {
    margin-top: 10px;
    padding: 16px;
    font-size: 16px;
}

/* VEHICLE DETAIL MODAL SPECIFICS */
.detail-box {
    max-width: 900px;
    padding: 0;
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
    background: #0d0d0f;
    border: 1px solid var(--border-subtle);
}

.detail-box::-webkit-scrollbar {
    width: 4px;
}

.detail-box::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.modal-detail-content {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .modal-detail-content {
        flex-direction: row;
    }
}

.detail-img-container {
    flex: 1;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    position: relative;
    flex-direction: column;
    min-height: 280px;
}

.detail-img {
    width: 100%;
    max-height: 350px;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.5));
    transition: opacity 0.3s ease;
}

/* Gallery Image Placeholder */
.detail-img-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 40px;
    min-height: 200px;
}

.detail-img-placeholder span {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
}

/* Gallery Navigation Arrows */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s;
}

.gallery-arrow:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-50%) scale(1.08);
}

.gallery-arrow-left {
    left: 10px;
}

.gallery-arrow-right {
    right: 10px;
}

/* Gallery Counter */
.gallery-counter {
    position: absolute;
    bottom: 12px;
    right: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 4;
}

/* Gallery Thumbnails */
.gallery-thumbs {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 12px 0 4px;
    flex-wrap: wrap;
    max-width: 100%;
}

.gallery-thumb {
    width: 48px;
    height: 36px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.5;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.gallery-thumb:hover {
    opacity: 0.8;
}

.gallery-thumb.active {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.5);
}

.detail-info {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.detail-info h3 {
    font-size: 26px;
    margin-bottom: 5px;
    line-height: 1.2;
}

.detail-price {
    font-size: 22px;
    color: #fff !important;
    font-weight: 600;
    margin-bottom: 25px !important;
}

.detail-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 480px) {
    .detail-specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-item span {
    font-size: 11px;
    color: #86868b;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-item strong {
    font-size: 14px;
    color: #fff;
}

/* Description */
.detail-description {
    font-size: 14px;
    color: #a1a1a6 !important;
    line-height: 1.6;
    margin-bottom: 16px !important;
}

/* Notes / Observaciones */
.detail-notes {
    background: rgba(255, 180, 0, 0.08);
    border: 1px solid rgba(255, 180, 0, 0.2);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    color: #ffb400;
    line-height: 1.5;
    margin-bottom: 20px;
}

.detail-includes {
    margin-bottom: 25px;
}

.detail-includes h4 {
    font-size: 13px;
    color: #86868b;
    margin-bottom: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-includes ul {
    list-style: none;
    padding: 0;
}

.detail-includes li {
    font-size: 13px;
    color: #ccc;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.detail-includes li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2997ff;
}

.detail-wsp-btn {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    text-transform: none;
    padding: 18px;
    font-size: 16px;
}

/* CARD NOTES BADGE */
.card-notes-badge {
    font-size: 11px;
    color: #ffb400;
    background: rgba(255, 180, 0, 0.08);
    border: 1px solid rgba(255, 180, 0, 0.15);
    border-radius: 8px;
    padding: 6px 10px;
    margin-bottom: 16px;
    cursor: default;
    letter-spacing: 0.3px;
}

/* EMPTY CATEGORY MESSAGE */
.empty-category-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    width: 100%;
    gap: 16px;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.25);
    text-align: center;
}

.empty-category-message svg {
    opacity: 0.3;
}

.empty-category-message p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.empty-category-message span {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.5px;
}

/* Responsive adjustments for detail modal */
@media (max-width: 768px) {
    .detail-box {
        max-width: 95%;
    }

    .detail-info {
        padding: 25px;
    }

    .detail-info h3 {
        font-size: 22px;
    }

    .gallery-arrow {
        width: 30px;
        height: 30px;
    }
}

/* =========================================
   SOLD RIBBON — Diagonal Overlay
========================================= */
.sold-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
    overflow: hidden;
}

.sold-ribbon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    z-index: 0;
}

.sold-ribbon span {
    position: absolute;
    top: 28px;
    left: -40px;
    width: 200px;
    text-align: center;
    padding: 10px 0;
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 50%, #b91c1c 100%);
    color: #fff;
    font-family: 'Space Grotesk', 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    transform: rotate(-45deg);
    box-shadow: 0 3px 10px rgba(185, 28, 28, 0.4);
    z-index: 1;
}

/* Sold Card Visual Treatment */
.catalog-card--sold {
    opacity: 0.85;
}

.catalog-card--sold .card-img {
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.5)) grayscale(0.3);
}

.catalog-card--sold:hover {
    transform: scale(1.01);
}

/* Sold CTA Button */
.btn-primary.whatsapp-cta.sold-cta {
    background: #333;
    color: #aaa;
}

.btn-primary.whatsapp-cta.sold-cta:hover {
    background: #444;
    color: #ccc;
}

/* =========================================
   DETAIL MODAL — SOLD BADGE
========================================= */
.detail-sold-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 10px;
    padding: 10px 16px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #ef4444;
    letter-spacing: 1px;
    margin: 8px 0 12px;
}

.detail-sold-badge svg {
    color: #ef4444;
    flex-shrink: 0;
}

/* =========================================
   IMPROVED MODAL CLOSE BUTTON (X)
========================================= */
.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    transform: scale(1.1);
}

/* =========================================
   COMPREHENSIVE RESPONSIVE SYSTEM
========================================= */

/* === LARGE DESKTOP (1440px+) === */
@media (min-width: 1440px) {
    .catalog-carousel {
        padding: 20px 60px;
    }

    .catalog-card {
        width: clamp(340px, 22vw, 420px);
    }
}

/* === NOTEBOOK / SMALL DESKTOP (1024px – 1439px) === */
@media (max-width: 1439px) and (min-width: 1025px) {
    .catalog-card {
        width: clamp(300px, 28vw, 380px);
    }
}

/* === TABLET (768px – 1024px) === */
@media (max-width: 1024px) and (min-width: 769px) {
    #catalog-section {
        padding: 60px 3%;
    }

    .catalog-card {
        min-width: 280px;
        width: clamp(280px, 35vw, 350px);
        padding: 24px;
    }

    .card-info h4 {
        font-size: 19px;
    }

    .detail-box {
        max-width: 92%;
    }

    .drive-title {
        font-size: 2.4rem;
    }

    .glass-card {
        width: 280px;
    }
}

/* === MOBILE (max 768px) === */
@media (max-width: 768px) {

    /* Header adjustments */
    #header-layer {
        padding: 0.5rem 0;
    }

    .header-inner {
        padding: 0 1rem;
    }

    /* Hero section */
    #product-image {
        max-width: clamp(260px, 80vw, 500px);
    }

    #product-title {
        letter-spacing: 6px;
    }

    #text-layer {
        font-size: clamp(12px, 3vw, 18px);
    }

    /* Car types */
    #car-types-section {
        padding: 40px 3%;
    }

    .car-types-nav {
        gap: 14px;
        padding: 10px 3%;
    }

    .car-type-link {
        min-width: 80px;
    }

    .car-type-link svg {
        width: 26px;
        height: 26px;
    }

    .car-type-link span {
        font-size: 11px;
    }

    /* Catalog */
    #catalog-section {
        padding: 50px 3%;
    }

    .catalog-header h2 {
        font-size: clamp(22px, 5vw, 32px);
    }

    .catalog-category h3 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .catalog-carousel {
        gap: 16px;
        padding: 16px 12px;
    }

    .catalog-card {
        min-width: 260px;
        width: 280px;
        padding: 20px;
    }

    .card-info h4 {
        font-size: 18px;
    }

    .card-specs {
        font-size: 12px;
        margin-bottom: 18px;
    }

    .card-img {
        height: 150px;
        margin-bottom: 18px;
    }

    .btn-primary.whatsapp-cta {
        padding: 12px;
        font-size: 13px;
    }

    /* Carousel arrows */
    .carousel-btn {
        width: 34px;
        height: 34px;
    }

    /* Detail modal */
    .detail-box {
        max-width: 96%;
        max-height: 92vh;
        border-radius: 14px;
    }

    .modal-detail-content {
        flex-direction: column;
    }

    .detail-img-container {
        padding: 20px;
        min-height: 220px;
    }

    .detail-img {
        max-height: 250px;
    }

    .detail-info {
        padding: 20px;
    }

    .detail-info h3 {
        font-size: 20px;
    }

    .detail-price {
        font-size: 18px;
    }

    .detail-specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .detail-wsp-btn {
        padding: 14px;
        font-size: 14px;
    }

    .modal-close {
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    /* Gallery */
    .gallery-arrow {
        width: 30px;
        height: 30px;
    }

    .gallery-thumbs {
        gap: 6px;
        padding: 8px 0 4px;
    }

    .gallery-thumb {
        width: 40px;
        height: 30px;
    }

    /* Drive section */
    .drive-section {
        height: auto;
        padding: 60px 0;
    }

    .drive-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .drive-widgets {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .glass-card {
        width: 90%;
        max-width: 320px;
    }

    /* Banner */
    .apple-banner {
        padding: 50px 5%;
    }

    /* Contact */
    #contact-section {
        padding: 50px 5%;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        font-size: 11px;
    }

    /* Sold ribbon mobile */
    .sold-ribbon span {
        font-size: 12px;
        letter-spacing: 2px;
        top: 22px;
        left: -42px;
        padding: 8px 0;
    }
}

/* === SMALL MOBILE (max 480px) === */
@media (max-width: 480px) {
    .catalog-card {
        min-width: 240px;
        width: 260px;
        padding: 16px;
    }

    .card-img {
        height: 130px;
        margin-bottom: 14px;
    }

    .card-info h4 {
        font-size: 16px;
    }

    .card-specs {
        font-size: 11px;
        margin-bottom: 14px;
    }

    .detail-box {
        max-width: 98%;
        max-height: 94vh;
    }

    .detail-img-container {
        padding: 14px;
        min-height: 180px;
    }

    .detail-img {
        max-height: 200px;
    }

    .detail-info {
        padding: 16px;
    }

    .detail-info h3 {
        font-size: 18px;
    }

    .detail-price {
        font-size: 16px;
    }

    .detail-includes li {
        font-size: 12px;
    }

    .catalog-header h2 {
        font-size: 22px;
    }

    .catalog-category h3 {
        font-size: 16px;
    }

    /* Sold ribbon small */
    .sold-ribbon span {
        font-size: 11px;
        top: 18px;
        left: -48px;
    }

    .detail-sold-badge {
        font-size: 11px;
        padding: 8px 12px;
    }

    .modal-close {
        top: 6px;
        right: 6px;
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    /* Header mobile small */
    .header-inner {
        padding: 0 0.5rem;
        gap: 10px;
    }

    #nav-system {
        gap: 10px;
    }

    #nav-system a {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .btn-action {
        font-size: 10px;
        padding: 8px 14px;
    }
}

/* === Prevent horizontal overflow globally === */
body,
html {
    overflow-x: hidden;
}

main#main-content {
    overflow-x: hidden;
}

#catalog-section {
    overflow-x: hidden;
}

.catalog-category {
    overflow-x: hidden;
}

/* =========================================
   ANIMATION SYSTEM — PREMIUM EFFECTS
========================================= */

/* Text Shine / Sweep effect (one-time) */
@keyframes text-shine {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.section-title-reveal {
    position: relative;
}

.section-title-reveal.revealed {
    background: linear-gradient(90deg,
            #fff 0%,
            #fff 40%,
            var(--accent) 50%,
            #fff 60%,
            #fff 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shine 1.5s ease-out forwards;
}

/* After animation ends, reset to normal white */
.section-title-reveal.shine-done {
    background: none;
    -webkit-text-fill-color: unset;
    color: #fff;
}

/* Card awakening animation */
@keyframes card-awaken {
    0% {
        opacity: 0;
        transform: translateY(25px) scale(0.97);
        box-shadow: 0 0 0px rgba(78, 205, 196, 0);
    }

    60% {
        opacity: 1;
        transform: translateY(0) scale(1);
        box-shadow: 0 0 25px rgba(78, 205, 196, 0.12);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        box-shadow: 0 0 15px rgba(78, 205, 196, 0.03), 0 8px 32px rgba(0, 0, 0, 0.3);
    }
}

.catalog-card.card-hidden {
    opacity: 0;
    transform: translateY(25px);
}

.catalog-card.card-awakening {
    animation: card-awaken 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Section fade-in reveal */
@keyframes section-reveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.catalog-category {
    opacity: 0;
    transform: translateY(30px);
    transition: none;
}

.catalog-category.section-visible {
    animation: section-reveal 0.6s ease-out forwards;
}

/* Improved modal close button — accent themed */
.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(78, 205, 196, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(78, 205, 196, 0.15);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 22px;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.modal-close:hover {
    background: rgba(78, 205, 196, 0.18);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(78, 205, 196, 0.2);
}

/* Carousel arrow accent update */
.carousel-btn {
    border: 1px solid var(--border-subtle);
    background: rgba(78, 205, 196, 0.05);
}

.carousel-btn:hover {
    background: rgba(78, 205, 196, 0.12);
    border-color: var(--border-hover);
    box-shadow: 0 0 12px rgba(78, 205, 196, 0.1);
}

/* Detail modal accent borders */
.detail-img-container {
    border-right: 1px solid var(--border-subtle);
}

@media (max-width: 768px) {
    .detail-img-container {
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
    }
}

/* Gallery thumb active = accent */
.gallery-thumb.active {
    border-color: var(--accent-dim);
    opacity: 1;
}

/* Spec item labels */
.detail-includes li::before {
    color: var(--accent);
}

/* Reduce animations for users who prefer */
@media (prefers-reduced-motion: reduce) {
    .catalog-card.card-awakening {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .section-title-reveal.revealed {
        animation: none;
    }

    .catalog-category {
        opacity: 1;
        transform: none;
    }
}

/* =========================================
   NEW SECTIONS: LOCATION, VENDER CTA, OPINIONS
========================================= */

/* LOCATION SECTION */
.location-section {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
}
.location-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}
.location-column {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.location-column:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
}
.info-column {
    justify-content: flex-start;
    gap: 1.5rem;
}
.location-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}
.cyan-divider {
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
    margin-bottom: 1rem;
    box-shadow: 0 0 10px var(--accent-glow);
}
.info-block {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
.info-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-soft);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent);
    flex-shrink: 0;
}
.info-icon svg { width: 20px; height: 20px; }
.info-text h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}
.info-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}
.btn-maps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1) 0%, rgba(78, 205, 196, 0.05) 100%);
    border: 1px solid var(--accent-dim);
    color: var(--accent);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-maps:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 20px var(--accent-glow);
}
.image-column, .map-column {
    padding: 0;
    overflow: hidden;
}
.location-image-card {
    height: 100%;
    min-height: 300px;
    background-image: url('https://res.cloudinary.com/dtlpkqhls/image/upload/v1775986407/fc7d63b2-fb34-4445-8dd8-6d78a64fe471_pw06q7.jpg'); /* placeholder auto */
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 18px;
}
.placeholder-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: rgba(255,255,255,0.7);
    gap: 10px;
    font-weight: 500;
}
.map-card {
    height: 100%;
    min-height: 300px;
    border-radius: 18px;
    overflow: hidden;
}

/* VENDER CTA SECTION */
.vender-cta-section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}
.vender-container {
    display: flex;
    gap: 2rem;
    background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(0,0,0,0.5) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    overflow: hidden;
}
.vender-left {
    flex: 1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}
.vender-left::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top left, var(--accent-glow-subtle), transparent 70%);
    pointer-events: none;
}
.vender-icon-top {
    width: 60px;
    height: 60px;
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}
.vender-icon-top svg { width: 30px; height: 30px; }
.vender-left h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #fff;
    z-index: 1;
}
.vender-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.5;
    z-index: 1;
}
.vender-info-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    z-index: 1;
}
.vender-info-box .info-alert-icon {
    width: 24px;
    height: 24px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}
.vender-info-box p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.btn-whatsapp-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #25D366;
    color: #fff;
    padding: 18px 30px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    z-index: 1;
}
.btn-whatsapp-cta:hover {
    background-color: #1ebc5c;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}
.vender-right {
    flex: 1;
    background: rgba(0,0,0,0.2);
    padding: 4rem;
    border-left: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.vender-steps-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: #fff;
}
.vender-steps-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.vender-step {
    display: flex;
    gap: 20px;
}
.vender-step .step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent);
    flex-shrink: 0;
}
.vender-step .step-icon svg { width: 24px; height: 24px; }
.step-content h5 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 6px;
}
.step-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* OPINIONES SECTION */
.opinions-section {
    padding: 80px 0;
    overflow: hidden;
}
.opinions-title {
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 1rem;
}
.opinions-divider {
    margin: 0 auto 3rem auto;
}
.carousel-infinite-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}
.carousel-infinite-wrapper::before,
.carousel-infinite-wrapper::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}
.carousel-infinite-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #050810, transparent);
}
.carousel-infinite-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #050810, transparent);
}
.carousel-infinite {
    display: flex;
    width: max-content;
    animation: scrollInfinite 40s linear infinite;
    gap: 20px;
}
.carousel-infinite-wrapper:hover .carousel-infinite {
    /* No se detendrá al pasar el ratón */
    animation-play-state: running !important;
}
.opinion-card {
    width: 320px;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.opinion-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
}
.op-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.user-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #f0f4ff;
    letter-spacing: 0.5px;
}
.op-icon {
    opacity: 0.8;
}
.op-icon .ig-icon { color: #E1306C; }
.op-icon .tiktok-icon { color: #fff; }
.op-icon .google-icon { color: #4285F4; }
.opinion-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    font-style: italic;
    margin: 0;
}

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

/* RESPONSIVE AJUSTES (Location, Vender) */
@media (max-width: 992px) {
    .location-container {
        grid-template-columns: 1fr;
    }
    .image-column, .map-column {
        height: 350px;
    }
    .vender-container {
        flex-direction: column;
    }
    .vender-left, .vender-right {
        padding: 2.5rem;
        border-left: none;
    }
    .vender-right {
        border-top: 1px solid var(--border-subtle);
    }
}
@media (max-width: 576px) {
    .vender-left h2 {
        font-size: 2rem;
    }
    .vender-left, .vender-right {
        padding: 1.5rem;
    }
    .btn-whatsapp-cta {
        width: 100%;
        font-size: 1rem;
    }
    .carousel-infinite-wrapper::before,
    .carousel-infinite-wrapper::after {
        width: 50px;
    }
}

/* =========================================
   FINANCE SECTION
========================================= */
.finance-section {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
}
.finance-container {
    background: linear-gradient(180deg, rgba(20,24,35,0.7) 0%, rgba(10,13,20,0.95) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 3rem 4rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.finance-accordion-container {
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
}
.finance-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.summary-content {
    flex: 1;
}
.summary-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.expand-hint {
    font-size: 0.95rem;
    color: var(--accent);
    margin-top: 8px;
    font-style: italic;
}
.summary-icon svg {
    width: 32px; height: 32px;
    color: var(--accent);
    transition: transform 0.4s ease;
}
.finance-expanded-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-10px);
}
.finance-accordion-container.expanded .finance-expanded-content {
    max-height: 2500px;
    opacity: 1;
    margin-top: 3rem;
    transform: translateY(0);
}
.finance-accordion-container.expanded .summary-icon svg {
    transform: rotate(180deg);
}

.finance-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.finance-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}
.finance-divider {
    margin: 0 auto 2rem auto;
}
.finance-subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 1.5rem;
}
.finance-intro {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.finance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}
.finance-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.finance-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
    height: 100%;
}
.finance-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
}
.finance-card-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}
.finance-card-icon svg { width: 32px; height: 32px; }
.finance-card h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 1.5rem;
}
.finance-option h5 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.finance-option h5::before {
    content: '';
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-glow);
}
.finance-option ul {
    list-style: none;
    padding: 0; margin: 0;
}
.finance-option ul li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.4;
}
.finance-option ul li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: var(--accent-soft);
}
.mt-3 { margin-top: 1.5rem; }
.finance-checklist {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.finance-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.4;
}
.finance-checklist li svg {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}
.finance-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5rem;
}
.finance-fields span {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
}
.finance-note {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: auto;
    font-style: italic;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.05) 0%, transparent 100%);
    padding: 15px;
    border-radius: 12px;
    border-left: 3px solid var(--accent);
}
.doc-checklist {
    list-style: none; padding: 0; margin: 0;
}
.doc-checklist li {
    font-size: 0.95rem; color: var(--text-secondary);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
    display: flex; align-items: center; gap: 12px;
}
.doc-checklist li:last-child {
    border-bottom: none;
}
.doc-checklist li::before {
    content: '✓';
    color: #25D366;
    font-weight: bold;
    background: rgba(37, 211, 102, 0.1);
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 0.85rem;
}
.finance-cta-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

/* Map overlay text */
.map-overlay-card {
    position: absolute;
    top: 15px; left: 15px;
    background: rgba(10, 13, 20, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 15px 20px;
    color: white;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    z-index: 10;
    pointer-events: none;
    line-height: 1.5;
}
.map-overlay-card strong {
    color: var(--accent);
    font-size: 1.1rem;
    font-family: 'Space Grotesk', sans-serif;
    display: block;
    margin-bottom: 2px;
}
.map-card iframe {
    border-radius: inherit;
}

/* Video styling helpers */
.location-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

@media (max-width: 1024px) {
    .finance-grid { grid-template-columns: 1fr; }
    .finance-container { padding: 2.5rem; }
}
@media (max-width: 768px) {
    .finance-header h2 { font-size: 2rem; }
    .finance-container { padding: 1.5rem; }
    .finance-card { padding: 1.5rem; }
}

/* ==================================================
   ROULETTE SECTION (SORTEO)
   ================================================== */
/* ==================================================
   ROULETTE SECTION (SORTEO PREMIUM)
   ================================================== */
.roulette-section {
    padding: 80px 5%;
    max-width: 1400px;
    margin: 0 auto;
}
.roulette-container {
    background: linear-gradient(180deg, rgba(20,24,35,0.7) 0%, rgba(5,8,16,0.98) 100%);
    border: 1px solid rgba(78, 205, 196, 0.15);
    border-radius: 32px;
    padding: 4rem 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 30px rgba(78, 205, 196, 0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.roulette-container::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.3;
}

.roulette-header {
    margin-bottom: 4rem;
}
.roulette-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 15px;
    letter-spacing: -1px;
}
.roulette-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.roulette-main-wrapper {
    position: relative;
    min-height: 400px;
}

/* Stage 1: Wheel */
.roulette-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    animation: fadeIn 0.8s ease;
}

.roulette-wheel-outer-glow {
    position: relative;
    display: inline-block;
    padding: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.1) 0%, transparent 70%);
}

.roulette-wheel-container {
    position: relative;
    width: 420px;
    height: 420px;
    margin: 0 auto;
}

.roulette-pointer-premium {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 10px var(--accent));
}

.roulette-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 8px solid #1a1f2e;
    box-shadow: 
        0 0 0 4px rgba(78, 205, 196, 0.2),
        0 20px 50px rgba(0,0,0,0.8),
        inset 0 0 30px rgba(0,0,0,0.6);
    background: #0f172a;
    position: relative;
    overflow: hidden;
    transition: transform 6s cubic-bezier(0.15, 0, 0.15, 1);
    transform: rotate(0deg);
}

.wheel-center-dot-premium {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: #0f172a;
    border: 4px solid var(--accent);
    border-radius: 50%;
    z-index: 15;
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}
.wheel-center-dot-premium .inner-dot {
    width: 15px;
    height: 15px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
}

.wheel-labels {
    position: absolute;
    width: 100%;
    height: 100%;
}
.wheel-label {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 50%;
    height: 40px;
    margin-top: -20px; 
    transform-origin: 0% 50%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 40px;
    box-sizing: border-box;
}
.wheel-label span {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.wheel-label.is-win span {
    color: var(--accent);
    text-shadow: 0 0 8px rgba(78, 205, 196, 0.5);
}

.roulette-actions {
    margin-top: 3rem;
}
.btn-spin-premium {
    padding: 1.4rem 4rem;
    font-size: 1.3rem;
    border-radius: 50px;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn-spin-premium:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(78, 205, 196, 0.5);
}
.btn-spin-premium:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #333;
    color: #777;
    box-shadow: none;
}

.roulette-timer-msg {
    margin-top: 15px;
    color: var(--accent);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Stage 2: Selection */
.selection-header {
    margin-bottom: 2.5rem;
}
.selection-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 10px;
    font-family: 'Space Grotesk', sans-serif;
}
.selection-instructions {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.car-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-height: 600px;
    overflow-y: auto;
    padding: 20px;
    background: rgba(0,0,0,0.3);
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.05);
    margin: 0 auto;
    width: 100%;
}
.car-selection-grid::-webkit-scrollbar {
    width: 6px;
}
.car-selection-grid::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

.selection-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: left;
    display: flex;
    flex-direction: column;
}
.selection-card:hover {
    background: rgba(78, 205, 196, 0.08);
    border-color: var(--accent);
    transform: translateY(-5px);
}
.selection-card .car-img-box {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}
.selection-card .car-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.selection-card h4 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
}
.selection-card .car-price {
    font-weight: 700;
    color: var(--accent);
    font-size: 1.3rem;
}
.selection-card .btn-choose {
    margin-top: 15px;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 10px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
}
.selection-card:hover .btn-choose {
    background: var(--accent);
    color: #000;
}

/* Stage 3: Result */
.final-prize-container {
    background: rgba(10,13,20,0.8);
    border: 2px solid var(--accent);
    border-radius: 32px;
    padding: 4rem;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 0 60px rgba(78, 205, 196, 0.15);
    text-align: center;
}
.final-car-preview {
    display: flex;
    gap: 40px;
    align-items: center;
    text-align: left;
    margin-bottom: 3rem;
}
.final-car-preview img {
    width: 400px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}
.final-car-info {
    flex: 1;
}
.final-car-info h3 {
    font-size: 2.2rem;
    margin: 0 0 20px 0;
    font-family: 'Space Grotesk', sans-serif;
}
.final-price-breakdown {
    background: rgba(0,0,0,0.4);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}
.breakdown-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #888;
}
.breakdown-row.discount { color: var(--accent); font-weight: 700; }
.breakdown-row.total {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 20px;
    padding-top: 20px;
    font-size: 2.5rem;
    color: #fff;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
}

.prize-code-banner {
    background: #000;
    border: 2px dashed rgba(78, 205, 196, 0.4);
    padding: 20px;
    border-radius: 16px;
    font-family: monospace;
    font-size: 1.6rem;
    color: var(--accent);
    margin-bottom: 30px;
    letter-spacing: 4px;
    box-shadow: inset 0 0 15px rgba(78, 205, 196, 0.1);
}

.roulette-legal-text-premium {
    margin-top: 4rem;
    color: #555;
    font-size: 0.85rem;
    line-height: 1.8;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
}

/* Confetti / Celebration */
.confetti-canvas {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 10000;
}

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

@media (max-width: 1024px) {
    .final-car-preview { flex-direction: column; text-align: center; }
    .final-car-preview img { width: 100%; }
}

@media (max-width: 768px) {
    .roulette-title { font-size: 2rem; }
    .roulette-wheel-container { width: 320px; height: 320px; }
    .wheel-label span { font-size: 0.85rem; padding-right: 30px; }
    .roulette-container { padding: 3rem 1.2rem; }
    .final-car-info h3 { font-size: 1.8rem; }
    .breakdown-row.total { font-size: 2rem; }
    .btn-spin-premium { padding: 1.2rem 2.5rem; font-size: 1.1rem; }
}

/* =========================================
   CARRUSEL DE MARCAS — INFINITO & COLOR
   ========================================= */
.brand-carousel-container {
    width: 100%;
    overflow: hidden;
    background: transparent;
    padding: 40px 0;
    position: relative;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 40px;
}

.brand-carousel-track {
    display: flex;
    width: max-content;
    animation: scroll-brands 40s linear infinite;
    align-items: center;
}

.brand-logo-item {
    width: 160px;
    height: 100px;
    margin: 0 10px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(5px);
}

.brand-logo-item img {
    max-height: 50px;
    max-width: 80%;
    width: auto;
    object-fit: contain;
    filter: none !important; /* Color original */
    opacity: 0.85;
    transition: all 0.3s ease;
}

.brand-logo-item:hover {
    background: rgba(78, 205, 196, 0.05);
    border-color: rgba(78, 205, 196, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.brand-logo-item:hover img {
    opacity: 1;
    transform: scale(1.05);
}

@keyframes scroll-brands {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-180px * 20)); }
}

/* Pausar al pasar el mouse si se prefiere, aunque el usuario pidió que fuera 'vivo' */
.brand-carousel-container:hover .brand-carousel-track {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .brand-carousel-container {
        padding: 30px 0;
    }
    .brand-logo-item {
        width: 120px;
        height: 70px;
        margin: 0 8px;
    }
    .brand-logo-item img {
        max-height: 35px;
    }
    @keyframes scroll-brands {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-136px * 20)); } /* 120 + 8 + 8 = 136 */
    }
}

/* Responsive About Modal */
@media (max-width: 768px) {
    .about-modal-content > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .about-contact-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    .about-pillars-grid {
        grid-template-columns: 1fr !important;
    }
}


/* Arreglos Responsive Ruleta */
#stage-selection, #stage-result, #stage-random-offer {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

#car-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 10px;
  scrollbar-width: thin;
}

.selection-card {
  background: var(--card-bg, #111);
  border: 1px solid var(--border-subtle, #333);
  border-radius: 12px;
  padding: 15px;
  transition: transform 0.3s ease;
}

.selection-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent, #4ECDC4);
}

.selection-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.final-prize-container {
  background: linear-gradient(145deg, #0a0f18 0%, #050810 100%);
  border: 1px solid var(--accent, #4ECDC4);
  border-radius: 16px;
  padding: 30px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(78, 205, 196, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final-car-preview img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
}

.prize-code-banner {
  background: rgba(78, 205, 196, 0.1);
  color: var(--accent, #4ECDC4);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 2px;
  margin: 20px 0;
  border: 1px dashed var(--accent, #4ECDC4);
}

.btn-secondary {
  background: transparent;
  color: #999;
  border: 1px solid #555;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  margin-top: 15px;
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  color: #fff;
  border-color: #fff;
}
