/* Forum '26 · versiones del dossier de sponsors (01 Templo, 02 Pórtico, 03 Carta, 04 Ficha).
   Piezas compartidas d-* y el armado de cada versión. 01 y 02 se apoyan en temple.css de la portada. */

.sp26 { --d-gap: 28px; }
.sp26 h2, .sp26 h3, .sp26 p, .sp26 ol, .sp26 ul { margin: 0; }
.sp26 ol, .sp26 ul { padding: 0; list-style: none; }
.sp26 a:focus-visible { outline: 2px solid var(--dot-lit); outline-offset: 3px; }

/* ---------- Piezas compartidas ---------- */
.d-kicker, .d-note, .d-small { font-family: var(--font-mono); font-size: 12px; line-height: 18px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-muted); }
.d-small { text-transform: none; letter-spacing: .3px; font-family: var(--font-sans); font-size: 15px; line-height: 24px; }
.d-note { text-wrap: balance; }
.d-lead { font-size: 19px; line-height: 30px; color: var(--ink); text-wrap: pretty; }

/* Pilares y formato: número a la izquierda, nombre en mono, texto en sans */
.d-pillars, .d-format { width: 100%; display: grid; gap: 22px; text-align: left; }
.d-pillars li, .d-format li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 12px; align-items: baseline; }
.d-pillars li > span, .d-format li > span { font-family: var(--font-display); font-size: 18px; line-height: 24px; color: var(--dot-amber); }
.d-pillars h3, .d-format h3 { font-family: var(--font-mono); font-weight: 400; font-size: 13px; line-height: 24px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--dot-lit); }
.d-pillars p, .d-format p { font-size: 16px; line-height: 26px; color: var(--ink); text-wrap: pretty; }

/* Cifras */
.d-numbers { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); text-align: left; }
.d-numbers li { padding: 16px 12px 0 0; display: flex; flex-direction: column; gap: 6px; }
.d-numbers b { font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 1; color: var(--dot-lit); }
.d-numbers span { font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-muted); }

/* Agenda tentativa */
.d-agenda { width: 100%; text-align: left; }
.d-agenda li { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 16px; line-height: 24px; }
.d-agenda li:first-child { border-top: 1px dashed var(--line); }
.d-agenda time { font-family: var(--font-mono); font-size: 13px; letter-spacing: .5px; color: var(--ink-muted); white-space: nowrap; }

/* Listas con viñeta de punto */
.d-list { width: 100%; display: grid; gap: 8px; text-align: left; }
.d-list li { position: relative; padding-left: 22px; font-size: 16px; line-height: 26px; text-wrap: pretty; }
.d-list li::before { content: ''; position: absolute; left: 2px; top: 10px; width: 6px; height: 6px; background: var(--dot-amber); }

/* Speakers del año pasado */
.d-past { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; text-align: left; }
.d-past li { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.d-past b { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 26px; color: var(--dot-lit); text-transform: uppercase; }
.d-past span { font-size: 15px; line-height: 23px; }
.d-past em { font-style: normal; font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-muted); }

/* Paquetes */
.d-packs { width: 100%; display: grid; gap: 16px; text-align: left; }
.d-pack { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; border: 1px solid var(--line); background: color-mix(in srgb, var(--ground) 70%, #fff); }
.d-pack--2 { border-color: var(--dot-lit); box-shadow: inset 0 0 0 1px var(--dot-lit); }
.d-pack__name { font-family: var(--font-mono); font-size: 13px; line-height: 18px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-muted); }
.d-pack__price { font-family: var(--font-display); font-size: 34px; line-height: 1; color: var(--dot-lit); }
.d-pack ul { display: grid; gap: 8px; margin-top: 8px; }
.d-pack li { position: relative; padding-left: 18px; font-size: 15px; line-height: 23px; text-wrap: pretty; }
.d-pack li::before { content: ''; position: absolute; left: 1px; top: 9px; width: 5px; height: 5px; background: var(--dot-amber); }
.d-pack--1 li:first-child, .d-pack--2 li:first-child { font-family: var(--font-mono); font-size: 12px; line-height: 20px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-muted); }

/* Cierre con greca */
.d-end { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 72px 16px 24px; text-align: center; }
.d-end .t-tile { width: min(328px, 100%); line-height: 0; }
.d-end .t-meta { margin: -8px 0 0; font-family: var(--font-mono); font-size: 13px; line-height: 22px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-muted); }
.d-end__q { font-family: var(--font-display); font-size: 30px; line-height: 36px; text-transform: uppercase; color: var(--dot-lit); text-wrap: balance; }

/* Bandas ornamentales */
.d-rule { line-height: 0; }

/* Footer (01 y 02 lo heredan de temple.css; 03 y 04 lo traen acá) */
.d-footer { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 44px 16px 96px; text-align: center; }
.d-footer .t-footer__mark { display: block; line-height: 0; }
.d-footer .t-footer__mark img { display: block; width: 145px; height: auto; }
.d-footer .t-footer__links { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.d-footer .t-footer__links a { font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.d-footer .t-footer__links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Selector de versiones (solo en el laboratorio) */
.d-switch { position: fixed; right: 12px; bottom: 12px; z-index: 30; display: flex; gap: 2px; padding: 3px; background: var(--ground); border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(7, 85, 187, .12); }
.d-switch a { padding: 6px 9px; font-family: var(--font-mono); font-size: 11px; line-height: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink); text-decoration: none; white-space: nowrap; }
.d-switch a[aria-current] { background: var(--dot-lit); color: var(--ground); }

/* ---------- 01 · Templo ---------- */
.sp26-v01 .t-cella__inner { gap: 104px; }
.sp26-v01 .t-sec { gap: 26px; }
.sp26-v01 .d-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
.sp26-v01 .d-pack { padding: 20px 20px 22px; }
.sp26-v01 .t-sec--close .t-tile { margin-top: 0; }
.sp26-v01 .t-sec--close .t-meta { text-wrap: balance; }
.sp26-v01 .t-tagline { letter-spacing: 1.5px; }

/* ---------- 02 · Pórtico ---------- */
.d-portico { gap: 30px; padding-bottom: calc(var(--base-h) + 72px); }
.d-portico .t-day, .d-portico .t-meta { text-align: center; }
.d-numbers--hero { max-width: 520px; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; border-top: 0; }
.d-numbers--hero li { padding: 0 6px; align-items: center; }
.d-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.d-jump a { font-family: var(--font-mono); font-size: 12px; line-height: 18px; letter-spacing: 1px; text-transform: uppercase; color: var(--dot-lit); text-decoration: none; border-bottom: 1px solid transparent; }
.d-jump a:hover { border-bottom-color: currentColor; }

.d-wide { width: min(1134px, calc(100% - 32px)); margin: 0 auto; padding-top: 88px; }
.d-row { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; padding: 72px 0; scroll-margin-top: 24px; }
.d-row > header { display: flex; flex-direction: column; gap: 10px; align-self: start; position: sticky; top: 32px; }
.d-row > header span { font-family: var(--font-display); font-size: 28px; line-height: 28px; color: var(--dot-amber); }
.d-row > header h2 { font-family: var(--font-display); font-weight: 400; font-size: 44px; line-height: 46px; text-transform: uppercase; color: var(--dot-lit); }
.d-row > div { display: flex; flex-direction: column; gap: 36px; min-width: 0; }
.d-row .fx-prose { max-width: 62ch; }
.d-pillars--cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.d-pillars--cols li { grid-template-columns: 1fr; align-content: start; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.d-format--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 32px; }
.d-agenda--two { column-count: 2; column-gap: 32px; }
.d-agenda--two li { break-inside: avoid; }
.d-agenda--two li:first-child { border-top: 0; }
.d-cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: start; }
.d-cols2 > div { display: flex; flex-direction: column; gap: 22px; }
.d-cols2 .d-past { grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.d-cols2 .d-past b { font-size: 18px; line-height: 22px; }
.d-cols2 .d-past span { font-size: 14px; line-height: 21px; }
.sp26-v02 .t-stats { justify-content: flex-start; }
.d-packs--row { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
.d-packs--row .d-pack { height: 100%; box-sizing: border-box; padding-top: 0; border-top: 0; }
.d-pack__col { line-height: 0; margin: 0 -22px 18px; padding-top: 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: center; }
.d-packs--row .d-pack__price { font-size: 28px; }
.d-packs--row .d-pack--2 .d-pack__col { border-bottom-color: var(--dot-lit); }
.d-packs--row .d-pack { justify-content: flex-start; }
.sp26-v02 .d-footer, .sp26-v02 .t-footer { padding-bottom: 96px; }

/* ---------- 03 · Carta ---------- */
.d-letter { width: min(640px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 24px; display: flex; flex-direction: column; gap: 22px; }
.d-letter__home { display: block; width: 26px; line-height: 0; }
.d-letter__home img { display: block; width: 26px; height: auto; }
.d-letter__roof { margin: 28px 0 8px; line-height: 0; }
.d-letter h1 { font-family: var(--font-display); font-weight: 400; font-size: 64px; line-height: 1; text-transform: uppercase; color: var(--dot-lit); }
.d-letter__date { font-family: var(--font-mono); font-size: 13px; line-height: 20px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-muted); padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.d-letter__body { display: flex; flex-direction: column; gap: 18px; font-size: 18px; line-height: 30px; }
.d-letter__body strong { color: var(--dot-lit); font-weight: 500; }
.d-letter__body .d-pillars { margin: 6px 0; padding: 20px 0; border-block: 1px dashed var(--line); }
.d-letter__body .d-list li { font-size: 17px; line-height: 28px; }
.d-program { display: flex; flex-direction: column; gap: 26px; margin: 10px 0 4px; padding: 26px 0; border-block: 1px solid var(--dot-lit); }
.d-program > li { display: grid; grid-template-columns: auto minmax(24px, 1fr) auto; align-items: baseline; gap: 0 10px; }
.d-program__name { font-family: var(--font-display); font-size: 24px; line-height: 28px; text-transform: uppercase; color: var(--dot-lit); }
.d-leader { align-self: end; margin-bottom: 7px; height: 3px; background-image: radial-gradient(circle, var(--dot-dim) 1.2px, transparent 1.4px); background-size: 6px 3px; background-repeat: repeat-x; }
.d-program__price { font-family: var(--font-mono); font-size: 16px; line-height: 28px; letter-spacing: 1px; color: var(--dot-lit); white-space: nowrap; }
.d-program > li > ul { grid-column: 1 / -1; display: grid; gap: 4px; margin-top: 10px; }
.d-program > li > ul li { position: relative; padding-left: 18px; font-size: 15px; line-height: 23px; }
.d-program > li > ul li::before { content: '·'; position: absolute; left: 4px; color: var(--dot-amber); font-weight: 700; }
.d-sign { margin-top: 18px; font-family: var(--font-mono); font-size: 14px; line-height: 24px; letter-spacing: 1px; text-transform: uppercase; color: var(--dot-lit); }
.d-sign a { color: var(--dot-lit); text-underline-offset: 3px; }

/* ---------- 04 · Ficha ---------- */
.d-sheet { width: min(1134px, calc(100% - 32px)); margin: 0 auto; padding-top: 20px; }
.d-sheet__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 1px; text-transform: uppercase; }
.d-sheet__top a { color: var(--ink); text-decoration: none; line-height: 0; }
.d-sheet__top a:last-child { line-height: 16px; }
.d-sheet__top img { width: 26px; height: auto; }
.d-sheet__top span { color: var(--ink-muted); }
.d-sheet__hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: end; padding: 56px 0 40px; }
.d-sheet__hero > div:first-child { display: flex; flex-direction: column; gap: 14px; }
.d-sheet h1 { font-family: var(--font-display); font-weight: 400; font-size: 88px; line-height: .95; text-transform: uppercase; color: var(--dot-lit); }
.d-sheet__date { font-family: var(--font-mono); font-size: 14px; line-height: 22px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-muted); }
.d-sheet__ped { line-height: 0; }
.d-big { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--dot-lit); border-left: 1px solid var(--line); }
.d-big li { display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.d-big b { font-family: var(--font-display); font-weight: 400; font-size: 56px; line-height: 1; color: var(--dot-lit); }
.d-big li:nth-child(n+5) b { color: var(--dot-amber); }
.d-big span { font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-muted); }
.d-sheet__crowd { padding: 40px 0 8px; }
.d-sheet__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding: 64px 0; }
.d-sheet__grid > div { display: flex; flex-direction: column; gap: 18px; }
.d-sheet h2 { font-family: var(--font-mono); font-weight: 400; font-size: 14px; line-height: 20px; letter-spacing: 2px; text-transform: uppercase; color: var(--dot-lit); padding-bottom: 12px; border-bottom: 1px solid var(--dot-lit); }
.d-sheet__grid p { font-size: 16px; line-height: 26px; }
.d-sheet__grid .d-agenda li { grid-template-columns: 112px minmax(0, 1fr); font-size: 15px; line-height: 22px; padding: 7px 0; }
.d-sheet__grid .d-agenda li:first-child { border-top: 0; }
.d-sheet__table { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 24px; }
.d-tablewrap { overflow-x: auto; }
.d-sheet table { width: 100%; min-width: 640px; border-collapse: collapse; }
.d-sheet th, .d-sheet td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.d-sheet thead th { vertical-align: bottom; border-bottom: 1px solid var(--dot-lit); }
.d-sheet thead th span { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 12px; line-height: 16px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-muted); }
.d-sheet thead th b { display: block; margin-top: 6px; font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1; color: var(--dot-lit); white-space: nowrap; }
.d-sheet thead th:last-child { background: color-mix(in srgb, var(--dot-dim) 22%, transparent); }
.d-sheet td { font-size: 15px; line-height: 22px; }
.d-sheet td:first-child { width: 52%; }
.d-sheet td.d-mark { text-align: center; width: 16%; }
.d-sheet tbody td:last-child { background: color-mix(in srgb, var(--dot-dim) 12%, transparent); }
.d-dot { color: var(--dot-lit); font-size: 14px; }
.d-none { color: var(--dot-dim); font-family: var(--font-mono); }
.d-packs--mobile { display: none; }
.d-letter__date span { white-space: nowrap; }
.d-sheet__crowd .t-crowd { width: 100%; line-height: 0; }
.d-sheet__crowd .t-crowd canvas { display: block; margin: 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .d-row { grid-template-columns: 1fr; gap: 28px; padding: 56px 0; }
  .d-row > header { position: static; flex-direction: row; align-items: baseline; gap: 16px; }
  .d-sheet__grid { grid-template-columns: 1fr 1fr; }
  .d-sheet__grid > div:last-child { grid-column: 1 / -1; }
  .d-big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .d-packs--row, .d-pillars--cols, .d-format--grid, .d-cols2 { grid-template-columns: 1fr; }
  .d-packs--row { align-items: stretch; }
  .d-agenda--two { column-count: 1; }
  .d-agenda--two li:first-child { border-top: 1px dashed var(--line); }
  .d-sheet__hero { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 28px; }
  .d-sheet__grid { grid-template-columns: 1fr; gap: 48px; padding: 48px 0; }
}
@media (max-width: 639px) {
  .d-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .d-numbers b { font-size: 32px; }
  .d-numbers--hero { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .d-numbers--hero b { font-size: 26px; }
  .d-numbers--hero span { font-size: 10px; line-height: 14px; letter-spacing: .5px; }
  .d-past, .d-cols2 .d-past { grid-template-columns: 1fr; }
  .d-agenda li { grid-template-columns: 1fr; gap: 2px; }
  .d-pack__price { font-size: 30px; }
  .d-pillars li, .d-format li { grid-template-columns: 30px minmax(0, 1fr); }
  .d-row > header h2 { font-size: 32px; line-height: 34px; }
  .d-wide { padding-top: 40px; }
  .d-end__q { font-size: 24px; line-height: 30px; }
  .d-letter { padding-top: 24px; }
  .d-letter h1 { font-size: 48px; }
  .d-letter__body { font-size: 17px; line-height: 28px; }
  .d-program__name { font-size: 20px; line-height: 24px; }
  .d-program__price { font-size: 14px; }
  .d-sheet h1 { font-size: 60px; }
  .d-big b { font-size: 40px; }
  .d-big li { padding: 16px 14px; }
  .d-sheet__top span { display: none; }
  .d-tablewrap { display: none; }
  .d-packs--mobile { display: grid; }
  .d-letter__date span { display: block; }
  .d-letter__date .d-sep { display: none; }
  .d-switch { left: 8px; right: 8px; bottom: 8px; justify-content: space-between; }
  .d-switch a { padding: 6px 6px; font-size: 10px; letter-spacing: .5px; }
}
