:root {
    --bg-main: #0B0D12;
    --bg-surface: #131722;
    --bg-card: #161B26;
    --border-subtle: #242B3D;
    --accent-orange: #FF6B00;
    --accent-gold: #E5A93B;
    --accent-gradient: linear-gradient(135deg, #F5B841 0%, #E06D1B 100%);
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --header-bg: #0B0D12;
    --header-text: #F8FAFC;
    --header-subtext: #A0AEC0;
    --etiqueta-bg: #FFD700;
    --etiqueta-color: #111111;
}

body.tema-carbono_naranja {
    --bg-main: #0B0D12;
    --bg-surface: #131722;
    --bg-card: #161B26;
    --border-subtle: #242B3D;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --accent-orange: #FF6B00;
    --accent-gold: #FB923C;
    --accent-gradient: linear-gradient(135deg, #FB923C 0%, #EA580C 100%);
}
body.tema-oro_ejecutivo {
    --bg-main: #0C0B09;
    --bg-surface: #171510;
    --bg-card: #1D1A13;
    --border-subtle: #332C1E;
    --text-primary: #F8FAFC;
    --text-secondary: #A8A29E;
    --accent-orange: #D4AF37;
    --accent-gold: #F3D26B;
    --accent-gradient: linear-gradient(135deg, #F3D26B 0%, #B8860B 100%);
}
body.tema-platino_azul {
    --bg-main: #090D14;
    --bg-surface: #101826;
    --bg-card: #141E30;
    --border-subtle: #22324D;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --accent-orange: #38BDF8;
    --accent-gold: #7DD3FC;
    --accent-gradient: linear-gradient(135deg, #7DD3FC 0%, #0284C7 100%);
}
body.tema-esmeralda_pro {
    --bg-main: #080E0C;
    --bg-surface: #0F1A16;
    --bg-card: #13221C;
    --border-subtle: #1F382E;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --accent-orange: #10B981;
    --accent-gold: #6EE7B7;
    --accent-gradient: linear-gradient(135deg, #6EE7B7 0%, #059669 100%);
}
body.tema-rojo_sport {
    --bg-main: #0E090A;
    --bg-surface: #191012;
    --bg-card: #211417;
    --border-subtle: #382126;
    --text-primary: #F8FAFC;
    --text-secondary: #A1A1AA;
    --accent-orange: #EF4444;
    --accent-gold: #FCA5A5;
    --accent-gradient: linear-gradient(135deg, #F87171 0%, #DC2626 100%);
}
body.tema-blanco_puro {
    --bg-main: #F8FAFC;
    --bg-surface: #FFFFFF;
    --bg-card: #FFFFFF;
    --border-subtle: #E2E8F0;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --accent-orange: #EA580C;
    --accent-gold: #D97706;
    --accent-gradient: linear-gradient(135deg, #F59E0B 0%, #EA580C 100%);
}
body.tema-marfil_corporativo {
    --bg-main: #FAF7F2;
    --bg-surface: #FFFDF9;
    --bg-card: #FFFFFF;
    --border-subtle: #E7E0D5;
    --text-primary: #1C1917;
    --text-secondary: #57534E;
    --accent-orange: #C2410C;
    --accent-gold: #B45309;
    --accent-gradient: linear-gradient(135deg, #D97706 0%, #C2410C 100%);
}
body.tema-plata_tradicional {
    --bg-main: #F1F5F9;
    --bg-surface: #F8FAFC;
    --bg-card: #FFFFFF;
    --border-subtle: #CBD5E1;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --accent-orange: #0284C7;
    --accent-gold: #0369A1;
    --accent-gradient: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }
body { background-color: var(--bg-main); color: var(--text-primary); line-height: 1.5; padding-bottom: 84px; }
.contenedor { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* VISOR INDIVIDUAL */
.visor-individual { position: fixed; inset: 0; z-index: 9999; background: #0B0D12; display: flex; flex-direction: column; }
.visor-barra-superior { height: 58px; background: #111520; border-bottom: 1px solid #2A3246; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; gap: 12px; }
.btn-voltar-vitrine { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-orange); border: none; color: #FFFFFF; padding: 8px 14px; border-radius: 10px; font-size: 13px; font-weight: 800; cursor: pointer; flex-shrink: 0; }
.btn-voltar-vitrine:hover { filter: brightness(1.08); }
.visor-titulo-carro { font-size: 14px; font-weight: 600; color: #CBD5E1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-externa-visor { color: #94A3B8; padding: 8px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
#iframeVehiculo { width: 100%; flex: 1; border: none; background: #000; }

/* HEADER */
.site-header { background-color: var(--header-bg); color: var(--header-text); border-bottom: 1px solid var(--border-subtle); padding: 14px 0 16px; transition: background-color 0.25s ease, color 0.25s ease; }
.header-nivel-1 { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 12px; }
.logo-libre { max-height: 54px; max-width: 190px; width: auto; height: auto; object-fit: contain; cursor: pointer; border-radius: 8px; }
.btn-whatsapp-luxury { display: inline-flex; align-items: center; gap: 6px; background: #22C55E; color: #FFFFFF; text-decoration: none; font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 10px; box-shadow: 0 4px 14px rgba(34, 197, 94, 0.25); }
.header-nivel-2 { text-align: center; margin-bottom: 6px; }
.titulo-concesionario { font-size: clamp(20px, 4vw, 32px); font-weight: 900; letter-spacing: 0.8px; text-transform: uppercase; color: var(--header-text); }
.header-nivel-3 { display: flex; align-items: center; justify-content: center; position: relative; min-height: 38px; padding: 0 46px; }
.slogan-concesionario { font-size: clamp(14px, 2vw, 17px); font-weight: 500; font-style: italic; color: var(--header-subtext); text-align: center; }
.btn-lupa-luxury { position: absolute; right: 0; width: 38px; height: 38px; border-radius: 10px; background: rgba(128, 128, 128, 0.12); border: 1px solid rgba(128, 128, 128, 0.25); color: var(--header-text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.btn-lupa-luxury:hover { border-color: var(--accent-orange); color: var(--accent-orange); }

/* BUSCADOR */
.buscador-desplegable { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-subtle); }
.buscador-input-wrap { display: flex; gap: 8px; max-width: 680px; margin: 0 auto; }
.buscador-input-wrap input { flex: 1; background: var(--bg-surface); border: 1px solid var(--border-subtle); color: var(--text-primary); padding: 10px 14px; border-radius: 10px; font-size: 14px; outline: none; }
.btn-limpiar-busqueda { background: var(--bg-card); border: 1px solid var(--border-subtle); color: var(--text-secondary); padding: 0 14px; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; }

/* HERO + PIZARRA */
.hero-pizarra-seccion { padding: 18px 0 10px; }
.hero-pizarra-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 900px) {
    .hero-pizarra-grid { grid-template-columns: 1.35fr 0.9fr; gap: 20px; align-items: stretch; }
}
.multimedia-limpia-box { position: relative; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid var(--border-subtle); aspect-ratio: 16 / 9; }
.multimedia-limpia-box img, .multimedia-limpia-box video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pizarra-lectura-box { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; justify-content: center; }
.pizarra-kicker { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent-orange); margin-bottom: 8px; }
.pizarra-h1 { font-size: clamp(22px, 3.2vw, 32px); font-weight: 900; line-height: 1.15; color: var(--text-primary); margin-bottom: 10px; }
.pizarra-h3 { font-size: clamp(14px, 1.8vw, 16px); font-weight: 400; line-height: 1.5; color: var(--text-secondary); }

/* ACORDEON MARCAS */
.pared-marcas-seccion { padding: 12px 0; }
.acordeon-marcas-box { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 14px; overflow: hidden; }
.acordeon-toggle-btn { width: 100%; background: transparent; border: none; color: var(--text-primary); padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 700; font-size: 15px; }
.acordeon-titulo-wrap { display: flex; align-items: center; gap: 10px; }
.acordeon-derecha-wrap { display: flex; align-items: center; gap: 10px; }
.contador-pill { background: rgba(255, 107, 0, 0.14); color: var(--accent-orange); font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.acordeon-contenido { padding: 4px 16px 16px; border-top: 1px solid var(--border-subtle); }
.pared-marcas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); gap: 10px; padding-top: 14px; }
.marca-card-svg { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; color: var(--text-secondary); font-size: 11px; font-weight: 700; }
.marca-card-svg svg { width: 28px; height: 22px; }
.marca-card-svg.activa { border-color: var(--accent-orange); color: var(--accent-orange); background: rgba(255, 107, 0, 0.08); }

/* INVENTARIO Y TARJETAS */
.inventario-seccion { padding: 14px 0 36px; }
.seccion-cabecera { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.seccion-titulo { font-size: clamp(18px, 2.5vw, 24px); font-weight: 800; color: var(--text-primary); }
.grid-destacados-inicio { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 720px) {
    .grid-destacados-inicio { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
.grid-catalogo-medio { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }

.tarjeta-luxury { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s ease, border-color 0.2s ease; }
.tarjeta-luxury:hover { transform: translateY(-2px); border-color: var(--accent-orange); }
.tarjeta-foto-link { position: relative; aspect-ratio: 16 / 10; background: #000; overflow: hidden; cursor: pointer; }
.tarjeta-foto-link img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ETIQUETA MANUAL (controlada por ETIQUETAS + ETIQUETA_FONDO + ETIQUETA_COLOR) */
.etiqueta-manual-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    background: var(--etiqueta-bg, #FFD700);
    color: var(--etiqueta-color, #111111);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
}

/* ESCAPARATE (controlado por columna ESCAPARATE en INVENTARIO) */
.badge-escaparate {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    background: #FF6B00;
    color: #0B0D12;
    border: 1px solid rgba(11, 13, 18, 0.25);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.tarjeta-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tarjeta-marca-tag { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; color: var(--accent-gold); }
.tarjeta-modelo { font-size: 17px; font-weight: 800; color: var(--text-primary); cursor: pointer; line-height: 1.25; }
.tarjeta-ficha-linea { font-size: 12px; color: var(--text-secondary); }
.tarjeta-bottom { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tarjeta-precio { font-size: 18px; font-weight: 900; color: var(--text-primary); }
.btn-ver-detalhes-luxury { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-gradient); border: none; color: #FFFFFF; font-weight: 800; font-size: 12px; padding: 9px 14px; border-radius: 10px; cursor: pointer; }

.cta-estoque-completo-wrap { margin-top: 22px; display: flex; justify-content: center; }
.btn-estoque-completo-luxury { display: inline-flex; align-items: center; gap: 10px; background: var(--bg-surface); border: 1px solid var(--accent-orange); color: var(--text-primary); font-weight: 800; font-size: 14px; padding: 12px 22px; border-radius: 12px; cursor: pointer; }

/* PAGINACIÓN */
.paginacion-catalogo-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.btn-nav-pizarra { background: var(--bg-surface); border: 1px solid var(--border-subtle); color: var(--text-primary); padding: 8px 14px; border-radius: 10px; font-size: 13px; font-weight: 700; cursor: pointer; }
.btn-nav-pizarra.activo { background: var(--accent-orange); border-color: var(--accent-orange); color: #FFFFFF; }

/* FOOTER Y NAV INFERIOR */
.site-footer { background: var(--bg-surface); border-top: 1px solid var(--border-subtle); padding: 28px 0; text-align: center; }
.footer-titulo { font-size: 17px; font-weight: 900; margin-bottom: 6px; }
.footer-linea { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
.footer-contato { font-size: 13px; color: var(--text-secondary); margin-top: 8px; }
.footer-contato a { color: var(--accent-orange); text-decoration: none; font-weight: 700; }
.footer-acoes-celular { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.btn-footer-acao { display: inline-flex; align-items: center; gap: 7px; background: var(--bg-card); border: 1px solid var(--border-subtle); color: var(--text-primary); padding: 8px 14px; border-radius: 10px; font-size: 12px; font-weight: 700; cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease; }
.btn-footer-acao:hover { border-color: var(--accent-orange); color: var(--accent-orange); }
.footer-aviso-celular { font-size: 12px; color: var(--accent-gold); margin-top: 10px; max-width: 540px; margin-left: auto; margin-right: auto; }
.footer-copy { font-size: 12px; color: var(--text-secondary); margin-top: 12px; opacity: 0.8; }

.bottom-nav-luxury { position: fixed; bottom: 0; left: 0; right: 0; height: 64px; background: var(--bg-surface); border-top: 1px solid var(--border-subtle); display: grid; grid-template-columns: repeat(3, 1fr); z-index: 900; }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: transparent; border: none; color: var(--text-secondary); text-decoration: none; font-size: 11px; font-weight: 700; cursor: pointer; }
.bottom-nav-item.activo { color: var(--accent-orange); }