/*
  Pausa Digital · sistema visual "informe impreso"
  Paleta y tipografías del documento (azul profundo, verde bosque, crema, amarillo cálido; Poppins + Inter).
  Reglas de la casa: un eje de columna al 42 %, campos de color planos, fotos reales en escala de grises,
  sin líneas finas, sin sombras, sin gradientes, un solo radio (cero), una sola pareja de márgenes.
*/
:root {
  color-scheme: light dark;

  --bg: #f7f4ed;
  --ink: #263b52;
  --ink-2: #485a6c;
  --tint: #ebe7dc;
  --green: #3f6654;
  --accent: #e4b66a;
  --on-accent: #263b52;
  --field-ink: #263b52;
  --field-ink-text: #ffffff;
  --field-ink-soft: #cdd7e1;
  --field-green: #3f6654;
  --primary: #263b52;
  --on-primary: #ffffff;
  --primary-hover: #1a2b3d;
  --link: #263b52;
  --bar: #263b52;
  --bar-hl: #3f6654;
  --bar-track: #ddd8ca;
  --focus: #263b52;
  --surface: #ffffff;
  --line: #bdb7a8;

  --m: clamp(16px, 4vw, 56px);
  --axis: 42%;
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-6: 1.5rem; --s-8: 2rem;
  --s-12: 3rem; --s-16: 4rem; --s-24: 6rem; --s-32: 8rem;
  --ease: 150ms ease;
  --f-title: "Poppins", system-ui, sans-serif;
  --f-text: "Inter", system-ui, sans-serif;
}
/* Modo oscuro: automático según el sistema, salvo que la persona elija uno con el botón (data-theme). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1b27;
    --ink: #eef1f4;
    --ink-2: #b4c0cc;
    --tint: #172637;
    --green: #8ccaa9;
    --field-ink: #0a131c;
    --field-green: #2e4d3f;
    --primary: #eef1f4;
    --on-primary: #1a2b3d;
    --primary-hover: #ffffff;
    --link: #eef1f4;
    --bar: #a3b3c4;
    --bar-hl: #e4b66a;
    --bar-track: #223548;
    --focus: #e4b66a;
    --surface: #172637;
    --line: #3a4f66;
  }
}
:root[data-theme="dark"] {
    --bg: #0f1b27;
    --ink: #eef1f4;
    --ink-2: #b4c0cc;
    --tint: #172637;
    --green: #8ccaa9;
    --field-ink: #0a131c;
    --field-green: #2e4d3f;
    --primary: #eef1f4;
    --on-primary: #1a2b3d;
    --primary-hover: #ffffff;
    --link: #eef1f4;
    --bar: #a3b3c4;
    --bar-hl: #e4b66a;
    --bar-track: #223548;
    --focus: #e4b66a;
    --surface: #172637;
    --line: #3a4f66;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 6rem; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-text); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img, svg { max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--f-title); font-weight: 600; line-height: 1.12; margin: 0 0 var(--s-4); color: inherit; text-wrap: balance; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.25rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p, li { text-wrap: pretty; }
p { margin: 0 0 var(--s-4); }
a { color: var(--link); text-underline-offset: 0.2em; text-decoration-thickness: 1px; transition: opacity var(--ease), color var(--ease); }
a:hover { opacity: 0.7; }
strong { font-weight: 600; }
small, .small { font-size: 1rem; }
.muted { color: var(--ink-2); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: absolute; left: var(--m); top: -5rem; background: var(--primary); color: var(--on-primary); padding: var(--s-2) var(--s-4); z-index: 100; }
.skip-link:focus { top: var(--s-2); }

.wrap { width: calc(100% - 2 * var(--m)); max-width: 1440px; margin-inline: auto; }
.measure { max-width: 62ch; }

/* ---------- Cabecera (sobre el fondo de la página, separada del mosaico) ---------- */
.site-header { background: var(--bg); position: sticky; top: 0; z-index: 40; transition: background 250ms ease; }
.site-header.is-stuck { background: var(--tint); }
.hdr-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--accent); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.hdr { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); padding: var(--s-4) 0; transition: padding 250ms ease; }
.site-header.is-stuck .hdr { padding: var(--s-2) 0; }
.mark { white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: var(--s-3); color: var(--ink); font-family: var(--f-title); font-weight: 600; font-size: 1.375rem; letter-spacing: -0.02em; text-decoration: none; }
.mark:hover { opacity: 1; }
.mark svg { width: 20px; height: 20px; fill: var(--ink); }
.tab ul { list-style: none; display: flex; gap: var(--s-6); margin: 0; padding: 0; }
.tab a { display: block; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.9375rem; padding: var(--s-2) 0; white-space: nowrap; border-bottom: 3px solid transparent; }
.tab a:hover { opacity: 1; border-bottom-color: var(--line); }
.tab a[aria-current="page"] { font-weight: 600; border-bottom-color: var(--accent); }
.nav-toggle { display: none; position: relative; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); color: var(--bg); cursor: pointer; transition: background var(--ease), color var(--ease); }
.nav-toggle:hover { background: var(--accent); color: var(--on-accent); }
.nt-bar { position: absolute; left: 13px; width: 18px; height: 2px; background: currentColor; transition: transform 350ms cubic-bezier(.3, 1.4, .5, 1), top 250ms ease; }
.nt-bar:first-child { top: 17px; }
.nt-bar:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] .nt-bar:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nt-bar:last-child { top: 21px; transform: rotate(-45deg); }
@media (max-width: 1290px) {
  .nav-toggle { display: block; }
  .tab { overflow: hidden; position: absolute; left: 0; right: 0; top: 100%; z-index: 30; background: var(--field-ink); color: #fff; padding: var(--s-6) var(--m) var(--s-8); visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path 450ms cubic-bezier(.2, .7, .2, 1), visibility 0s linear 450ms; }
  .tab.open { visibility: visible; clip-path: inset(0); transition: clip-path 450ms cubic-bezier(.2, .7, .2, 1), visibility 0s; }
  .tab ul { flex-direction: column; gap: 0; padding: 0; }
  .tab li { opacity: 0; transform: translateY(14px); transition: opacity 250ms ease, transform 250ms ease; }
  .tab.open li { opacity: 1; transform: none; transition: opacity 400ms ease calc(var(--k, 0) * 55ms + 150ms), transform 400ms ease calc(var(--k, 0) * 55ms + 150ms); }
  .tab li:nth-child(2) { --k: 1; } .tab li:nth-child(3) { --k: 2; } .tab li:nth-child(4) { --k: 3; } .tab li:nth-child(5) { --k: 4; } .tab li:nth-child(6) { --k: 5; }
  .tab a { white-space: normal; overflow-wrap: anywhere; display: flex; align-items: center; gap: var(--s-3); min-height: 56px; padding: var(--s-2) 0; border: 0; color: #fff; font-family: var(--f-title); font-weight: 600; font-size: clamp(1.5rem, 1rem + 3vw, 2.25rem); letter-spacing: -0.03em; }
  .tab a:hover { color: var(--accent); }
  .tab a[aria-current="page"] { font-weight: 600; }
  .tab a[aria-current="page"]::before { content: ""; flex: none; width: 12px; height: 12px; background: var(--accent); }
}
@media (max-width: 1290px) and (prefers-reduced-motion: reduce) { .tab, .tab.open, .tab li, .tab.open li, .nt-bar { transition: none; } }

/* ---------- Mosaico de portada: el símbolo de pausa (dos barras) entre fotos ---------- */
.band { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(2, 1fr); grid-template-areas: "p1 p1 b1 p2 b2 t1" "p1 p1 b1 p3 b2 p4"; height: 34vh; min-height: 210px; overflow: hidden; margin-top: var(--s-2); }
.band.tall { height: 52vh; min-height: 340px; }
.band > * { min-width: 0; min-height: 0; }
.band img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.05); }
.band .p1 { grid-area: p1; } .band .p2 { grid-area: p2; } .band .p3 { grid-area: p3; } .band .p4 { grid-area: p4; }
.band .b1 { grid-area: b1; background: var(--field-green); }
.band .b2 { grid-area: b2; background: var(--field-green); }
.band .t1 { grid-area: t1; background: var(--accent); }
.band .t2 { grid-area: t2; background: var(--field-ink); }
@media (max-width: 719px) {
  .band { grid-template-columns: 2fr 1fr 2fr; grid-template-areas: "p1 b1 p2" "p1 b1 p3"; height: 30vh; }
  .band.tall { height: 40vh; }
  .band .b2, .band .t1, .band .p4 { display: none; }
}

/* ---------- Título sobre el eje ---------- */
.axis { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .axis { grid-template-columns: var(--axis) 1fr; gap: 0; } .axis > .main { padding-left: 0; } .axis > .side { padding-right: var(--s-12); } }
.axis > .side > :last-child, .axis > .main > :last-child { margin-bottom: 0; }
.side { font-size: 1rem; color: var(--ink-2); max-width: 36ch; }
.side.ink { color: var(--ink); font-size: 1.25rem; }
.title-block { padding: var(--s-16) 0 var(--s-8); }
.title { font-weight: 500; font-size: clamp(2.25rem, 1.2rem + 4.2vw, 4.75rem); line-height: 0.98; letter-spacing: -0.05em; margin: 0 0 var(--s-6); max-width: 14ch; }
.title.big { font-size: clamp(3rem, 1rem + 8.3vw, 8rem); line-height: 0.92; letter-spacing: -0.06em; max-width: 8ch; }
.statement { font-family: var(--f-title); font-weight: 500; font-size: clamp(1.375rem, 1.1rem + 1vw, 2.125rem); line-height: 1.2; letter-spacing: -0.02em; margin: 0; max-width: 24ch; text-wrap: balance; }
@media (max-width: 899px) { .title-block { padding: var(--s-8) 0 var(--s-8); } }

/* ---------- Secciones ---------- */
.sec { padding: var(--s-16) 0; }
@media (max-width: 899px) { .sec { padding: var(--s-8) 0; } }
.field { color: var(--field-ink-text); }
.field a { color: inherit; }
.field.ink { background: var(--field-ink); }
.field.green { background: var(--field-green); }
.field.tint { background: var(--tint); color: var(--ink); }
.field .muted, .field .side { color: var(--field-ink-soft); }
.field.tint .muted, .field.tint .side { color: var(--ink-2); }

/* ---------- Cifra ---------- */
.fig-field { display: grid; min-height: min(80svh, 720px); }
.fig-copy { display: flex; flex-direction: column; justify-content: space-between; padding: var(--s-12) var(--m); gap: var(--s-8); }
.fig-photo { margin: 0; min-height: 40svh; }
@media (min-width: 900px) { .fig-photo, .close-photo { margin: var(--s-12) max(var(--m), calc((100vw - 1440px) / 2 + var(--m))) var(--s-12) 0; } }
.fig-photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.05); }
@media (min-width: 900px) { .fig-field { grid-template-columns: 1fr 1fr; } .fig-copy { padding-left: max(var(--m), calc((100vw - 1440px) / 2 + var(--m))); } }
.fig-claim { position: relative; z-index: 1; font-family: var(--f-title); font-weight: 500; font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); line-height: 1.15; letter-spacing: -0.02em; max-width: 22ch; margin: 0; }
.fig { font-family: var(--f-title); font-weight: 600; font-size: clamp(7rem, 2rem + 17vw, 18rem); line-height: 0.85; letter-spacing: -0.07em; display: flex; align-items: flex-start; margin: var(--s-6) 0 var(--s-6); font-variant-numeric: lining-nums; }
.fig sup { font-size: 0.34em; line-height: 1; margin: 0.12em 0 0 0.04em; letter-spacing: 0; }
.fig-cap { max-width: 34ch; font-size: 1.0625rem; margin: 0; }
.fig-src { font-size: 1rem; margin: var(--s-6) 0 0; color: var(--field-ink-soft); max-width: 48ch; }
.stat { display: flex; align-items: baseline; gap: var(--s-4); flex-wrap: wrap; margin: 0 0 var(--s-6); }
.stat-num { font-family: var(--f-title); font-weight: 600; font-size: clamp(3.5rem, 2.5rem + 4vw, 5.5rem); line-height: 1; letter-spacing: -0.05em; background: var(--accent); color: var(--on-accent); padding: 0.02em 0.14em; }
.stat-text { margin: 0; flex: 1 1 14rem; }

/* ---------- Gráficos ---------- */
.chart { display: grid; gap: var(--s-4); margin: 0 0 var(--s-4); padding: 0; list-style: none; }
.bar-row { display: grid; grid-template-columns: minmax(7rem, 12rem) minmax(0, 1fr) 5.5rem; gap: var(--s-4); align-items: center; }
.bar-label { font-weight: 500; }
.bar-track { background: var(--bar-track); height: 20px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--bar); transform-origin: left; }
.bar-fill.hl { background: var(--bar-hl); }
.bar-value { font-family: var(--f-title); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.bar-value.pending { font-family: var(--f-text); font-weight: 400; font-size: 0.875rem; color: var(--ink-2); line-height: 1.2; }
@media (max-width: 560px) {
  .bar-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: var(--s-1); }
  .bar-value { grid-column: 2; grid-row: 1; }
  .bar-track { grid-column: 1 / -1; }
}
.chart-panel { background: var(--bg); padding: var(--s-8); }
.chart-panel .bar-track { height: 28px; }
.chart-panel .bar-label { font-size: 1.125rem; }
.chart-panel .bar-row { grid-template-columns: minmax(8rem, 13rem) minmax(0, 1fr) 6.5rem; }
.chart-panel .bar-value { font-size: 1.25rem; }
.chart-panel .bar-value.pending { font-size: 1rem; }
@media (max-width: 560px) { .chart-panel { padding: var(--s-6) var(--s-4); } .chart-panel .bar-row { grid-template-columns: minmax(0, 1fr) auto; } }
.source-note { font-size: 1rem; color: var(--ink-2); margin: var(--s-4) 0 0; max-width: 56ch; }
.closing { font-family: var(--f-title); font-weight: 500; font-size: 1.25rem; line-height: 1.3; margin: var(--s-8) 0 0; max-width: 30ch; }

/* ---------- Listas sobre fondo tonal (sin líneas) ---------- */
.list-steps, .list-check, .list-prompts, .sources-list, .toc { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.list-steps li, .list-check li, .list-prompts li, .sources-list li { background: var(--tint); padding: var(--s-4) var(--s-6); }
.list-steps { counter-reset: paso; }
.list-steps li { counter-increment: paso; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: var(--s-4); align-items: baseline; }
.list-steps li::before { content: counter(paso); font-family: var(--f-title); font-weight: 600; font-size: 1.75rem; line-height: 1; color: var(--green); }
.list-steps strong, .list-check strong { font-family: var(--f-title); font-weight: 600; }
.list-steps .d { display: block; color: var(--ink-2); }
.list-check li { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: var(--s-3); }
.list-check svg { width: 22px; height: 22px; margin: 3px 0 0; stroke: var(--green); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.list-prompts li { font-family: var(--f-title); font-weight: 500; font-size: 1.25rem; line-height: 1.35; padding: var(--s-6); }
.note { background: var(--tint); padding: var(--s-8); margin: 0 0 var(--s-6); }
.note p:last-child { margin: 0; }

/* ---------- Columnas de contenido ---------- */
.cols { display: grid; gap: var(--s-8); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); margin: 0; padding: 0; list-style: none; }
.col-item { background: var(--tint); padding: var(--s-6); }
.col-item h3 { margin-bottom: var(--s-2); }
.col-item p { margin: 0; color: var(--ink-2); }
.col-item .icon { width: 26px; height: 26px; fill: none; stroke: var(--green); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; display: block; margin-bottom: var(--s-3); }

/* ---------- Mapa mental (SVG propio) ---------- */
.mm { --mx: 0; --my: 0; }
.mm-svg { display: block; width: 100%; height: auto; overflow: visible; }
.mm-list { display: none; }
.mm-center .core { fill: var(--field-ink); stroke: var(--accent); stroke-width: 6; }
.mm-center .orbit { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 2 15; stroke-linecap: round; opacity: 0.75; transform-box: fill-box; transform-origin: center; }
.mm-center .ripple { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.mm-center .glyph { fill: var(--accent); transform-box: fill-box; transform-origin: center; }
.mm-center text { fill: #fff; font-family: var(--f-title); font-weight: 600; font-size: 26px; letter-spacing: -0.01em; }
.mm-branch { outline: none; cursor: default; transition: opacity 220ms ease; }
.mm-branch .ln { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; transition: stroke-width 200ms ease; }
.mm-branch .flow { display: none; fill: none; stroke: var(--primary); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 0.001 0.11; }
.mm-branch .dot { fill: var(--accent); }
.mm-par { transition: translate 350ms ease-out; }
.mm-node { transform-box: fill-box; transform-origin: center; transition: scale 220ms cubic-bezier(.3, 1.4, .5, 1); }
.mm-node .bg { transition: fill 220ms ease; }
.mm-branch.g .bg { fill: var(--field-green); }
.mm-branch.a .bg { fill: var(--accent); }
.mm-branch text.lb { font-family: var(--f-title); font-weight: 600; font-size: 27px; letter-spacing: -0.015em; transition: fill 220ms ease; }
.mm-branch.g text.lb { fill: #fff; }
.mm-branch.a text.lb { fill: var(--on-accent); }
.mm-chip rect { fill: #fff; }
.mm-chip text { fill: #0a131c; font-family: var(--f-title); font-weight: 700; font-size: 16px; letter-spacing: 0.06em; }
.mm:has(.mm-branch:hover) .mm-branch:not(:hover), .mm:has(.mm-branch:focus-visible) .mm-branch:not(:focus-visible) { opacity: 0.35; }
.mm-branch:hover .ln, .mm-branch:focus-visible .ln { stroke-width: 8; }
.mm-branch:hover .mm-node, .mm-branch:focus-visible .mm-node { scale: 1.06; }
.mm-branch.g:hover .bg, .mm-branch.g:focus-visible .bg { fill: var(--accent); }
.mm-branch.g:hover text.lb, .mm-branch.g:focus-visible text.lb { fill: var(--on-accent); }
.mm-branch.a:hover .bg, .mm-branch.a:focus-visible .bg { fill: var(--field-green); }
.mm-branch.a:hover text.lb, .mm-branch.a:focus-visible text.lb { fill: #fff; }
.mm-branch:focus-visible .bg { stroke: var(--ink); stroke-width: 4; }
@media (prefers-reduced-motion: no-preference) {
  .js .mm-branch .ln { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 900ms cubic-bezier(.2, .7, .2, 1) calc(var(--i) * 140ms), stroke-width 200ms ease; }
  .js .mm.in .mm-branch .ln { stroke-dashoffset: 0; }
  .js .mm-rev { opacity: 0; transform: translateY(14px) scale(0.96); transform-box: fill-box; transform-origin: center; transition: opacity 500ms ease calc(500ms + var(--i) * 140ms), transform 600ms cubic-bezier(.3, 1.3, .5, 1) calc(500ms + var(--i) * 140ms); }
  .js .mm.in .mm-rev { opacity: 1; transform: none; }
  .js .mm-center { opacity: 0; transition: opacity 500ms ease; }
  .js .mm.in .mm-center { opacity: 1; }
  .js .mm.in .mm-branch .flow { display: block; animation: mm-flow 2.6s linear infinite; animation-delay: calc(1.4s + var(--i) * 120ms); }
  .js .mm.in .mm-node { animation: mm-bob 4.8s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -1.1s); }
  .js .mm.in .mm-center .orbit { animation: mm-spin 46s linear infinite; }
  .js .mm.in .mm-center .ripple { animation: mm-ripple 5.4s ease-out infinite; animation-delay: calc(var(--r) * 1.8s); }
  .js .mm.in .mm-center .glyph { animation: mm-breathe 3.2s ease-in-out infinite alternate; }
  .js .mm.in .mm-center .glyph + .glyph { animation-delay: -1.6s; }
  .mm-par { translate: calc(var(--mx) * 14px) calc(var(--my) * 9px); }
  .mm-center { translate: calc(var(--mx) * -7px) calc(var(--my) * -5px); transition: translate 350ms ease-out, opacity 500ms ease; }
}
@keyframes mm-flow { to { stroke-dashoffset: -0.111; } }
@keyframes mm-bob { from { transform: translateY(0); } to { transform: translateY(-8px); } }
@keyframes mm-spin { to { transform: rotate(360deg); } }
@keyframes mm-ripple { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(1.75); opacity: 0; } }
@keyframes mm-breathe { from { transform: scaleY(1); } to { transform: scaleY(0.55); } }
.mm-m { display: none; }
@media (max-width: 799px) {
  .mm-svg { display: none; }
  .mm-m { display: block; }
}
.mm-m-orb { position: relative; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid currentColor; display: inline-flex; align-items: center; justify-content: center; gap: 2px; }
.mm-m-orb i { width: 3px; height: 10px; background: currentColor; }
.story { position: relative; overflow: hidden; height: min(30rem, 74svh); min-height: 24rem; background: var(--field-green); color: #fff; transition: background 500ms ease, color 500ms ease; touch-action: pan-y; -webkit-tap-highlight-color: transparent; user-select: none; }
.story[data-tone="a"] { background: var(--accent); color: var(--on-accent); --sk: var(--on-accent); }
.story[data-tone="n"] { background: var(--field-ink); color: #fff; --sk: var(--accent); }
.story[data-tone="n"] .num { -webkit-text-stroke-color: var(--accent); }
.story-bars { position: absolute; z-index: 3; top: 14px; left: 14px; right: 14px; display: flex; gap: 6px; }
.story-bars i { flex: 1; height: 4px; background: color-mix(in srgb, currentColor 28%, transparent); overflow: hidden; }
.story-bars b { display: block; height: 100%; width: 0; background: currentColor; }
.story-bars i.done b { width: 100%; }
.story[data-tone="n"] .story-bars b { background: var(--accent); }
.story-head { position: absolute; z-index: 3; top: 32px; left: 14px; right: 14px; margin: 0; display: flex; align-items: center; gap: 10px; font-family: var(--f-title); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; }
.story-slides { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; padding: 5.5rem 1.5rem 2rem; display: flex; flex-direction: column; justify-content: flex-end; opacity: 0; visibility: hidden; transition: opacity 400ms ease, visibility 0s linear 400ms; overflow: hidden; }
.slide.on { opacity: 1; visibility: visible; transition: opacity 400ms ease; }
.slide .num { position: absolute; top: 4.2rem; left: 0.9rem; font-family: var(--f-title); font-weight: 700; font-size: 10rem; line-height: 0.8; letter-spacing: -0.07em; color: transparent; -webkit-text-stroke: 3px var(--sk, #fff); opacity: 0.4; }
.slide .rip { position: absolute; right: -5rem; top: 6rem; width: 15rem; height: 15rem; border-radius: 50%; border: 3px solid currentColor; opacity: 0.22; }
.slide .rip::before, .slide .rip::after { content: ""; position: absolute; border-radius: 50%; border: 3px solid currentColor; inset: -2.2rem; }
.slide .rip::after { inset: -4.6rem; }
.slide .txt { position: relative; margin: 0; font-family: var(--f-title); font-weight: 700; font-size: clamp(2.1rem, 9.4vw, 2.9rem); line-height: 1.02; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.story-prev, .story-next { all: unset; position: absolute; z-index: 2; top: 0; bottom: 0; cursor: pointer; }
.story-prev { left: 0; width: 34%; }
.story-next { right: 0; width: 66%; }
.story-prev:focus-visible, .story-next:focus-visible { outline: 4px solid currentColor; outline-offset: -8px; }
.mm-m-hint { text-align: center; margin: var(--s-3) 0 0; font-size: 0.875rem; color: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) {
  .story.live .story-bars i.cur b { animation: story-fill 5.4s linear forwards; }
  .story.hold .story-bars i.cur b { animation-play-state: paused; }
  .slide.on .txt { animation: story-rise 700ms cubic-bezier(.2, .8, .2, 1) both; }
  .slide.on .num { animation: story-num 900ms cubic-bezier(.2, .8, .2, 1) both; }
  .slide.on .rip { animation: story-pulse 4s ease-in-out infinite alternate; }
  .slide.on .rip::before { animation: story-pulse 4s ease-in-out -1.3s infinite alternate; }
  .slide.on .rip::after { animation: story-pulse 4s ease-in-out -2.6s infinite alternate; }
  .story.hold .slide.on .rip, .story.hold .slide.on .rip::before, .story.hold .slide.on .rip::after { animation-play-state: paused; }
}
@keyframes story-fill { to { width: 100%; } }
@keyframes story-rise { from { opacity: 0; transform: translateY(36px); } }
@keyframes story-num { from { opacity: 0; transform: translateX(-30px); } }
@keyframes story-pulse { from { transform: scale(0.94); } to { transform: scale(1.06); } }
html.mo-paused .story-bars b, html.mo-paused .slide * { animation-play-state: paused !important; }

/* ---------- Reto de siete días ---------- */
.progress { display: flex; align-items: center; gap: var(--s-4); margin: 0 0 var(--s-6); flex-wrap: wrap; }
.progress .bar-track { flex: 1 1 10rem; }
.challenge { width: 100%; border-collapse: collapse; }
.challenge th { text-align: left; font-family: var(--f-title); font-size: 0.875rem; font-weight: 600; color: var(--ink-2); padding: 0 var(--s-4) var(--s-3) 0; }
.challenge td { padding: var(--s-4) var(--s-4) var(--s-4) 0; border-top: 1px solid var(--line); vertical-align: top; }
.challenge td:first-child { width: 4rem; font-family: var(--f-title); font-weight: 600; font-size: 1.5rem; line-height: 1.2; color: var(--green); }
.challenge td:last-child { width: 9rem; padding-right: 0; }
.challenge tr.done td:nth-child(2) { color: var(--ink-2); text-decoration: line-through; text-decoration-thickness: 1px; }
.challenge label { display: inline-flex; align-items: center; gap: var(--s-3); cursor: pointer; font-weight: 500; min-height: 44px; }
.challenge input[type="checkbox"] { width: 24px; height: 24px; accent-color: var(--green); cursor: pointer; }
@media (max-width: 640px) {
  .challenge thead { display: none; }
  .challenge, .challenge tbody, .challenge tr, .challenge td { display: block; width: 100% !important; }
  .challenge tr { display: grid; grid-template-columns: 3rem minmax(0, 1fr); border-top: 1px solid var(--line); padding: var(--s-4) 0; column-gap: var(--s-2); }
  .challenge td { border: 0; padding: 0; }
  .challenge td:last-child { grid-column: 2; padding-top: var(--s-2); }
}

/* ---------- Botones y enlaces de acción ---------- */
.btn, .nav-toggle, .tab a, .next-link { touch-action: manipulation; }
.btn { display: inline-flex; align-items: center; gap: var(--s-2); background: var(--primary); color: var(--on-primary); border: 2px solid var(--primary); padding: 0.75rem 1.4rem; min-height: 48px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: background var(--ease), color var(--ease); border-radius: 0; }
.btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-primary); opacity: 1; }
.btn.quiet { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.quiet:hover { background: var(--tint); color: var(--ink); }
.btn.danger { background: transparent; color: #a33a3a; border-color: #a33a3a; }
.btn.danger:hover { background: #a33a3a; color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.danger { color: #f0a0a0; border-color: #f0a0a0; } :root:not([data-theme="light"]) .btn.danger:hover { background: #f0a0a0; color: #1a1a1a; } }
:root[data-theme="dark"] .btn.danger { color: #f0a0a0; border-color: #f0a0a0; } :root[data-theme="dark"] .btn.danger:hover { background: #f0a0a0; color: #1a1a1a; }
.btn.small { padding: 0.4rem 0.9rem; min-height: 40px; font-size: 1rem; }
.btn .icon, .next-link .icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.next-link { display: inline-flex; align-items: center; gap: var(--s-2); font-family: var(--f-title); font-weight: 500; font-size: 1.25rem; text-decoration-thickness: 3px; text-underline-offset: 0.35em; text-decoration-color: var(--accent); }
.next-link:hover { opacity: 1; text-decoration-color: currentColor; }


.strip { display: grid; grid-template-columns: repeat(3, 1fr); height: 40svh; min-height: 220px; }
.strip img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.05); }
@media (max-width: 719px) { .strip { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; height: 48svh; } .strip img:first-child { grid-column: 1 / -1; } .strip img:nth-child(3) { display: none; } }
.close-band { background: var(--field-green); color: #fff; display: grid; min-height: 44svh; }
.close-copy { padding: var(--s-16) var(--m); align-self: center; }
.close-photo { margin: 0; min-height: 30svh; }
.close-photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.05); }
@media (min-width: 900px) { .close-band { grid-template-columns: 1fr 1fr; } .close-copy { padding-left: max(var(--m), calc((100vw - 1440px) / 2 + var(--m))); } }
.close-statement { font-family: var(--f-title); font-weight: 500; font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.2; letter-spacing: -0.02em; max-width: 24ch; margin: 0 0 var(--s-6); }
.close-statement a { color: #fff; text-decoration-thickness: 4px; text-underline-offset: 6px; text-decoration-color: var(--accent); }
.close-band p.small { max-width: 52ch; }

/* ---------- Artículos y fuentes ---------- */
.posts { display: grid; gap: var(--s-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.post-item { background: var(--tint); padding: var(--s-6); }
.post-item h3 { font-size: 1.375rem; margin: var(--s-2) 0; }
.post-item h3 a { text-decoration: none; }
.post-item h3 a:hover { text-decoration: underline; opacity: 1; }
.topic { font-size: 1rem; font-weight: 600; color: var(--green); text-decoration: none; }
.post-meta { color: var(--ink-2); font-size: 1rem; margin: 0; }
.markdown h2, .markdown h3 { margin-top: var(--s-8); }
.markdown img { height: auto; }
.markdown blockquote { margin: var(--s-6) 0; padding: var(--s-4) var(--s-6); background: var(--tint); }
.markdown code { background: var(--tint); padding: 0.1em 0.35em; font-size: 0.92em; }
.markdown ul, .markdown ol { padding-left: 1.25rem; }
.sources-list li { padding: var(--s-6); }
.sources-list .who { color: var(--ink-2); font-size: 1rem; margin: 0 0 var(--s-1); }
.sources-list h3 { margin-bottom: var(--s-2); }
.sources-list a { overflow-wrap: anywhere; font-size: 1rem; }


/* ---------- Panel de administración ---------- */
.admin-bar { background: var(--primary); color: var(--on-primary); }
.admin-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; min-height: 52px; }
.admin-bar a { color: var(--on-primary); text-decoration: none; font-weight: 500; margin-right: var(--s-6); font-size: 1rem; }
.admin-bar a:hover { text-decoration: underline; }
.admin-bar form { display: inline; }
.admin-bar button { background: transparent; border: 1px solid currentColor; color: var(--on-primary); padding: var(--s-1) var(--s-4); font: inherit; font-size: 1rem; cursor: pointer; min-height: 36px; } /* taste-skill-ignore */
.admin-main { padding: var(--s-12) 0; }
.admin-main h1 { font-size: 2rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: var(--s-6); }
.panel { background: var(--tint); padding: var(--s-6); }
.form { display: grid; gap: var(--s-4); }
.field-row { display: grid; gap: var(--s-1); }
.field-row label, .field-row .lbl { font-weight: 600; font-size: 1rem; }
.field-row small { color: var(--ink-2); }
input[type="text"], input[type="password"], input[type="url"], input[type="number"], select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 2px solid var(--ink-2); border-radius: 0; padding: 0.65rem 0.8rem; min-height: 44px; }
textarea { min-height: 340px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.95rem; line-height: 1.6; } /* taste-skill-ignore */
input:focus, select:focus, textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; }
fieldset { border: 0; background: var(--tint); padding: var(--s-6); margin: 0; min-width: 0; }
legend { font-family: var(--f-title); font-weight: 600; padding: 0; margin-bottom: var(--s-3); }
.check { display: flex; align-items: center; gap: var(--s-3); font-weight: 500; min-height: 44px; }
.check input { width: 22px; height: 22px; accent-color: var(--green); }
.error, .ok { padding: var(--s-4); margin: 0 0 var(--s-4); }
.error { background: #f6dcdc; color: #5c1c1c; }
.ok { background: #dcebe2; color: #1d3a2b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .error { background: #4a2326; color: #ffd9d9; } :root:not([data-theme="light"]) .ok { background: #1f3a2d; color: #d4f0e0; } }
:root[data-theme="dark"] .error { background: #4a2326; color: #ffd9d9; } :root[data-theme="dark"] .ok { background: #1f3a2d; color: #d4f0e0; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; min-width: 34rem; }
.table th, .table td { text-align: left; padding: var(--s-3) var(--s-4) var(--s-3) 0; border-top: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: 0.875rem; color: var(--ink-2); border-top: 0; }
.row-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.inline-form { display: inline; }
.opt-grid { display: grid; grid-template-columns: minmax(0, 1fr) 8rem; gap: var(--s-3) var(--s-4); align-items: center; }

/* ---------- Movimiento (solo transform y opacity; el contenido es visible sin JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .band > * { animation: band-in 1.1s cubic-bezier(.2, .7, .2, 1) both; }
  .js .band img { animation: photo-drift 1.6s cubic-bezier(.2, .7, .2, 1) both; }
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .5s cubic-bezier(.2, .7, .2, 1), transform .5s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
  .js .reveal.in { opacity: 1; transform: none; }
  .line { display: block; overflow: hidden; padding-bottom: 0.28em; margin-bottom: -0.2em; }
  .line > span { display: block; animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--l, 0) * 110ms); }
  .after-title { animation: fade-up .8s ease both; animation-delay: .45s; }
  .btn, .next-link { transition: transform var(--ease), background var(--ease), color var(--ease); }
  .btn:active { transform: translateY(1px); }
  .col-item, .post-item { transition: transform var(--ease); }
  .col-item:hover, .post-item:hover { transform: translateY(-3px); }
}
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes band-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes photo-drift { from { transform: scale(1.08); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Componentes con fondo tonal mantienen su tinta aunque estén sobre un campo de color */
.col-item, .note, .list-steps li, .list-check li, .list-prompts li, .sources-list li, .post-item, .chart-panel, .mindmap .node { color: var(--ink); }
.sidepic { width: 100%; max-width: 20rem; align-self: start; aspect-ratio: 4 / 5; object-fit: cover; display: block; filter: grayscale(1) contrast(1.05); margin-bottom: var(--s-4); }
.pagehead-lead { font-size: 1.25rem; line-height: 1.5; color: var(--ink); max-width: 38ch; }

/* ---------- Portada: caminos e índice visual ---------- */
.paths-title { font-size: clamp(2.25rem, 1rem + 4vw, 4.5rem); letter-spacing: -0.05em; line-height: 1; margin: 0 0 var(--s-8); font-weight: 600; }
.paths { display: grid; gap: var(--s-8); grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); align-items: start; }
.path img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; filter: grayscale(1) contrast(1.05); }
.path h3 { font-size: 1.75rem; margin: var(--s-4) 0 var(--s-3); }
.path ul { list-style: none; margin: 0 0 var(--s-4); padding: 0; display: grid; gap: var(--s-2); font-size: 1.0625rem; }
.tiles { display: grid; gap: 0; grid-template-columns: repeat(3, 1fr); margin-top: var(--s-8); }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tiles { grid-template-columns: 1fr; } }
.tile { display: grid; grid-template-rows: auto 1fr; text-decoration: none; overflow: hidden; }
.tile:hover { opacity: 1; }
.tile-img { overflow: hidden; aspect-ratio: 16 / 10; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.05); transition: transform 400ms cubic-bezier(.2, .7, .2, 1); }
.tile:hover .tile-img img { transform: scale(1.06); }
.tile-body { padding: var(--s-6); display: grid; grid-template-columns: 1fr auto; gap: var(--s-2) var(--s-4); align-content: start; min-height: 9rem; }
.tile.flat { grid-template-rows: 1fr; }
.tile.flat .tile-body { align-content: end; min-height: 12rem; }
.tile.flat h3 { font-size: 2rem; }
.tile h3 { font-size: 1.5rem; margin: 0; grid-column: 1; }
.tile p { margin: 0; grid-column: 1; }
.tile .go { grid-row: 1; grid-column: 2; }
.tile .go svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--ease); }
.tile:hover .go svg { transform: translateX(6px); }
.c-ink { background: var(--field-ink); color: #fff; }
.c-green { background: var(--field-green); color: #fff; }
.c-accent { background: var(--accent); color: var(--on-accent); }
.c-tint { background: var(--tint); color: var(--ink); }

/* ---------- Pie ---------- */
.site-footer { background: var(--field-ink); color: #fff; padding: var(--s-12) 0 var(--s-6); }
.site-footer a { color: #fff; }
.foot-grid { display: grid; gap: var(--s-12) var(--s-8); }
@media (min-width: 700px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: var(--s-16); } }
.foot-mark { font-family: var(--f-title); font-weight: 600; font-size: 1.75rem; letter-spacing: -0.02em; text-decoration: none; }
.foot-note { color: var(--field-ink-soft); font-size: 1rem; max-width: 44ch; margin: var(--s-4) 0 0; }
.foot-h { font-family: var(--f-title); font-weight: 600; font-size: 1.125rem; margin: 0 0 var(--s-4); color: #fff; }
.foot-links, .foot-social, .foot-creators { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); }
.foot-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-6); }
@media (max-width: 480px) { .foot-links { grid-template-columns: 1fr; } }
.foot-grid.no-contact { grid-template-columns: 1fr; }
@media (min-width: 700px) { .foot-grid.no-contact { grid-template-columns: 1.3fr 1fr; } }
@media (min-width: 1100px) { .foot-grid.no-contact { grid-template-columns: 1.4fr 1fr; } }
.foot-links a, .foot-social a { color: var(--field-ink-soft); text-decoration: none; font-size: 1rem; display: inline-flex; align-items: center; gap: var(--s-2); min-height: 40px; }
.foot-links a:hover, .foot-social a:hover { color: var(--accent); opacity: 1; text-decoration: underline; }
.foot-social svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.foot-creators { margin-bottom: var(--s-4); color: #fff; }
.foot-creators li { font-size: 1rem; }
.foot-mail { margin: 0 0 var(--s-4); }
.foot-mail a { color: var(--accent); }
.foot-social { grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 0 var(--s-4); }
.credits { margin: var(--s-12) 0 0; font-size: 1rem; color: var(--field-ink-soft); max-width: 72ch; }
.credits summary { cursor: pointer; display: inline-block; text-decoration: underline; text-underline-offset: 0.2em; }
.credits p { margin: var(--s-3) 0 0; }
.credits a { color: #fff; }
.foot-last { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-8); font-size: 1rem; color: var(--field-ink-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Portada: título a la izquierda, presentación a la derecha ---------- */
.hero2 { display: grid; gap: var(--s-8); padding: var(--s-16) 0 var(--s-12); align-items: start; }
@media (min-width: 900px) { .hero2 { grid-template-columns: 1fr 1fr; gap: var(--s-16); } }
@media (max-width: 899px) { .hero2 { padding: var(--s-8) 0; } }
.hero2 .title { margin-bottom: var(--s-8); }
.hero2 .statement { max-width: none; font-weight: 400; margin-bottom: var(--s-6); }
.hero2 .lead { font-size: 1.25rem; max-width: 44ch; }

/* ---------- Preguntas en bloques y datos en dos columnas ---------- */
.prompts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: var(--s-8); }
@media (max-width: 900px) { .prompts { grid-template-columns: 1fr; } }
.prompt { padding: var(--s-8) var(--s-6); min-height: 13rem; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: var(--s-6); font-family: var(--f-title); font-weight: 500; font-size: clamp(1.125rem, 0.9rem + 0.7vw, 1.5rem); line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
.head-row { display: grid; gap: var(--s-4); align-items: end; }
@media (min-width: 900px) { .head-row { grid-template-columns: var(--axis) 1fr; } }
.head-row > p { margin: 0; color: var(--ink-2); max-width: 36ch; }
.head-row h2 { margin: 0; }
.data-grid { display: grid; gap: var(--s-8); align-items: start; }
@media (min-width: 900px) { .data-grid { grid-template-columns: 5fr 7fr; gap: var(--s-12); } }
.data-grid .stat { display: block; margin: var(--s-6) 0; }
.data-grid .stat-num { display: inline-block; font-size: clamp(5rem, 3rem + 8vw, 10rem); line-height: 0.95; padding: 0.04em 0.12em; }
.data-grid .stat-text { font-size: 1.25rem; margin-top: var(--s-4); max-width: 30ch; }
.map-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-12); }

/* ---------- Cuatro bloques de color y foto apaisada ---------- */
.tiles4 { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: var(--s-8); }
@media (max-width: 1100px) { .tiles4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tiles4 { grid-template-columns: 1fr; } }
.tile4 { padding: var(--s-8) var(--s-6); min-height: 17rem; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--s-3); }
.tile4 h3 { font-size: 1.5rem; margin: 0; line-height: 1.15; }
.tile4 p { margin: 0; font-size: 1.0625rem; }
.sidepic.wide { aspect-ratio: 4 / 3; max-width: none; }
.big-read { font-size: 1.375rem; line-height: 1.45; max-width: 46ch; margin: 0; }
.big-read + .big-read { margin-top: var(--s-4); }
@media (max-width: 600px) { .big-read { font-size: 1.125rem; } }

/* ---------- Cinco bloques de pasos ---------- */
.tiles5 { list-style: none; margin: var(--s-8) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: paso; }
@media (max-width: 1200px) { .tiles5 { grid-template-columns: repeat(2, 1fr); } .tiles5 li:last-child { grid-column: 1 / -1; } }
@media (max-width: 600px) { .tiles5 { grid-template-columns: 1fr; } }
.tile5 { counter-increment: paso; padding: var(--s-6); min-height: 19rem; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-6); }
.tile5::before { content: counter(paso); font-family: var(--f-title); font-weight: 600; font-size: 3.5rem; line-height: 1; letter-spacing: -0.04em; }
.tile5 h3 { font-size: 1.375rem; line-height: 1.15; margin: 0 0 var(--s-2); }
.tile5 p { margin: 0; }
@media (max-width: 600px) { .tile5 { min-height: 0; flex-direction: row; justify-content: flex-start; align-items: baseline; gap: var(--s-4); padding: var(--s-4) var(--s-6); } .tile5::before { font-size: 2.5rem; min-width: 2.25rem; } }
.chart-panel .list-check { gap: var(--s-1); }
.chart-panel .list-check li { background: none; padding: var(--s-3) 0; }
@media (max-width: 600px) { .tile5 h3 { font-size: 1.125rem; } }
@media (min-width: 601px) { .tile5 { justify-content: flex-start; gap: var(--s-12); } }

/* ---------- Reto de siete días en bloques ---------- */
.days { list-style: none; margin: var(--s-8) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); }
@media (max-width: 1100px) { .days { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .days { grid-template-columns: 1fr; } }
.day { --dc: var(--green); --df: var(--field-green); --dk: #fff; position: relative; isolation: isolate; overflow: hidden; background: var(--tint); color: var(--ink); padding: var(--s-6); min-height: 16rem; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-6); border-top: 8px solid var(--dc); transition: background 300ms ease, color 300ms ease, transform 250ms ease; }
.day:nth-child(3n+2) { --dc: var(--accent); --df: var(--accent); --dk: var(--on-accent); }
.day:nth-child(3n+3) { --dc: var(--primary); --df: var(--primary); --dk: var(--on-primary); }
.day .n { font-family: var(--f-title); font-weight: 700; font-size: clamp(4.5rem, 7vw, 6rem); line-height: 0.85; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 3px var(--dc); transition: color 300ms ease, -webkit-text-stroke-color 300ms ease; }
.day .n::before { content: "Día"; display: block; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1; margin-bottom: var(--s-3); color: var(--ink-2); -webkit-text-stroke: 0; transition: color 300ms ease; }
.day p { margin: 0; font-size: 1.125rem; line-height: 1.35; font-weight: 500; }
.day label { display: inline-flex; align-items: center; gap: var(--s-3); cursor: pointer; font-weight: 700; font-size: 1rem; min-height: 48px; }
.day label::after { content: ""; position: absolute; inset: 0; cursor: pointer; }
.day label span { transition: opacity 200ms ease; }
.day input[type="checkbox"] { appearance: none; -webkit-appearance: none; flex: none; margin: 0; width: 40px; height: 40px; border: 3px solid currentColor; border-radius: 0; background: transparent; display: grid; place-items: center; transition: background 200ms ease, border-color 200ms ease; }
.day:hover input[type="checkbox"] { border-color: var(--dc); }
.day input[type="checkbox"]::after { content: ""; width: 11px; height: 21px; margin-top: -4px; border: solid var(--df); border-width: 0 4px 4px 0; opacity: 0; transform: rotate(45deg) scale(0.8); transition: transform 220ms cubic-bezier(.3, 1.6, .5, 1), opacity 160ms ease; }
.day input[type="checkbox"]:checked { background: var(--dk); border-color: var(--dk); }
.day input[type="checkbox"]:checked::after { opacity: 1; transform: rotate(45deg) scale(1); }
.day:has(input:focus-visible) { outline: 4px solid var(--accent); outline-offset: -4px; }
.day.done { background: var(--df); color: var(--dk); }
.day.done .n { color: var(--dk); -webkit-text-stroke-color: var(--dk); }
.day.done .n::before { color: var(--dk); }
.day.progress-tile { --dc: var(--accent); background: var(--field-ink); color: #fff; justify-content: flex-start; }
.day.progress-tile .n-label { font-size: 0.9rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin: 0; opacity: 0.8; }
.day.progress-tile .count { font-family: var(--f-title); font-weight: 700; font-size: 2.75rem; line-height: 1; letter-spacing: -0.04em; margin: 0; }
.day.progress-tile .msg { font-weight: 600; font-size: 1.0625rem; margin: 0; min-height: 2.8em; }
.pips { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.pips i { height: 16px; background: rgba(255, 255, 255, 0.2); transition: background 300ms ease, transform 300ms cubic-bezier(.3, 1.6, .5, 1); }
.pips i.on { background: var(--accent); transform: scaleY(1.5); }
.day.progress-tile .btn { background: transparent; color: #fff; border-color: #fff; align-self: flex-start; margin-top: auto; }
.day.progress-tile .btn:hover { background: #fff; color: #1a2b3d; }
.days.complete .progress-tile { background: var(--accent); color: var(--on-accent); }
.days.complete .pips i { background: var(--on-accent); }
.days.complete .progress-tile .btn { color: var(--on-accent); border-color: var(--on-accent); }
.days.complete .progress-tile .btn:hover { background: var(--on-accent); color: var(--accent); }
.cf { position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; background: var(--c, #e4b66a); pointer-events: none; z-index: 5; }
@media (max-width: 600px) { .day { min-height: 13rem; } }
@media (prefers-reduced-motion: no-preference) {
  .day:hover { transform: translateY(-4px) rotate(-0.6deg); }
  .day.pop { animation: day-pop 520ms cubic-bezier(.3, 1.6, .5, 1); }
  .cf { animation: cf-fly 950ms cubic-bezier(.15, .8, .3, 1) forwards; }
}
@keyframes day-pop { 0% { transform: scale(0.94); } 55% { transform: scale(1.04) rotate(0.8deg); } 100% { transform: none; } }
@keyframes cf-fly { to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; } }
.tiles5.nonum .tile5::before { content: none; }
.tiles5.nonum .tile5 { min-height: 15rem; justify-content: flex-end; }

@media (min-width: 900px) { .data-grid.rev > :first-child { order: 2; } }
.data-grid .sub { font-size: 1.125rem; color: inherit; opacity: 0.85; max-width: 34ch; margin: 0 0 var(--s-4); }
.verdict { background: var(--bg); padding: var(--s-8); margin-top: var(--s-6); }
.verdict p { margin: 0; font-size: 1.125rem; }
@media (min-width: 900px) { .data-grid.rev { grid-template-columns: 7fr 5fr; } }

/* ---------- Fuentes: encuesta frente a ciencia, y fuentes en bloques ---------- */
.versus { display: grid; grid-template-columns: 1fr 1fr; margin-top: var(--s-8); }
@media (max-width: 800px) { .versus { grid-template-columns: 1fr; } }
.versus > div { padding: var(--s-12) var(--s-8); min-height: 20rem; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-6); }
.versus h3 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); letter-spacing: -0.03em; margin: 0 0 var(--s-3); }
.versus p { margin: 0; font-size: 1.125rem; max-width: 40ch; }
.versus .big { font-family: var(--f-title); font-weight: 600; font-size: clamp(3rem, 2rem + 4vw, 6rem); line-height: 0.95; letter-spacing: -0.05em; margin: 0; }
.src-grid { list-style: none; margin: var(--s-8) 0 0; padding: 0; display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
@media (min-width: 1000px) {
  .src-grid { grid-template-columns: repeat(6, 1fr); }
  .src-grid > .src { grid-column: span 2; }
  .src-grid > .src:nth-child(3n+1):last-child { grid-column: span 6; }
  .src-grid > .src:nth-child(3n+2):last-child, .src-grid > .src:nth-child(3n+1):nth-last-child(2) { grid-column: span 3; }
}
.src { padding: var(--s-6); min-height: 17rem; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-6); }
.src .who { font-size: 1rem; margin: 0 0 var(--s-2); opacity: 0.85; }
.src h3 { font-size: 1.375rem; line-height: 1.2; margin: 0 0 var(--s-3); }
.src p { margin: 0; }
.src a { align-self: flex-start; }
.c-bg { background: var(--bg); color: var(--ink); }
.src p { max-width: 44ch; }
@media (max-width: 600px) { .src h3 { font-size: 1.125rem; } }

/* ---------- Encabezado sin notas laterales ---------- */
.tb { display: grid; gap: var(--s-8); align-items: start; }
@media (min-width: 900px) { .tb { grid-template-columns: 1fr 1fr; gap: var(--s-16); } }
.tb .title { margin: 0; max-width: none; }
.tb .statement { max-width: 26ch; margin-bottom: var(--s-6); }
.pagehead-lead { font-size: 1.25rem; line-height: 1.5; max-width: 46ch; margin: 0; color: var(--ink); }
.head-row { display: block; }
.head-row h2 { margin: 0 0 var(--s-3); }
.head-row > p { margin: 0; color: var(--ink-2); max-width: 62ch; font-size: 1.125rem; }
.head-row + * { margin-top: var(--s-8); }

/* ---------- «Siguiente»: bloque compacto con relleno al pasar el cursor ---------- */
.next-wrap { display: flex; justify-content: flex-end; margin: var(--s-12) auto var(--s-4); }
.next-card { --bg-c: var(--field-green); --fg-c: #fff; --hv-bg: var(--accent); --hv-fg: var(--on-accent); position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: var(--s-8); min-width: min(100%, 22rem); max-width: 30rem; padding: var(--s-4) var(--s-4) var(--s-4) var(--s-6); background: var(--bg-c); color: var(--fg-c); text-decoration: none; transition: color 250ms ease; }
.next-card:hover { opacity: 1; color: var(--hv-fg); }
.next-card::before { content: ""; position: absolute; inset: 0; background: var(--hv-bg); transform: scaleX(0); transform-origin: left; transition: transform 400ms cubic-bezier(.2, .7, .2, 1); z-index: -1; }
.next-card:hover::before, .next-card:focus-visible::before { transform: scaleX(1); }
.nx-green { --bg-c: var(--field-green); --fg-c: #fff; --hv-bg: var(--accent); --hv-fg: var(--on-accent); }
.nx-accent { --bg-c: var(--accent); --fg-c: var(--on-accent); --hv-bg: var(--field-ink); --hv-fg: #fff; }
.nx-ink { --bg-c: var(--field-ink); --fg-c: #fff; --hv-bg: var(--field-green); --hv-fg: #fff; }
.nx-text { display: grid; gap: 2px; }
.nx-l { font-size: 1rem; opacity: 0.85; }
.nx-t { font-family: var(--f-title); font-weight: 600; font-size: 1.375rem; line-height: 1.15; letter-spacing: -0.02em; }
.nx-arrow { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid currentColor; }
.nx-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; transition: transform 300ms cubic-bezier(.2, .7, .2, 1); }
.next-card:hover .nx-arrow svg, .next-card:focus-visible .nx-arrow svg { transform: translateX(5px); }
@media (prefers-reduced-motion: reduce) { .next-card::before { transition: none; } .next-card:hover .nx-arrow svg { transform: none; } }
@media (max-width: 600px) { .next-wrap { justify-content: stretch; } .next-card { width: 100%; max-width: none; } }
@media (max-width: 600px) { .nx-t { font-size: 1.125rem; } .nx-arrow { width: 44px; height: 44px; } .next-card { gap: var(--s-4); padding-left: var(--s-4); } }

/* ---------- Interruptor de modo claro / oscuro ---------- */
.hdr-actions { display: flex; align-items: center; gap: var(--s-2); }
.theme-toggle { display: none; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0; background: none; border: 0; cursor: pointer; }
.js .theme-toggle { display: inline-flex; }
.tt-track { position: relative; width: 62px; height: 34px; border-radius: 999px; background: var(--accent); border: 2px solid var(--ink); transition: background 300ms ease; }
.tt-knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--accent); display: grid; place-items: center; transition: transform 350ms cubic-bezier(.3, 1.4, .5, 1), background 300ms ease, color 300ms ease; }
.tt-knob svg { grid-area: 1 / 1; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: opacity 250ms ease, transform 450ms cubic-bezier(.3, 1.4, .5, 1); }
.tt-knob .i-moon { opacity: 0; transform: rotate(-70deg) scale(.5); }
.theme-toggle[data-mode="dark"] .tt-track { background: #2b3f55; }
.theme-toggle[data-mode="dark"] .tt-knob { transform: translateX(28px); background: var(--accent); color: #1a2b3d; }
.theme-toggle[data-mode="dark"] .i-sun { opacity: 0; transform: rotate(70deg) scale(.5); }
.theme-toggle[data-mode="dark"] .i-moon { opacity: 1; transform: none; }
.theme-toggle:hover .tt-knob { filter: brightness(1.1); }
.theme-toggle:active .tt-knob { width: 28px; }
.theme-toggle[data-mode="dark"]:active .tt-knob { transform: translateX(24px); }
.theme-toggle:focus-visible { outline: none; }
.theme-toggle:focus-visible .tt-track { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .tt-track, .tt-knob, .tt-knob svg { transition: none; } }
@media (max-width: 430px) { .hdr { gap: var(--s-3); } .mark { font-size: 1.125rem; gap: var(--s-2); } .hdr-actions { gap: var(--s-1); } }

/* ---------- Accesos rápidos (inicio y subir) ---------- */
.dock { position: fixed; right: max(var(--m), env(safe-area-inset-right)); bottom: calc(var(--s-4) + env(safe-area-inset-bottom)); z-index: 35; display: flex; flex-direction: column; gap: var(--s-2); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity 250ms ease, transform 250ms ease; }
.dock.show { opacity: 1; transform: none; pointer-events: auto; }
.dock-btn { width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--primary); color: var(--on-primary); cursor: pointer; text-decoration: none; transition: background var(--ease), color var(--ease), transform var(--ease); }
.dock-btn { outline: 3px solid var(--bg); }
.dock-btn:hover { background: var(--accent); color: var(--on-accent); opacity: 1; transform: translateY(-2px); }
.dock-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dock:not(.show) .dock-btn { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .dock { transition: none; } }

/* ---------- Gráficos que crecen y números que cuentan ---------- */
.chart .bar-fill { width: var(--w, 0); transition: width 900ms cubic-bezier(.2, .7, .2, 1) calc(var(--bi, 0) * 90ms); }
.js .chart:not(.in) .bar-fill { width: 0; }
.stat-num, .fig, .versus .big { font-variant-numeric: tabular-nums lining-nums; }

/* ---------- Ejercicio «Pregúntate» ---------- */
.prompt .q { margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.choices button { font: inherit; font-weight: 600; font-size: 1rem; padding: 0.55rem 1rem; min-height: 44px; background: transparent; color: inherit; border: 2px solid currentColor; border-radius: 0; cursor: pointer; transition: background var(--ease), color var(--ease), border-color var(--ease); }
.choices button:hover { background: rgba(255, 255, 255, 0.16); }
.prompt.c-accent .choices button:hover { background: rgba(0, 0, 0, 0.1); }
.choices button[aria-pressed="true"] { background: #fff; color: #1a2b3d; border-color: #fff; }
.prompt.c-accent .choices button[aria-pressed="true"] { background: #1a2b3d; color: #fff; border-color: #1a2b3d; }
.quiz-result { margin-top: var(--s-2); background: var(--tint); color: var(--ink); padding: var(--s-8); }
.quiz-result[hidden] { display: none; }
.quiz-result h3 { font-size: 1.5rem; margin: 0 0 var(--s-4); }
.quiz-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.quiz-steps li { font-family: var(--f-title); font-weight: 500; font-size: 1.25rem; line-height: 1.3; padding-left: var(--s-6); position: relative; }
.quiz-steps li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 12px; height: 12px; background: var(--accent); }
.quiz-steps small { display: block; font-family: var(--f-text); font-weight: 400; font-size: 1rem; color: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) { .quiz-result:not([hidden]) { animation: fade-up .5s ease both; } }

/* ---------- Banner con movimiento ---------- */
.band img { transition: filter 600ms ease; }
.band img:hover { filter: none; }
.band .b1, .band .b2 { display: grid; place-items: center; overflow: hidden; }
.band .b1 b, .band .b2 b { writing-mode: vertical-rl; font-family: var(--f-title); font-weight: 700; font-size: clamp(2rem, 4.4vw, 4rem); line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; white-space: nowrap; color: transparent; -webkit-text-stroke: 2px rgba(247, 244, 237, 0.6); }
.band .t1 { display: flex; align-items: center; justify-content: center; gap: clamp(6px, 1vw, 12px); }
.band .t1 i { display: block; width: clamp(12px, 1.8vw, 24px); height: 46%; background: var(--on-accent); transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .js .band img { animation: photo-drift 1.6s cubic-bezier(.2, .7, .2, 1) both, photo-pan 20s ease-in-out 1.6s infinite alternate; }
  .js .band .p2 { animation-duration: 1.6s, 24s; } .js .band .p3 { animation-duration: 1.6s, 17s; } .js .band .p4 { animation-duration: 1.6s, 22s; }
  .band .b1 b { animation: word-slide 9s ease-in-out infinite alternate; }
  .band .b2 b { animation: word-slide 11s ease-in-out infinite alternate-reverse; }
  .band .t1 i { animation: bars-pause 2.2s ease-in-out infinite; }
  .band .t1 i + i { animation-delay: -1.1s; }
}
@keyframes photo-pan { from { object-position: 30% 28%; } to { object-position: 70% 72%; } }
@keyframes word-slide { from { transform: translateY(-14%); } to { transform: translateY(14%); } }
@keyframes bars-pause { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.5); } }
html.mo-paused .band *, html.mo-paused .mm *, html.mo-paused .mm-par { animation-play-state: paused !important; }

@media (max-width: 719px) { .band .b2, .band .t1, .band .p4 { display: none; } }
.band button.b1, .band button.t1 { border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; border-radius: 0; }
.band button.b1:focus-visible, .band button.t1:focus-visible { outline: 4px solid var(--ink); outline-offset: -8px; z-index: 2; }
.band button.t1:hover i { background: var(--field-green); }
.band button.b1:hover b { -webkit-text-stroke-color: var(--accent); }
.band button.t1[aria-pressed="true"] i + i { display: none; }
.band button.t1[aria-pressed="true"] i { width: 0; height: 0; background: transparent; border: solid transparent; border-width: clamp(14px, 2.2vw, 30px) 0 clamp(14px, 2.2vw, 30px) clamp(24px, 3.8vw, 52px); border-left-color: var(--on-accent); }

/* ---------- Panel: estadísticas y música ---------- */
.stat-sec { margin-top: var(--s-12); }
.stat-sec h2 { font-size: 1.5rem; margin-bottom: var(--s-4); }
.range { display: flex; gap: var(--s-2); flex-wrap: wrap; margin: var(--s-6) 0; }
.range a { padding: 0.5rem 1rem; min-height: 44px; display: inline-flex; align-items: center; border: 2px solid var(--ink); color: var(--ink); text-decoration: none; font-weight: 600; }
.range a[aria-current="true"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.stat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); }
@media (max-width: 900px) { .stat-tiles { grid-template-columns: repeat(2, 1fr); } }
.stat-tile { padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-2); min-height: 9rem; justify-content: space-between; }
.stat-tile .k { font-weight: 600; font-size: 1rem; }
.stat-tile .v { font-family: var(--f-title); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; letter-spacing: -0.04em; }
.stat-tile small { font-size: 0.875rem; opacity: 0.85; }
.sbars { display: flex; align-items: stretch; gap: 3px; height: 11rem; padding: var(--s-2) 0; border-bottom: 3px solid var(--ink); }
.sb { flex: 1 1 0; min-width: 2px; display: flex; align-items: flex-end; }
.sb i { display: block; width: 100%; height: var(--h); min-height: 3px; background: var(--green); transition: background var(--ease); }
.sb:hover i { background: var(--accent); }
.sbars-axis { display: flex; justify-content: space-between; margin-top: var(--s-2); font-size: 0.875rem; color: var(--ink-2); }
.mini-bar { position: relative; min-width: 8rem; height: 28px; background: var(--bar-track); }
.mini-bar i { position: absolute; inset: 0 auto 0 0; background: var(--bar-hl); }
.mini-bar span { position: relative; padding-left: var(--s-2); font-weight: 700; line-height: 28px; }
.hm-form { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); margin: var(--s-4) 0; }
.hm-form label { font-weight: 600; }
.hm-form select { min-height: 44px; padding: 0 var(--s-3); font: inherit; background: var(--bg); color: var(--ink); border: 2px solid var(--ink); }
.hm-count { margin: 0 0 var(--s-3); color: var(--ink-2); }
.hm-stage { position: relative; overflow: hidden; background: var(--tint); border: 2px solid var(--line); }
.hm-inner { position: relative; transform-origin: 0 0; }
.hm-inner iframe { display: block; border: 0; background: #fff; pointer-events: none; }
.hm-inner canvas { position: absolute; left: 0; top: 0; pointer-events: none; }
.track-edit { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.track-edit input[type="text"] { flex: 1 1 12rem; min-height: 40px; }
.track-edit .chk { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 500; }
.dur-view { margin: 0; color: var(--ink-2); }
.hm .dock, .hm .sound { display: none !important; }
.hm .site-header { position: static; }
.hm .reveal { opacity: 1 !important; transform: none !important; }

/* ---------- Botón de música ---------- */
.sound { position: fixed; left: max(var(--m), env(safe-area-inset-left)); bottom: calc(var(--s-4) + env(safe-area-inset-bottom)); z-index: 35; display: flex; align-items: center; gap: var(--s-3); }
.sound .sound-btn { position: relative; width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--primary); color: var(--on-primary); cursor: pointer; outline: 3px solid var(--bg); transition: background var(--ease), color var(--ease); }
.sound .sound-btn:hover { background: var(--accent); color: var(--on-accent); }
.sound .sound-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sound svg { width: 22px; height: 22px; fill: currentColor; overflow: visible; }
.sound svg rect { transform-box: fill-box; transform-origin: center bottom; }
.sound:not(.on) .eq1 { transform: scaleY(0.35); } .sound:not(.on) .eq2 { transform: scaleY(0.2); } .sound:not(.on) .eq3 { transform: scaleY(0.5); }
.sound.off .sound-btn::before { content: ""; position: absolute; width: 30px; height: 3px; background: currentColor; rotate: -45deg; opacity: 0.9; }
.sound-label { background: var(--primary); color: var(--on-primary); font-size: 0.9375rem; font-weight: 600; padding: 0.5rem 0.9rem; max-width: min(60vw, 18rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 0; transform: translateX(-8px); pointer-events: none; transition: opacity 250ms ease, transform 250ms ease; }
.sound.say .sound-label { opacity: 1; transform: none; }
.sound.wait .sound-btn { background: var(--accent); color: var(--on-accent); }
@media (prefers-reduced-motion: no-preference) {
  .sound.on .eq1 { animation: eq 1.1s ease-in-out infinite alternate; }
  .sound.on .eq2 { animation: eq 0.9s ease-in-out -0.3s infinite alternate; }
  .sound.on .eq3 { animation: eq 1.3s ease-in-out -0.6s infinite alternate; }
  .sound.hint .sound-btn::after, .sound.wait .sound-btn::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--accent); animation: sound-ping 2.4s ease-out infinite; }
}
.sound.on:not(.off) .sound-btn::before { content: none; }
@keyframes eq { from { transform: scaleY(0.25); } to { transform: scaleY(1); } }
@keyframes sound-ping { from { transform: scale(1); opacity: 0.9; } to { transform: scale(1.7); opacity: 0; } }
html.mo-paused .sound * { animation-play-state: paused !important; }
/* Vista para el mapa de calor: sin unidades de pantalla (la página se muestra a su altura completa) */
.hm .band { height: 306px; } .hm .band.tall { height: 468px; }
.hm .fig-field { min-height: 720px; } .hm .fig-photo { min-height: 360px; }
.hm .strip { height: 360px; } .hm .close-band { min-height: 400px; } .hm .close-photo { min-height: 270px; }
.hm .story { height: 30rem; }
@media (max-width: 719px) { .hm .band { height: 252px; } .hm .band.tall { height: 340px; } .hm .strip { height: 430px; } }
.hm .admin-bar { display: none; }
.sound:not(.on) .eq1 { transform: scaleY(0.55); } .sound:not(.on) .eq2 { transform: scaleY(0.4); } .sound:not(.on) .eq3 { transform: scaleY(0.7); }
@media (max-width: 760px) {
  .table.tracks { min-width: 0; }
  .table.tracks thead { display: none; }
  .table.tracks, .table.tracks tbody, .table.tracks tr, .table.tracks td { display: block; width: 100%; }
  .table.tracks tr { background: var(--tint); padding: var(--s-4); margin-bottom: var(--s-3); }
  .table.tracks td { border: 0; padding: var(--s-2) 0; }
  .table.tracks td::before { content: attr(data-l); display: block; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); margin-bottom: var(--s-1); }
  .table.tracks audio { width: 100% !important; }
}
.form { grid-template-columns: minmax(0, 1fr); }
.field-row, .field-row > * { min-width: 0; max-width: 100%; }
.field-row input[type="file"] { width: 100%; }

/* ---------- Recortador de fragmento (panel de música) ---------- */
.clip { display: grid; gap: var(--s-4); color: var(--ink); }
.clip-wave { position: relative; height: 92px; background: var(--bg); border: 2px solid var(--line); touch-action: none; user-select: none; cursor: pointer; }
.clip-wave canvas { display: block; width: 100%; }
.clip-win { position: absolute; top: 0; bottom: 0; border: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 24%, transparent); cursor: grab; }
.clip-win:active { cursor: grabbing; }
.clip-win:focus-visible, .clip-win .h:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.clip-win .h { position: absolute; top: -3px; bottom: -3px; width: 16px; background: var(--accent); cursor: ew-resize; }
.clip-win .h.l { left: -3px; } .clip-win .h.r { right: -3px; }
.clip-win.fixed .h { display: none; }
.clip-head { position: absolute; top: 0; bottom: 0; width: 3px; background: var(--ink); display: none; pointer-events: none; }
.clip-status { margin: 0; color: var(--ink-2); }
.clip-controls { display: grid; gap: var(--s-4); }
.clip-presets { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.clip-presets button { min-height: 44px; padding: 0 var(--s-4); border: 2px solid var(--ink); background: transparent; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.clip-presets button.on { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.clip-times { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.clip-info { margin: 0; color: var(--ink-2); }
.clip-details { margin-top: var(--s-3); }
.clip-details summary { cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; min-height: 36px; display: inline-flex; align-items: center; }
.clip-details .form { margin-top: var(--s-3); padding: var(--s-4); background: var(--bg); }
.clip[hidden], .clip-wave[hidden], .clip-status[hidden] { display: none; }

/* ---------- Mini reproductor (se abre con el ícono de música) ---------- */
.sound { flex-wrap: nowrap; }
.player { position: absolute; left: 0; bottom: calc(100% + 14px); width: min(21rem, calc(100vw - 2 * var(--m))); background: var(--field-ink); color: #fff; padding: var(--s-5, 1.25rem); display: grid; gap: var(--s-3); border-top: 6px solid var(--accent); z-index: 2; }
.player[hidden] { display: none; }
.pl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); }
.pl-titles { display: grid; gap: 2px; min-width: 0; }
.pl-count { font-size: 0.875rem; opacity: 0.75; }
.pl-title { font-family: var(--f-title); font-size: 1.25rem; line-height: 1.15; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.player button { font: inherit; color: inherit; cursor: pointer; border: 0; background: transparent; }
.player svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; display: block; }
.player svg .f { fill: currentColor; stroke: none; }
.pl-close { flex: none; width: 40px; height: 40px; display: grid; place-items: center; margin: -6px -8px 0 0; }
.pl-close:hover { color: var(--accent); }
.pl-prog { height: 5px; background: rgba(255, 255, 255, 0.22); }
.pl-prog i { display: block; height: 100%; width: 0; background: var(--accent); }
.pl-times { display: flex; justify-content: space-between; font-size: 0.8125rem; opacity: 0.8; margin-top: -4px; }
.pl-ctrl { display: flex; align-items: center; justify-content: center; gap: var(--s-4); }
.pl-ctrl button { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; transition: background var(--ease), color var(--ease); }
.pl-ctrl button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.14); }
.pl-ctrl button:disabled { opacity: 0.3; cursor: default; }
.pl-ctrl .pl-play { width: 60px; height: 60px; background: var(--accent); color: var(--on-accent); }
.pl-ctrl .pl-play:hover { background: #fff; color: #1a2b3d; }
.pl-ctrl .pl-play svg { width: 26px; height: 26px; }
.pl-list { list-style: none; margin: var(--s-2) 0 0; padding: 0; max-height: 11rem; overflow-y: auto; display: grid; }
.pl-list button { width: 100%; display: grid; grid-template-columns: 1.6rem 1fr auto; gap: var(--s-2); align-items: center; text-align: left; padding: 0.55rem 0.4rem; min-height: 44px; }
.pl-list button:hover { background: rgba(255, 255, 255, 0.1); }
.pl-list .n, .pl-list .d { font-size: 0.875rem; opacity: 0.7; }
.pl-list .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-list button.now { color: var(--accent); font-weight: 700; }
.player button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sound.open .sound-label { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .player { animation: pl-in 220ms cubic-bezier(.2, .8, .2, 1); }
}
@keyframes pl-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Inicio: imagen principal, presentación y tres tarjetas ---------- */
.hero-photo { margin: var(--s-2) 0 0; overflow: hidden; }
.hero-photo img { display: block; width: 100%; height: clamp(15rem, 52vh, 34rem); object-fit: cover; object-position: 50% 22%; filter: grayscale(1) contrast(1.05); transition: filter 600ms ease; }
.hero-photo:hover img { filter: none; }
.hm .hero-photo img { height: 468px; }
.tagline { font-family: var(--f-title); font-weight: 600; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.2; letter-spacing: -0.02em; max-width: 22ch; margin: 0; color: var(--ink); }
.topics-sec { padding-top: 0; }
.topics { display: grid; gap: var(--s-2); grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .topics { grid-template-columns: 1fr; } }
.topic { display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-8); min-height: 15rem; padding: var(--s-6); background: var(--field-green); color: #fff; text-decoration: none; transition: transform 250ms ease, background 250ms ease; }
.topic:hover { background: #355a49; color: #fff; opacity: 1; }
.topic-icon { width: 64px; height: 64px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 50%; }
.topic-icon .icon { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.topic-title { margin: 0; font-family: var(--f-title); font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); line-height: 1.05; letter-spacing: -0.03em; color: #fff; }
.topic-go { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 600; font-size: 1rem; border-bottom: 2px solid var(--accent); align-self: flex-start; padding-bottom: 2px; }
.topic-go .icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.topics-cta { margin: var(--s-8) 0 0; }
@media (prefers-reduced-motion: no-preference) { .topic:hover { transform: translateY(-4px); } }
.closing + .muted { margin-top: var(--s-4); max-width: 38ch; }

/* ---------- «Haz una pausa y pregúntate» (Redes y emociones) ---------- */
.prompt .fb { margin: 0; font-family: var(--f-text); font-weight: 400; font-size: 1rem; line-height: 1.35; min-height: 0; }
.prompt .fb:empty { display: none; }
.choices.chips button { font-size: 0.9375rem; padding: 0.4rem 0.8rem; min-height: 40px; }
.prompt .add { display: flex; gap: var(--s-2); width: 100%; }
.prompt .add input { flex: 1 1 8rem; min-width: 0; min-height: 44px; padding: 0 var(--s-3); font: inherit; font-size: 1rem; color: #1a2b3d; background: rgba(255, 255, 255, 0.92); border: 2px solid #1a2b3d; border-radius: 0; }
.prompt .add input::placeholder { color: #4c5a68; }
.prompt .add-btn { font: inherit; font-weight: 600; min-height: 44px; padding: 0 var(--s-4); background: #1a2b3d; color: #fff; border: 2px solid #1a2b3d; border-radius: 0; cursor: pointer; }
.prompt .add-btn:hover { background: #fff; color: #1a2b3d; }
.prompt .mine { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.prompt .mine li { display: inline-flex; align-items: center; gap: var(--s-2); background: #1a2b3d; color: #fff; padding: 0.25rem 0.25rem 0.25rem 0.75rem; font-family: var(--f-text); font-weight: 600; font-size: 0.9375rem; }
.prompt .mine button { width: 32px; height: 32px; font: inherit; font-size: 1.25rem; line-height: 1; color: inherit; background: transparent; border: 0; cursor: pointer; }
.prompt .mine button:hover { background: rgba(255, 255, 255, 0.18); }

/* ---------- Resultados: preguntas y lecturas ---------- */
.q-title { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 var(--s-4); max-width: 30ch; }
.q-read { margin: 0; font-size: 1.1875rem; line-height: 1.55; max-width: 52ch; }
.chart-title { font-family: var(--f-title); font-weight: 600; font-size: 1.125rem; line-height: 1.25; margin: 0 0 var(--s-4); }

/* ---------- Infografía «Cinco momentos»: rueda con celular en pausa ---------- */
.mw-stage { display: grid; gap: var(--s-12); align-items: center; margin-top: var(--s-8); }
@media (min-width: 900px) { .mw-stage { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s-16); } }
.mw-wheel { position: relative; width: min(100%, 31rem); aspect-ratio: 1; margin-inline: auto; container-type: inline-size; perspective: 900px; }
.mw-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mw-w { cursor: pointer; transition: transform 380ms cubic-bezier(.3, 1.4, .5, 1), opacity 300ms ease, filter 300ms ease; }
.mw-w.w1 { fill: var(--field-green); } .mw-w.w2 { fill: var(--accent); } .mw-w.w3 { fill: var(--primary); } .mw-w.w4 { fill: #2b4a66; } .mw-w.w5 { fill: #7d9ab5; }
.mw-wheel.on .mw-w:not(.on) { opacity: 0.45; }
.mw-w.on { transform: translate(var(--dx), var(--dy)); }
.mw-w:hover { filter: brightness(1.12); }
.mw-ico { position: absolute; width: 13%; aspect-ratio: 1; translate: -50% -50%; display: grid; place-items: center; cursor: pointer; transition: translate 380ms cubic-bezier(.3, 1.4, .5, 1), scale 380ms cubic-bezier(.3, 1.4, .5, 1), opacity 300ms ease; }
.mw-ico .icon { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mw-ico.i1, .mw-ico.i4 { color: #fff; } .mw-ico.i2 { color: var(--on-accent); } .mw-ico.i3 { color: var(--on-primary); } .mw-ico.i5 { color: #0a131c; }
.mw-wheel.on .mw-ico:not(.on) { opacity: 0.55; }
.mw-ico.on { translate: calc(-50% + var(--kx) * 1cqw) calc(-50% + var(--ky) * 1cqw); scale: 1.28; }
.mw-phone { position: absolute; left: 50%; top: 50%; width: 21%; aspect-ratio: 10 / 17; translate: -50% -50%; background: var(--field-ink); border: clamp(4px, 1.2cqw, 7px) solid var(--primary); border-radius: clamp(14px, 4.2cqw, 24px); display: grid; place-items: center; overflow: hidden; }
.mw-phone::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--accent); opacity: 0; pointer-events: none; }
.mw-notch { position: absolute; top: 4%; left: 50%; width: 30%; height: 3%; translate: -50% 0; background: var(--primary); opacity: 0.6; border-radius: 99px; }
.mw-screen { display: grid; place-items: center; gap: 8%; width: 100%; padding: 14% 6% 8%; text-align: center; color: var(--accent); }
.mw-idle { display: flex; gap: 12%; align-items: center; justify-content: center; height: 34cqw; }
.mw-idle i { display: block; width: 3.2cqw; height: 9cqw; background: var(--accent); }
.mw-wheel.on .mw-idle { display: none; }
.mw-pico { display: none; width: 54%; aspect-ratio: 1; place-items: center; border: clamp(2px, .6cqw, 3px) solid var(--accent); border-radius: 50%; padding: 12%; }
.mw-pico.on { display: grid; }
.mw-pico .icon { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mw-cap { font-size: clamp(0.5625rem, 2.6cqw, 0.9rem); font-weight: 600; letter-spacing: 0.04em; color: #fff; }
.mw-chips { list-style: none; margin: 0 0 var(--s-6); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.mw-chips button { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0.4rem 0.9rem 0.4rem 0.45rem; font: inherit; font-weight: 600; font-size: 1rem; color: var(--ink); background: transparent; border: 2px solid var(--ink); border-radius: 0; cursor: pointer; transition: background var(--ease), color var(--ease); }
.mw-chips button:hover { background: var(--bg); }
.mw-chips button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.mw-chips .n { display: grid; place-items: center; width: 28px; height: 28px; background: var(--accent); color: var(--on-accent); font-size: 0.9375rem; }
.mw-count { margin: 0 0 var(--s-2); color: var(--ink-2); font-size: 1rem; }
.mw-title { margin: 0 0 var(--s-3); font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3rem); line-height: 1.05; letter-spacing: -0.03em; }
.mw-tip { margin: 0; font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); line-height: 1.35; max-width: 28ch; }
.mw-hint { margin: var(--s-6) 0 0; color: var(--ink-2); font-size: 0.9375rem; }
.js .mw-detail { display: none; }
.js .mw-detail.on { display: block; }
.mw-detail + .mw-detail { margin-top: var(--s-6); }
.js .mw-detail + .mw-detail { margin-top: 0; }
.mw-details { min-height: 11rem; }
html:not(.js) .mw-wheel, html:not(.js) .mw-chips, html:not(.js) .mw-hint { display: none; }
html:not(.js) .mw-stage { grid-template-columns: 1fr; }
@media (prefers-reduced-motion: no-preference) {
  .mw-phone.flip { animation: mw-flip 520ms cubic-bezier(.2, .9, .3, 1.2); }
  .mw-phone.flip::after { animation: mw-ring 900ms ease-out; }
  .mw-detail.on { animation: fade-up 420ms ease both; }
}
@keyframes mw-flip { 0% { rotate: y -80deg; scale: 0.9; } 100% { rotate: y 0deg; scale: 1; } }
@keyframes mw-ring { 0% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }
html.mo-paused .mw-phone, html.mo-paused .mw-phone::after { animation-play-state: paused !important; }

/* ---------- Panel de administración: encabezado propio y franja en el sitio ---------- */
.admin-hdr { position: static; }
.admin-hdr .hdr { padding: var(--s-3) 0; }
.adm-badge { display: inline-block; margin-left: var(--s-2); padding: 2px 10px; background: var(--accent); color: var(--on-accent); font-family: var(--f-text); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; vertical-align: middle; }
.admin-hdr .hdr-actions { gap: var(--s-3); }
.admin-strip { background: var(--primary); color: var(--on-primary); font-size: 0.9375rem; }
.admin-strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; min-height: 40px; }
.admin-strip nav { display: flex; align-items: center; gap: var(--s-5, 1.25rem); flex-wrap: wrap; }
.admin-strip a { color: var(--on-primary); font-weight: 600; text-decoration: none; }
.admin-strip a:hover { text-decoration: underline; opacity: 1; }
.admin-strip .inline-form { display: inline; }
.admin-strip button { font: inherit; font-weight: 600; color: var(--on-primary); background: transparent; border: 2px solid currentColor; padding: 2px var(--s-3); cursor: pointer; }
.admin-bar nav { display: flex; flex-wrap: wrap; gap: 0 var(--s-2); padding: var(--s-1) 0; }
@media (max-width: 600px) { .admin-hdr .hdr-actions .btn { padding: 0.35rem 0.7rem; font-size: 0.9375rem; } .admin-hdr .mark { font-size: 1.125rem; } }
.mw-w:focus { outline: none; }
.mw-w:focus-visible { stroke: var(--ink); stroke-width: 5; paint-order: stroke; }
.mw-info { align-self: center; }
.mw-details { min-height: 0; }
.admin-hdr .hdr { flex-wrap: wrap; row-gap: var(--s-3); }
.admin-hdr .hdr-actions { flex-wrap: wrap; margin-left: auto; }
.admin-hdr .hdr-actions .btn { white-space: nowrap; }
.admin-hdr .inline-form { display: inline; }
@media (max-width: 600px) { .admin-hdr .hdr-actions { margin-left: 0; width: 100%; } }

/* ---------- Botón flotante izquierdo: columna con volumen y redes (solo iconos) ---------- */
.dial { list-style: none; margin: 0; padding: 0; position: absolute; left: 2px; bottom: calc(100% + 12px); width: 44px; display: flex; flex-direction: column-reverse; align-items: center; gap: 10px; }
.dial li { opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.7); }
.sound.dial-open .dial li { opacity: 1; visibility: visible; transform: none; }
.dial-i { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; outline: 3px solid var(--bg); cursor: default; }
.dial-i svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dial-vol { background: var(--accent); color: var(--on-accent); cursor: pointer; }
.dial-vol:hover { background: var(--primary); color: var(--on-primary); }
.dial-vol:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.dial-vol .v-off { display: none; }
.sound.off .dial-vol .v-on { display: none; }
.sound.off .dial-vol .v-off { display: block; }
.dial-soc.s1 { background: #3f6654; color: #fff; }
.dial-soc.s2 { background: #2b4a66; color: #fff; }
.dial-soc.s3 { background: #7d9ab5; color: #0a131c; }
.dial-soc.s4 { background: #8ccaa9; color: #0a131c; }
.dial-soc.s5 { background: #eef1f4; color: #1a2b3d; }
.sound .ico-x { display: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.sound .ico-share { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sound.dial-open .sound-btn .ico-main { display: none; }
.sound.dial-open .sound-btn .ico-x { display: block; }
.sound.off .sound-btn::before { content: none; }
.sound.dial-open .sound-label { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .dial li { transition: opacity 220ms ease, transform 380ms cubic-bezier(.3, 1.4, .5, 1), visibility 0s linear 380ms; }
  .sound.dial-open .dial li { transition-delay: calc(var(--n) * 50ms), calc(var(--n) * 50ms), 0s; }
}

.credits-own { margin: var(--s-12) 0 0; font-size: 1rem; color: var(--field-ink-soft); max-width: 72ch; }

/* Las fotos del banner se quedan quietas: encuadre fijo, sin paneo ni acercamiento */
.js .band img { animation: none; }

/* Autoras (Inicio) */
.crew { margin-top: var(--s-16); display: grid; gap: var(--s-8); padding: var(--s-8) var(--s-6) var(--s-12); background: var(--field-ink); color: #fff; overflow: hidden; }
.crew-title { margin: 0 0 var(--s-4); color: #fff; font-size: clamp(3.5rem, 1rem + 17vw, 11rem); letter-spacing: -0.055em; line-height: .85; padding-top: var(--s-6); border-top: 4px solid var(--accent); }
.crew-stage { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); align-items: start; }
.crew-card { margin: 0; }
.crew-photo { position: relative; display: block; isolation: isolate; }
.crew-photo::before { content: ""; position: absolute; inset: 0; transform: translate(10px, 10px); background: var(--accent); z-index: -1; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.crew-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.05); transition: filter .35s ease; }
.crew-card:nth-child(2) .crew-photo::before { background: #8ccaa9; }
.crew-card:hover .crew-photo::before, .crew-card:focus-within .crew-photo::before { transform: translate(16px, 16px); }
.crew-card:hover img { filter: none; }
.crew-name { margin: var(--s-6) 0 0; display: grid; font-family: var(--f-title); line-height: 1.15; }
.crew-name span { font-weight: 500; font-size: clamp(1rem, .9rem + .6vw, 1.375rem); color: rgba(255,255,255,.85); }
.crew-name strong { font-weight: 600; font-size: clamp(1.125rem, 1rem + .9vw, 1.75rem); letter-spacing: -0.02em; }
@media (min-width: 900px) {
  .crew { gap: var(--s-12); padding: var(--s-16) var(--s-16) var(--s-24); }
  .crew-stage { gap: var(--s-12); }
  .crew-photo img { aspect-ratio: 6 / 5; object-position: 50% 24%; }
}
@media (prefers-reduced-motion: reduce) { .crew-photo::before, .crew-photo img { transition: none; } }
@media (prefers-reduced-motion: no-preference) {
  .js .crew-card, .js .crew-copy { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
  .js .crew-card:nth-child(2) { transition-delay: .15s; }
  .js .crew.in .crew-card, .js .crew.in .crew-copy { opacity: 1; transform: none; }
}
.crew-text { margin: 0; font-family: var(--f-title); font-weight: 500; font-size: clamp(1.25rem, 1rem + 1.4vw, 2rem); letter-spacing: -0.02em; line-height: 1.2; color: var(--accent); }

/* Video de presentación (Inicio): sube a la portada, en la columna del texto */
.vpanel { display: grid; gap: var(--s-4); padding: var(--s-8) var(--s-6) var(--s-8); background: var(--field-ink); color: #fff; overflow: hidden; justify-items: start; margin-bottom: var(--s-8); }
.vpanel-title { margin: 0; color: #fff; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); letter-spacing: -0.035em; line-height: 1; padding-top: var(--s-4); border-top: 4px solid var(--accent); max-width: 14ch; }
.vpanel-text { margin: var(--s-2) 0 0; max-width: 26ch; font-family: var(--f-title); font-weight: 500; font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); line-height: 1.3; letter-spacing: -0.01em; color: var(--accent); }
.vphone { position: relative; isolation: isolate; width: min(calc(100% - 14px), 17rem); margin-top: var(--s-2); border: 9px solid #05090e; outline: 1px solid rgba(255,255,255,.22); background: #05090e; }
.vphone::before { content: ""; position: absolute; inset: -9px; transform: translate(14px, 14px); background: var(--accent); z-index: -1; }
.vphone video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; background: #05090e; }
.vplay { position: absolute; inset: auto 0 12% 0; margin: 0 auto; width: 4.5rem; height: 4.5rem; border-radius: 50%; border: 0; background: var(--accent); color: #263b52; display: none; place-items: center; cursor: pointer; transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.js .vplay { display: grid; }
.vplay svg { width: 1.75rem; height: 1.75rem; margin-left: .2rem; }
.vplay:hover, .vplay:focus-visible { transform: scale(1.08); }
.vplay::after { content: ""; position: absolute; inset: -.6rem; border-radius: 50%; border: 2px solid var(--accent); opacity: .55; }
.js .vphone.is-on .vplay { display: none; }
@media (min-width: 900px) { .h2-left { position: sticky; top: calc(var(--s-16) + var(--s-4)); } .vphone { margin-bottom: var(--s-4); } }
@media (prefers-reduced-motion: no-preference) {
  .vplay::after { animation: vring 2.4s ease-out infinite; }
  @keyframes vring { from { transform: scale(.9); opacity: .6; } to { transform: scale(1.45); opacity: 0; } }
  .js .vpanel-copy, .js .vphone { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
  .js .vphone { transition-delay: .15s; }
  .js .vpanel.in .vpanel-copy, .js .vpanel.in .vphone { opacity: 1; transform: none; }
}

/* Portada: el título y la frase van dentro de la foto */
.hero-photo { position: relative; }
.hero-photo img { height: clamp(24rem, 72vh, 40rem); }
@media (max-width: 899px) { .hero-photo img { height: clamp(22rem, 62vh, 30rem); } }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,19,28,.82) 0%, rgba(10,19,28,.45) 45%, rgba(10,19,28,.08) 100%); pointer-events: none; } /* taste-skill-ignore: velo neutro sobre la foto para que se lea el título */
.hero-cap { position: absolute; z-index: 1; left: var(--s-6); right: var(--s-6); bottom: var(--s-6); color: #fff; }
.hero-cap .title { color: #fff; margin: 0 0 var(--s-4); font-size: clamp(3rem, 1rem + 9vw, 8.5rem); max-width: none; }
.hero-cap .title .line { display: inline; }
.hero-cap .title .line + .line::before { content: " "; }
.hero-cap .tagline { color: #fff; max-width: 28ch; }
@media (min-width: 900px) { .hero-cap { left: var(--s-12); bottom: var(--s-12); } .hero-cap .title .line { display: block; } .hero-cap .title .line + .line::before { content: none; } }
.h2-left { position: static !important; }
.hero2 { grid-template-areas: "right" "left"; }
.h2-left { grid-area: left; } .h2-right { grid-area: right; }
@media (min-width: 900px) { .hero2 { grid-template-areas: "left right"; } }

/* Portada: composición del texto sobre la foto */
.hero-cap .title { margin-bottom: var(--s-6); font-weight: 600; letter-spacing: -0.055em; }
.hero-cap .title .line:last-child { color: var(--accent); }
.hero-cap .tagline { font-weight: 500; font-size: clamp(1.125rem, 1rem + .8vw, 1.5rem); max-width: 26ch; padding-left: var(--s-4); border-left: 4px solid var(--accent); line-height: 1.3; }

/* Video: título arriba, video al centro, frase abajo, sobre el fondo azul */
.vpanel { justify-items: center; text-align: center; gap: var(--s-6); padding: var(--s-12) var(--s-6) var(--s-12); margin-bottom: 0; }
.vpanel-title { max-width: 16ch; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); }
.vphone { width: min(calc(100% - 14px), 16rem); margin: var(--s-2) 14px var(--s-2) 0; }
.vpanel-text { margin: var(--s-2) 0 0; max-width: 24ch; font-size: clamp(1.125rem, 1rem + .6vw, 1.375rem); }

/* Video: más presencia, para dar ganas de reproducirlo */
.vpanel { position: relative; padding-top: var(--s-16); padding-bottom: var(--s-16); }
.vpanel > * { position: relative; z-index: 1; }
.vpanel::before, .vpanel::after { content: ""; position: absolute; left: 50%; top: 54%; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); transform: translate(-50%, -50%); pointer-events: none; z-index: 0; } /* taste-skill-ignore: anillos concéntricos decorativos, no una caja */
.vpanel::before { width: min(78vw, 24rem); height: min(78vw, 24rem); }
.vpanel::after { width: min(120vw, 38rem); height: min(120vw, 38rem); border-color: rgba(228,182,106,.22); }
.vpanel-title { max-width: 14ch; font-size: clamp(2.25rem, 1.4rem + 3vw, 3.75rem); line-height: .98; }
.vpanel-title span { color: var(--accent); }
.vphone { width: min(calc(100% - 14px), 17rem); transform: rotate(-2.5deg); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.vphone:hover, .vphone.is-on { transform: rotate(0); }
.vphone video { object-fit: cover; }
.vplay { inset: 61% 0 auto 0; width: max-content; height: auto; margin: 0 auto; padding: .4rem 1.1rem .4rem .4rem; border-radius: 999px; gap: .75rem; grid-auto-flow: column; justify-content: center; align-items: center; font-family: var(--f-title); font-weight: 600; font-size: .9375rem; color: #263b52; }
.vplay::after { inset: -.35rem; border-radius: 999px; }
.vplay-dot { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: #263b52; color: var(--accent); }
.vplay-dot svg { width: 1.15rem; height: 1.15rem; margin-left: .15rem; fill: currentColor; stroke: none; }
.vplay-label { white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) { .vplay::after { animation: vpill 2.4s ease-out infinite; } @keyframes vpill { from { transform: scale(.96); opacity: .6; } to { transform: scale(1.18, 1.5); opacity: 0; } } }
@media (prefers-reduced-motion: reduce) { .vphone { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .js .vpanel.in .vphone { transform: rotate(-2.5deg); }
  .js .vpanel.in .vphone:hover, .js .vpanel.in .vphone.is-on { transform: rotate(0); }
}

/* Video sin panel: sobre el fondo de la página, alineado con el texto de la derecha */
.h2-left { align-self: stretch; display: flex; flex-direction: column; }
.vpanel { background: none; color: var(--ink); padding: 0; text-align: left; justify-items: start; align-content: space-between; gap: var(--s-4); flex: 1; overflow: visible; }
.vpanel::before, .vpanel::after { display: none; }
.vpanel-title { color: var(--ink); font-size: clamp(1.875rem, 1.3rem + 2vw, 3rem); max-width: 14ch; padding-top: var(--s-4); }
.vpanel-title span { color: var(--green); }
.vphone { width: min(calc(100% - 14px), 15rem); margin: var(--s-3) 0; }
.vpanel-text { color: var(--green); margin: 0; max-width: 24ch; font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); }
.vphone, .js .vpanel.in .vphone { transform: none; }
@media (min-width: 900px) {
  .vpanel { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "copy copy" "phone text"; grid-template-rows: auto 1fr; column-gap: var(--s-8); align-content: start; align-items: stretch; }
  .vpanel-copy { grid-area: copy; } .vphone { grid-area: phone; width: 15rem; margin: var(--s-3) 14px 0 0; } .vpanel-text { grid-area: text; align-self: end; margin-bottom: var(--s-2); }
}

/* Ajustes: pantalla completa sin recorte, video más grande y frase más ancha */
.vphone video { object-fit: contain; }
.vphone video:fullscreen { object-fit: contain; background: #000; }
.vphone video:-webkit-full-screen { object-fit: contain; background: #000; }
.vpanel-text { max-width: none; font-size: 1rem; }
@media (min-width: 900px) {
  .hero2 { grid-template-columns: 1.2fr 1fr; }
  .vpanel { column-gap: var(--s-6); }
  .vphone { width: 16rem; }
  .vpanel-text { font-size: 1.0625rem; }
}
@media (min-width: 900px) {
  .hero2 { grid-template-columns: 1.1fr 1fr; }
  .vphone { align-self: start; }
  .vpanel-text { font-size: .9375rem; }
}

/* Estructura: texto, video, texto (apilados) */
@media (min-width: 900px) {
  .hero2 { grid-template-columns: 1fr 1fr; }
  .vpanel { display: grid; grid-template-columns: 1fr; grid-template-areas: "copy" "phone" "text"; grid-template-rows: auto; align-content: start; row-gap: var(--s-4); }
  .vphone { width: min(calc(100% - 14px), 17rem); margin: var(--s-2) 0 var(--s-3); }
  .vpanel-text { align-self: start; margin: 0; max-width: none; font-size: 1.125rem; }
}
@media (min-width: 900px) { .vphone { margin-bottom: var(--s-6); } .vpanel .vpanel-text { font-size: 1.1875rem; } }
@media (min-width: 900px) { .vpanel .vpanel-text { font-size: 1.0625rem; text-wrap: nowrap; } }
@media (min-width: 900px) and (max-width: 1099px) { .vpanel .vpanel-text { text-wrap: balance; } }

/* Video: sin línea dorada, video centrado y frase en color de texto */
.vpanel-title { border-top: 0; padding-top: 0; }
.vphone { justify-self: center; margin-left: auto; margin-right: auto; }
.vpanel .vpanel-text { color: var(--ink); }

/* Video: escenario verde suave que lo une con las tarjetas, y subrayado dorado en el título */
.vstage { grid-area: phone; align-self: stretch; margin: var(--s-12) 0; background: color-mix(in srgb, var(--green) 24%, var(--bg)); z-index: 0; }
.vphone { grid-area: phone; position: relative; z-index: 1; margin-top: var(--s-4); margin-bottom: var(--s-4); }
.vpanel-title { font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.5rem); max-width: 13ch; }
.vpanel-title span { position: relative; z-index: 0; white-space: nowrap; }
.vpanel .vpanel-text { font-weight: 600; }
@media (max-width: 899px) { .vpanel { grid-template-areas: "copy" "phone" "text"; } }
.vstage { justify-self: stretch; }
.vpanel-title { max-width: 16ch; }
