/* Stampado · guías con el sistema visual 2027 (g2, nov-2026): el índice /guias/ y las tres plantillas de guía
   (artículos de articles.json, páginas de recursos.css y «Prepará tu diseño» de guia-stampado.css).
   Va después de esas hojas y de sistema-2027.css. El cuerpo de lectura no cambia de tamaño ni lleva animación:
   acá solo se visten el encabezado, las etiquetas, las tarjetas y el cierre. */

/* ── Índice ───────────────────────────────────────────────────────────────────────────────────────────────────── */
.sv-guias .resource-wrap { width: min(100%, var(--sv-max)); padding: clamp(var(--sp-8), 4.5vw, var(--sp-12)) var(--sv-gutter) var(--sv-gap); }
.sv-guias .sv-rule { margin-bottom: var(--sp-5); }
.sv .resource-grid { gap: clamp(var(--sp-3), 1.6vw, var(--sp-5)); margin-top: 0; }
.sv .resource-card { padding: var(--sp-5) var(--sp-5) var(--sp-6); }
.sv .resource-card small { padding-right: var(--sp-12); color: var(--s-primary); font: 500 var(--t-xs)/1.3 var(--st-f-label); letter-spacing: .08em; }
.sv .resource-card h2 { margin: clamp(var(--sp-8), 4vw, var(--sp-12)) 0 var(--sp-2); font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.04; letter-spacing: -.035em; }
.sv .resource-card p { margin: 0; color: var(--s-text-2); font-size: var(--t-md); }
@media (min-width: 64rem) { .sv .resource-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ── Encabezado editorial de una guía (las dos plantillas sobre papel) ────────────────────────────────────────── */
.sv-guia .st-wrap, .sv-guia .resource-wrap.article { padding-bottom: 0; }
.sv .st-crumb, .sv-guia .resource-wrap > nav { color: var(--s-text-2); font: 500 var(--t-xs)/1.3 var(--st-f-label); letter-spacing: .06em; text-transform: uppercase; }
.sv-guia .resource-wrap > nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--sp-2); margin: 0; }
.sv-guia .resource-wrap > nav a, .sv .st-crumb a { display: inline-flex; align-items: center; justify-content: center; min-width: var(--h-touch); min-height: var(--h-touch); }
.sv .st-hero-article { gap: var(--sp-5); padding-block: clamp(var(--sp-6), 4vw, var(--sp-12)) clamp(var(--sp-6), 3.5vw, var(--sp-10)); }
.sv .st-hero-article .st-eyebrow, .sv-guia .article > small { color: var(--s-primary); font: 500 var(--t-xs)/1.3 var(--st-f-label); letter-spacing: .08em; text-transform: uppercase; }
.sv-guia .article > small { margin-top: clamp(var(--sp-6), 4vw, var(--sp-12)); }
.sv .st-hero-article h1, .sv-guia .article h1 { max-width: 18ch; font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800; line-height: .92; letter-spacing: -.05em; text-wrap: balance; }
.sv-guia .article h1 { margin: var(--sp-5) 0; }
.sv .st-hero-article .st-lede, .sv-guia .article .lede { max-width: 44rem; color: var(--s-text-2); font-size: clamp(var(--t-lg), 1.6vw, var(--t-xl)); line-height: 1.5; }
.sv-guia .article .lede { margin: 0 0 clamp(var(--sp-6), 3.5vw, var(--sp-10)); }
.sv .st-meta { color: var(--s-text-2); font: 500 var(--t-xs)/1.3 var(--st-f-label); letter-spacing: .08em; text-transform: uppercase; }
/* La tira de control cierra el encabezado, sobre el filete de tinta que abre la lectura. */
.sv .st-hero-article::after, .sv-guia .article .lede::after { content: ""; display: block; height: 16px; background: var(--st-strip-bg); }
.sv .st-hero-article::after { margin-top: var(--sp-3); }
.sv-guia .article .lede::after { margin-top: var(--sp-8); }
.sv .st-read, .sv-guia .article-body { border-top-color: var(--c-ink); }

/* ── Piezas de apoyo de la lectura (el texto corrido queda como estaba) ───────────────────────────────────────── */
.sv .st-toc h2, .sv-guia .article-body aside h2, .sv-guia .aside h3 { margin: 0; color: var(--s-text-2); font: 500 var(--t-xs)/1.3 var(--st-f-label); letter-spacing: .08em; text-transform: uppercase; }
.sv .st-toc h2:not(:first-child) { margin-top: var(--sp-3); }
.sv .st-toc li a::before { color: var(--s-primary); font: 500 var(--t-xs)/1 var(--st-f-label); letter-spacing: .08em; }
.sv-guia .article-body aside { display: grid; gap: var(--sp-2); padding: var(--sp-5); border: 1px solid var(--s-border); border-radius: var(--r-4); background: var(--s-surface); }
.sv-guia .article-body li a { min-height: var(--h-touch); padding: var(--sp-3) 0; }
.sv-guia .resource-tool { border-radius: var(--r-4); }
.sv .st-article .st-section { padding-top: clamp(var(--sp-10), 6vw, 5rem); }
.sv .st-article .st-section-head h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: .95; letter-spacing: -.045em; }
.sv .st-article .st-section-head { margin-bottom: var(--sp-6); }

/* ── «Prepará tu diseño» (guia-stampado.css): la cabecera ya es un panel; acá, el resto ───────────────────────── */
.sv-guia .content { padding-bottom: 0; }
.sv-guia .aside { border-top-color: var(--c-ink); }

/* Foto de la portada del índice: una prueba de imprenta apoyada sobre el panel. */
.sv-hero-photo { display: block; width: min(100%, 22rem); height: auto; justify-self: end; border: 5px solid var(--c-paper-50); border-radius: var(--r-2); box-shadow: 0 16px 30px rgb(0 0 0 / .35); rotate: 3deg; }
@media (max-width: 59.99rem) { .sv-hero-photo { justify-self: start; width: min(78%, 18rem); rotate: 2deg; } }
