/* ============================================================
   DIBS — Centro de respuestas (/respuestas/)
   ------------------------------------------------------------
   Hoja complementaria: se carga DESPUÉS de css/style.css y reutiliza sus
   tokens de color. Estas páginas son de texto y están pensadas para que un
   motor generativo las lea sin ejecutar JavaScript, así que aquí NO hay
   reveal-on-scroll ni nada que dependa de un IntersectionObserver: todo el
   contenido es visible desde el primer paint.
   ============================================================ */

body.answers {
  background: var(--surface);
}

/* ===== Barra superior sencilla (sin JS) ===== */
.ans-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 251, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(154, 2, 205, 0.1);
}
.ans-nav-inner {
  max-width: 1080px; margin: 0 auto;
  padding: 0 28px; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.ans-nav-inner .logo img { height: 28px; width: auto; }
.ans-nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 100px;
  background: var(--primary); color: var(--yellow-bright);
  font-size: 13px; font-weight: 900; letter-spacing: .5px;
  border: 2px solid var(--gold);
  white-space: nowrap;
}
.ans-nav-cta:hover { background: var(--primary-dark); }

/* ===== Contenedor de artículo ===== */
.ans-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 28px 90px;
}
.ans-wrap.is-wide { max-width: 1080px; }

/* Migas de pan: refuerzan el BreadcrumbList del JSON-LD en texto visible. */
.ans-crumbs {
  font-size: 13px; font-weight: 700; color: var(--gray);
  margin-bottom: 26px;
}
.ans-crumbs a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.ans-crumbs span[aria-current] { color: var(--text); }

.ans-kicker {
  display: inline-block;
  padding: 6px 14px; border-radius: 100px;
  background: var(--primary-container); color: var(--primary);
  font-size: 11px; font-weight: 900; letter-spacing: 1.4px; text-transform: uppercase;
  margin-bottom: 18px;
}

.ans-wrap h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 8px;
}
.ans-wrap h1 .accent { color: var(--primary); }

.ans-meta {
  font-size: 13px; font-weight: 700; color: var(--gray);
  margin-bottom: 34px;
}

/* ===== La respuesta corta =====
   Este es el bloque que queremos que un motor cite literalmente: 40-60
   palabras, autocontenido, con la afirmación principal en la primera frase. */
.ans-tldr {
  padding: 26px 28px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--cream), var(--primary-container));
  border: 2px solid var(--gold);
  margin-bottom: 40px;
}
.ans-tldr .lbl {
  display: block;
  font-size: 11px; font-weight: 900; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--primary); margin-bottom: 10px;
}
.ans-tldr p {
  font-size: 18px; line-height: 1.65; font-weight: 700; color: var(--text);
}
.ans-tldr p + p { margin-top: 12px; }

/* ===== Cuerpo ===== */
.ans-body h2 {
  font-size: clamp(22px, 3.4vw, 29px);
  font-weight: 900; letter-spacing: -.5px; line-height: 1.25;
  color: var(--text);
  margin: 52px 0 14px;
  scroll-margin-top: 84px;
}
.ans-body h3 {
  font-size: 18.5px; font-weight: 900; color: var(--text);
  margin: 32px 0 10px;
  scroll-margin-top: 84px;
}
.ans-body p {
  font-size: 17px; line-height: 1.78; font-weight: 500; color: var(--text-soft);
  margin-bottom: 16px;
}
.ans-body strong, .ans-body b { font-weight: 900; color: var(--text); }
.ans-body a {
  color: var(--primary); font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px;
}
.ans-body ul, .ans-body ol {
  margin: 0 0 20px 22px;
  font-size: 17px; line-height: 1.72; font-weight: 500; color: var(--text-soft);
}
.ans-body li { margin-bottom: 9px; }
.ans-body li::marker { color: var(--primary); font-weight: 900; }

.ans-body blockquote {
  margin: 26px 0;
  padding: 18px 24px;
  border-left: 4px solid var(--primary);
  background: var(--surface-2);
  border-radius: 0 16px 16px 0;
  font-size: 16.5px; line-height: 1.7; font-weight: 700; color: var(--text-soft);
}

/* Índice de la página */
.ans-toc {
  padding: 22px 26px;
  border-radius: 20px;
  background: var(--surface-2);
  border: 1.5px solid var(--primary-container);
  margin-bottom: 40px;
}
.ans-toc b {
  display: block; font-size: 12px; font-weight: 900;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--gray); margin-bottom: 12px;
}
.ans-toc ol { margin: 0 0 0 20px; font-size: 15.5px; line-height: 1.9; font-weight: 700; }
.ans-toc a { color: var(--primary); }

/* ===== Tabla de datos reutilizable ===== */
.ans-table-wrap {
  overflow-x: auto;
  border-radius: 20px;
  border: 2px solid var(--primary-container);
  background: white;
  margin: 26px 0 14px;
  -webkit-overflow-scrolling: touch;
}
table.ans-table {
  width: 100%; min-width: 620px;
  border-collapse: collapse; text-align: left;
}
table.ans-table caption {
  caption-side: top; text-align: left;
  padding: 16px 20px 0;
  font-size: 12.5px; font-weight: 800; color: var(--gray);
}
table.ans-table th, table.ans-table td {
  padding: 14px 18px;
  font-size: 15px; line-height: 1.55;
  vertical-align: top;
}
table.ans-table thead th {
  font-weight: 900; color: var(--gray);
  background: linear-gradient(180deg, #FFF6E0, #F9D8FF);
  border-bottom: 2px solid var(--primary);
  white-space: nowrap;
}
table.ans-table tbody tr + tr { border-top: 1px solid var(--primary-container); }
table.ans-table tbody th[scope="row"] { font-weight: 900; color: var(--text); }
table.ans-table tbody td { font-weight: 600; color: var(--text-soft); }
table.ans-table .is-dibs { background: rgba(249, 216, 255, 0.3); }
table.ans-table thead .is-dibs { color: var(--primary); }

/* Ficha clave/valor */
.ans-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2px;
  background: var(--primary-container);
  border: 2px solid var(--primary-container);
  border-radius: 20px; overflow: hidden;
  margin: 26px 0;
}
.ans-facts .f { background: white; padding: 16px 18px; }
.ans-facts dt {
  font-size: 10.5px; font-weight: 900; letter-spacing: 1.1px;
  text-transform: uppercase; color: var(--gray); margin-bottom: 5px;
}
.ans-facts dd { font-size: 15px; font-weight: 800; color: var(--text); line-height: 1.4; }

/* ===== FAQ al pie del artículo ===== */
.ans-faq details {
  border: 1.5px solid var(--primary-container);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 12px;
  background: white;
}
.ans-faq summary {
  font-size: 16.5px; font-weight: 900; color: var(--text);
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.ans-faq summary::-webkit-details-marker { display: none; }
.ans-faq summary::after {
  content: '+'; color: var(--primary); font-size: 22px; font-weight: 900; line-height: 1;
}
.ans-faq details[open] summary::after { content: '−'; }
.ans-faq details > div {
  margin-top: 12px;
  font-size: 16px; line-height: 1.72; font-weight: 500; color: var(--text-soft);
}

/* ===== CTA de descarga ===== */
.ans-cta {
  margin: 56px 0 0;
  padding: 34px 30px;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--magenta) 100%);
  color: white;
  text-align: center;
}
.ans-cta h2 {
  color: white; margin: 0 0 10px;
  font-size: clamp(21px, 3.2vw, 27px); font-weight: 900; letter-spacing: -.5px;
}
.ans-cta p {
  color: rgba(255,255,255,.9);
  font-size: 16px; line-height: 1.6; font-weight: 600;
  margin: 0 auto 22px; max-width: 480px;
}
.ans-cta .btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 100px;
  background: var(--yellow-bright); color: var(--primary);
  font-size: 15px; font-weight: 900; letter-spacing: .5px;
  border: 2px solid var(--gold);
}
.ans-cta .btn:hover { background: white; }
.ans-cta .fine { font-size: 13px; margin: 16px 0 0; color: rgba(255,255,255,.78); font-weight: 700; }

/* ===== Enlaces relacionados ===== */
.ans-related { margin-top: 56px; }
.ans-related > b {
  display: block; font-size: 12px; font-weight: 900;
  letter-spacing: 1.2px; text-transform: uppercase; color: var(--gray);
  margin-bottom: 16px;
}
.ans-related ul { list-style: none; margin: 0; display: grid; gap: 10px; }
.ans-related li { margin: 0; }
.ans-related a {
  display: block;
  padding: 16px 20px; border-radius: 16px;
  border: 1.5px solid var(--primary-container);
  background: white;
  font-size: 16px; font-weight: 800; color: var(--text);
  text-decoration: none;
}
.ans-related a:hover { border-color: var(--primary); background: var(--surface-2); }
.ans-related a small {
  display: block; margin-top: 4px;
  font-size: 13.5px; font-weight: 600; color: var(--gray);
}

/* ===== Rejilla del hub ===== */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 12px;
}
.hub-card {
  display: block;
  padding: 26px;
  border-radius: 22px;
  border: 2px solid var(--primary-container);
  background: white;
  text-decoration: none;
}
.hub-card:hover { border-color: var(--primary); background: var(--surface-2); }
.hub-card .q {
  display: block;
  font-size: 19px; font-weight: 900; line-height: 1.35;
  color: var(--text); margin-bottom: 10px;
}
.hub-card .a {
  display: block;
  font-size: 15px; line-height: 1.65; font-weight: 600; color: var(--text-soft);
}
.hub-card .go {
  display: inline-block; margin-top: 14px;
  font-size: 14px; font-weight: 900; color: var(--primary);
}

/* ===== Pie ===== */
.ans-foot {
  border-top: 1px solid var(--primary-container);
  padding: 28px;
  text-align: center;
  font-size: 13.5px; font-weight: 700; color: var(--gray);
}
.ans-foot a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.ans-foot nav { margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }

@media (max-width: 640px) {
  .ans-wrap { padding: 28px 20px 70px; }
  .ans-nav-inner { padding: 0 20px; }
  .ans-tldr p { font-size: 16.5px; }
  .ans-body p, .ans-body ul, .ans-body ol { font-size: 16px; }
}
