/**
 * components.css — Piezas reutilizables: panel/acta (única superficie
 * clara del sitio, "papel volviéndose digital" — mismo criterio y colores
 * que producto-juridica.css del sitio madre), tarjetas de riesgo, sobre de
 * notificación, pasos numerados, nota de marco legal, grillas de meta y
 * de audiencia.
 */

/* ---------- Panel / Acta (signature element) ---------- */

.panel {
  max-width: 100%;
  background: var(--paper);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 70px -28px rgba(0, 0, 0, 0.65);
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  row-gap: 6px;
  column-gap: 16px;
  padding: 1rem 1.4rem;
  background: var(--paper-head);
  border-bottom: 1px dashed var(--paper-line);
}

.panel-head span:first-child {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--paper-ink);
}

.panel-head span:last-child {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--paper-ink-soft);
}

.panel-body { padding: 0.3rem 1.4rem 1.1rem; }

.panel-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--paper-line);
  font-size: 0.88rem;
}

.panel-row:last-of-type { border-bottom: none; }

.panel-row dt { color: var(--paper-ink-soft); font-weight: 400; }
.panel-row dd { margin: 0; color: var(--paper-ink); font-weight: 600; font-family: var(--font-mono); font-size: 0.82rem; }

.panel-stamp-zone {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--paper-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel-signed { font-size: 0.82rem; color: var(--paper-ink-soft); }
.panel-signed strong { color: var(--paper-ink); }

.panel-stamp {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: 2px solid var(--gold);
  color: #8a6d2e;
  padding: 6px 10px;
  border-radius: 3px;
  transform: rotate(-6deg);
  white-space: nowrap;
}

/* ---------- Grilla de riesgo / capacidades (hairline grid) ---------- */

.fact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 1.5rem;
}

.fact-card {
  padding: 1.6rem;
  background: var(--surface);
  transition: background var(--dur-base);
}

.fact-card:hover { background: var(--bg-raised); }

.fact-card .mono {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: 0.7rem;
}

.fact-card h3 { margin-bottom: 0.5rem; }
.fact-card p { color: var(--text-2); font-size: 0.88rem; line-height: 1.65; }

@media (min-width: 640px) { .fact-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Tarjetas de caso (home → páginas dedicadas) ---------- */

.casos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 1.5rem;
}

.casos-card {
  display: block;
  padding: 2rem;
  background: var(--surface);
  text-decoration: none;
  transition: background var(--dur-base);
}

.casos-card:hover { background: var(--bg-raised); }

.casos-card .mono {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.casos-card h3 { margin-bottom: 0.6rem; }
.casos-card p { color: var(--text-2); font-size: 0.92rem; line-height: 1.65; margin-bottom: 1.2rem; max-width: 56ch; }

@media (min-width: 760px) { .casos-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Sobre de notificación ---------- */

.envelope {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.4rem;
}

.envelope-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--border-md);
  font-size: 0.82rem;
}

.envelope-line:last-child { border-bottom: none; }
.envelope-line span:first-child { color: var(--text-3); font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.envelope-line span:last-child { color: var(--text); text-align: right; }

/* ---------- Pasos numerados ---------- */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
  margin-top: 1.5rem;
}

.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.step h3 { margin-bottom: 0.4rem; }
.step p { color: var(--text-2); font-size: 0.9rem; line-height: 1.6; max-width: 38ch; }

@media (min-width: 640px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .steps--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .steps--4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Nota de marco legal ---------- */

.legal-note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--gold-line);
  border-radius: 6px;
  padding: 1.6rem 1.8rem;
}

.legal-note .mono {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--gold);
  margin-bottom: 0.9rem;
  line-height: 1.5;
}

.legal-note p { color: var(--text-2); font-size: 0.92rem; line-height: 1.75; }
.legal-note p + p { margin-top: 0.9rem; }
.legal-note strong { color: var(--text); }

/* ---------- Grilla de audiencia / para quién ---------- */

.audience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 1.5rem;
}

.audience-card {
  padding: 1.6rem;
  background: var(--surface);
}

.audience-card h3 { margin-bottom: 0.5rem; font-size: 0.95rem; }
.audience-card p { color: var(--text-2); font-size: 0.86rem; line-height: 1.6; }

@media (min-width: 640px) { .audience-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Meta grid (categoría / para quién / marco legal) ---------- */

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.meta-item { padding: 0.9rem 1.1rem; background: var(--surface); }
.meta-item-label { color: var(--text-3); font-size: 0.55rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.3rem; }
.meta-item-value { color: var(--text); font-size: 0.88rem; font-weight: 500; }

@media (min-width: 640px) { .meta-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Lista de solución ---------- */

.solution-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.solution-list li { display: flex; gap: 0.8rem; align-items: baseline; }
.solution-list li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 0.5em;
}
.solution-list strong { color: var(--text); }
.solution-list span { color: var(--text-2); font-size: 0.92rem; line-height: 1.65; }

/* Cuando siguen a un párrafo dentro de una sección de producto */
.producto-section .solution-list { margin-top: 1.8rem; }
.producto-section .envelope { margin-top: 2rem; max-width: 480px; }

.legal-note .fine-print { font-size: 0.8rem; color: var(--text-3); }
