/* ══ HERO H1 UNIFICADO ══ */
.hero h1,.page-hero h1{font-family:'Raleway',sans-serif;font-size:clamp(0.95rem,4vw,2.2rem);font-weight:700;line-height:1.2;margin-bottom:8px;letter-spacing:-0.3px;color:#fff;text-shadow:0 2px 8px rgba(0,0,0,0.4);}
.hero h1 em,.hero h1 span,.page-hero h1 em,.page-hero h1 span{color:#FECB00;font-style:normal;}
.hero-sub,.page-hero p{font-size:0.78rem;opacity:0.82;max-width:480px;margin:0 auto 14px;line-height:1.5;color:rgba(255,255,255,0.9);}
.hero-eyebrow{font-family:'Raleway',sans-serif;font-size:0.62rem;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:#FECB00;margin-bottom:8px;display:flex;align-items:center;justify-content:center;gap:8px;}
.hero-eyebrow::before,.hero-eyebrow::after{content:'';display:inline-block;width:20px;height:1px;background:#FECB00;opacity:0.5;}

/* ══ NAV UNIFICADO ══ */
.cm-nav{background:#1B3568;padding:0 20px;height:44px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;position:relative;z-index:1000;}
.cm-left{display:flex;align-items:center;gap:8px;}
.cm-left a{display:flex;align-items:center;gap:8px;text-decoration:none;}
.cm-perrito{height:33px;width:33px;border-radius:50%;object-fit:cover;opacity:1;}
.cm-brand{font-family:'Raleway',sans-serif;font-weight:900;font-size:1.2rem;color:#fff;}
.cm-brand b{color:#FECB00;}
.cm-center{display:flex;align-items:center;justify-content:center;gap:4px;}
.cm-center a{color:rgba(255,255,255,0.7);text-decoration:none;font-size:0.8rem;font-weight:600;padding:12px 10px;position:relative;transition:color 0.2s;white-space:nowrap;}
.cm-center a:hover{color:#fff;}
.cm-center a::after{content:'';position:absolute;bottom:0;left:50%;width:0;height:2px;background:#FECB00;border-radius:2px;transition:all 0.25s;transform:translateX(-50%);}
.cm-center a:hover::after,.cm-center a.active::after{width:70%;}
.cm-right{display:flex;justify-content:flex-end;align-items:center;}
.cm-burger{display:none;background:none;border:none;cursor:pointer;padding:6px;flex-direction:column;gap:5px;position:absolute;right:16px;top:50%;transform:translateY(-50%);}
.cm-burger span{display:block;width:22px;height:2px;background:#fff;border-radius:2px;transition:all 0.25s;}
.cm-burger.open span:nth-child(1){transform:rotate(45deg) translate(5px,5px);}
.cm-burger.open span:nth-child(2){opacity:0;}
.cm-burger.open span:nth-child(3){transform:rotate(-45deg) translate(5px,-5px);}
@media(max-width:768px){
  .cm-nav{grid-template-columns:1fr auto;height:auto;padding:10px 16px;}
  .cm-right{display:none;}
  .cm-burger{display:flex;position:static;transform:none;}
  .cm-center{display:none;position:absolute;top:100%;left:0;width:100%;background:#1B3568;flex-direction:column;padding:8px 20px 16px;box-shadow:0 8px 24px rgba(0,0,0,0.3);z-index:99;}
  .cm-center.open{display:flex;}
  .cm-center a{padding:12px 0;border-bottom:1px solid rgba(255,255,255,0.1);width:100%;font-size:0.9rem;color:rgba(255,255,255,0.9);}
  .cm-center a:last-child{border-bottom:none;}
  .cm-center a:hover{color:#FECB00;}
  .cm-center a::after{display:none;}
}


/* ============================================================
   CharlaMotor — Design System
   ------------------------------------------------------------
   Sistema de diseño unificado extraído de:
   - index.html
   - cuestionario-charlamotor.html
   - videoteca.html
   - Base de datos de coches/{catalogo,dashboard,quiz}.html
   ------------------------------------------------------------
   Convenciones:
   - Mobile-first, sin frameworks, sin build.
   - Tipografía Raleway (400/600/700/800/900) para titulares,
     Arial para cuerpo, Space Mono para datos numéricos.
   - Paleta: navy + amarillo CharlaMotor + silver neutro.
   ============================================================ */


/* ── 1. RESET ──────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Arial', Helvetica, sans-serif;
  background: var(--silver-light) url('Fondo_Perrito_Visible.png') center/cover fixed;
  color: var(--text);
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }


/* ── 2. TOKENS / VARIABLES ─────────────────────────────────── */
:root {
  /* Colores marca */
  --navy:           #1B3568;   /* color principal */
  --navy-dark:      #112244;   /* sombras, fondos hero */
  --navy-light:     #2E75B6;   /* acentos azules suaves */
  --yellow:         #FECB00;   /* color acento — CTAs */
  --yellow-dark:    #E5B700;   /* hover de --yellow */

  /* Neutros */
  --silver:         #C0C8D8;   /* texto secundario sobre navy */
  --silver-light:   #EEF1F6;   /* fondo de página, fondos sutiles */
  --silver-bg:      #F4F6F9;   /* fondo alternativo (videoteca) */
  --white:          #FFFFFF;

  /* Texto */
  --text:           #1A1A2E;   /* texto principal */
  --text-muted:     #5A6178;   /* texto secundario */
  --text-light:     #7A7A9A;   /* texto terciario / metadatos */

  /* Estado */
  --success:        #22C55E;
  --danger:         #DC2626;
  --danger-bg:      #FFF5F5;
  --danger-border:  #FECACA;

  /* Tipografía */
  --font-display:   'Raleway', sans-serif;
  --font-body:      'Arial', Helvetica, sans-serif;
  --font-mono:      'Space Mono', monospace;

  /* Radios */
  --radius:         14px;
  --radius-sm:      8px;
  --radius-md:      10px;
  --radius-lg:      16px;
  --radius-pill:    50px;

  /* Sombras */
  --shadow-sm:      0 1px 3px rgba(27, 53, 104, 0.08);
  --shadow:         0 2px 16px rgba(27, 53, 104, 0.09);
  --shadow-md:      0 4px 12px rgba(27, 53, 104, 0.10);
  --shadow-lg:      0 8px 30px rgba(27, 53, 104, 0.15);
  --shadow-header:  0 2px 12px rgba(0, 0, 0, 0.22);

  /* Layout */
  --header-height:  56px;
  --container-md:   800px;
  --container-lg:   1280px;

  /* Transiciones */
  --t-fast:         0.12s;
  --t:              0.2s;
  --t-slow:         0.3s;
}


/* ── 3. TIPOGRAFÍA ─────────────────────────────────────────── */
.font-display { font-family: var(--font-display); }
.font-body    { font-family: var(--font-body); }
.font-mono    { font-family: var(--font-mono); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.3px;
  line-height: 1.2;
}

h1 { font-size: clamp(1.4rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.2rem, 4vw, 1.8rem); }
h3 { font-size: 1.2rem; }


/* ── 4. HEADER / NAV ───────────────────────────────────────── */
.site-header {
  background: var(--navy);
  height: var(--header-height);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-header);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--white);
  letter-spacing: -0.5px;
  text-decoration: none;
}
.site-logo img { height: 36px; }
.site-logo span,
.site-logo .hl { color: var(--yellow); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.site-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--silver);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color var(--t);
}
.site-nav a:hover,
.site-nav a.active { color: var(--yellow); }

.header-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
}


/* ── 5. HERO ───────────────────────────────────────────────── */
.hero {
  background: var(--navy-dark) center / cover no-repeat;
  color: var(--white);
  padding: 48px 20px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero--with-bg { background-image: url('Fondo_Perrito_Azul.PNG'); }
.hero--compact { padding: 18px 16px 16px; }

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(17, 34, 68, 0.25);
}
.hero > * { position: relative; z-index: 1; }

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--yellow);
  opacity: 0.5;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 14px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.hero h1 em,
.hero h1 span {
  color: var(--yellow);
  font-style: normal;
}

.hero-sub {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 520px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--yellow);
  display: block;
}
.hero-stat-label {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}


/* ── 6. LAYOUT / SECCIONES ─────────────────────────────────── */
.container    { max-width: var(--container-md); margin: 0 auto; padding: 0 16px; }
.container-lg { max-width: var(--container-lg); margin: 0 auto; padding: 0 24px; }

.section {
  max-width: var(--container-md);
  margin: 0 auto;
  padding: 32px 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.section-title em {
  color: var(--navy-light);
  font-style: normal;
}
.section-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}


/* ── 7. CARDS DE ENLACE (HOME) ─────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: var(--container-md);
  margin: 0 auto;
  padding: 0 16px;
}
@media (max-width: 500px) {
  .cards { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(27, 53, 104, 0.08);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  display: block;
  border: 2px solid transparent;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(27, 53, 104, 0.14);
  border-color: var(--yellow);
}
.card-icon { display: block; margin-bottom: 12px; }
.card-icon svg { width: 36px; height: 36px; }
.card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 6px;
}
.card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.card-cta {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1px;
}


/* ── 8. BOTONES ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--t);
  min-height: 50px;
  text-decoration: none;
}
.btn:disabled { opacity: 0.32; cursor: not-allowed; }

.btn-primary,
.btn-next      { background: var(--navy); color: var(--white); }
.btn-primary:hover,
.btn-next:hover { background: var(--navy-dark); }

.btn-back,
.btn-secondary,
.btn-restart   {
  background: var(--silver-light);
  color: var(--text-muted);
  border: 2px solid var(--silver);
}
.btn-back:hover,
.btn-secondary:hover,
.btn-restart:hover { color: var(--navy); }

.btn-finish    {
  background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
  color: var(--navy);
  font-weight: 800;
}

.btn-start {
  background: var(--navy);
  color: var(--white);
  padding: 15px 36px;
  font-size: 1rem;
  font-weight: 800;
  width: 100%;
  max-width: 320px;
}
.btn-start:hover { background: var(--navy-dark); }

.btn-outline {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: var(--radius-pill);
  padding: 14px 40px;
  font-size: 15px;
  font-weight: 700;
}
.btn-outline:hover { background: var(--navy); color: var(--white); }


/* ── 9. PILLS / BADGES ─────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--silver);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--t);
  white-space: nowrap;
}
.pill:hover { border-color: var(--navy); color: var(--navy); }
.pill.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.pill-count {
  display: inline-block;
  background: rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-pill);
  padding: 1px 7px;
  font-size: 11px;
  margin-left: 4px;
  font-weight: 700;
}
.pill.active .pill-count { background: rgba(255, 255, 255, 0.2); }

/* Badges de categoría (videoteca) */
.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.badge-pruebas        { background: #E8F5E9; color: #2E7D32; }
.badge-informes       { background: #E3F2FD; color: #1565C0; }
.badge-taller         { background: #FFF3E0; color: #E65100; }
.badge-cajon          { background: #F3E5F5; color: #7B1FA2; }
.badge-accesorios     { background: #FBE9E7; color: #BF360C; }
.badge-presentaciones { background: #FFF8E1; color: #F9A825; }


/* ── 10. FORMULARIOS ───────────────────────────────────────── */
.search-container {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}
.search-input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 15px;
  font-family: var(--font-body);
  outline: none;
  transition: all var(--t-slow);
  backdrop-filter: blur(8px);
}
.search-input::placeholder { color: rgba(192, 200, 216, 0.7); }
.search-input:focus {
  border-color: var(--yellow);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 4px rgba(254, 203, 0, 0.15);
}
.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--silver);
  pointer-events: none;
}

.txt-libre {
  width: 100%;
  min-height: 90px;
  padding: 12px 14px;
  border: 2px solid var(--silver);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: var(--font-body);
  color: var(--text);
  resize: vertical;
  outline: none;
  transition: border-color var(--t-fast);
}
.txt-libre:focus { border-color: var(--navy); }


/* ── 11. SLIDER ────────────────────────────────────────────── */
.slider-wrap { padding: 6px 0; }
.slider {
  width: 100%;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--silver);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--yellow);
  cursor: pointer;
}
.slider::-moz-range-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--yellow);
  cursor: pointer;
}
.slider-display { text-align: center; margin: 16px 0 4px; }
.slider-value {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--navy);
}
.slider-range {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}


/* ── 12. QUIZ — PROGRESS / OPTIONS / CARDS ─────────────────── */
.progress-section { margin-bottom: 16px; }
.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.progress-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.progress-fraction {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}
.progress-bar {
  height: 4px;
  background: var(--silver);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--navy), var(--yellow));
  border-radius: var(--radius-pill);
  transition: width 0.4s cubic-bezier(.4, 0, .2, 1);
  width: 0%;
}

.question-card,
.welcome-card,
.refine-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 20px 16px;
}
.welcome-card { padding: 28px 20px; text-align: center; }

.block-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy);
  color: var(--yellow);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.question-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--yellow-dark);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.question-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 4vw, 1.35rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 8px;
}
.question-help {
  background: var(--silver-light);
  border-left: 3px solid var(--yellow);
  padding: 10px 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.options { display: flex; flex-direction: column; gap: 8px; }
.option {
  padding: 13px 14px;
  border: 2px solid var(--silver);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
  font-size: 0.9rem;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}
.option:active { background: #F0F4FB; }
.option.selected {
  border-color: var(--navy);
  background: #EEF3FC;
}
.option-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--silver);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
}
.option.selected .option-radio {
  border-color: var(--navy);
  background: var(--navy);
}
.option.selected .option-radio::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--white);
}
@media (hover: hover) {
  .option:hover {
    border-color: var(--navy-light);
    background: #F4F7FD;
  }
}

.nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  gap: 10px;
}
.nav-buttons .btn-back   { flex-shrink: 0; }
.nav-buttons .btn-next,
.nav-buttons .btn-finish { flex: 1; }


/* ── 13. RESULTADOS QUIZ ───────────────────────────────────── */
.results-header,
.refine-header {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 16px;
}
.results-header h2,
.refine-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 4px;
}
.results-header h2 em,
.refine-header h2 em {
  color: var(--yellow);
  font-style: normal;
}
.results-header p,
.refine-header p { opacity: 0.78; font-size: 0.86rem; }

.result-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 20px 16px;
  margin-bottom: 14px;
  border-top: 4px solid var(--silver);
  animation: fadeUp 0.4s ease;
}
.result-card.rank-1 { border-top-color: var(--yellow); }
.result-card.rank-2 { border-top-color: var(--navy-light); }
.result-card.rank-3 { border-top-color: #94A3B8; }
.result-card.rank-4,
.result-card.rank-5 { border-top-color: #CBD5E1; }

.result-rank-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.result-rank {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.result-rank.gold { background: var(--yellow); color: var(--navy); }
.result-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.25;
}
.result-price {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 600;
}
.result-tagline {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy-light);
  font-style: italic;
  margin-bottom: 10px;
}
.result-body {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text);
  border-top: 1px solid var(--silver-light);
  padding-top: 12px;
}


/* ── 14. VIDEOS — GRID + CARD ──────────────────────────────── */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.video-grid-lg {
  max-width: var(--container-lg);
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}

.video-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-slow), box-shadow var(--t-slow);
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  position: relative;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--silver-light);
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.video-card:hover .video-thumb img { transform: scale(1.05); }

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 53, 104, 0);
  transition: background var(--t-slow);
}
.video-card:hover .video-play-overlay { background: rgba(27, 53, 104, 0.35); }

.play-icon {
  width: 56px;
  height: 56px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--t-slow);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.video-card:hover .play-icon {
  opacity: 1;
  transform: scale(1);
}
.play-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--navy);
  margin-left: 3px;
}

.video-info { padding: 14px 16px 16px; }
.video-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-light);
}
.video-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.video-meta-item svg { width: 14px; height: 14px; fill: var(--silver); }


/* ── 15. MODAL ─────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 200;
  overflow-y: auto;
  padding: 20px 12px;
}
.modal-overlay.visible {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.modal-box {
  background: var(--white);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 720px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  margin: auto;
}
.modal-header {
  background: var(--navy);
  color: var(--white);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--white);
}
.modal-header p {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 2px;
}
.modal-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.modal-body {
  padding: 0;
  max-height: 70vh;
  overflow-y: auto;
}


/* ── 16. ESTADO: LOADING / ERROR / COMING SOON ─────────────── */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--silver);
  border-top-color: var(--navy);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 0.85s linear infinite;
}

.error-card {
  background: var(--danger-bg);
  border: 2px solid var(--danger-border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}
.error-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--danger);
  margin-bottom: 6px;
}
.error-card p {
  font-size: 0.84rem;
  color: var(--danger);
  opacity: 0.8;
}

.coming-soon {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(27, 53, 104, 0.08);
  border-left: 4px solid var(--yellow);
}
.coming-soon p {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
}
.coming-soon p em {
  color: var(--navy-light);
  font-style: normal;
  font-weight: 900;
}


/* ── 17. FOOTER ────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  padding: 24px 16px;
  margin-top: 40px;
  font-size: 0.72rem;
}
.site-footer a {
  color: var(--yellow);
  text-decoration: none;
}


/* ── 18. UTILIDADES ────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.text-yellow { color: var(--yellow); }
.text-navy   { color: var(--navy); }

.bg-navy     { background: var(--navy); }
.bg-white    { background: var(--white); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ── 19. ANIMACIONES ───────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}


/* ── 20. RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { padding: 32px 16px 28px; }
  .hero-stats { gap: 24px; }
  .hero-stat-num { font-size: 1.2rem; }

  .video-grid-lg {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    padding: 0 16px 32px;
  }
}

@media (max-width: 500px) {
  .site-nav { gap: 12px; }
  .site-nav a { font-size: 0.78rem; }
  .cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
/* ============================================================
   CharlaMotor — Design System · Ampliación (mayo 2026)
   ------------------------------------------------------------
   4 componentes prioritarios con personalidad CharlaMotor.
   Pegar al final de design-system-charlamotor.css
   
   Cambios clave vs versión anterior:
   - Focus de inputs/selects → borde amarillo + glow amarillo
   - Tabla: borde inferior del thead = amarillo, zebra amarillo suave
   - Hover fila tabla → fondo amarillo + barra lateral amarilla
   - Tab activo: counter con fondo amarillo
   - Pills activos: fondo amarillo (no navy)
   - Botón buscador: gradiente amarillo
   - Sort arrows activos: color amarillo
   ============================================================ */


/* ── 21. DATA TABLE ───────────────────────────────────────── */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--silver);
  border-radius: var(--radius-md);
  background: var(--white);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  line-height: 1.4;
}

.data-table thead { position: sticky; top: 0; z-index: 2; }
.data-table th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: left;
  padding: 12px 14px;
  white-space: nowrap;
  border-bottom: 3px solid var(--yellow);
}
.data-table th:first-child { border-radius: var(--radius-md) 0 0 0; }
.data-table th:last-child  { border-radius: 0 var(--radius-md) 0 0; }

.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--silver-light);
  color: var(--text);
  vertical-align: middle;
}

.data-table tbody tr:nth-child(even) { background: rgba(254, 203, 0, 0.08); }
.data-table tbody tr { transition: all var(--t-fast); }
.data-table tbody tr:hover {
  background: rgba(254, 203, 0, 0.15);
  box-shadow: inset 3px 0 0 var(--yellow);
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:last-child td:first-child { border-radius: 0 0 0 var(--radius-md); }
.data-table tbody tr:last-child td:last-child  { border-radius: 0 0 var(--radius-md) 0; }

.data-table .num { text-align: right; font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600; letter-spacing: -0.3px; }
.data-table .highlight { color: var(--navy); font-weight: 700; }
.data-table .text-muted { color: var(--text-muted); font-size: 0.8rem; }

.data-table th.sortable { cursor: pointer; user-select: none; transition: background var(--t-fast); }
.data-table th.sortable:hover { background: var(--navy-dark); }
.data-table th.sortable::after { content: '⇅'; margin-left: 6px; opacity: 0.4; font-size: 0.7rem; }
.data-table th.sort-asc::after  { content: '↑'; opacity: 1; color: var(--yellow); }
.data-table th.sort-desc::after { content: '↓'; opacity: 1; color: var(--yellow); }

.data-table--compact th { padding: 8px 10px; font-size: 0.7rem; }
.data-table--compact td { padding: 7px 10px; font-size: 0.82rem; }


/* ── 22. TABS ─────────────────────────────────────────────── */
.tabs {
  display: flex; gap: 0;
  border-bottom: 2px solid var(--silver);
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 700;
  color: var(--text-muted); padding: 10px 18px;
  border: none; background: none; cursor: pointer;
  white-space: nowrap; position: relative;
  transition: color var(--t-fast), background var(--t-fast);
}
.tab::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 3px; background: transparent;
  border-radius: 3px 3px 0 0; transition: background var(--t-fast);
}
.tab:hover { color: var(--navy); background: rgba(254, 203, 0, 0.08); }
.tab.active { color: var(--navy); font-weight: 800; }
.tab.active::after { background: var(--yellow); }

.tab-count {
  display: inline-block; background: var(--silver-light); color: var(--text-muted);
  font-size: 0.7rem; font-weight: 700;
  padding: 1px 7px; border-radius: var(--radius-pill); margin-left: 6px;
}
.tab.active .tab-count { background: var(--yellow); color: var(--navy); }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp 0.25s ease; }

.tabs--pills { border-bottom: none; gap: 6px; margin-bottom: 16px; }
.tabs--pills .tab {
  border-radius: var(--radius-pill); padding: 8px 16px; font-size: 0.8rem;
  border: 2px solid var(--silver); transition: all var(--t-fast);
}
.tabs--pills .tab::after { display: none; }
.tabs--pills .tab:hover { border-color: var(--yellow); color: var(--navy); background: rgba(254, 203, 0, 0.08); }
.tabs--pills .tab.active { background: var(--yellow); border-color: var(--yellow); color: var(--navy); font-weight: 800; }


/* ── 23. SELECT / DROPDOWN ────────────────────────────────── */
.select-wrap { position: relative; display: inline-block; width: 100%; }
.select-wrap::after {
  content: ''; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 6px solid var(--text-muted);
  pointer-events: none; transition: border-color var(--t-fast);
}
.select-wrap:hover::after { border-top-color: var(--navy); }

.select {
  width: 100%; padding: 11px 40px 11px 14px;
  border: 2px solid var(--silver); border-radius: var(--radius-sm);
  background: var(--white); color: var(--text);
  font-family: var(--font-body); font-size: 0.9rem; line-height: 1.4;
  cursor: pointer; outline: none;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.select:hover { border-color: var(--navy-light); }
.select:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(254, 203, 0, 0.15); }
.select:disabled { opacity: 0.5; cursor: not-allowed; background: var(--silver-light); }
.select--sm { padding: 7px 32px 7px 10px; font-size: 0.82rem; }

.select--navy { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); color: var(--white); }
.select--navy:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(254,203,0,0.15); }
.select-wrap--navy::after { border-top-color: var(--silver); }

.field-label { display: block; font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 6px; }
.field-hint { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
.field-row { display: flex; gap: 12px; align-items: flex-end; }
.field-row > * { flex: 1; }
@media (max-width: 500px) { .field-row { flex-direction: column; } }


/* ── 24. INPUT TEXT (FONDO CLARO) ─────────────────────────── */
.input {
  width: 100%; padding: 11px 14px;
  border: 2px solid var(--silver); border-radius: var(--radius-sm);
  background: var(--white); color: var(--text);
  font-family: var(--font-body); font-size: 0.9rem; line-height: 1.4;
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input::placeholder { color: var(--text-light); }
.input:hover { border-color: var(--navy-light); }
.input:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(254, 203, 0, 0.15); }
.input:disabled { opacity: 0.5; cursor: not-allowed; background: var(--silver-light); }

.input-icon-wrap { position: relative; }
.input-icon-wrap .input { padding-left: 40px; }
.input-icon-wrap .input-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-light); pointer-events: none; font-size: 0.9rem; transition: color var(--t-fast); }
.input-icon-wrap .input:focus ~ .input-icon,
.input-icon-wrap .input:focus + .input-icon { color: var(--yellow-dark); }

.input--error { border-color: var(--danger); }
.input--error:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12); }
.field-error { display: block; font-size: 0.75rem; color: var(--danger); margin-top: 4px; font-weight: 600; }

.input--success { border-color: var(--success); }
.input--success:focus { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12); }

.input--sm { padding: 7px 10px; font-size: 0.82rem; }

.input-group { display: flex; gap: 0; }
.input-group .input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); border-right: none; }
.input-group .btn-search {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  white-space: nowrap; flex-shrink: 0;
  background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
  color: var(--navy); font-family: var(--font-display);
  font-weight: 800; font-size: 0.85rem;
  padding: 11px 20px; border: 2px solid var(--yellow);
  cursor: pointer; transition: all var(--t-fast);
}
.input-group .btn-search:hover { background: var(--yellow); box-shadow: 0 2px 8px rgba(254, 203, 0, 0.4); }

.field { margin-bottom: 16px; }


/* ── 25. ANIMACIONES ────────────────────────────────────────── */

/* Nav: underline deslizante en hover */
.site-nav a {
  position: relative;
  padding-bottom: 3px;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--yellow);
  border-radius: 1px;
  transition: left 0.25s ease, right 0.25s ease;
}
.site-nav a:hover::after,
.site-nav a.active::after { left: 0; right: 0; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Cards: lift + glow amarillo */
.card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(27,53,104,0.16), 0 0 0 1px var(--yellow);
  border-color: var(--yellow);
}
.card-icon { transition: transform 0.3s ease; }
.card:hover .card-icon { transform: scale(1.12); }

/* Cursor typewriter */
.tw-cursor {
  display: inline-block;
  width: 3px;
  background: var(--yellow);
  margin-left: 2px;
  vertical-align: middle;
  animation: twBlink 0.7s step-end infinite;
}
@keyframes twBlink { 0%,100%{opacity:1} 50%{opacity:0} }

/* Ripple */
@keyframes cm-ripple { to { transform:scale(2.8); opacity:0; } }

