/* ADN Express y Descobertura — style.css v3.2 · © Adrian Bayron — www.adrianbom.com — todos los derechos reservados */
/* ============================================================
   ADN Express y Descobertura — style.css  v3.2
   Mobile-first · Red dominant · DM Sans + Nunito
   Cambios v2.8 (ver MASTER_PROMPT_v2_8.md):
   - MOD1: Sección video institucional (facade, sin red requests)
   - MOD2: Botón limpiar arriba + toggle "¿Tiene dependientes?"
   - MOD3/4/5: Timeline simplificado (sin drag, sin modos, narrativo ❤️)
   - MOD6: Popover tabla AFP (afp-info-btn / afp-info-panel)
   - MOD9: Bloque ahorro/inversión rediseñado (ahorro-section)
   - MOD12: Bloques fondo universitario por hijo/a
   - Eliminado: timeline-mode-bar, mode-btn, ruptura-counter, tl-leg-ruptura
   ============================================================ */

:root {
  --red:        #f54927;
  --red-dark:   #c73a1e;
  --red-deeper: #a02f17;
  --red-light:  #fff1ee;
  --green:      #44ce1b;
  --teal:       #2196a8;
  --teal-dark:  #1a6b7a;
  --yellow-bg:  #fffde7;
  --yellow-bd:  #f9a825;
  --charcoal:   #1a1a2e;
  --gray-bg:    #f4f5f7;
  --white:      #ffffff;
  --text:       #1e2024;
  --text-muted: #6b7280;
  --border:     #e5e7eb;

  --font-title: 'DM Sans', 'Segoe UI', sans-serif;
  --font-body:  'Nunito', 'Segoe UI', sans-serif;

  --radius: 14px;
  --shadow: 0 3px 12px rgba(0,0,0,0.07);
  --shadow-hover: 0 6px 20px rgba(245,73,39,0.18);

  --cloud:      #cfd9e3;
  --raindrop:   #7ec8e3;
  --teal-light: #4ecdc4;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
/* MOD-FU: garantiza que el atributo `hidden` siempre gane sobre cualquier
   regla de display de componente (ej. .preguntas-block{display:grid}) —
   sin esto, [hidden] pierde contra reglas de igual especificidad del
   stylesheet de autor. */
[hidden] { display: none !important; }
body {
  background: var(--gray-bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════ */
.site-header {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 60%, var(--red-deeper) 100%);
  color: var(--white);
  padding: 2rem 1.25rem 2.5rem;
  position: relative;
  overflow: hidden;
}
.site-header::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}
.site-header::after {
  content: '';
  position: absolute; bottom: -40px; left: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.header-inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.header-badge {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.63rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px; padding: 0.25rem 0.65rem;
  margin-bottom: 0.75rem;
}
.header-title {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 700; letter-spacing: -0.01em;
  line-height: 1.1; margin-bottom: 0.5rem;
}
.header-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  opacity: 0.88; font-style: italic;
}

/* ═══════════════════════════════════════════════════
   MAIN
═══════════════════════════════════════════════════ */
#adn-main {
  max-width: 900px; margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
  display: flex; flex-direction: column; gap: 1.25rem;
}

/* ═══════════════════════════════════════════════════
   MOD1: VIDEO INSTITUCIONAL (facade — sin red hasta click)
═══════════════════════════════════════════════════ */
.video-section { padding: 0; background: transparent; box-shadow: none; animation: fadeUp 0.5s ease both; }
.video-mask {
  position: relative; display: block; width: 100%;
  aspect-ratio: 16 / 9; max-width: 900px; margin: 0 auto;
  border: none; border-radius: var(--radius);
  overflow: hidden; cursor: pointer; padding: 0;
  box-shadow: var(--shadow);
  -webkit-appearance: none; appearance: none;
  min-height: 44px;
}
.video-mask-bg {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, #0d1b2a 0%, #1b263b 28%, #2196a8 55%, #3a3a3a 78%, #f54927 100%);
  background-size: 250% 250%;
  animation: videoBgShift 22s ease-in-out infinite;
}
.video-mask-bg::before {
  content: '';
  position: absolute; inset: -10%;
  background:
    radial-gradient(circle at 25% 30%, rgba(255,255,255,0.10) 0%, transparent 45%),
    radial-gradient(circle at 75% 70%, rgba(245,73,39,0.18) 0%, transparent 50%);
  border-radius: 45% 55% 60% 40% / 50% 45% 55% 50%;
}
@keyframes videoBgShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .video-mask-bg { animation: none; }
}
.video-mask-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.75rem; text-align: center; padding: 1rem;
  color: white;
}
.video-mask-title {
  font-family: var(--font-title);
  font-size: clamp(1rem, 4vw, 1.5rem);
  font-weight: 700; text-shadow: 0 2px 8px rgba(0,0,0,0.35);
  max-width: 28ch;
}
.video-mask-play {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-title); font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--red); color: white;
  padding: 0.6rem 1.25rem; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(245,73,39,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 44px;
}
.video-mask:hover .video-mask-play,
.video-mask:focus-visible .video-mask-play {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(245,73,39,0.5);
}
.video-mask:focus-visible {
  outline: 3px solid var(--teal); outline-offset: 2px;
}
.video-embed-wrap {
  position: relative; width: 100%;
  aspect-ratio: 16 / 9; max-width: 900px; margin: 0 auto;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: #000;
}
.video-embed-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: none;
}

/* ═══════════════════════════════════════════════════
   CARDS
═══════════════════════════════════════════════════ */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.25rem;
  animation: fadeUp 0.5s ease both;
}
.calc-card  { border-left: 5px solid var(--red); }
.result-card {
  background: var(--red-light);
  border-left: 5px solid var(--red);
}
.card-header {
  display: flex; align-items: flex-start;
  gap: 1rem; margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.card-header-with-action { align-items: center; justify-content: space-between; flex-wrap: wrap; }
.card-header-text { flex: 1; min-width: 0; display: flex; gap: 1rem; align-items: flex-start; }
.card-num {
  font-family: var(--font-title);
  font-size: 1.8rem; font-weight: 700;
  color: var(--red); line-height: 1;
  opacity: 0.25; flex-shrink: 0;
}
.result-num  { opacity: 0.5; }
.card-title {
  font-family: var(--font-title);
  font-size: 1.05rem; font-weight: 700;
  color: var(--red);
  letter-spacing: 0.01em; text-transform: uppercase;
  margin-bottom: 0.15rem;
}
.card-hint {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ═══════════════════════════════════════════════════
   GRIDS
═══════════════════════════════════════════════════ */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.grid-paso1-v26 { display: grid; grid-template-columns: 1fr; gap: 1rem; }

@media (min-width: 580px) {
  .grid-2         { grid-template-columns: repeat(2, 1fr); }
  .grid-3         { grid-template-columns: repeat(2, 1fr); }
  .grid-paso1-v26 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 820px) {
  .grid-3         { grid-template-columns: repeat(3, 1fr); }
  .grid-paso1-v26 { grid-template-columns: repeat(3, 1fr); }
}

/* ═══════════════════════════════════════════════════
   FIELD GROUPS & LABELS
═══════════════════════════════════════════════════ */
.field-group { display: flex; flex-direction: column; gap: 0.35rem; }
.field-label {
  font-family: var(--font-title);
  font-size: 0.72rem; font-weight: 600;
  color: var(--charcoal);
  text-transform: uppercase; letter-spacing: 0.05em;
  display: flex; align-items: center; gap: 0.3rem; flex-wrap: wrap;
}
.field-hint {
  font-family: var(--font-body);
  font-size: 0.78rem; color: var(--text-muted);
  font-style: italic; margin-top: 0.5rem;
}

/* MOD-FECHA-NAC (v3.9.2): en touch (mobile/tablet) el date picker nativo es
   lento de navegar para una fecha de nacimiento lejana — se reemplaza por
   3 selects (Año/Mes/Día) acotados a 16-99 años. En desktop (mouse/trackpad,
   "escribe directamente con el teclado") se mantiene el input nativo tal cual. */
.fecha-nac-selects { display: none; gap: 0.5rem; grid-template-columns: 1fr 1fr 1fr; }
@media (pointer: coarse) {
  .fecha-nac-native { display: none; }
  .fecha-nac-selects { display: grid; }
}

/* ═══════════════════════════════════════════════════
   INPUTS
═══════════════════════════════════════════════════ */
.field-input {
  width: 100%;
  padding: 0.62rem 0.85rem;
  font-family: var(--font-title);
  font-size: 0.92rem; font-weight: 400;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none; appearance: none;
}
.field-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(245,73,39,0.1);
}
.field-input::placeholder { color: #adb5bd; font-style: italic; }

.yellow-input {
  background: var(--yellow-bg);
  border-color: var(--yellow-bd);
  font-weight: 600;
}
.yellow-input:focus {
  border-color: #e65100;
  box-shadow: 0 0 0 3px rgba(249,168,37,0.2);
}

.calc-input {
  background: #f3f4f6;
  border: 1.5px dashed #d1d5db;
  color: #374151;
  cursor: not-allowed; font-weight: 600;
}
.highlight-calc {
  background: #fef9f8;
  border-color: var(--red); border-style: dashed;
  color: var(--red);
}
.calc-input-disabled {
  background: #eeeeee;
  border: 1.5px dashed #c4c4c4;
  color: #aaa; cursor: not-allowed; font-weight: 600;
}
.field-select { cursor: pointer; }
.field-select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(245,73,39,0.1); }

.field-textarea {
  resize: vertical; min-height: 58px;
  font-family: var(--font-body);
  font-size: 0.875rem; line-height: 1.5;
  padding: 0.55rem 0.75rem;
}

/* ═══════════════════════════════════════════════════
   MOD2: BOTONES PILL SEXO [Mujer] [Hombre]
═══════════════════════════════════════════════════ */
.sexo-pills {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
}
.pill-btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  font-family: var(--font-title);
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.04em;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s, box-shadow 0.18s;
  -webkit-appearance: none; appearance: none;
}
.pill-btn:hover {
  border-color: var(--red);
  color: var(--red);
}
.pill-btn.active,
.pill-btn[aria-pressed="true"] {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(245,73,39,0.25);
}

/* ═══════════════════════════════════════════════════
   MOD-SEC2Q: BOTONES PILL SÍ/NO (ingreso principal)
═══════════════════════════════════════════════════ */
.ingreso-pills {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-top: 0.5rem;
}
.pill-btn.pill-yes.active,
.pill-btn.pill-yes[aria-pressed="true"] {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(68,206,27,0.25);
}
.pill-btn.pill-no.active,
.pill-btn.pill-no[aria-pressed="true"] {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(245,73,39,0.25);
}

/* ═══════════════════════════════════════════════════
   MOD2-v3.3: PILLS SALUD + TEXTAREA CONDICIONAL
═══════════════════════════════════════════════════ */
.salud-pills {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-top: 0.5rem;
}
.salud-detalle {
  display: none;
  margin-top: 0.5rem;
}
.salud-detalle.visible {
  display: block;
}

/* ═══════════════════════════════════════════════════
   v3.5: PILLS DECISIÓN FAMILIAR (Sec.05)
═══════════════════════════════════════════════════ */
.decision-pills {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* ═══════════════════════════════════════════════════
   TOOLTIP
═══════════════════════════════════════════════════ */
.tooltip-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px;
  background: var(--red); color: white;
  border-radius: 50%; font-size: 0.6rem; font-weight: 700;
  cursor: help; flex-shrink: 0; position: relative;
}
.tooltip-icon:hover::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%);
  background: var(--charcoal); color: white;
  font-family: var(--font-body); font-size: 0.72rem;
  font-style: italic; font-weight: 400;
  text-transform: none; letter-spacing: 0;
  padding: 0.5rem 0.7rem; border-radius: 6px;
  z-index: 100; pointer-events: none;
  line-height: 1.4; width: max-content; max-width: 220px;
  white-space: normal;
}
.tooltip-icon:hover::before {
  content: '';
  position: absolute; bottom: calc(100% + 1px); left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--charcoal); z-index: 100;
}

/* ═══════════════════════════════════════════════════
   MOD6: POPOVER TABLA AFP
═══════════════════════════════════════════════════ */
.afp-info-btn {
  width: 18px; height: 18px; font-size: 0.68rem;
  cursor: pointer; border: none; padding: 0;
}
.afp-info-panel {
  position: relative;
  margin-top: 0.6rem;
  background: #fff;
  border: 1.5px solid var(--teal);
  border-radius: 8px;
  padding: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text);
  box-shadow: var(--shadow);
}
.afp-info-panel-title {
  font-family: var(--font-title); font-weight: 700;
  font-size: 0.78rem; color: var(--teal-dark);
  margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.04em;
}
.afp-info-panel table { width: 100%; border-collapse: collapse; }
.afp-info-panel th, .afp-info-panel td {
  text-align: left; padding: 0.35rem 0.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.74rem;
}
.afp-info-panel th {
  font-family: var(--font-title); font-weight: 700;
  text-transform: uppercase; font-size: 0.62rem;
  letter-spacing: 0.05em; color: var(--teal-dark);
}
.afp-info-panel tr:last-child td,
.afp-info-panel tr:last-child th { border-bottom: none; }

/* ═══════════════════════════════════════════════════
   TOGGLE SWITCH (AFP / dependientes)
═══════════════════════════════════════════════════ */
.toggle-row { display: flex; align-items: center; gap: 0.4rem; }
.toggle-row-label {
  font-family: var(--font-title); font-size: 0.65rem;
  font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.toggle-wrap { display: flex; align-items: center; justify-content: center; }
.toggle-input { display: none; }
.toggle-label {
  position: relative; display: inline-block;
  width: 42px; height: 22px; cursor: pointer;
}
.toggle-label::before {
  content: ''; position: absolute; inset: 0;
  background: #d1d5db; border-radius: 11px;
  transition: background 0.25s;
}
.toggle-label::after {
  content: ''; position: absolute;
  top: 3px; left: 3px; width: 16px; height: 16px;
  background: white; border-radius: 50%;
  transition: transform 0.25s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.toggle-input:checked + .toggle-label::before { background: var(--red); }
.toggle-input:checked + .toggle-label::after  { transform: translateX(20px); }

/* ═══════════════════════════════════════════════════
   PASO BLOCKS (sec 04)
═══════════════════════════════════════════════════ */
.paso-block {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px dashed var(--border);
}
.paso-block:last-child { border-bottom: none; margin-bottom: 0; }
.paso-label {
  display: flex; align-items: center;
  gap: 0.5rem; margin-bottom: 0.85rem; flex-wrap: wrap;
}
.paso-num {
  font-family: var(--font-title);
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--red); color: white;
  padding: 0.2rem 0.5rem; border-radius: 4px;
}
.paso-desc {
  font-family: var(--font-title);
  font-size: 0.8rem; font-weight: 600;
  color: var(--red-dark);
  text-transform: uppercase; letter-spacing: 0.05em;
}

/* Nota tope AFP 100% */
.afp-tope-note {
  display: flex; gap: 0.5rem; align-items: flex-start;
  margin-top: 0.75rem;
  background: #fffde7;
  border: 1px solid var(--yellow-bd);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.8rem; color: #5a4200; line-height: 1.5;
}
.afp-tope-icon { flex-shrink: 0; font-size: 0.95rem; }

/* ═══════════════════════════════════════════════════
   MOD3/4/5: TIMELINE — SEC 03 (simplificado, sin drag/modos)
═══════════════════════════════════════════════════ */
.timeline-card { border-left: 5px solid var(--teal); }
.timeline-num  { color: var(--teal) !important; }

.timeline-control { margin-bottom: 1.2rem; }
.timeline-control-row {
  display: flex; align-items: center;
  gap: 0.75rem; flex-wrap: wrap;
}
.timeline-years-input {
  width: 100px !important;
  font-size: 1.1rem !important; font-weight: 700 !important;
  text-align: center;
}
.timeline-años-label {
  font-family: var(--font-body);
  font-size: 0.95rem; color: #555; font-weight: 500;
}
.timeline-svg-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 10px;
  background: #f9fefe;
  border: 1.5px solid #cde8ea;
  padding: 0.5rem 0;
  margin-bottom: 0.75rem;
  -webkit-overflow-scrolling: touch;
}
.timeline-svg-wrap svg { min-width: 540px; display: block; }

.timeline-legend {
  display: flex; flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: 0.8rem; color: #555;
}
.tl-leg-item { display: flex; align-items: center; gap: 0.4rem; }
.tl-dot { width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0; }
.tl-line-dash {
  display: inline-block; width: 14px; height: 0;
  border-top: 2px dashed #e53935; flex-shrink: 0;
}

/* MOD4: Narrativo ❤️ (reemplaza ruptura-counter y narrativo normal) */
.timeline-narrative-box {
  background: linear-gradient(135deg, #e8f8f8 0%, #f0f9fa 100%);
  border: 1.5px solid #b2dfe3;
  border-radius: 10px; padding: 1rem 1.2rem;
  margin-top: 0.5rem;
}
.tln-intro {
  font-family: var(--font-title);
  font-size: 0.95rem; font-weight: 600;
  color: #1a3a5c; margin-bottom: 0.5rem;
}
.tln-list {
  margin: 0 0 0.6rem 1.1rem; padding: 0;
  font-family: var(--font-body);
  font-size: 0.875rem; color: #2c5364; line-height: 1.7;
}
.tln-list li { margin-bottom: 0.2rem; }
.tln-footer {
  font-family: var(--font-body);
  font-size: 0.75rem; color: #7a9a9e;
  font-style: italic; margin: 0;
}

/* ═══════════════════════════════════════════════════
   TABLA DEPENDIENTES — Parentesco select
═══════════════════════════════════════════════════ */
.dep-table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-radius: 8px; border: 1px solid var(--border);
}
.dep-table {
  width: 100%; border-collapse: collapse; min-width: 440px;
}
.dep-table th {
  background: var(--charcoal); color: white;
  font-family: var(--font-title);
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.6rem 0.75rem; text-align: left;
}
.dep-table td {
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
.dep-table tr:last-child td { border-bottom: none; }
.dep-table tr:nth-child(even) td { background: #fafafa; }
.dep-table .field-input {
  border: none; background: transparent;
  padding: 0.3rem 0.4rem; font-size: 0.875rem;
}
.dep-table .field-input:focus {
  background: white;
  border: 1.5px solid var(--red);
  box-shadow: none; border-radius: 4px;
}
/* Select parentesco inline en tabla */
.dep-parentesco-select {
  font-size: 0.82rem; padding: 0.28rem 0.5rem;
  border-radius: 6px; min-width: 110px;
}
/* Select sexo inline en tabla (MOD11 v3.3) */
.dep-sexo-select {
  font-size: 0.82rem; padding: 0.28rem 0.4rem;
  border-radius: 6px; min-width: 80px;
}
/* Lazy row reveal (MOD12 v3.3) */
.dep-row-hidden { display: none; }

/* ═══════════════════════════════════════════════════
   MOD-FAMILIA-SVG: ilustración familia bajo el paraguas (v3.1)
═══════════════════════════════════════════════════ */
.familia-svg-wrap {
  width: 100%;
  border-radius: 10px;
  background: #f9fefe;
  border: 1.5px solid #cde8ea;
  padding: 0.5rem 0.25rem;
  margin: 1rem 0 0.75rem;
}
.familia-stage { display: block; width: 100%; height: auto; }

/* fix v3.9.1: en pantallas anchas (tablet/laptop) .familia-stage escalaba al
   100% del ancho de la card (hasta 900px), ocupando casi toda la pantalla.
   En mobile (<650px) no se toca: ahí ya se veía bien. */
@media (min-width: 650px) {
  .familia-svg-wrap { max-width: 550px; margin-left: auto; margin-right: auto; }
}

.figura-paraguas { fill: var(--green); transition: fill 0.5s ease; }
.familia-stage[data-escenario="3"] .figura-paraguas { fill: var(--red); }

.figura-titular {
  fill: var(--charcoal);
  transform-origin: 160px 313.5px;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.figura-dep-icono { fill: var(--teal-light); }

.figura-dep {
  transition: transform 0.6s cubic-bezier(.4,0,.2,1);
  transform: translateX(var(--dx,0px));
}
.familia-stage[data-escenario="1"] .figura-dep { --dx: 0px; }
.familia-stage[data-escenario="2"] .figura-dep,
.familia-stage[data-escenario="3"] .figura-dep { --dx: var(--dx-regroup,0px); }

.grupo-paraguas {
  transition: opacity 0.4s ease, transform 0.45s ease;
  transform-origin: 160px 313.5px;
}
.familia-stage[data-escenario="2"] .grupo-paraguas { opacity: 0; transform: scale(.94); }

.familia-stage[data-escenario="2"] .figura-titular,
.familia-stage[data-escenario="3"] .figura-titular { opacity: 0; transform: scale(.85); }

.cloud-body { fill: var(--cloud); }
.cloud-drop { fill: var(--raindrop); }
.capa-rayos { display: none; }
.familia-stage[data-escenario="2"] .capa-rayos { display: block; }

.familia-label {
  fill: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 700;
  text-anchor: middle;
  transition: fill 0.3s ease;
}
.familia-label-titular { fill: var(--charcoal); font-weight: 800; }
.familia-stage[data-escenario="2"] .familia-label-titular,
.familia-stage[data-escenario="3"] .familia-label-titular { opacity: 0; }

.escenario-switch { display: flex; gap: 0.5rem; margin-top: 0.85rem; flex-wrap: wrap; }
.escenario-btn {
  flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0.5rem 0.4rem;
  border: 2px solid var(--border); border-radius: 16px; background: var(--white);
  font-family: var(--font-body); font-weight: 700; font-size: 0.72rem;
  color: var(--text); cursor: pointer; text-align: center; line-height: 1.2;
  overflow-wrap: break-word; transition: all 0.2s ease;
}
.escenario-btn:hover { border-color: var(--teal); color: var(--teal-dark); }
.escenario-btn.active {
  background: var(--charcoal); border-color: var(--charcoal); color: var(--white);
  box-shadow: 0 2px 8px rgba(26,26,46,.25);
}
.escenario-btn.active[data-esc="3"] { background: var(--red); border-color: var(--red); }
.escenario-btn.active[data-esc="1"] { background: var(--green); border-color: var(--green); }

.escenario-caption {
  margin-top: 0.6rem; padding: 0.55rem 0.75rem; border-radius: 10px; font-size: 0.85rem;
  background: var(--gray-bg); border: 1px solid var(--border); transition: all 0.3s ease;
}
.escenario-caption--alerta { background: var(--red-light); border-color: #fdd; }

.preguntas-block {
  margin-top: 1.25rem; padding-top: 1.1rem;
  border-top: 1.5px dashed var(--border);
  display: grid; gap: 1rem;
}

/* ═══════════════════════════════════════════════════
   TABLA REFERIDOS
═══════════════════════════════════════════════════ */
.ref-table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-radius: 8px; border: 1px solid var(--border);
}
.ref-table {
  width: 100%; border-collapse: collapse; min-width: 480px;
}
.ref-table th {
  background: var(--charcoal); color: white;
  font-family: var(--font-title); font-size: 0.68rem;
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 0.65rem 0.75rem; text-align: left;
}
.ref-table th:first-child { text-align: center; }
.ref-table td {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.ref-table tr:last-child td { border-bottom: none; }
.ref-table tr:nth-child(even) td { background: #fafafa; }
.ref-row-hidden { display: none; }
.ref-num {
  font-family: var(--font-title); font-size: 0.8rem;
  font-weight: 700; color: var(--red);
  text-align: center; width: 40px;
}
.ref-table .field-input {
  border: none; background: transparent;
  padding: 0.3rem 0.4rem; font-size: 0.875rem;
}
.ref-table .field-input:focus {
  background: white; border: 1.5px solid var(--red);
  box-shadow: none; border-radius: 4px;
}

/* ═══════════════════════════════════════════════════
   SEC 05: RESULTADO · DESCOBERTURA - NECESIDAD REAL (MOD8)
═══════════════════════════════════════════════════ */
.result-summary {
  display: flex; flex-direction: column;
  gap: 0.75rem; margin-bottom: 1.25rem;
  padding: 1rem; background: white;
  border-radius: 10px; border: 1px solid rgba(245,73,39,0.15);
}
@media (min-width: 580px) {
  .result-summary { flex-direction: row; align-items: center; }
}
.result-summary-item { flex: 1; }
.result-divider {
  font-size: 1.5rem; color: var(--red);
  font-weight: 300; text-align: center; flex-shrink: 0;
}
.result-summary-label {
  display: block; font-family: var(--font-title);
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); margin-bottom: 0.25rem;
}
.result-summary-value {
  display: block; font-family: var(--font-title);
  font-size: 1.15rem; font-weight: 700; color: var(--charcoal);
}

/* Descobertura box */
.descobertura-box {
  background: var(--red); border-radius: 10px;
  padding: 1.5rem 1.25rem; text-align: center;
  margin-bottom: 1rem; color: white;
}
.descobertura-label {
  font-family: var(--font-title); font-size: 0.7rem;
  font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; opacity: 0.85; margin-bottom: 0.5rem;
}
.descobertura-amount {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 700; line-height: 1.1; margin-bottom: 0.3rem;
}
.descobertura-usd {
  font-family: var(--font-title);
  font-size: 0.95rem; opacity: 0.85; margin-bottom: 0.75rem;
}
.tc-note { font-size: 0.75rem; opacity: 0.75; }
.descobertura-desc {
  font-family: var(--font-body); font-size: 0.82rem;
  font-style: italic; opacity: 0.88;
  max-width: 480px; margin: 0 auto; line-height: 1.5;
}

/* ═══════════════════════════════════════════════════
   MOD9: BLOQUE AHORRO / INVERSIÓN (rediseño)
═══════════════════════════════════════════════════ */
.ahorro-section { margin-top: 1.25rem; }
.ahorro-section + .ahorro-section {
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1.5px dashed var(--border);
}
.ahorro-heading {
  font-family: var(--font-title);
  font-size: 0.95rem; font-weight: 700;
  color: var(--charcoal); margin-bottom: 0.2rem;
}
.ahorro-subtitle {
  font-family: var(--font-body);
  font-size: 0.8rem; color: var(--text-muted);
  font-style: italic; margin-bottom: 0.75rem;
}
.ahorro-value-box {
  background: white;
  border: 2px solid var(--charcoal);
  border-radius: 12px;
  padding: 1.1rem; text-align: center;
}
.ahorro-value-box .ahorro-value {
  display: block;
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 800; color: var(--red);
}
.ahorro-grid-2x2 {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
.ahorro-grid-2 {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
.ahorro-grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.ahorro-grid-2x2 .field-group .field-input,
.ahorro-grid-2 .field-group .field-input,
.ahorro-grid-3 .field-group .field-input {
  text-align: center; font-weight: 700;
}

/* ═══════════════════════════════════════════════════
   SEC 06: SERVICIOS FINANCIEROS (MOD10/11)
═══════════════════════════════════════════════════ */
.solucion-panel {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1.5px dashed var(--border);
}
.solucion-subtitle {
  font-family: var(--font-title);
  font-size: 1rem; font-weight: 700;
  color: var(--red-dark); margin-bottom: 0.4rem;
}
.solucion-desc {
  font-family: var(--font-body);
  font-size: 0.85rem; color: var(--text-muted);
  font-style: italic; margin-bottom: 1.1rem;
}

/* Placeholder módulos en desarrollo */
.solucion-placeholder {
  text-align: center;
  padding: 2rem 1rem;
  background: #f9fafb;
  border: 2px dashed var(--border);
  border-radius: 12px;
  color: var(--text-muted);
}
.solucion-placeholder-icon { font-size: 2.2rem; display: block; margin-bottom: 0.5rem; }
.solucion-placeholder-title {
  font-family: var(--font-title);
  font-size: 1rem; font-weight: 700;
  color: var(--charcoal); margin-bottom: 0.25rem;
}
.solucion-placeholder-desc {
  font-family: var(--font-body);
  font-size: 0.85rem; font-style: italic;
}

/* ── Tabla Endosable ── */
.endosable-result { margin-top: 1.25rem; }
.endosable-table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-radius: 10px; border: 1px solid var(--border);
  margin-bottom: 0.75rem;
}
.endosable-table {
  width: 100%; border-collapse: collapse; min-width: 400px;
}
.endosable-table thead tr {
  background: var(--charcoal); color: white;
}
.endosable-table th {
  font-family: var(--font-title);
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.7rem 0.9rem; text-align: center;
}
.endosable-table th:first-child { text-align: left; }
.endosable-table td {
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-title);
  font-size: 0.88rem; text-align: center;
}
.endosable-table td:first-child { text-align: left; }
.endosable-table tr:last-child td { border-bottom: none; }
.end-row-label {
  font-family: var(--font-title);
  font-size: 0.75rem; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.end-val-neg { color: #c62828; font-weight: 700; }
.end-val-pos { color: #2e7d32; font-weight: 700; }
.end-row-final td { background: #fafafa; font-weight: 700; }
.end-disclaimer {
  font-family: var(--font-body);
  font-size: 0.76rem; color: var(--text-muted);
  font-style: italic; margin-bottom: 0.75rem;
}
.end-mensaje {
  background: linear-gradient(135deg, #1a3a5c 0%, #2c5364 100%);
  color: white; border-radius: 10px;
  padding: 1rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.9rem; line-height: 1.6;
}
.banco-otro-input { text-transform: uppercase; }

/* ── Fondo Universitario (MOD12: replicado por hijo/a) ── */
.uni-result { margin-top: 1.25rem; border-radius: 10px; overflow: hidden; }
.uni-placeholder {
  text-align: center; padding: 2rem;
  background: #f9fafb;
  border: 1.5px dashed var(--border);
  border-radius: 10px; color: var(--text-muted);
}
.uni-placeholder-icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.uni-placeholder p { font-family: var(--font-body); font-size: 0.85rem; font-style: italic; }
.uni-child-block + .uni-child-block {
  margin-top: 1.5rem; padding-top: 1.5rem;
  border-top: 1.5px dashed var(--border);
}
.uni-child-title {
  font-family: var(--font-title); font-size: 1rem; font-weight: 700;
  color: var(--red-dark); margin-bottom: 0.85rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.uni-result-card {
  background: linear-gradient(135deg, #fff1ee 0%, #fff8f6 100%);
  border: 1.5px solid rgba(245,73,39,0.2);
  border-radius: 10px; padding: 1.25rem;
}
.uni-result-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem; margin-bottom: 1rem;
}
@media (min-width: 580px) { .uni-result-grid { grid-template-columns: repeat(4, 1fr); } }
.uni-stat { text-align: center; }
.uni-stat-val {
  font-family: var(--font-title);
  font-size: 1.1rem; font-weight: 700;
  color: var(--red); display: block;
}
.uni-stat-lbl {
  font-family: var(--font-title);
  font-size: 0.65rem; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.uni-highlight {
  background: var(--red); color: white;
  border-radius: 8px; padding: 0.85rem 1rem;
  text-align: center; margin-bottom: 0.75rem;
}
.uni-highlight-val {
  font-family: var(--font-title);
  font-size: 1.5rem; font-weight: 700; display: block;
}
.uni-highlight-lbl {
  font-family: var(--font-title);
  font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.1em; opacity: 0.85;
}
.uni-narrative {
  font-family: var(--font-body); font-size: 0.83rem;
  color: var(--text); line-height: 1.6;
  padding: 0.75rem; background: white;
  border-radius: 6px;
  border-left: 3px solid var(--red);
  margin-bottom: 0.5rem;
}
.uni-disclaimer {
  font-family: var(--font-body); font-size: 0.73rem;
  color: var(--text-muted); font-style: italic;
}
.uni-coberturas {
  font-family: var(--font-body); font-size: 0.78rem;
  color: var(--red-dark); font-weight: 600;
  margin-bottom: 0.5rem;
}
.cov-checkbox-group .toggle-row-label { font-size: 0.82rem; }

/* ═══════════════════════════════════════════════════
   ACTIONS BAR
═══════════════════════════════════════════════════ */
.actions-bar {
  background: white; border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.25rem;
  display: flex; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  animation: fadeUp 0.5s ease both;
}
.actions-label {
  font-family: var(--font-title); font-size: 0.75rem;
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted); flex-shrink: 0;
}
.actions-buttons { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-title); font-size: 0.8rem;
  font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.55rem 1rem; border-radius: 8px;
  border: none; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  text-decoration: none; -webkit-appearance: none; min-height: 40px;
}
.btn:active { transform: translateY(1px); }
.btn:disabled {
  opacity: 0.6; cursor: not-allowed;
  transform: none !important; box-shadow: none !important;
}
.btn-pdf { background: var(--red); color: white; }
.btn-pdf:hover:not(:disabled) {
  background: var(--red-dark); transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245,73,39,0.35);
}
.btn-txt { background: #0e7490; color: white; }
.btn-txt:hover:not(:disabled) {
  background: #0c6280; transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14,116,144,0.35);
}
.btn-clear { background: white; color: #374151; border: 1.5px solid var(--border); }
.btn-clear:hover:not(:disabled) {
  background: var(--red-light); border-color: var(--red);
  color: var(--red); transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245,73,39,0.12);
}

/* MOD2: Botón Limpiar arriba (en card-header) */
.btn-clear-top {
  padding: 0.4rem 0.75rem; font-size: 0.68rem;
  min-height: 38px; flex-shrink: 0; gap: 0.3rem;
}

/* ═══════════════════════════════════════════════════
   LOGIN GATE (v3.9.4) — acceso privado antes de cargar la
   herramienta. html.auth-ok se agrega vía js/auth.js tras un
   login correcto (o al recordar sesión previa en sessionStorage).
═══════════════════════════════════════════════════ */
html:not(.auth-ok) .site-header,
html:not(.auth-ok) #adn-main,
html:not(.auth-ok) .site-footer,
html:not(.auth-ok) #pdfReportRoot { display: none !important; }
html.auth-ok #loginGate { display: none !important; }

.login-gate {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 60%, var(--red-deeper) 100%);
}
.login-card {
  width: 100%; max-width: 360px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 2rem 1.75rem;
  display: flex; flex-direction: column; gap: 1rem;
  animation: fadeUp 0.4s ease both;
}
.login-badge {
  align-self: flex-start;
  font-family: var(--font-title); font-size: 0.63rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--red-light); color: var(--red-dark);
  border-radius: 4px; padding: 0.25rem 0.65rem;
}
.login-title {
  font-family: var(--font-title); font-size: 1.3rem; font-weight: 700;
  color: var(--text);
}
.login-subtitle { font-size: 0.85rem; color: var(--text-muted); margin-top: -0.5rem; }
.login-field {
  display: flex; flex-direction: column; gap: 0.35rem;
  font-family: var(--font-title); font-size: 0.8rem; font-weight: 600; color: var(--text);
}
.login-field input {
  font-family: var(--font-body); font-size: 0.95rem;
  padding: 0.65rem 0.8rem; border: 1px solid var(--border); border-radius: 8px;
  background: var(--gray-bg); color: var(--text);
}
.login-field input:focus { outline: 2px solid var(--red); outline-offset: 1px; background: var(--white); }
.login-error { font-size: 0.8rem; color: var(--red-dark); font-weight: 600; }
.login-button {
  border: none; border-radius: var(--radius);
  background: var(--red); color: var(--white);
  font-family: var(--font-title); font-weight: 700; font-size: 0.95rem;
  padding: 0.8rem; cursor: pointer; box-shadow: var(--shadow);
  transition: background 0.2s;
}
.login-button:hover { background: var(--red-dark); }

/* ═══════════════════════════════════════════════════
   FOOTER — legal/disclaimer estático (v3.5: sin modal)
═══════════════════════════════════════════════════ */
.site-footer {
  background: var(--charcoal);
  color: #9ca3af; padding: 2rem 1.25rem; margin-top: 1rem;
}
.footer-inner {
  max-width: 700px; margin: 0 auto;
}
.footer-legal {
  font-family: var(--font-body); font-size: 0.78rem; line-height: 1.6;
}
.footer-legal-title {
  font-family: var(--font-title); font-size: 0.95rem; font-weight: 700;
  color: #d1d5db; margin: 0 0 0.85rem;
}
.footer-legal p { margin: 0 0 0.85rem; }
.footer-legal ul { margin: 0.25rem 0 0.85rem 1.25rem; padding: 0; }
.footer-legal li { margin-bottom: 0.3rem; }
.footer-legal strong { font-family: var(--font-title); font-weight: 600; color: #d1d5db; }
.footer-legal a { color: #f8967f; text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: white; }
.footer-lock { font-size: 1rem; }
.footer-credit {
  font-family: var(--font-body); font-size: 0.78rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 1.25rem; padding-top: 1rem; text-align: center;
}
.footer-credit a { color: #f8967f; text-decoration: none; transition: color 0.2s; }
.footer-credit a:hover { color: white; }

/* ═══════════════════════════════════════════════════
   PDF REPORT (v3.9) — informe dedicado para exportación.
   Vive oculto en pantalla (#pdfReportRoot { display:none }
   más abajo) y ADN.buildPdfReport() (js/sec06-07.js) lo llena
   con los datos reales justo antes de exportPDF(). Solo se
   hace visible dentro de @media print (ver bloque PRINT STYLES).
   Reemplaza el viejo enfoque de "imprimir la página tal cual",
   que arrastraba el bug de Sección 06 (ver MASTER_PROMPT_v3.9.md).
═══════════════════════════════════════════════════ */
#pdfReportRoot { display: none; }
.pdfr-page { width: 100%; font-family: var(--font-body); color: var(--text); font-size: 10.5pt; line-height: 1.45; }
.pdfr-doc-ref { font-size: 7.3pt; color: var(--text-muted); margin-bottom: 3mm; padding-bottom: 2mm; border-bottom: 1px dotted var(--border); }
.pdfr-doc-ref b { color: var(--text); font-weight: 700; }
.pdfr-block { break-inside: avoid; page-break-inside: avoid; }
.pdfr-cover { background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%); color: #fff; border-radius: 12px; padding: 9mm 10mm; margin-bottom: 6mm; }
.pdfr-cover-badge { font-size: 8pt; letter-spacing: .08em; text-transform: uppercase; opacity: .85; font-weight: 600; }
.pdfr-cover-title { font-family: var(--font-title); font-size: 19pt; font-weight: 800; margin: 2mm 0 1mm; }
.pdfr-cover-meta { display: flex; gap: 6mm; font-size: 9pt; opacity: .92; flex-wrap: wrap; margin-top: 3mm; }
.pdfr-cover-meta b { font-weight: 700; }
.pdfr-section-title { display: flex; align-items: baseline; gap: 2.5mm; margin: 7mm 0 3mm; border-bottom: 1.5px solid var(--charcoal); padding-bottom: 1.5mm; }
.pdfr-section-title .num { font-size: 9pt; font-weight: 800; color: var(--red); }
.pdfr-section-title h2 { font-family: var(--font-title); font-size: 12pt; font-weight: 700; margin: 0; }
.pdfr-hero { background: var(--red); color: #fff; border-radius: 10px; padding: 6mm 8mm; text-align: center; margin-bottom: 5mm; }
.pdfr-hero .label { font-size: 8.5pt; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.pdfr-hero .amount { font-size: 24pt; font-weight: 800; margin: 1mm 0; }
.pdfr-hero .usd { font-size: 9pt; opacity: .85; }
.pdfr-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3mm; margin-bottom: 4mm; }
.pdfr-stat { background: var(--gray-bg); border: 1px solid var(--border); border-radius: 8px; padding: 3mm; }
.pdfr-stat .l { font-size: 7.3pt; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; }
.pdfr-stat .v { font-size: 11.5pt; font-weight: 700; color: var(--text); margin-top: .8mm; }
.pdfr-stat.accent .v { color: var(--red); }
.pdfr-two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 6mm; align-items: start; }
.pdfr-kv-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2mm 4mm; font-size: 9.3pt; }
.pdfr-kv-list .kv { display: flex; flex-direction: column; }
.pdfr-kv-list .kv .k { font-size: 7.3pt; color: var(--text-muted); text-transform: uppercase; }
.pdfr-kv-list .kv .v { font-weight: 600; }
.pdfr-kv-list .kv.full { grid-column: 1 / -1; }
.pdfr-family-mini { text-align: center; }
.pdfr-family-mini svg { width: 100%; max-width: 42mm; height: auto; display: inline-block; }
.pdfr-family-mini .names { font-size: 7.8pt; color: var(--text-muted); margin-top: 1mm; }
.pdfr-table { width: 100%; border-collapse: collapse; font-size: 9pt; margin-top: 1mm; }
.pdfr-table th { background: var(--charcoal); color: #fff; text-align: left; padding: 1.8mm 2.5mm; font-size: 7.5pt; text-transform: uppercase; letter-spacing: .02em; }
.pdfr-table td { padding: 1.8mm 2.5mm; border-bottom: 1px solid var(--border); }
.pdfr-table tr:nth-child(even) td { background: var(--gray-bg); }
.pdfr-solution { background: var(--red-light); border: 1px solid #fbd2c5; border-radius: 8px; padding: 4mm 5mm; margin-top: 2mm; }
.pdfr-solution h3 { font-size: 10pt; color: var(--red); margin: 0 0 1mm; }
.pdfr-disclaimer { font-size: 7.3pt; color: var(--text-muted); border-top: 1px solid var(--border); margin-top: 8mm; padding-top: 2mm; }
.pdfr-disclaimer b { color: var(--text); }
.pdfr-empty-note { font-size: 8.5pt; color: var(--text-muted); font-style: italic; }

/* Reescala elementos clonados tal cual del sitio real (mismas clases,
   mismos datos) para que quepan en el formato compacto del informe */
.pdfr-clone-timeline svg { max-height: 45mm; width: 100%; }
.pdfr-clone-uni .uni-result-card { margin-top: 2.5mm; }
.pdfr-clone-end .endosable-table { font-size: 8.5pt; }

/* ═══════════════════════════════════════════════════
   PRINT STYLES — v3.9: se imprime #pdfReportRoot (el informe),
   no la página interactiva. Así se elimina de raíz el bug de
   Sección 06 (paneles que se forzaban a mostrar siempre) y el
   exceso de páginas en blanco por el paginado de .card.
═══════════════════════════════════════════════════ */
@media print {
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  body { background: white !important; }

  .site-header, #adn-main, .site-footer, .login-gate { display: none !important; }
  #pdfReportRoot { display: block !important; }

  @page { size: A4 portrait; margin: 10mm 12mm; }
}

