/* =============================================================
   QR3D — guías, acerca y contacto
   Complemento de styles.css. Se carga DESPUÉS de styles.css y
   reutiliza sus tokens: no redefine ningún color ni tipografía,
   así que hereda el modo oscuro y cualquier cambio de marca.
   1. Columna de lectura · 2. Texto largo · 3. Tablas
   4. Aviso · 5. Llamada a la herramienta · 6. Índice
   7. Formulario · 8. Responsive
   ============================================================= */

/* =============================================================
   1. Columna de lectura
   ============================================================= */
.guide {
  max-width: 68ch;
  margin-inline: auto;
  padding-block: clamp(1.8rem, 5vw, 3rem) 1rem;
}
.guide > h1 { margin-bottom: .7rem; }
.guide-lede {
  font-size: clamp(1.02rem, 1.8vw, 1.16rem);
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 1.9rem;
}
.guide-lede strong { color: var(--ink); }

/* =============================================================
   2. Texto largo
   ============================================================= */
.guide h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  margin-top: 2.6rem;
  margin-bottom: .7rem;
}
.guide h3 {
  font-size: 1.06rem;
  margin-top: 1.8rem;
  margin-bottom: .35rem;
}
.guide p {
  color: var(--ink-soft);
  margin-bottom: .95rem;
  line-height: 1.68;
}
.guide strong { color: var(--ink); font-weight: 600; }
.guide a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: .18em;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--accent-strong) 45%, transparent);
  transition: text-decoration-color .18s var(--ease-out);
}
.guide a:hover { text-decoration-color: var(--accent-strong); }

.guide ul, .guide ol {
  margin: 0 0 1.1rem;
  padding-left: 1.35rem;
  color: var(--ink-soft);
}
.guide li { margin-bottom: .4rem; line-height: 1.6; }
.guide li::marker { color: var(--ink-mute); }

.guide code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: .08em .34em;
  color: var(--ink);
}
.guide pre {
  background: var(--deep);
  color: var(--deep-ink);
  border-radius: var(--r-md);
  padding: .9rem 1.05rem;
  margin: 0 0 1.3rem;
  overflow-x: auto;
  font-size: .84rem;
  line-height: 1.55;
}
.guide pre code {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* =============================================================
   3. Tablas
   ============================================================= */
.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.guide table {
  border-collapse: collapse;
  width: 100%;
  font-size: .89rem;
}
.guide th, .guide td {
  text-align: left;
  padding: .58rem .8rem;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}
.guide th {
  font-weight: 600;
  font-size: .8rem;
  color: var(--ink-soft);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.guide tbody tr:last-child td { border-bottom: 0; }
.guide td:first-child { color: var(--ink); font-weight: 500; }
.guide td.si { color: var(--ok); font-weight: 600; }
.guide td.no { color: var(--bad); font-weight: 600; }

/* =============================================================
   4. Aviso
   ============================================================= */
.guide-note {
  background: var(--accent-soft);
  border-radius: var(--r-md);
  padding: .85rem 1.05rem;
  margin: 0 0 1.4rem;
  font-size: .9rem;
}
.guide-note p { color: var(--accent-strong); margin: 0; line-height: 1.55; }
.guide-note p + p { margin-top: .5rem; }
.guide-note strong { color: var(--accent-strong); }
.guide-note code { background: color-mix(in srgb, var(--surface) 70%, transparent); }

/* =============================================================
   5. Llamada a la herramienta
   ============================================================= */
.guide-cta {
  display: grid;
  gap: .9rem;
  justify-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.2rem 1.3rem;
  margin: 2.4rem 0;
  box-shadow: var(--shadow-sm);
}
.guide-cta p { margin: 0; font-size: .93rem; }

/* =============================================================
   6. Índice de guías
   ============================================================= */
.guide-index { list-style: none; padding: 0; display: grid; gap: .8rem; margin: 1.6rem 0 0; }
.guide-index li { margin: 0; }
.guide-index a.guide-link {
  display: grid;
  gap: .3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.05rem 1.15rem;
  text-decoration: none;
  transition: border-color .18s var(--ease-out), transform .18s var(--ease-out);
}
.guide-index a.guide-link:hover { border-color: var(--accent-strong); transform: translateY(-1px); }
.guide-index h2 {
  font-size: 1.04rem;
  margin: 0;
  color: var(--ink);
  letter-spacing: -.01em;
}
.guide-index p { margin: 0; font-size: .88rem; color: var(--ink-soft); line-height: 1.55; }

/* =============================================================
   7. Formulario de contacto
   ============================================================= */
.guide textarea {
  width: 100%;
  min-height: 9rem;
  resize: vertical;
  padding: .62rem .75rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color .18s var(--ease-out);
}
.guide textarea:focus, .guide input[type="email"]:focus { border-color: var(--accent-strong); outline: none; }
.guide input[type="email"] {
  width: 100%;
  padding: .62rem .75rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.contact-form { display: grid; gap: 1rem; justify-items: start; margin-bottom: 1.5rem; }
.contact-form .field { width: 100%; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 720px) {
  .guide-cta {
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-items: stretch;
  }
  .guide-cta .btn { justify-self: end; }
}
