/* ═══════════════════════════════════════════════════════════════════
   AnonimoDsn — Páginas interiores
   Mismo lenguaje que la home (identidad «La etiqueta», 11 nov 2026): cabeceras
   editoriales alineadas a la izquierda, filas numeradas con líneas finas, precios
   en Fraunces, un solo acento terracota. Se apoya en main.css (tokens, nav, botones, footer, .tag).
   ═══════════════════════════════════════════════════════════════════ */


/* ── Cabecera de página ── */
.pg-hero { position: relative; overflow: hidden; padding: clamp(120px, 13vw, 176px) 0 clamp(48px, 6vw, 88px); }
.pg-hero .container { position: relative; }
.pg-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.pg-hero-grid:has(.pg-photo), .pg-hero-grid:has(.pg-cover) { align-items: center; }
.pg-hero .pg-photo img { max-height: min(58vh, 540px); }
.pg-hero-grid--one { grid-template-columns: minmax(0, 1fr); }
.pg-h1 { font: 600 min(clamp(2.3rem, 1rem + 4.2vw, 4.3rem), 8.1vw)/1.04 var(--font-disp); letter-spacing: -.015em; text-wrap: balance; overflow-wrap: break-word; margin-bottom: 24px; }
.pg-h1 em, .pg-sh h2 em, .pg-cta h2 em { color: var(--accent); font-style: italic; font-weight: 560; }
.pg-lead { font-size: clamp(1.02rem, .96rem + .35vw, 1.2rem); line-height: 1.7; color: var(--text-2); max-width: 58ch; }
.pg-actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 32px; }
.pg-link { font-weight: 700; font-size: .92rem; color: var(--text); border-bottom: 1.5px solid var(--line-strong); padding-bottom: 3px; transition: color .2s, border-color .2s; }
.pg-link:hover { color: var(--accent); border-color: var(--accent); }
/* Enlaces de texto con área táctil ampliada (invisible) */
.pg-link, .pg-cta .mail { position: relative; }
.pg-link::after, .pg-cta .mail::after { content: ""; position: absolute; inset: -14px -6px; }
.pg-link { display: inline-block; min-height: 44px; padding-top: 11px; }

/* Datos clave: lista de pares etiqueta / valor */
.pg-facts { display: grid; border-top: 1px solid var(--line-strong); }
.pg-facts li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.pg-facts b { flex-shrink: 0; white-space: nowrap; font: 600 .875rem var(--font-body); color: var(--text); text-align: right; }

/* Foto con crédito */
.pg-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 3px solid var(--ink); background: var(--surface); box-shadow: 0 26px 44px -30px rgba(20,35,74,.55); }
.pg-photo img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pg-photo figcaption { padding: 10px 14px; border-top: 1px solid var(--line); font: 400 .8125rem var(--font-body); color: var(--muted); }
.pg-photo figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.pg-photo--wide img { aspect-ratio: 16 / 9; }
.pg-photo + .pg-facts { margin-top: 24px; }
/* Captura real de un producto: se recorta desde arriba para que se vea su encabezado */
.pg-photo--shot img { object-position: top; }

/* Cifras en franja */
.pg-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line-strong); }
.pg-stats > div { padding: 24px 20px; border-right: 1px solid var(--line); }
.pg-stats > div:first-child { padding-left: 0; }
.pg-stats > div:last-child { border-right: 0; }
.pg-stats b { display: block; font: 600 clamp(1.6rem, 1.2rem + 1.1vw, 2.3rem)/1 var(--font-disp); letter-spacing: -.015em; font-variant-numeric: lining-nums; margin-bottom: 8px; }
.pg-stats span { font: 400 .8125rem var(--font-body); color: var(--muted); }

/* ── Secciones ── */
.pg-sec { position: relative; padding: clamp(64px, 8vw, 120px) 0; border-top: 1px solid var(--line); }
.pg-sh { display: grid; gap: 18px; margin-bottom: clamp(32px, 5vw, 64px); }
.pg-sh h2, .pg-cta h2 { font: 600 clamp(1.9rem, 1rem + 2.8vw, 3.1rem)/1.08 var(--font-disp); letter-spacing: -.016em; text-wrap: balance; }
.pg-sh p { color: var(--text-2); max-width: 58ch; }

/* ── Filas numeradas (servicios, pasos, características) ── */
.pg-rows { border-top: 1px solid var(--line-strong); }
.pg-row { display: grid; grid-template-columns: 56px minmax(0, 5fr) minmax(0, 5fr) minmax(0, 3fr); gap: 16px clamp(20px, 3vw, 48px); align-items: start; padding: clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid var(--line); }
.pg-row--3 { grid-template-columns: 56px minmax(0, 5fr) minmax(0, 6fr); }
.pg-row .n { font: 700 .8rem var(--font-body); color: var(--accent); padding-top: .6em; }
.pg-row h3 { font: 600 clamp(1.3rem, 1.1rem + .9vw, 1.75rem)/1.15 var(--font-disp); letter-spacing: -.012em; margin-bottom: 10px; }
.pg-row p { color: var(--text-2); font-size: .98rem; max-width: 52ch; }
.pg-row .side { text-align: right; }
.pg-row .side b { display: block; font: 600 1.45rem/1.1 var(--font-disp); letter-spacing: -.01em; font-variant-numeric: lining-nums tabular-nums; }
.pg-row .side .pg-price span, .pg-row .side > span { display: block; margin-top: 6px; font: 400 .8125rem var(--font-body); color: var(--muted); }
.pg-row .side .btn .arrow { display: inline-block; margin: 0; color: inherit; }
.pg-row .side .btn { margin-top: 12px; }
.pg-list { display: grid; gap: .55em; }
.pg-list li { position: relative; padding-left: 1.4em; color: var(--text-2); font-size: .92rem; line-height: 1.5; }
.pg-list li::before { content: ""; position: absolute; left: 0; top: .78em; width: .7em; height: 1px; background: var(--accent); }
.pg-list strong { color: var(--text); font-weight: 600; }

/* ── Rejilla con líneas (beneficios, recursos, casos) ── */
.pg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.pg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pg-item { padding: clamp(22px, 2.6vw, 36px) 0 clamp(22px, 2.6vw, 36px) clamp(18px, 3vw, 44px); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
.pg-grid > .pg-item:nth-child(2n+1) { padding-left: 0; padding-right: clamp(18px, 3vw, 44px); border-left: 0; }
.pg-grid--3 > .pg-item:nth-child(2n+1) { padding-left: clamp(18px, 3vw, 44px); padding-right: 0; border-left: 1px solid var(--line); }
.pg-grid--3 > .pg-item:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.pg-grid--1 > .pg-item, .pg-grid--1 > .pg-item:nth-child(n) { padding-left: 0; padding-right: 0; border-left: 0; }
.pg-item .n { display: block; margin-bottom: 14px; font: 700 .8rem var(--font-body); color: var(--accent); }
.pg-item h3 { font: 600 1.3rem/1.2 var(--font-disp); letter-spacing: -.01em; margin-bottom: 8px; }
.pg-item p { color: var(--text-2); font-size: .95rem; }
.pg-item .btn, .pg-item .pg-link { margin-top: 18px; }

/* ── Planes: tres columnas separadas por líneas, la recomendada resaltada ── */
.pg-toggle { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.pg-toggle .seg { display: inline-flex; padding: 3px; border: 1.5px solid var(--line-strong); border-radius: var(--pill); }
.pg-toggle .toggle-btn { min-height: 44px; padding: 7px 18px; border: 0; border-radius: var(--pill); background: none; color: var(--muted); font: 700 .85rem var(--font-body); cursor: pointer; transition: background .2s, color .2s; }
.pg-toggle .toggle-btn.active { background: var(--accent); color: var(--accent-ink); }
.pg-toggle .note { font: 400 .8125rem var(--font-body); color: var(--muted); }
.pg-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1.5px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.pg-plans--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pg-plan { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 2.8vw, 40px); border-right: 1px solid var(--line); }
.pg-plan:last-child { border-right: 0; }
.pg-plan.is-featured { position: relative; z-index: 1; box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); border-radius: var(--radius-lg); }
.pg-plan .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 26px; }
.pg-plan .name { font: 700 .95rem var(--font-body); color: var(--text); letter-spacing: .02em; }
.pg-flag { font: 700 .8125rem var(--font-body); padding: 5px 12px; border-radius: var(--pill); color: var(--accent-ink); background: var(--accent); }
.pg-plan .desc { color: var(--text-2); font-size: .95rem; min-height: 4.6em; }
.pg-price { display: grid; gap: 6px; padding: 16px 0; border-block: 1px solid var(--line); }
.pg-price .old { min-height: 1.5em; font: 500 .8125rem/1.5 var(--font-body); color: var(--muted); text-decoration: line-through; }
.pg-price .main { font: 600 clamp(2.1rem, 1.3rem + 1.8vw, 3rem)/1 var(--font-disp); letter-spacing: -.015em; font-variant-numeric: lining-nums tabular-nums; }
.pg-price .per, .pg-price .iva { font: 400 .8125rem var(--font-body); color: var(--muted); }
.pg-plan .pg-list { flex: 1; }
.pg-plan .btn { width: 100%; margin-top: 8px; }

/* ── Tabla comparativa ── */
.pg-tablewrap { overflow-x: auto; border-top: 1px solid var(--line-strong); border-radius: var(--radius) var(--radius) 0 0; }
.pg-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .92rem; }
.pg-table th, .pg-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pg-table thead th { font: 600 .8125rem var(--font-body); color: var(--muted); }
.pg-table tbody th { font-weight: 400; color: var(--muted); }
.pg-table td { color: var(--text-2); }
.pg-table .us { background: var(--accent-soft); color: var(--text); }
.pg-table thead .us { color: var(--accent); }
.pg-table .ico { margin-right: 6px; vertical-align: -3px; }
.pg-table .key { font-weight: 600; font-variant-numeric: tabular-nums; }
.pg-note { margin-top: 20px; font: 400 .8125rem/1.6 var(--font-body); color: var(--muted); max-width: 78ch; }

/* ── Preguntas frecuentes (details nativo, sin JavaScript) ── */
.pg-faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 24px clamp(24px, 6vw, 96px); }
.pg-faq-head { position: sticky; top: 112px; align-self: start; }
.pg-faq-head h2 { font: 600 clamp(1.9rem, 1rem + 2.4vw, 2.8rem)/1.08 var(--font-disp); letter-spacing: -.016em; }
.pg-faq-head h2 em { color: var(--accent); font-style: italic; font-weight: 560; }
.pg-faq-list { border-top: 1px solid var(--line-strong); }
.pg-faq details { border-bottom: 1px solid var(--line); }
.pg-faq summary { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font: 600 1.02rem/1.4 var(--font-body); color: var(--text); transition: color .2s; }
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary::after { content: "+"; font: 500 1.5rem/1 var(--font-body); color: var(--accent); transition: transform .3s var(--ease); }
.pg-faq details[open] summary::after { transform: rotate(45deg); }
.pg-faq summary:hover, .pg-faq details[open] summary { color: var(--accent); }
.pg-faq details p { padding: 0 0 24px; color: var(--text-2); max-width: 62ch; }

/* ── Cierre con llamada a la acción ── */
.pg-cta { padding: clamp(56px, 7vw, 104px) 0 clamp(72px, 9vw, 128px); border-top: 1px solid var(--line); }
.pg-cta-box { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 28px clamp(24px, 5vw, 80px); align-items: end; padding: clamp(28px, 4vw, 56px); border: 0; border-radius: var(--radius-lg); background: var(--bg); }
.pg-cta p { margin-top: 14px; color: var(--text-2); max-width: 52ch; }
.pg-cta .pg-actions { margin-top: 0; flex-direction: column; align-items: stretch; }
.pg-cta .btn { width: 100%; }
.pg-cta .mail { font: 400 .875rem var(--font-body); color: var(--muted); text-align: center; }
.pg-cta .mail:hover { color: var(--accent); }

/* ── Adaptación ── */
@media (max-width: 960px) {
  .pg-hero-grid, .pg-sh, .pg-faq, .pg-cta-box { grid-template-columns: minmax(0, 1fr); }
  .pg-faq-head { position: static; }
  .pg-row, .pg-row--3 { grid-template-columns: minmax(0, 1fr); }
  .pg-row .n { padding-top: 0; }
  .pg-row .side { text-align: left; }
  .pg-grid, .pg-grid--3, .pg-plans { grid-template-columns: minmax(0, 1fr); }
  .pg-grid > .pg-item, .pg-grid > .pg-item:nth-child(n) { padding-left: 0; padding-right: 0; border-left: 0; }
  .pg-plan { border-right: 0; border-bottom: 1px solid var(--line); }
  .pg-plan:last-child { border-bottom: 0; }
  .pg-plan .desc { min-height: 0; }
  .pg-price .old:empty { display: none; }
  .pg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-stats > div:nth-child(2) { border-right: 0; }
  .pg-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pg-stats > div:nth-child(3) { padding-left: 0; }
  .pg-photo img { aspect-ratio: 16 / 10; }
}
@media (max-width: 480px) {
  .pg-hero { padding-top: 104px; }
  .pg-facts li { flex-direction: column; gap: 4px; }
  .pg-facts b { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .pg-faq summary::after, .pg-link { transition: none; }
}
.pg-h1--long { font-size: min(clamp(2rem, 1rem + 2.7vw, 3rem), 6.6vw); line-height: 1.07; }

/* ── Documentos legales ── */
.doc-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 24px clamp(24px, 6vw, 96px); align-items: start; }
.doc-toc { position: sticky; top: 112px; font-size: .86rem; }
.doc-toc ol { display: grid; list-style: none; border-top: 1px solid var(--line-strong); }
.doc-toc a { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); transition: color .2s; }
.doc-toc a:hover { color: var(--accent); }
.doc-toc .n { flex-shrink: 0; font: 400 .75rem/1.9 var(--font-mono); color: var(--accent); }
.doc-section { margin-bottom: clamp(28px, 4vw, 48px); padding-bottom: clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.doc-section:last-child { margin-bottom: 0; border-bottom: 0; }
.doc-section h2 { margin-bottom: 16px; font: 600 clamp(1.35rem, 1.1rem + .9vw, 1.75rem)/1.2 var(--font-disp); letter-spacing: -.012em; }
.doc-section h2 .sec-num { margin-right: 10px; font: 700 .8rem var(--font-body); color: var(--accent); }
.doc-section p, .doc-section li { color: var(--text-2); line-height: 1.75; }
.doc-section p + p, .doc-section p + ul, .doc-section ul + p, .doc-section p + .pg-tablewrap, .doc-section .pg-tablewrap + p { margin-top: 14px; }
.doc-section strong { color: var(--text); font-weight: 600; }
.doc-section a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.doc-section .pg-table td:first-child { color: var(--text); font-weight: 600; }

/* ── Página 404 ── */
.err { display: flex; align-items: center; min-height: 100dvh; }
.err .container { width: 100%; }
.err-num { margin-bottom: 12px; font: 600 clamp(5rem, 3rem + 14vw, 12rem)/.9 var(--font-disp); letter-spacing: -.015em; color: var(--accent); font-style: italic; }
@media (max-width: 960px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .doc-toc { position: static; }
}

/* ── Aviso (vuelta del pago) ── */
.pg-aviso { margin: 0 0 clamp(24px, 3vw, 36px); padding: 16px 20px; border: 1.5px solid var(--accent-line); border-radius: var(--radius); background: var(--accent-soft); color: var(--text); font-size: .95rem; line-height: 1.6; }
.pg-aviso[hidden] { display: none; }
.pg-price-inline { display: inline-flex; align-items: baseline; gap: 8px; margin-bottom: 8px; font: 600 clamp(1.7rem, 1.2rem + 1.5vw, 2.4rem)/1 var(--font-disp); letter-spacing: -.015em; font-variant-numeric: lining-nums; }
.pg-price-inline small { font: 400 .8125rem var(--font-body); color: var(--muted); }

/* Ronda 3: portada de color con la etiqueta, en lugar de una foto de banco */
.pg-cover { position: relative; display: grid; place-items: center; aspect-ratio: 5 / 4; max-height: 420px; width: 100%; overflow: hidden; border-radius: var(--radius-lg); border: 3px solid var(--ink); box-shadow: 0 26px 44px -30px rgba(20,35,74,.55); background-image: var(--grain); }
.pg-cover--tinta { background-color: #14234A; }
.pg-cover--terra { background-color: #AE4322; }
.pg-cover--papel { background-color: var(--surface); }
.pg-cover .tag-hs { --h: clamp(78px, 8.4vw, 108px); transform: rotate(-4deg); }
.pg-cover + .pg-facts { margin-top: 24px; }
@media (max-width: 960px) { .pg-cover { aspect-ratio: 16 / 9; max-height: 260px; } }
