/*
Theme Name: DVE TW
Theme URI: https://dubaivehicleexport.lndo.site
Description: Theme DVE con diseño Luxury-Look. Pearl White (#FAFAF7), Amber Gold (#E0A856), Playfair Display + Montserrat.
Author: DVE
Version: 1.2.0
Text Domain: dve-tw
*/

/* ============================================================
   TOKENS — Luxury-Look
   ============================================================ */
:root {
  /* Fondo y superficie — cambian con el tema */
  --ll-bg: #fafaf7;
  --ll-card: #ffffff;
  --ll-nav-bg: rgba(250, 250, 247, 0.92);
  /* Siempre oscuro (hero, footer, secciones dark) */
  --ll-bg-dark: #0a0a0a;
  --ll-card-dark: #121212;
  /* Texto — cambian con el tema */
  --ll-text: #121212;
  --ll-text-inv: #fafaf7;
  --ll-muted: #6b7280;
  /* Acento — igual en ambos temas */
  --ll-gold: #e0a856;
  --ll-gold-dark: #c8922c;
  /* Bordes y sombras — cambian con el tema */
  --ll-border: rgba(18, 18, 18, 0.08);
  --ll-border-inv: rgba(255, 255, 255, 0.08);
  --ll-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --ll-shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.14);
  /* Inputs — cambian con el tema */
  --ll-input-bg: #f9fafb;
  --ll-input-border: #e5e7eb;
  /* Tipografía */
  --ff-serif: "Playfair Display", Georgia, serif;
  --ff-sans: "Montserrat", "Segoe UI", sans-serif;
}

/* ============================================================
   MODO OSCURO — sobreescribe vars semánticas
   Activado añadiendo la clase .dark a <html>
   ============================================================ */
html.dark {
  --ll-bg: #0a0a0a;
  --ll-card: #1a1a1a;
  --ll-nav-bg: rgba(10, 10, 10, 0.92);
  --ll-text: #fafaf7;
  --ll-text-inv: #121212;
  --ll-muted: #9ca3af;
  --ll-border: rgba(255, 255, 255, 0.1);
  --ll-border-inv: rgba(255, 255, 255, 0.06);
  --ll-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --ll-shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
  --ll-input-bg: #222222;
  --ll-input-border: rgba(255, 255, 255, 0.12);
  /* --ll-bg-dark, --ll-card-dark, --ll-gold se mantienen igual */
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--ll-bg);
  color: var(--ll-text);
  font-family: var(--ff-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition:
    background-color 0.4s ease,
    color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--ff-serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ll-text);
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
button {
  cursor: pointer;
  font-family: inherit;
}
input,
textarea,
select {
  font-family: inherit;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.ll-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.ll-grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

.ll-col-8 {
  grid-column: span 8;
}
.ll-col-4 {
  grid-column: span 4;
}

@media (max-width: 1024px) {
  .ll-col-8,
  .ll-col-4 {
    grid-column: span 12;
  }
}

.ll-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.ll-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.ll-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .ll-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   NAVEGACIÓN — estilos en assets/css/components/nav.css
   ============================================================ */

/* ============================================================
   HERO
   ============================================================ */
.ll-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0a0a0a;
}

.ll-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0.35) 50%,
      var(--ll-bg) 100%
    ),
    radial-gradient(
      ellipse at 70% 40%,
      rgba(224, 168, 86, 0.18) 0%,
      transparent 60%
    );
}

.ll-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem;
  color: white;
  max-width: 900px;
}

.ll-hero-eyebrow {
  font-family: var(--ff-sans);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5em;
  color: var(--ll-gold);
  margin-bottom: 1.5rem;
}

.ll-hero h1 {
  font-family: var(--ff-serif);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: white;
  margin-bottom: 1.5rem;
}

.ll-hero h1 .ll-italic-gold {
  font-style: italic;
  font-weight: 300;
  color: var(--ll-gold);
  display: block;
  margin-top: 0.3em;
}

.ll-hero p {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.ll-hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   BOTONES
   ============================================================ */
.ll-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  font-family: var(--ff-sans);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: all 0.4s;
  border: none;
  outline: none;
}

.ll-btn-primary {
  background: var(--ll-gold);
  color: var(--ll-text);
}
.ll-btn-primary:hover {
  background: white;
  color: var(--ll-text);
}

.ll-btn-outline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.ll-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.ll-btn-dark {
  background: var(--ll-text);
  color: var(--ll-text-inv);
}
.ll-btn-dark:hover {
  background: var(--ll-gold);
  color: var(--ll-text);
}

.ll-btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.6rem;
}

/* SVGs inline dentro de botones y elementos de lista:
   el atributo width/height de la función dve_icon_svg usa '1em' por defecto,
   pero forzamos aquí para consistencia cross-browser. */
.ll-btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
.ll-flex-center svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
.ll-nav-back svg,
.ll-nav-cta svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* ============================================================
   MÉTRICAS BAR
   ============================================================ */
.ll-metrics {
  background: var(--ll-card);
  border-bottom: 1px solid var(--ll-border);
  padding: 2.5rem 0;
}

.ll-metric {
  text-align: center;
}

.ll-metric-value {
  font-family: var(--ff-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ll-gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.ll-metric-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ll-muted);
}

/* ============================================================
   SECCIONES
   ============================================================ */
.ll-section {
  padding: 5rem 0;
}

.ll-section-title {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.ll-section-title .ll-gold {
  color: var(--ll-gold);
}
.ll-section-title .ll-italic {
  font-style: italic;
  font-weight: 300;
}

.ll-section-dark {
  background: var(--ll-bg-dark);
  color: var(--ll-text-inv);
}

.ll-section-dark h1,
.ll-section-dark h2,
.ll-section-dark h3,
.ll-section-dark h4 {
  color: var(--ll-text-inv);
}

.ll-section-dark .ll-muted {
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   CARDS
   ============================================================ */
.ll-card {
  background: var(--ll-card);
  border: 1px solid var(--ll-border);
  padding: 2rem;
  box-shadow: var(--ll-shadow);
}

.ll-card-dark {
  background: var(--ll-card-dark);
  border-color: var(--ll-border-inv);
}

.ll-card-gold {
  background: var(--ll-gold);
  color: var(--ll-text);
  border-color: transparent;
}

/* ============================================================
   SHOWCASE VEHÍCULOS (portada)
   ============================================================ */
.ll-showcase-section {
  padding: 4rem 0 2rem;
}

.ll-showcase-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.ll-showcase-head h3 {
  font-family: var(--ff-serif);
  font-size: 1.4rem;
  font-weight: 700;
}

.ll-showcase-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 320px);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--ll-gold) var(--ll-border);
  scroll-snap-type: x proximity;
}

.ll-showcase-card {
  background: var(--ll-card);
  border: 1px solid var(--ll-border);
  overflow: hidden;
  scroll-snap-align: start;
  transition:
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: var(--ll-shadow);
}

.ll-showcase-card:hover {
  border-color: var(--ll-gold);
  transform: translateY(-2px);
  box-shadow: var(--ll-shadow-xl);
}

.ll-showcase-link {
  display: grid;
  grid-template-columns: 110px 1fr;
  min-height: 130px;
  color: inherit;
  text-decoration: none;
}

.ll-showcase-thumb {
  width: 110px;
  height: 100%;
  min-height: 130px;
  object-fit: cover;
  border-right: 1px solid var(--ll-border);
}

.ll-showcase-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: #f5f5f2;
  border-right: 1px solid var(--ll-border);
}

.ll-showcase-body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ll-showcase-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  background: rgba(224, 168, 86, 0.1);
  color: var(--ll-gold-dark);
  border: 1px solid rgba(224, 168, 86, 0.3);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ll-showcase-title {
  font-family: var(--ff-serif);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ll-text);
  margin: 0;
}

.ll-showcase-subline {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--ll-muted);
}

.ll-showcase-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--ll-border);
  padding-top: 0.4rem;
  margin-top: 0.2rem;
  font-size: 0.72rem;
}

.ll-metric-profit-pos {
  color: #16a34a;
  font-weight: 700;
}
.ll-metric-profit-neg {
  color: #dc2626;
  font-weight: 700;
}
.ll-metric-profit-neutral {
  color: var(--ll-muted);
}

/* ============================================================
   SHOWCASE RANK
   ============================================================ */
.ll-rank {
  font-family: var(--ff-serif);
  color: var(--ll-gold);
  font-weight: 700;
  font-size: 0.8rem;
}

/* ============================================================
   HOME — estilos movidos a assets/css/components/home.css
   ============================================================ */

/* ============================================================
   SECCIÓN VENTAJAS (portada)
   ============================================================ */
.ll-feature {
  display: flex;
  gap: 1.5rem;
}

.ll-feature-icon {
  width: 3rem;
  height: 3rem;
  background: var(--ll-text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ll-feature-icon svg {
  color: var(--ll-gold);
  width: 1.25rem;
  height: 1.25rem;
}

.ll-feature-title {
  font-family: var(--ff-serif);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.ll-feature-desc {
  font-size: 0.85rem;
  color: var(--ll-muted);
  line-height: 1.6;
}

/* ============================================================
   SECCIÓN DARK (CTA, rentabilidad)
   ============================================================ */
.ll-dark-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  padding: 2.5rem;
}

/* ============================================================
   FICHA DE VEHÍCULO — Galería
   ============================================================ */
.ll-gallery-main {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ll-gallery-main-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  background: #111;
}

.ll-gallery-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.ll-gallery-main-img:hover img {
  transform: scale(1.04);
}

.ll-gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ll-gallery-thumb {
  aspect-ratio: 19 / 10;
  overflow: hidden;
  position: relative;
  background: #111;
  cursor: pointer;
}

.ll-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transition: opacity 0.3s;
}
.ll-gallery-thumb:hover img {
  opacity: 1;
}

.ll-gallery-thumb-more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

@media (max-width: 640px) {
  .ll-gallery-main {
    grid-template-columns: 1fr;
  }
  .ll-gallery-thumbs {
    flex-direction: row;
  }
}

/* ============================================================
   FICHA — SPECS RÁPIDAS
   ============================================================ */
.ll-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.ll-spec-item {
  background: var(--ll-card-dark);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: border-color 0.2s;
}
.ll-spec-item:hover {
  border-color: rgba(224, 168, 86, 0.3);
}

.ll-spec-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ll-gold);
}

.ll-spec-header svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.ll-spec-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #6b7280;
}

.ll-spec-value {
  font-family: var(--ff-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings:
    "lnum" 1,
    "tnum" 1;
}

/* ============================================================
   FICHA — ACORDEÓN
   ============================================================ */
.ll-accordion {
  border-top: 1px solid var(--ll-border);
}

.ll-accordion-item {
  border-bottom: 1px solid var(--ll-border);
}

.ll-accordion summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  font-family: var(--ff-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ll-text);
  cursor: pointer;
  transition: color 0.2s;
}
.ll-accordion summary:hover {
  color: var(--ll-gold);
}
.ll-accordion summary::-webkit-details-marker {
  display: none;
}

.ll-accordion-icon {
  font-size: 1.2rem;
  color: var(--ll-muted);
  transition: transform 0.3s;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

details[open] .ll-accordion-icon {
  transform: rotate(180deg);
}

.ll-accordion-body {
  padding-bottom: 1.5rem;
}

/* ============================================================
   FICHA — SIDEBAR CALCULADORA
   ============================================================ */
.ll-calc-card {
  background: var(--ll-card);
  border: 1px solid rgba(224, 168, 86, 0.2);
  padding: 2rem;
  box-shadow: var(--ll-shadow-xl);
  position: relative;
  overflow: hidden;
}

.ll-calc-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--ll-gold);
  color: var(--ll-text);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.35rem 0.75rem;
}

.ll-calc-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.ll-calc-header-bar {
  width: 0.25rem;
  height: 2rem;
  background: var(--ll-gold);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.ll-calc-title {
  font-family: var(--ff-serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ll-text);
}

.ll-calc-title span {
  color: var(--ll-gold);
}

.ll-price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0.75rem 0;
}

.ll-price-row-border {
  border-bottom: 1px solid var(--ll-border);
}

.ll-price-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ll-muted);
}

.ll-price-value {
  font-family: var(--ff-sans);
  font-size: 1.2rem;
  color: var(--ll-text);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings:
    "lnum" 1,
    "tnum" 1;
  letter-spacing: 0.01em;
}

.ll-price-value-muted {
  font-family: var(--ff-sans);
  font-size: 1.2rem;
  color: var(--ll-muted);
  text-decoration: none;
  opacity: 0.85;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings:
    "lnum" 1,
    "tnum" 1;
  letter-spacing: 0.01em;
}

.ll-price-total-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ll-gold);
}

.ll-price-total-value {
  font-family: var(--ff-sans);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ll-text);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings:
    "lnum" 1,
    "tnum" 1;
  letter-spacing: 0.01em;
}

.ll-savings-block {
  background: var(--ll-gold);
  color: var(--ll-text);
  position: relative;
  overflow: hidden;
  margin-top: 0.5rem;
}

.ll-savings-content {
  padding: 1.5rem;
}

.ll-savings-eyebrow {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 0.25rem;
  opacity: 0.7;
}

.ll-savings-amount {
  font-family: var(--ff-serif);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.ll-savings-roi {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.ll-savings-roi-value {
  font-family: var(--ff-serif);
  font-size: 1.1rem;
  font-weight: 700;
}

.ll-savings-neg .ll-savings-amount {
  color: #7f1d1d;
}

/* Desglose colapsable */
.ll-breakdown-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  background: transparent;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(0, 0, 0, 0.55);
  transition: color 0.2s;
  cursor: pointer;
}
.ll-breakdown-toggle:hover {
  color: rgba(0, 0, 0, 0.8);
}

.ll-breakdown-body {
  padding: 0 1.5rem 1.5rem;
  background: rgba(0, 0, 0, 0.06);
}

.ll-breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: rgba(0, 0, 0, 0.65);
  padding: 0.3rem 0;
}

.ll-breakdown-row strong {
  font-weight: 700;
}

.ll-breakdown-note {
  font-size: 0.65rem;
  color: rgba(0, 0, 0, 0.35);
  font-style: italic;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 0.4rem;
  display: flex;
  justify-content: space-between;
}

/* Estado rentabilidad negativa / precio no disponible */
.ll-savings-block.ll-no-data {
  background: #f5f5f2;
  border: 1px solid var(--ll-border);
}

.ll-savings-block.ll-no-data .ll-savings-eyebrow {
  color: var(--ll-muted);
}
.ll-savings-block.ll-no-data .ll-savings-amount {
  font-size: 1.4rem;
  color: var(--ll-muted);
}

/* Market price traceability badges */
.ll-mp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.ll-mp-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ll-mp-badge-green {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.ll-mp-badge-yellow {
  background: rgba(234, 179, 8, 0.12);
  color: #b45309;
  border: 1px solid rgba(234, 179, 8, 0.25);
}
.ll-mp-badge-red {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.ll-mp-badge-gray {
  background: rgba(156, 163, 175, 0.12);
  color: #6b7280;
  border: 1px solid rgba(156, 163, 175, 0.25);
}
.ll-mp-badge-outline {
  background: transparent;
  color: var(--ll-gold-dark);
  border: 1px solid var(--ll-gold);
}
/* Pill admin — solo visible para editores/admins (fuente interna) */
.ll-mp-badge-admin {
  background: rgba(224, 168, 86, 0.12);
  color: var(--ll-gold);
  border: 1px solid rgba(224, 168, 86, 0.35);
  font-size: 0.58rem;
  opacity: 0.75;
}
/* Copy contextual de rango de mercado (blend manual/mercado) */
.ll-mp-range {
  font-size: 0.72rem;
  color: var(--ll-muted);
  margin-top: 0.35rem;
  line-height: 1.4;
  font-family: var(--ff-sans);
}
.ll-mp-range strong {
  color: var(--ll-text);
  font-weight: 600;
}

/* ============================================================
   FICHA — FORMULARIO LEAD
   ============================================================ */
.ll-lead-card {
  background: var(--ll-card);
  border: 1px solid var(--ll-border);
  padding: 2rem;
  box-shadow: var(--ll-shadow-xl);
}

.ll-lead-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ll-lead-icon {
  width: 2.75rem;
  height: 2.75rem;
  background: var(--ll-text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ll-lead-title {
  font-family: var(--ff-serif);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}
.ll-lead-subtitle {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ll-gold);
  margin-top: 0.4rem;
}

.ll-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.ll-form-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ll-muted);
}

.ll-form-input {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--ll-input-bg);
  border: 1px solid var(--ll-input-border);
  color: var(--ll-text);
  font-size: 0.875rem;
  font-weight: 500;
  transition:
    border-color 0.2s,
    background 0.2s;
  outline: none;
}
.ll-form-input:focus {
  border-color: var(--ll-gold);
  background: var(--ll-card);
}

.ll-form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 480px) {
  .ll-form-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FICHA — METADATOS (referencias de mercado modal)
   ============================================================ */
.ll-ref-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.ll-ref-table th,
.ll-ref-table td {
  border-bottom: 1px solid var(--ll-border);
  padding: 0.5rem 0.6rem;
  text-align: left;
  vertical-align: top;
}
.ll-ref-table th {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ll-muted);
}

.ll-ref-price-edit {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}
.ll-ref-price-input {
  width: 120px;
  background: var(--ll-bg-light);
  color: var(--ll-text);
  border: 1px solid var(--ll-border);
  padding: 0.3rem 0.45rem;
  font-size: 0.8rem;
}

.ll-ref-anchor {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.35rem;
  font-size: 0.65rem;
  background: rgba(224, 168, 86, 0.15);
  color: var(--ll-gold-dark);
  border: 1px solid rgba(224, 168, 86, 0.35);
}

.ll-link-sm {
  color: var(--ll-gold-dark);
  text-decoration: underline;
  font-size: 0.8rem;
  transition: color 0.2s;
}
.ll-link-sm:hover {
  color: var(--ll-gold);
}

.ll-link-btn {
  background: transparent;
  border: none;
  color: var(--ll-gold-dark);
  padding: 0;
  font: inherit;
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
}
.ll-ref-block {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--ll-border);
}
.ll-ref-search-input {
  width: 100%;
  margin: 0 0 0.6rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--ll-border);
  background: #fff;
  font-size: 0.82rem;
}
.ll-ref-search-input:focus {
  border-color: var(--ll-gold);
  outline: none;
}
.ll-ref-table-wrap {
  width: 100%;
  overflow-x: auto;
}
.ll-ref-autocomplete-results {
  border: 1px solid var(--ll-border);
  background: #fff;
  min-height: 3rem;
  max-height: 24rem;
  overflow: auto;
}
.ll-ref-suggest-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  border-bottom: 1px solid #e7e5e4;
  padding: 0.55rem 0.65rem;
}
.ll-ref-suggest-item:last-child {
  border-bottom: none;
}
.ll-ref-suggest-main {
  min-width: 0;
}
.ll-ref-suggest-actions {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  flex-shrink: 0;
}

/* ============================================================
   LIGHTBOX — modal de referencias (admin)
   ============================================================ */
.ll-lightbox {
  border: 1px solid var(--ll-border);
  border-radius: 4px;
  padding: 1.25rem;
  background: var(--ll-card);
  width: min(96vw, 1080px);
  max-width: min(96vw, 1080px);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.ll-lightbox[open] {
  margin: auto;
}
.ll-lightbox--market-refs {
  width: min(96vw, 1080px);
  max-width: min(96vw, 1080px);
}
.ll-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.ll-lightbox-close {
  display: block;
  margin-left: auto;
  margin-bottom: 0.75rem;
  background: var(--ll-text);
  color: var(--ll-bg); /* reactivo: #f9f8f5 en light, #121212 en dark — siempre contraste */
  border: none;
  width: 2rem;
  height: 2rem;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.ll-lightbox-close:hover {
  background: var(--ll-gold);
  color: #121212;
}

/* ── Modal de referencias — dark mode reactivo ─────────────────────────────── */
html.dark .ll-ref-create-form {
  background: var(--ll-bg);
}
html.dark .ll-ref-field {
  color: var(--ll-text);
}
html.dark .ll-ref-create-grid input,
html.dark .ll-ref-create-grid select,
html.dark .ll-ref-create-grid textarea {
  background: var(--ll-bg-light);
  color: var(--ll-text);
  border-color: var(--ll-border);
}
html.dark .ll-ref-create-grid input:focus,
html.dark .ll-ref-create-grid select:focus,
html.dark .ll-ref-create-grid textarea:focus {
  border-color: var(--ll-gold);
}

/* ── Botones del modal — estilos propios (WP admin CSS no se carga en frontend) */
.ll-lightbox--market-refs .button {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--ff-sans);
  border: 1px solid var(--ll-border);
  background: var(--ll-card);
  color: var(--ll-text);
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  line-height: 1.4;
  text-decoration: none;
}
.ll-lightbox--market-refs .button:hover {
  border-color: var(--ll-gold);
  color: var(--ll-gold);
}
.ll-lightbox--market-refs .button-primary {
  background: var(--ll-text);
  color: var(--ll-bg);
  border-color: var(--ll-text);
}
.ll-lightbox--market-refs .button-primary:hover {
  background: var(--ll-gold);
  border-color: var(--ll-gold);
  color: #121212;
}
.ll-lightbox--market-refs .button-secondary {
  border-color: var(--ll-gold);
  color: var(--ll-gold);
}
.ll-lightbox--market-refs .button-secondary:hover {
  background: var(--ll-gold);
  color: #121212;
}

/* ── Header sticky del modal ───────────────────────────────────────────────── */
.ll-modal-sticky-header {
  position: sticky;
  top: -1.25rem;
  z-index: 10;
  background: var(--ll-card);
  padding: 0.5rem 0 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--ll-border);
}

@media (max-width: 980px) {
  .ll-ref-create-grid {
    grid-template-columns: 1fr;
  }
  .ll-ref-suggest-item {
    flex-direction: column;
    gap: 0.45rem;
  }
  .ll-ref-suggest-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ============================================================
   LIGHTBOX — galería de imágenes
   El <dialog> cerrado ya tiene display:none nativo;
   solo aplicamos layout cuando está abierto con [open].
   ============================================================ */

/* Estado base: sólo propiedades que no interfieren con el cierre nativo */
#vehicle-gallery-lightbox {
  padding: 0;
  border: none;
  border-radius: 0;
  background: #060606;
  color: #fff;
  overflow: hidden;
}

/* Estado abierto: pantalla completa mediante position:fixed + inset:0 */
#vehicle-gallery-lightbox[open] {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  display: grid;
  grid-template-rows: 3rem 1fr auto;
}

#vehicle-gallery-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.95);
}

/* ── Topbar ─────────────────────────────────────────────── */
.ll-lb-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  background: rgba(0, 0, 0, 0.65);
  gap: 1rem;
}

.ll-lb-counter {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.ll-lb-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.ll-lb-close svg {
  width: 0.9rem;
  height: 0.9rem;
  pointer-events: none;
}
.ll-lb-close:hover {
  background: var(--ll-gold);
  border-color: var(--ll-gold);
  color: #111;
}

/* ── Stage: imagen + botones laterales ──────────────────── */
.ll-lb-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 0;
}

/* La imagen: ocupa todo el espacio disponible sin recortar */
#vehicle-gallery-lightbox-image {
  display: block;
  max-width: calc(100% - 6rem); /* deja espacio a los botones de nav */
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

/* ── Botones prev / next ─────────────────────────────────── */
.ll-lb-prev,
.ll-lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.ll-lb-prev svg,
.ll-lb-next svg {
  width: 1.2rem;
  height: 1.2rem;
  pointer-events: none;
}
.ll-lb-prev:hover,
.ll-lb-next:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
}
.ll-lb-prev:active,
.ll-lb-next:active {
  transform: translateY(-50%) scale(0.92);
}
.ll-lb-prev {
  left: 0.75rem;
}
.ll-lb-next {
  right: 0.75rem;
}

/* ── Tira de thumbnails ─────────────────────────────────── */
.ll-lb-thumbstrip {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.55);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}
.ll-lb-thumbstrip:empty {
  display: none;
}

.ll-lb-thumb {
  flex-shrink: 0;
  width: 3.5rem;
  height: 2.4rem;
  border: 2px solid transparent;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  background: #111;
  padding: 0;
  opacity: 0.5;
  scroll-snap-align: start;
  transition:
    opacity 0.2s,
    border-color 0.2s;
}
.ll-lb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ll-lb-thumb:hover {
  opacity: 0.8;
}
.ll-lb-thumb--active {
  border-color: var(--ll-gold);
  opacity: 1;
}

/* ── Responsive móvil ───────────────────────────────────── */
@media (max-width: 480px) {
  .ll-lb-prev,
  .ll-lb-next {
    width: 2.2rem;
    height: 2.2rem;
  }
  .ll-lb-prev {
    left: 0.4rem;
  }
  .ll-lb-next {
    right: 0.4rem;
  }
  #vehicle-gallery-lightbox-image {
    max-width: calc(100% - 5rem);
  }
  .ll-lb-thumb {
    width: 2.8rem;
    height: 2rem;
  }
}

/* ============================================================
   ARCHIVE
   ============================================================ */
.ll-archive-hero {
  padding: 8rem 0 3rem;
  background: var(--ll-card);
  border-bottom: 1px solid var(--ll-border);
}

.ll-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2.5rem 0;
}

.ll-vehicle-card {
  background: var(--ll-card);
  border: 1px solid var(--ll-border);
  overflow: hidden;
  transition:
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: var(--ll-shadow);
  display: flex;
  flex-direction: column;
}
.ll-vehicle-card:hover {
  border-color: var(--ll-gold);
  transform: translateY(-2px);
  box-shadow: var(--ll-shadow-xl);
}

.ll-vehicle-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #f0efe9;
}
.ll-vehicle-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.ll-vehicle-card:hover .ll-vehicle-thumb img {
  transform: scale(1.04);
}

.ll-vehicle-thumb-placeholder {
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: #f5f5f0;
  color: var(--ll-muted);
}

.ll-vehicle-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.ll-vehicle-title {
  font-family: var(--ff-serif);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ll-text);
}

.ll-vehicle-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.72rem;
  color: var(--ll-muted);
  flex-wrap: wrap;
}

.ll-vehicle-prices {
  background: var(--ll-bg);
  border: 1px solid var(--ll-border);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ll-vehicle-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}
.ll-vehicle-price-label {
  color: var(--ll-muted);
}
.ll-vehicle-price-value {
  font-weight: 700;
}
.ll-vehicle-price-accent {
  color: var(--ll-gold-dark);
  font-weight: 700;
}

/* Paginación */
.ll-pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  padding: 2rem 0;
}
.ll-pagination a,
.ll-pagination span {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--ll-border);
  font-size: 0.8rem;
  color: var(--ll-text);
  transition: all 0.2s;
}
.ll-pagination a:hover {
  border-color: var(--ll-gold);
  color: var(--ll-gold-dark);
}
.ll-pagination .current {
  background: var(--ll-gold);
  border-color: var(--ll-gold);
  color: var(--ll-text);
  font-weight: 700;
}

/* ============================================================
   FOOTER
   ============================================================ */

/* Grid del footer: 4 columnas (2fr + 1fr×3) en desktop */
.ll-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

/* Tablet: 2 columnas */
@media (max-width: 768px) {
  .ll-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* Móvil: 1 columna */
@media (max-width: 480px) {
  .ll-footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* Footer bottom también responsivo */
@media (max-width: 480px) {
  .ll-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .ll-footer-legal {
    gap: 1rem;
  }
}

.ll-footer {
  background: var(--ll-bg-dark);
  color: rgba(255, 255, 255, 0.5);
  padding: 5rem 0 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ll-footer-brand {
  font-family: var(--ff-serif);
  font-size: 2rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.04em;
  display: block;
  margin-bottom: 1rem;
}

.ll-footer-col h5 {
  font-family: var(--ff-sans);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: white;
  margin-bottom: 1.25rem;
}

.ll-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.ll-footer-col ul a {
  font-size: 0.8rem;
  transition: color 0.2s;
}
.ll-footer-col ul a:hover {
  color: white;
}

.ll-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.7rem;
}

.ll-footer-legal {
  display: flex;
  gap: 1.5rem;
}
.ll-footer-legal a {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: color 0.2s;
}
.ll-footer-legal a:hover {
  color: white;
}

/* ============================================================
   BOTONES FLOTANTES (WhatsApp, Phone)
   ============================================================ */
.ll-float-btns {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ll-float-btn {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--ll-shadow-xl);
  transition: transform 0.2s;
  border: none;
  text-decoration: none;
}
.ll-float-btn:hover {
  transform: scale(1.1);
}

.ll-float-phone {
  background: white;
  color: #121212;
  border: 1px solid var(--ll-border);
}
.ll-float-wa {
  background: #25d366;
  color: white;
}

/* SVG explícito dentro de botones flotantes */
.ll-float-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}
/* Dark mode: teléfono dorado sobre fondo oscuro */
html.dark .ll-float-phone {
  background: #1e1e1e;
  color: var(--ll-gold);
  border-color: rgba(255, 255, 255, 0.12);
}

/* ============================================================
   UTILIDADES
   ============================================================ */
.ll-pt-nav {
  padding-top: 5rem;
}
.ll-mt-section {
  margin-top: 3rem;
}
.ll-mb-section {
  margin-bottom: 3rem;
}
.ll-muted {
  color: var(--ll-muted);
}
.ll-gold {
  color: var(--ll-gold);
}
.ll-gold-dark {
  color: var(--ll-gold-dark);
}
.ll-text-sm {
  font-size: 0.875rem;
}
.ll-text-xs {
  font-size: 0.75rem;
}
.ll-text-xxs {
  font-size: 0.65rem;
}
.ll-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.ll-serif {
  font-family: var(--ff-serif);
}
.ll-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ll-stack-sm {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ll-flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.ll-flex-center {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ll-divider {
  height: 1px;
  background: var(--ll-border);
  margin: 0.75rem 0;
}
.ll-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--ll-gold);
  color: var(--ll-gold-dark);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.ll-tag-link {
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.ll-tag-link:hover,
.ll-tag-link:focus-visible {
  background: var(--ll-gold);
  color: var(--ll-text);
  border-color: var(--ll-gold);
  outline: none;
}
.ll-success {
  color: #16a34a;
}
.ll-danger {
  color: #dc2626;
}

/* Equipamiento checklist */
.ll-equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.6rem;
}
.ll-equipment-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--ll-muted);
}
.ll-equipment-item::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--ll-gold);
  flex-shrink: 0;
}

/* Ref create form */
.ll-ref-create-form {
  border: 1px solid var(--ll-border);
  padding: 0.75rem;
  background: #fafaf9;
  margin-bottom: 1rem;
}
.ll-ref-create-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.ll-ref-field {
  display: block;
  font-size: 0.72rem;
  color: #44403c;
  font-weight: 600;
}
.ll-ref-create-grid input,
.ll-ref-create-grid select,
.ll-ref-create-grid textarea {
  width: 100%;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--ll-border);
  background: white;
  font-size: 0.8rem;
  outline: none;
  margin-top: 0.25rem;
}
.ll-ref-create-grid input:focus,
.ll-ref-create-grid select:focus,
.ll-ref-create-grid textarea:focus {
  border-color: var(--ll-gold);
}

/* Galería: imagen principal con contain centrado */
.ll-gallery-main-img img {
  object-fit: contain !important;
  background: #0a0a0a;
}

/* Galería: cursor pointer en todas las imágenes clicables */
.ll-gallery-btn {
  display: block;
  position: relative;
  cursor: pointer;
  background: #0a0a0a;
  border: none;
  padding: 0;
  overflow: hidden;
}
.ll-gallery-btn img {
  transition: transform 0.3s;
}
.ll-gallery-btn:hover img {
  transform: scale(1.03);
}

/* Badge "Ver grande" sobre la imagen principal */
.ll-gallery-zoom {
  position: absolute;
  bottom: 8px;
  right: 10px;
  background: rgba(0, 0, 0, 0.72);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 4px 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.ll-gallery-btn:hover .ll-gallery-zoom {
  opacity: 1;
}

/* Indicador de navegación en imagen principal */
.ll-gallery-main-img::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  pointer-events: none;
}
.ll-gallery-main-img:hover::after {
  border-color: rgba(224, 168, 86, 0.25);
}

/* Galería completa en acordeón — grid responsive */
.ll-gallery-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.ll-gallery-full-grid .ll-gallery-btn {
  width: 100%;
  border-radius: 0;
}

.ll-gallery-full-grid .ll-gallery-btn img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

@media (max-width: 480px) {
  .ll-gallery-full-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.5rem;
  }
  .ll-gallery-full-grid .ll-gallery-btn img {
    height: 100px;
  }
}

/* Ficha hero image */
.ll-vehicle-detail-hero {
  padding-top: 7rem;
}

.ll-vehicle-head {
  margin-bottom: 2rem;
}

.ll-vehicle-meta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.ll-vehicle-detail-title {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  line-height: 1.06;
}

.ll-vehicle-detail-subtitle {
  letter-spacing: 0.3em;
}

.ll-vehicle-sidebar-sticky {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ll-vehicle-sidebar-sticky .ll-calc-card {
  margin-bottom: 0 !important;
}

@media (min-width: 1024px) {
  .ll-col-4 .ll-vehicle-sidebar-sticky {
    position: sticky;
    top: 6.5rem;
  }
}

@media (max-width: 1024px) {
  .ll-vehicle-detail-hero .ll-col-4 {
    order: -1;
    margin-bottom: 1.25rem;
  }

  .ll-vehicle-sidebar-sticky {
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .ll-vehicle-detail-hero {
    padding-top: 6.5rem;
  }

  .ll-vehicle-sidebar-sticky .ll-calc-card,
  .ll-vehicle-sidebar-sticky .ll-lead-card {
    padding: 1.25rem;
  }

  .ll-vehicle-sidebar-sticky .ll-lead-card form {
    padding-bottom: 4.25rem;
  }

  .ll-vehicle-sidebar-sticky .ll-lead-card form button[type="submit"],
  .ll-vehicle-sidebar-sticky .ll-lead-card form input[type="submit"],
  .ll-vehicle-sidebar-sticky .ll-lead-card form .mf-btn,
  .ll-vehicle-sidebar-sticky .ll-lead-card form .metform-btn,
  .ll-vehicle-sidebar-sticky .ll-lead-card form .metform-submit-btn {
    position: sticky;
    bottom: 0.5rem;
    width: 100%;
    z-index: 4;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  }
}

/* Aviso precio no disponible */
.ll-no-calc-card {
  background: #fef9ef;
  border: 1px solid rgba(224, 168, 86, 0.3);
  padding: 1.5rem;
  text-align: center;
}

/* MP warning */
.ll-mp-warning {
  padding: 0.75rem 1rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* Animación aparición */
@keyframes llFadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.ll-animate {
  animation: llFadeUp 0.4s ease both;
}

/* ============================================================
   INVENTARIO — Hero y Stats
   ============================================================ */
.ll-inv-hero {
  padding: 8rem 0 0;
  background: var(--ll-bg);
}

.ll-inv-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .ll-inv-hero-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.ll-inv-eyebrow {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--ll-gold);
  background: rgba(224, 168, 86, 0.12);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.ll-inv-brand-logo-wrap {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 1px solid var(--ll-border);
  background: var(--ll-card);
  box-shadow: var(--ll-shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  margin-bottom: 1rem;
}

.ll-inv-brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ll-inv-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.ll-inv-subtitle {
  color: var(--ll-muted);
  font-size: 0.9rem;
  font-weight: 300;
  max-width: 480px;
  line-height: 1.7;
}

.ll-inv-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--ll-border);
}
@media (min-width: 640px) {
  .ll-inv-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ll-inv-stat {
  background: var(--ll-card);
  border: 1px solid var(--ll-border);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--ll-shadow);
}

.ll-inv-stat-num {
  display: block;
  font-family: var(--ff-serif);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--ll-text);
}

.ll-inv-stat-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ll-muted);
}

/* ============================================================
   INVENTARIO — Filtros colapsables
   ============================================================ */
.ll-inv-filters {
  padding: 3rem 0 0;
}

.ll-inv-filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--ll-card);
  border: 1px solid var(--ll-border);
  padding: 1.25rem 1.75rem;
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.ll-inv-filters-header::-webkit-details-marker {
  display: none;
}
details[open] > .ll-inv-filters-header {
  border-bottom: none;
}

.ll-inv-filters-title {
  font-family: var(--ff-serif);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.ll-inv-filter-badge {
  font-family: var(--ff-sans);
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--ll-gold);
  color: #121212;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.ll-inv-filters-toggle {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ll-muted);
  transition: color 0.2s;
}
.ll-inv-filters-toggle-open {
  display: inline;
}
.ll-inv-filters-toggle-closed {
  display: none;
}
details[open] .ll-inv-filters-toggle-open {
  display: none;
}
details[open] .ll-inv-filters-toggle-closed {
  display: inline;
}
.ll-inv-filters-header:hover .ll-inv-filters-toggle {
  color: var(--ll-gold);
}

.ll-inv-filters-body {
  background: var(--ll-card);
  border: 1px solid var(--ll-border);
  border-top: none;
  padding: 2rem;
  box-shadow: var(--ll-shadow-xl);
}

.ll-inv-filters-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .ll-inv-filters-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .ll-inv-filters-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.ll-inv-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ll-inv-filter-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ll-muted);
}

.ll-inv-filter-select {
  width: 100%;
  background: var(--ll-input-bg);
  border: 1px solid var(--ll-input-border);
  color: var(--ll-text);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  outline: none;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s;
}
.ll-inv-filter-select:focus {
  border-color: var(--ll-gold);
}

.ll-inv-filters-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .ll-inv-filters-actions {
    flex-direction: row;
  }
}
.ll-inv-filters-actions .ll-btn {
  flex: 1;
  justify-content: center;
}

/* Contador circular de filtros activos en la cabecera del panel */
.ll-inv-filter-count {
  font-family: var(--ff-sans);
  font-size: 0.6rem;
  font-weight: 700;
  background: var(--ll-gold);
  color: #121212;
  min-width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 0.25rem;
}

/* Barra de filtros activos — siempre visible cuando hay filtros */
.ll-inv-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.75rem;
  background: var(--ll-card);
  border: 1px solid var(--ll-border);
  border-top: none;
}

.ll-inv-active-filters-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ll-muted);
  white-space: nowrap;
}

/* Badge removible: enlace con × para quitar ese filtro */
.ll-inv-filter-badge--removable {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--ff-sans);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--ll-gold);
  color: #121212;
  padding: 0.25rem 0.5rem 0.25rem 0.65rem;
  border-radius: 4px;
  text-decoration: none;
  transition:
    background 0.18s,
    opacity 0.18s;
  cursor: pointer;
}
.ll-inv-filter-badge--removable:hover {
  background: #b8922e;
  color: #000;
}
.ll-inv-filter-badge--removable span {
  font-size: 0.9em;
  font-weight: 900;
  opacity: 0.55;
  line-height: 1;
  transition: opacity 0.18s;
}
.ll-inv-filter-badge--removable:hover span {
  opacity: 1;
}

/* Enlace "Limpiar todos" al final de la barra */
.ll-inv-active-filters-clear {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ll-muted);
  text-decoration: none;
  margin-left: auto;
  white-space: nowrap;
  transition: color 0.18s;
}
.ll-inv-active-filters-clear:hover {
  color: var(--ll-gold);
}

/* ============================================================
   INVENTARIO — Grid de cards
   ============================================================ */
.ll-inv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
}
@media (min-width: 640px) {
  .ll-inv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .ll-inv-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ll-inv-card {
  background: var(--ll-card);
  border: 1px solid var(--ll-border);
  overflow: hidden;
  box-shadow: var(--ll-shadow);
  transition:
    border-color 0.45s ease,
    box-shadow 0.45s ease,
    transform 0.45s ease;
}
.ll-inv-card:hover {
  border-color: rgba(224, 168, 86, 0.5);
  box-shadow: var(--ll-shadow-xl);
  transform: translateY(-2px);
}

.ll-inv-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.ll-inv-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  background: #111;
}
.ll-inv-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition:
    transform 1s ease,
    filter 0.45s ease;
}
.ll-inv-card:hover .ll-inv-card-img img {
  transform: scale(1.08);
  filter: grayscale(0);
}

/* Badge ROI (verde, sólo cuando positivo) */
.ll-inv-roi-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #25d366;
  color: #121212;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  z-index: 1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}
.ll-inv-roi-badge svg {
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
}

/* Overlay "Explorar Activo" */
.ll-inv-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
  padding: 1.5rem;
}
.ll-inv-card:hover .ll-inv-card-overlay {
  opacity: 1;
}

.ll-inv-card-overlay-text {
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border: 1px solid white;
  padding: 0.6rem 1.5rem;
}

/* Card body (Molecule A: Financial Glass Card) */
.ll-inv-card-body {
  padding: 1.5rem;
}

.ll-inv-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.85rem;
}

.ll-inv-card-title {
  font-family: var(--ff-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ll-text);
  margin: 0;
  line-height: 1.2;
}

.ll-inv-id-badge {
  font-size: 0.56rem;
  font-weight: 700;
  color: var(--ll-muted);
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--ll-border);
  padding: 0.24rem 0.45rem;
  white-space: nowrap;
}

html.dark .ll-inv-id-badge {
  background: rgba(255, 255, 255, 0.05);
}

.ll-inv-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  border-top: 1px solid var(--ll-border);
  border-bottom: 1px solid var(--ll-border);
  padding: 0.9rem 0;
  margin-bottom: 1rem;
}

.ll-inv-metric-cell {
  min-width: 0;
}
.ll-inv-metric-cell-right {
  text-align: right;
}

.ll-inv-metric-label {
  display: block;
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ll-muted);
  margin-bottom: 0.3rem;
}

.ll-inv-metric-value {
  font-family: var(--ff-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ll-text);
}

.ll-inv-metric-profit {
  font-family: var(--ff-serif);
  font-size: 0.95rem;
  font-weight: 700;
}

.ll-inv-metric-profit-positive {
  color: #25d366;
}
.ll-inv-metric-profit-negative {
  color: #ef4444;
}
.ll-inv-metric-profit-neutral {
  color: var(--ll-muted);
}

/* Sub-línea de ahorro bajo "Ref. España" en cards de inventario */
.ll-inv-metric-savings {
  display: block;
  font-family: var(--ff-sans);
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 0.18rem;
  letter-spacing: 0.01em;
}
.ll-inv-metric-savings-positive { color: #25d366; }
.ll-inv-metric-savings-negative { color: #ef4444; }

/* Placeholder "Sin referencia" en celda de mercado */
.ll-inv-metric-no-ref {
  font-family: var(--ff-sans);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--ll-muted);
  opacity: 0.7;
}

.ll-inv-card-footer {
  margin-bottom: 1rem;
}

.ll-inv-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.ll-inv-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ll-muted);
}
.ll-inv-meta-item svg {
  width: 0.75rem;
  height: 0.75rem;
  color: var(--ll-gold);
  flex-shrink: 0;
}

.ll-inv-audit-btn {
  display: block;
  width: 100%;
  text-align: center;
  border: 1px solid var(--ll-border);
  padding: 0.72rem 0.8rem;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ll-text);
  transition:
    background-color 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease;
}

.ll-inv-card:hover .ll-inv-audit-btn {
  background: var(--ll-text);
  color: var(--ll-text-inv);
  border-color: var(--ll-text);
}

@media (max-width: 520px) {
  .ll-inv-card-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .ll-inv-metrics-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .ll-inv-metric-cell-right {
    text-align: left;
  }
}

/* Placeholder sin imagen */
.ll-inv-thumb-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: #1a1a1a;
  color: var(--ll-muted);
}

/* ============================================================
   TOGGLE MODO OSCURO
   ============================================================ */
.ll-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: transparent;
  border: 1px solid var(--ll-border);
  color: var(--ll-text);
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
  flex-shrink: 0;
}
.ll-theme-toggle:hover {
  border-color: var(--ll-gold);
  color: var(--ll-gold);
}
.ll-theme-toggle svg {
  width: 1rem;
  height: 1rem;
  pointer-events: none;
}

/* ============================================================
   IMÁGENES CON HOVER GRAYSCALE → COLOR (buena práctica: sin inline JS)
   ============================================================ */

/* Imagen simple con hover */
.ll-grayscale-img {
  filter: grayscale(0.4);
  transition: filter 0.7s;
}
.ll-grayscale-img:hover {
  filter: grayscale(0);
}

/* Contenedor con overlay gold al hover */
.ll-image-overlay-wrap {
  position: relative;
  display: block;
  overflow: hidden;
}
.ll-image-overlay-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.4);
  transition: filter 0.7s;
}
.ll-image-overlay-wrap:hover img {
  filter: grayscale(0);
}

.ll-overlay-reveal {
  position: absolute;
  inset: 0;
  background: rgba(224, 168, 86, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s;
  pointer-events: none;
}
.ll-image-overlay-wrap:hover .ll-overlay-reveal {
  background: rgba(224, 168, 86, 0.8);
}
.ll-overlay-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ll-bg-dark);
  opacity: 0;
  transition: opacity 0.3s;
}
.ll-image-overlay-wrap:hover .ll-overlay-label {
  opacity: 1;
}

/* ============================================================
   SCROLL MARGIN — ancla correcta con nav fija de 5rem
   ============================================================ */
.ll-section[id] {
  scroll-margin-top: 5.5rem;
}

/* ============================================================
   FICHA — DESGLOSE LOGÍSTICO (columna izquierda)
   ============================================================ */
.ll-desglose-panel {
  border: 1px solid var(--ll-border);
  background: var(--ll-card);
  overflow: hidden;
}

.ll-desglose-header {
  padding: 1.1rem 1.5rem 0.9rem;
  border-bottom: 1px solid var(--ll-border);
  background: rgba(0, 0, 0, 0.02);
}

html.dark .ll-desglose-header {
  background: rgba(255, 255, 255, 0.02);
}

.ll-desglose-title {
  font-family: var(--ff-serif);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.ll-desglose-subtitle {
  font-size: 0.65rem;
  color: var(--ll-muted);
  font-style: italic;
}

.ll-desglose-rows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.ll-desglose-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1.5rem;
  border-bottom: 1px solid var(--ll-border);
  font-size: 0.82rem;
  gap: 1rem;
}

.ll-desglose-row:last-child {
  border-bottom: none;
}

.ll-desglose-row-label {
  color: var(--ll-muted);
  white-space: normal;
}

.ll-desglose-row-value {
  font-weight: 700;
  font-family: var(--ff-sans);
  color: var(--ll-text);
  white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings:
    "lnum" 1,
    "tnum" 1;
  letter-spacing: 0.01em;
  text-align: right;
}

.ll-desglose-row-total {
  grid-column: 1 / -1;
  border-top: 2px solid var(--ll-gold);
  background: rgba(224, 168, 86, 0.04);
}

.ll-desglose-row-total .ll-desglose-row-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ll-gold-dark);
}

.ll-desglose-row-total .ll-desglose-row-value {
  font-size: 1.05rem;
  color: var(--ll-text);
}

@media (min-width: 1024px) {
  .ll-desglose-panel {
    border-width: 1px;
    border-color: rgba(224, 168, 86, 0.22);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.08);
  }

  .ll-desglose-header {
    padding: 1.45rem 1.9rem 1.2rem;
  }

  .ll-desglose-title {
    font-size: 1.28rem;
    margin-bottom: 0.35rem;
  }

  .ll-desglose-subtitle {
    font-size: 0.72rem;
    letter-spacing: 0.03em;
  }

  .ll-desglose-rows {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .ll-desglose-row {
    padding: 0.9rem 1.9rem;
    font-size: 0.88rem;
    gap: 1.25rem;
  }

  .ll-desglose-row-total {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .ll-desglose-row-total .ll-desglose-row-value {
    font-size: 1.16rem;
  }
}

/* ============================================================
   FICHA — PRECIO FINAL PROTAGONISTA (sidebar)
   ============================================================ */
.ll-price-final-block {
  background: var(--ll-text);
  color: var(--ll-text-inv);
  padding: 1.35rem 1.5rem 1.5rem;
  margin-top: 0.5rem;
}

.ll-price-final-eyebrow {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--ll-gold);
  margin-bottom: 0.5rem;
}

.ll-price-final-amount {
  font-family: var(--ff-sans);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings:
    "lnum" 1,
    "tnum" 1;
}

.ll-price-final-ref {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.55rem;
  text-decoration: none;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings:
    "lnum" 1,
    "tnum" 1;
}

/* Dark mode: fondo gold en lugar del blanco invertido de --ll-text */
html.dark .ll-price-final-block {
  background: var(--ll-gold);
}
html.dark .ll-price-final-block .ll-price-final-eyebrow {
  color: rgba(0, 0, 0, 0.58);
}
html.dark .ll-price-final-block .ll-price-final-amount {
  color: #121212;
}
html.dark .ll-price-final-block .ll-price-final-ref {
  color: rgba(0, 0, 0, 0.52);
}

/* Responsive precio final — móvil */
@media (max-width: 480px) {
  .ll-price-final-block {
    padding: 1rem 1.25rem 1.2rem;
  }
  .ll-price-final-amount {
    font-size: 2rem;
  }
}

/* ============================================================
   FICHA — AHORRO SECUNDARIO (sidebar)
   ============================================================ */
.ll-savings-inline {
  padding: 0.85rem 0;
  border-top: 1px solid var(--ll-border);
}

.ll-savings-inline-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.ll-savings-inline-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ll-muted);
}

.ll-savings-inline-value {
  font-family: var(--ff-sans);
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings:
    "lnum" 1,
    "tnum" 1;
  letter-spacing: 0.01em;
}

.ll-savings-inline-pos .ll-savings-inline-value {
  color: #16a34a;
}
.ll-savings-inline-neg .ll-savings-inline-value {
  color: #dc2626;
}

.ll-savings-inline-roi {
  font-size: 0.64rem;
  color: var(--ll-muted);
  margin-top: 0.3rem;
  text-align: right;
}

.ll-savings-inline-roi strong {
  color: var(--ll-text);
  font-weight: 700;
}

.ll-savings-inline-empty .ll-savings-inline-value-empty {
  font-size: 0.88rem;
  color: var(--ll-muted);
  font-style: italic;
}

@import url("assets/css/legacy-components.css");
