/* =========================================================================
   Arletex Design System v3.5 — Tela Para Manteles (/blog/tela-para-manteles)
   Hoja editorial por página (prefijo tpm-). Tokens locales → var(--ax-*).
   ─────────────────────────────────────────────────────────────────────────
   Blog-TSG de mantelería: tienda con precios + prosa SEO + splits de
   preguntas + billboard Fiubags (manteles confeccionados).

   Mapa de secciones (registro · apertura · marco · fondo · hover):
     01 Intro              Manifiesto · ManifestoClaim    · Top-rule  · white · press
     02 Tienda (4)         Vitrina    · NumberProtagonist · Bleed     · INK   · lift
     03 Billboard Fiubags  Vitrina    · split visual      · Frame     · paper · lift
     04 Telas (4 cards)    Galería    · Dossier           · rule ink  · white · lift
     05 Tipos              Periódico  · RunInHeadline     · hairline  · paper · side
     06 Usos (6 feats)     Galería    · LabelLateral      · Side-rule · cream · lift
     07 De Mesa            Periódico  · DropCap           · Double    · white · side
     08 Persianas          Carta      · nota al margen    · hairline  · paper · —
     09 Preguntas (duo)    Almanaque  · duo cards         · Top-rule  · white · lift
     10-13 Splits          Dossier/Periódico · numerados  · Brick     · alt   · side/press
     14 Dublin (ficha)     Técnico    · LabelLateral      · Side-rule · cream · lift
     15 Venta              Fanzine    · MegaTextBg        · Bleed     · INK   · press
     16-18 Precios (3)     Periódico  · Dossier numerado  · Brick     · paper · side
     19-24 Cierre          Periódico/Galería · variados   · variados  · alt   · varios
   ========================================================================= */

/* ─── Tokens locales (fallback a hex si --ax-* no está cargado) ─────────── */
.tpm-section {
    --tpm-ink:           var(--ax-ink, #1F2530);
    --tpm-paper:         var(--ax-paper, #FAF6EE);
    --tpm-cream:         var(--ax-cream, #F2EDE4);
    --tpm-white:         var(--ax-white, #FFFFFF);
    --tpm-orange:        var(--ax-orange, #F15A29);
    --tpm-orange-deep:   var(--ax-orange-deep, #B0401A);
    --tpm-purple:        var(--ax-purple, #6A52A2);
    --tpm-yellow:        var(--ax-yellow, #FFEB3B);
    --tpm-muted:         var(--ax-muted, #6E6A60);
    --tpm-muted-dark:    var(--ax-muted-dark, #A8A39A);
    --tpm-rule:          rgba(31, 37, 48, 0.16);
    --tpm-rule-on-dark:  rgba(250, 246, 238, 0.18);
    --tpm-whatsapp:      var(--ax-whatsapp, #25D366);
    --tpm-font-display:  var(--ax-font-display, 'Anton', 'Arial Narrow', sans-serif);
    --tpm-font-accent:   var(--ax-font-accent, 'Fraunces', Georgia, serif);
    --tpm-font-body:     var(--ax-font-body, 'Lato', system-ui, sans-serif);
    --tpm-font-mono:     var(--ax-font-mono, 'JetBrains Mono', ui-monospace, monospace);

    --tpm-ease:          cubic-bezier(0.22, 1, 0.36, 1);
    --tpm-motion-fast:   0.16s;
}
.tpm-section *,
.tpm-section *::before,
.tpm-section *::after { box-sizing: border-box; }

/* ─── Section base ──────────────────────────────────────────────────────── */
.tpm-section {
    width: 100%;
    position: relative;
    background: var(--tpm-white);
    color: var(--tpm-ink);
    font-family: var(--tpm-font-body);
    padding: clamp(48px, 8vw, 96px) 0;
}
.tpm-section--paper { background: var(--tpm-paper); }
.tpm-section--cream { background: var(--tpm-cream); }
.tpm-section--tight { padding: clamp(28px, 4vw, 48px) 0; }

.tpm-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
}
.tpm-container--narrow { max-width: 760px; }

/* ─── Eyebrow stamp (rectángulo recto — firma editorial, radius 0) ──────── */
.tpm-eyebrow {
    font-family: var(--tpm-font-accent);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.1vw, 1.15rem);
    color: var(--tpm-muted);
    line-height: 1.4;
    margin: 0 0 clamp(16px, 2vw, 22px);
    display: inline-flex;
    align-items: baseline;
    gap: 0.65rem;
    flex-wrap: wrap;
}
.tpm-eyebrow[data-stamp]:not([data-stamp=""])::before {
    content: attr(data-stamp);
    font-family: var(--tpm-font-display);
    font-style: normal;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    line-height: 1;
    border: 1px solid var(--tpm-orange);
    color: var(--tpm-orange);
    flex-shrink: 0;
}

/* ─── Display title Anton + <em> Fraunces (voz humana, N-04/N-05) ───────── */
.tpm-title {
    font-family: var(--tpm-font-display);
    font-weight: 400;
    text-transform: uppercase;
    color: var(--tpm-ink);
    line-height: 0.92;
    letter-spacing: -0.005em;
    margin: 0;
}
.tpm-title--xl { font-size: clamp(2.6rem, 7.5vw, 5.25rem) !important; }
.tpm-title--md { font-size: clamp(1.9rem, 4.4vw, 3.3rem) !important; }
.tpm-title--sm { font-size: clamp(1.55rem, 3.4vw, 2.5rem) !important; }
.tpm-title--xs { font-size: clamp(1.3rem, 2.6vw, 1.95rem) !important; }
.tpm-title em {
    font-family: var(--tpm-font-accent);
    font-style: italic;
    font-weight: 400;
    text-transform: lowercase;          /* la <em> Fraunces va recta y minúscula */
    letter-spacing: -0.025em;
    color: var(--tpm-orange);
}
.tpm-title a { color: inherit; text-decoration: none; transition: color var(--tpm-motion-fast) var(--tpm-ease); }
.tpm-title a:hover { color: var(--tpm-orange); }
/* Subtítulo H3 acompañante (conserva jerarquía SEO sin pelear con el H2) */
.tpm-subtitle {
    font-family: var(--tpm-font-accent);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.1rem, 1.8vw, 1.45rem);
    color: var(--tpm-muted);
    margin: clamp(8px, 1.2vw, 12px) 0 0;
}
.tpm-subtitle a { color: inherit; text-decoration: none; }
.tpm-subtitle a:hover { color: var(--tpm-orange); }

/* ─── Lead / prosa ──────────────────────────────────────────────────────── */
.tpm-lead {
    font-family: var(--tpm-font-body);
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.65;
    color: var(--tpm-ink);
    max-width: 70ch;
    margin: 0;
}
.tpm-lead strong { font-weight: 800; }
.tpm-prose { max-width: 74ch; }
.tpm-prose p {
    font-family: var(--tpm-font-body);
    font-size: clamp(1rem, 1.25vw, 1.12rem);
    line-height: 1.7;
    color: var(--tpm-ink);
    margin: 0 0 1.1em;
}
.tpm-prose p:last-child { margin-bottom: 0; }
.tpm-prose strong { font-weight: 800; }
.tpm-lead a,
.tpm-prose a {
    color: var(--tpm-ink);
    text-decoration: underline;
    text-decoration-color: var(--tpm-orange);
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
    transition: text-underline-offset var(--tpm-motion-fast) var(--tpm-ease),
                color var(--tpm-motion-fast) var(--tpm-ease);
}
.tpm-lead a:hover,
.tpm-prose a:hover { color: var(--tpm-orange); text-underline-offset: 4px; }
/* Listas con guion naranja en vez de bullet */
.tpm-prose ul { margin: 0 0 1.1em; padding: 0; list-style: none; }
.tpm-prose li {
    position: relative;
    padding-left: 1.6em;
    margin-bottom: 0.7em;
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    line-height: 1.6;
    color: var(--tpm-ink);
}
.tpm-prose li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.62em;
    width: 0.8em; height: 3px;
    background: var(--tpm-orange);
}

/* ─── Acciones + CTA WhatsApp chunky (press-chunky · sombra sólida) ─────── */
.tpm-actions {
    margin-top: clamp(28px, 4vw, 40px);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.tpm-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 30px;
    min-height: 44px;
    font-family: var(--tpm-font-display);
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.05;
    text-decoration: none;
    border: 2px solid var(--tpm-ink);
    border-radius: 0;
    cursor: pointer;
    transition: transform var(--tpm-motion-fast) var(--tpm-ease),
                box-shadow var(--tpm-motion-fast) var(--tpm-ease);
}
.tpm-cta--whatsapp {
    background: var(--tpm-whatsapp);
    color: #fff;
    box-shadow: 8px 8px 0 var(--tpm-ink);
}
.tpm-cta--whatsapp i { font-size: 1.3em; line-height: 1; }
.tpm-cta--whatsapp:hover {
    transform: translate(-3px, -3px);
    box-shadow: 11px 11px 0 var(--tpm-ink);
    color: #fff;
    text-decoration: none;
}
.tpm-cta--whatsapp:active { transform: translate(2px, 2px); box-shadow: 4px 4px 0 var(--tpm-ink); }
.tpm-cta:focus-visible { outline: 3px solid var(--tpm-orange); outline-offset: 3px; }
.tpm-cta--sm { padding: 12px 22px; font-size: clamp(0.95rem, 1.3vw, 1.12rem); box-shadow: 6px 6px 0 var(--tpm-ink); }
.tpm-cta--sm:hover  { box-shadow: 8px 8px 0 var(--tpm-ink); }
.tpm-cta--sm:active { box-shadow: 3px 3px 0 var(--tpm-ink); }

/* ─── Botones secundarios ───────────────────────────────────────────────── */
.tpm-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 13px 26px;
    min-height: 44px;
    font-family: var(--tpm-font-body);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.1;
    text-decoration: none;
    border: 2px solid var(--tpm-ink);
    border-radius: 0;
    background: transparent;
    color: var(--tpm-ink);
    cursor: pointer;
    transition: transform var(--tpm-motion-fast) var(--tpm-ease),
                box-shadow var(--tpm-motion-fast) var(--tpm-ease),
                background var(--tpm-motion-fast) var(--tpm-ease),
                color var(--tpm-motion-fast) var(--tpm-ease);
}
.tpm-btn i { transition: transform var(--tpm-motion-fast) var(--tpm-ease); }
.tpm-btn--outline:hover { background: var(--tpm-ink); color: var(--tpm-white); text-decoration: none; }
.tpm-btn--outline:hover i { transform: translateX(4px); }
.tpm-btn--solid {
    background: var(--tpm-orange);
    color: #fff;
    border-color: var(--tpm-ink);
    box-shadow: 0 6px 0 var(--tpm-orange-deep);
}
.tpm-btn--solid:hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--tpm-orange-deep); color: #fff; text-decoration: none; }
.tpm-btn--solid:hover i { transform: translateX(4px); }
.tpm-btn--solid:active { transform: translateY(2px); box-shadow: 0 3px 0 var(--tpm-orange-deep); }
.tpm-btn:focus-visible { outline: 3px solid var(--tpm-orange); outline-offset: 3px; }

/* =========================================================================
   01 · Intro — Manifiesto · ManifestoClaim · Top-rule orange
   ========================================================================= */
.tpm-section--intro {
    border-top: 3px solid var(--tpm-orange);
    padding-top: clamp(40px, 6vw, 72px);
}
.tpm-section--intro .tpm-header { margin-bottom: clamp(20px, 3vw, 32px); }
.tpm-section--intro .tpm-title { max-width: 18ch; }

/* ─── Figura editorial (frame-chunky · radius 0) ───────────────────────── */
.tpm-figure {
    margin: 0;
    background: var(--tpm-white);
    border: 2px solid var(--tpm-ink);
    border-top: 3px solid var(--tpm-orange);
    box-shadow: 10px 10px 0 var(--tpm-ink);
    line-height: 0;
}
.tpm-figure img { display: block; width: 100%; height: auto; }
.tpm-figure--banner { margin-top: clamp(40px, 6vw, 72px); }
.tpm-figure--link { display: block; transition: transform var(--tpm-motion-fast) var(--tpm-ease), box-shadow var(--tpm-motion-fast) var(--tpm-ease); }
.tpm-figure--link:hover { transform: translate(-4px, -4px); box-shadow: 14px 14px 0 var(--tpm-orange); }

/* =========================================================================
   02 · Tienda (NumberProtagonist) + grid de cards · variante INK
   ========================================================================= */
.tpm-numhead {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(0.75rem, 2vw, 1.25rem);
    align-items: end;
    margin-bottom: clamp(24px, 3.5vw, 40px);
    padding-bottom: clamp(18px, 2.5vw, 26px);
    border-bottom: 1px solid var(--tpm-rule);
}
@media (min-width: 768px) {
    .tpm-numhead { grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 3.5rem); }
}
.tpm-numhead__num {
    font-family: var(--tpm-font-display);
    font-size: clamp(4.25rem, 13vw, 8.5rem);
    line-height: 0.8;
    letter-spacing: -0.04em;
    color: var(--tpm-orange);
    font-variant-numeric: tabular-nums;
    display: inline-flex;
    align-items: baseline;
    gap: 0.35em;
}
.tpm-numhead__num small {
    font-family: var(--tpm-font-accent);
    font-style: italic;
    font-size: 0.2em;
    letter-spacing: 0;
    text-transform: lowercase;
    color: var(--tpm-muted);
}
.tpm-numhead__body { min-width: 0; }
.tpm-numhead__body .tpm-eyebrow { margin-bottom: clamp(10px, 1.4vw, 14px); }

/* ─── Grid de telas (4 / 2 / 1) ────────────────────────────────────────── */
.tpm-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(18px, 2vw, 28px);
}
@media (max-width: 1024px) { .tpm-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .tpm-grid { grid-template-columns: 1fr; } }
.tpm-grid--terna { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .tpm-grid--terna { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tpm-grid--terna { grid-template-columns: 1fr; } }

/* ─── Card (lift-orange · :focus-within accesible) ─────────────────────── */
.tpm-card {
    display: flex;
    flex-direction: column;
    background: var(--tpm-white);
    color: var(--tpm-ink);
    border: 1px solid var(--tpm-rule);
    border-top: 3px solid var(--tpm-orange);
    border-radius: 0;
    box-shadow: 4px 4px 0 var(--tpm-ink);
    overflow: hidden;
    transition: transform var(--tpm-motion-fast) var(--tpm-ease),
                box-shadow var(--tpm-motion-fast) var(--tpm-ease);
}
.tpm-card:hover,
.tpm-card:focus-within {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0 var(--tpm-orange);
}
.tpm-card__media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    line-height: 0;
    border-bottom: 1px solid var(--tpm-rule);
    background: var(--tpm-cream);
}
.tpm-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s var(--tpm-ease);
}
.tpm-card:hover .tpm-card__media img,
.tpm-card:focus-within .tpm-card__media img { transform: scale(1.045); }
.tpm-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: clamp(16px, 1.8vw, 22px);
}
.tpm-card__title {
    font-family: var(--tpm-font-display);
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    line-height: 1;
    color: var(--tpm-ink);
    margin: 0;
}
.tpm-card__title a { color: inherit; text-decoration: none; transition: color var(--tpm-motion-fast) var(--tpm-ease); }
.tpm-card__title a:hover { color: var(--tpm-orange); }
/* Precio telemetría (Técnico) — mono + naranja profundo */
.tpm-card__price {
    font-family: var(--tpm-font-mono);
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    letter-spacing: 0.01em;
    color: var(--tpm-orange-deep);
    margin: 0;
}
.tpm-card__desc {
    font-family: var(--tpm-font-body);
    font-size: clamp(0.92rem, 1.05vw, 1rem);
    line-height: 1.55;
    color: var(--tpm-muted);
    margin: 0;
}
.tpm-card__desc a {
    color: var(--tpm-ink);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--tpm-orange);
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}
.tpm-card__desc a:hover { color: var(--tpm-orange); }
.tpm-card__cta {
    margin-top: auto;
    padding-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    align-self: flex-start;
    font-family: var(--tpm-font-display);
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    line-height: 1;
    color: var(--tpm-orange);
    text-decoration: none;
}
.tpm-card__cta:hover { color: var(--tpm-orange-deep); }
.tpm-card__cta i { transition: transform var(--tpm-motion-fast) var(--tpm-ease); }
.tpm-card:hover .tpm-card__cta i,
.tpm-card:focus-within .tpm-card__cta i { transform: translateX(4px); }
@media (max-width: 575px) {
    .tpm-card { box-shadow: 3px 3px 0 var(--tpm-ink); }
    .tpm-card:hover, .tpm-card:focus-within { box-shadow: 6px 6px 0 var(--tpm-orange); }
}

/* ─── Variante OSCURA (ink) · puntuación dramática ──────────────────────── */
.tpm-section--ink {
    background: var(--tpm-ink);
    color: var(--tpm-paper);
    overflow: hidden;
}
.tpm-section--ink::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(250, 246, 238, 0.045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(250, 246, 238, 0.045) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}
.tpm-section--ink > .tpm-container { position: relative; z-index: 1; }
.tpm-section--ink .tpm-numhead { border-bottom-color: var(--tpm-rule-on-dark); }
.tpm-section--ink .tpm-numhead__num small { color: rgba(250, 246, 238, 0.55); }
.tpm-section--ink .tpm-title { color: var(--tpm-paper); }
.tpm-section--ink .tpm-subtitle { color: var(--tpm-muted-dark); }
.tpm-section--ink .tpm-eyebrow { color: rgba(250, 246, 238, 0.6); }
.tpm-section--ink .tpm-lead { color: rgba(250, 246, 238, 0.82); }
.tpm-section--ink .tpm-lead strong { color: var(--tpm-paper); }
.tpm-section--ink .tpm-lead a { color: var(--tpm-paper); }
.tpm-section--ink .tpm-prose p,
.tpm-section--ink .tpm-prose li { color: rgba(250, 246, 238, 0.82); }
.tpm-section--ink .tpm-prose strong { color: var(--tpm-paper); }
.tpm-section--ink .tpm-prose a { color: var(--tpm-paper); }
.tpm-section--ink .tpm-prose a:hover { color: var(--tpm-orange); }
.tpm-section--ink .tpm-card { border-color: transparent; border-top-color: var(--tpm-orange); box-shadow: none; }
.tpm-section--ink .tpm-card:hover,
.tpm-section--ink .tpm-card:focus-within { box-shadow: 8px 8px 0 var(--tpm-orange); }
.tpm-section--ink .tpm-cta--whatsapp { border-color: var(--tpm-paper); box-shadow: 8px 8px 0 var(--tpm-orange); }
.tpm-section--ink .tpm-cta--whatsapp:hover  { box-shadow: 11px 11px 0 var(--tpm-orange); }
.tpm-section--ink .tpm-cta--whatsapp:active { box-shadow: 4px 4px 0 var(--tpm-orange); }
@media (max-width: 575px) {
    .tpm-section--ink .tpm-cta--whatsapp { box-shadow: 6px 6px 0 var(--tpm-orange); }
}

/* =========================================================================
   Aperturas: Dossier · RunIn · DropCap · LabelLateral · MegaTextBg
   ========================================================================= */
.tpm-header--dossier {
    margin-bottom: clamp(28px, 4vw, 44px);
    padding-bottom: clamp(16px, 2.5vw, 24px);
    border-bottom: 2px solid var(--tpm-ink);
}
.tpm-header--dossier .tpm-prose { margin-top: clamp(14px, 2vw, 20px); }

.tpm-runin {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: clamp(0.5rem, 1.5vw, 1rem);
    margin-bottom: clamp(22px, 3vw, 34px);
    padding-bottom: clamp(14px, 2vw, 20px);
    border-bottom: 1px solid var(--tpm-rule);
}
.tpm-eyebrow--inline { margin: 0; }
.tpm-runin__divider {
    font-family: var(--tpm-font-accent);
    font-style: italic;
    color: var(--tpm-orange);
    font-size: 1.5em;
    line-height: 1;
    flex-shrink: 0;
}
@media (max-width: 600px) {
    .tpm-runin { gap: 0.5rem; }
    .tpm-runin__divider { display: none; }
}

.tpm-section--double-rule {
    border-top: 1px solid var(--tpm-rule);
    border-bottom: 1px solid var(--tpm-rule);
}
.tpm-arthead { margin-bottom: clamp(22px, 3vw, 32px); }
.tpm-arthead .tpm-title { margin-top: 8px; }
.tpm-dropcap {
    max-width: 70ch;
    font-family: var(--tpm-font-body);
    font-size: clamp(1.05rem, 1.4vw, 1.22rem);
    line-height: 1.62;
    color: var(--tpm-ink);
    margin: 0 0 1.1em;
}
.tpm-dropcap:last-child { margin-bottom: 0; }
.tpm-dropcap__cap {
    float: left;
    font-family: var(--tpm-font-accent);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(3.6rem, 8vw, 5.6rem);
    line-height: 0.8;
    color: var(--tpm-orange);
    padding: 0.08em 0.12em 0 0;
    margin-top: 0.04em;
}
.tpm-dropcap strong { font-weight: 800; }
.tpm-dropcap a {
    color: var(--tpm-ink);
    text-decoration: underline;
    text-decoration-color: var(--tpm-orange);
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}
.tpm-dropcap a:hover { color: var(--tpm-orange); }

/* LabelLateral (riel mono vertical) · Side-rule */
.tpm-section--side .tpm-container { border-left: 3px solid var(--tpm-orange); }
@media (max-width: 640px) {
    .tpm-section--side .tpm-container {
        border-left: 0;
        border-top: 3px solid var(--tpm-orange);
        padding-top: clamp(22px, 5vw, 30px);
    }
}
.tpm-lathead {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(1rem, 3vw, 2.5rem);
    align-items: start;
    margin-bottom: clamp(32px, 5vw, 52px);
}
.tpm-lathead__rail {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    display: flex;
    align-items: center;
    align-self: stretch;
}
.tpm-lathead__rail-mono {
    font-family: var(--tpm-font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--tpm-muted);
    white-space: nowrap;
}
.tpm-lathead__body { min-width: 0; }
.tpm-lathead__note {
    font-family: var(--tpm-font-accent);
    font-style: italic;
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    line-height: 1.5;
    color: var(--tpm-muted);
    margin: clamp(12px, 1.6vw, 16px) 0 0;
    max-width: 60ch;
}
@media (max-width: 640px) {
    .tpm-lathead { grid-template-columns: 1fr; gap: 0.5rem; }
    .tpm-lathead__rail { writing-mode: horizontal-tb; transform: none; align-self: start; }
}

/* MegaTextBg (Fanzine · ink) */
.tpm-megahead {
    position: relative;
    isolation: isolate;
    padding-top: clamp(24px, 6vw, 72px);
    margin-bottom: clamp(20px, 3vw, 32px);
}
.tpm-megahead__bg {
    position: absolute;
    top: 0;
    left: 0;
    font-family: var(--tpm-font-display);
    font-size: clamp(4.5rem, 18vw, 13rem);
    line-height: 0.78;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--tpm-rule-on-dark);
    white-space: nowrap;
    pointer-events: none;
    z-index: -1;
}
.tpm-megahead__fg { position: relative; max-width: 36ch; }

/* =========================================================================
   Zigzag (splits texto/imagen alternados, Brick-stack)
   ========================================================================= */
.tpm-zigzag .tpm-zz {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}
.tpm-zigzag .tpm-zz + .tpm-zz { margin-top: clamp(48px, 8vw, 100px); }
.tpm-zz__text  { min-width: 0; }
.tpm-zz__media { order: 2; margin: 0; }
.tpm-zz--rev .tpm-zz__text  { order: 2; }
.tpm-zz--rev .tpm-zz__media { order: 1; }
.tpm-zz__text .tpm-title   { margin-bottom: clamp(16px, 2vw, 22px); }
.tpm-zz__text .tpm-subtitle { margin: 0 0 clamp(14px, 2vw, 20px); }
.tpm-zz__text .tpm-prose   { max-width: 60ch; }
.tpm-zz__text .tpm-actions { margin-top: clamp(22px, 3vw, 30px); }
@media (max-width: 860px) {
    .tpm-zigzag .tpm-zz { grid-template-columns: 1fr; gap: clamp(22px, 5vw, 32px); }
    .tpm-zz__media, .tpm-zz--rev .tpm-zz__media,
    .tpm-zz__text,  .tpm-zz--rev .tpm-zz__text { order: 0; }
    .tpm-zigzag .tpm-zz + .tpm-zz { margin-top: clamp(40px, 9vw, 56px); }
}

/* ─── Dúo de features (imagen frame + título + prosa) ──────────────────── */
.tpm-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 4vw, 56px);
}
@media (max-width: 768px) { .tpm-duo { grid-template-columns: 1fr; gap: clamp(34px, 7vw, 46px); } }
.tpm-feat { display: flex; flex-direction: column; }
.tpm-feat .tpm-figure { margin: 0 0 clamp(18px, 2.5vw, 26px); }
.tpm-feat .tpm-title { margin-bottom: clamp(12px, 1.6vw, 16px); }
.tpm-feat .tpm-actions { margin-top: auto; padding-top: clamp(18px, 2.5vw, 24px); }

/* =========================================================================
   03 · Billboard Fiubags — @showcase · split visual · stretched-link
   ========================================================================= */
.tpm-billboard {
    position: relative;               /* ancla del stretched-link del CTA */
    isolation: isolate;               /* el megaclip (z -1) queda sobre el fondo, bajo el contenido */
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    background: var(--tpm-white);
    border: 2px solid var(--tpm-ink);
    box-shadow: 10px 10px 0 var(--tpm-ink);
    transition: transform var(--tpm-motion-fast) var(--tpm-ease),
                box-shadow var(--tpm-motion-fast) var(--tpm-ease);
}
.tpm-billboard:hover,
.tpm-billboard:focus-within {
    transform: translate(-4px, -4px);
    box-shadow: 14px 14px 0 var(--tpm-orange);
}
.tpm-billboard__media {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-right: 3px solid var(--tpm-orange);
    min-height: 280px;
    line-height: 0;
}
.tpm-billboard__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.45s var(--tpm-ease);
}
.tpm-billboard:hover .tpm-billboard__media img { transform: scale(1.05); }
.tpm-billboard__burst {
    position: absolute;
    top: -18px;
    right: -14px;
    z-index: 2;
    width: clamp(88px, 12vw, 122px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    text-align: center;
    background: var(--tpm-yellow);
    color: var(--tpm-ink);
    font-family: var(--tpm-font-display);
    font-size: clamp(13px, 1.6vw, 17px);
    text-transform: uppercase;
    line-height: 1.05;
    letter-spacing: 0.02em;
    border: 2px solid var(--tpm-ink);
    border-radius: 9999px;            /* pill: única excepción al radius 0 */
    transform: rotate(8deg);
    padding: 12px;
    pointer-events: none;
}
.tpm-billboard__body {
    /* SIN position:relative — sería containing block del ::after del CTA y
       limitaría el stretched-link a esta mitad (debe cubrir toda la tarjeta). */
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(26px, 4vw, 52px) clamp(22px, 4vw, 56px);
}
.tpm-billboard__megaclip {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}
.tpm-billboard__mega {
    position: absolute;
    right: -0.04em;
    bottom: -0.08em;
    font-family: var(--tpm-font-display);
    font-size: clamp(4rem, 11vw, 8.5rem);
    line-height: 0.75;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--tpm-cream);
    white-space: nowrap;
}
.tpm-billboard__text {
    font-family: var(--tpm-font-body);
    font-size: clamp(1rem, 1.3vw, 1.18rem);
    line-height: 1.6;
    color: var(--tpm-muted);
    max-width: 52ch;
    margin: clamp(12px, 1.6vw, 18px) 0 clamp(22px, 3vw, 30px);
}
.tpm-billboard__text strong { font-weight: 800; color: var(--tpm-ink); }
.tpm-billboard__cta { font-size: clamp(0.95rem, 1.2vw, 1.05rem); padding: 15px 32px; }
/* Stretched-link: el ::after cubre la tarjeta. El CTA no puede usar transform —
   un transform lo volvería containing block, colapsaría el ::after al botón y
   provocaría un bucle hover/un-hover. Selector con 3 clases para GANARLE a
   .tpm-btn--solid:hover/:active. */
.tpm-billboard__cta::after { content: ""; position: absolute; inset: 0; cursor: pointer; }
.tpm-billboard .tpm-billboard__cta:hover,
.tpm-billboard .tpm-billboard__cta:active { transform: none; }
.tpm-billboard:hover .tpm-billboard__cta { box-shadow: 0 9px 0 var(--tpm-orange-deep); }
.tpm-billboard:hover .tpm-billboard__cta i { transform: translateX(4px); }
.tpm-billboard__cta:active { box-shadow: 0 3px 0 var(--tpm-orange-deep); }
@media (max-width: 820px) {
    .tpm-billboard { grid-template-columns: 1fr; }
    .tpm-billboard__media {
        aspect-ratio: 16 / 9;
        min-height: 0;
        border-right: 0;
        border-bottom: 3px solid var(--tpm-orange);
    }
    .tpm-billboard__burst { top: -14px; right: 10px; }   /* dentro del card: sin overflow horizontal */
    .tpm-billboard__mega { font-size: clamp(3.2rem, 16vw, 5rem); }
    .tpm-billboard__cta { width: 100%; justify-content: center; }
}
@media (max-width: 575px) {
    .tpm-billboard { box-shadow: 6px 6px 0 var(--tpm-ink); }
    .tpm-billboard:hover, .tpm-billboard:focus-within { box-shadow: 9px 9px 0 var(--tpm-orange); }
}

/* =========================================================================
   Video embed (frame-chunky 16:9)
   ========================================================================= */
.tpm-embed {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--tpm-ink);
    border: 2px solid var(--tpm-ink);
    border-top: 3px solid var(--tpm-orange);
    box-shadow: 10px 10px 0 var(--tpm-ink);
}
.tpm-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
@media (max-width: 575px) { .tpm-embed { box-shadow: 6px 6px 0 var(--tpm-ink); } }

/* ─── Nota al margen (Carta · bloque backlink de baja jerarquía) ────────── */
.tpm-aside-note {
    border-top: 1px solid var(--tpm-rule);
    border-bottom: 1px solid var(--tpm-rule);
    padding: clamp(22px, 3vw, 34px) 0;
}
.tpm-aside-note .tpm-prose p { font-size: clamp(0.95rem, 1.1vw, 1.02rem); color: var(--tpm-muted); }
.tpm-aside-note .tpm-prose a { color: var(--tpm-ink); }

/* =========================================================================
   Accesibilidad — focus visible global + motion safe
   ========================================================================= */
.tpm-section :focus-visible {
    outline: 3px solid var(--tpm-orange);
    outline-offset: 3px;
    border-radius: 0;
}
@media (prefers-reduced-motion: reduce) {
    .tpm-section *,
    .tpm-section *::before,
    .tpm-section *::after {
        transition-duration: 0ms !important;
        animation-duration: 0ms !important;
    }
    .tpm-cta:hover, .tpm-cta:active,
    .tpm-btn--solid:hover, .tpm-btn--solid:active,
    .tpm-card:hover, .tpm-card:focus-within,
    .tpm-figure--link:hover,
    .tpm-billboard:hover, .tpm-billboard:focus-within { transform: none; }
    .tpm-card:hover .tpm-card__media img,
    .tpm-card:hover .tpm-card__cta i,
    .tpm-btn--outline:hover i,
    .tpm-billboard:hover .tpm-billboard__media img,
    .tpm-billboard:hover .tpm-billboard__cta i { transform: none; }
}

@media (max-width: 575px) {
    .tpm-cta--whatsapp { box-shadow: 6px 6px 0 var(--tpm-ink); }
    .tpm-cta--whatsapp:hover { box-shadow: 8px 8px 0 var(--tpm-ink); }
    .tpm-figure { box-shadow: 6px 6px 0 var(--tpm-ink); }
}
