@font-face { font-family: "Roobert"; src: url(fonts/Roobert-Regular.otf); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roobert"; src: url(fonts/Roobert-Medium.otf); font-weight: 500; font-display: swap; }
@font-face { font-family: "Roobert"; src: url(fonts/Roobert-Bold.otf); font-weight: 700; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(fonts/InstrumentSerif-Regular.ttf); font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(fonts/InstrumentSerif-Italic.ttf); font-style: italic; font-display: swap; }

/* carta oficial de PYE: nada fuera de aquí */
:root { --bg: #D0D0D0; --bg2: #E3E3E1; --claro: #EDEDEB; --ink: #0A0006; --gris: #6B6B6B; --blanco: #FFFFFF; --azul: #2C3DE2; --frambuesa: #DC3468;
  --g1: linear-gradient(120deg, #FC641A, #FCBC19); --g2: linear-gradient(120deg, #FC611A, #FB3D7B); --g3: linear-gradient(120deg, #9004F9, #F83B7F);
  --acento: #FB3C7D; --pad: clamp(16px, 5vw, 72px); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.55 "Roobert", system-ui, sans-serif; overflow-x: clip; }
h1, h2, h3, .gigante, .ya, .destacado, .contraste, .final-lista, .resp { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; letter-spacing: -.015em; }
h2, h3 { margin: 0; }
em { font-style: italic; background: var(--g2); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
strong { font-weight: 700; }
canvas { display: block; width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }

/* ── cabecera (sin cambios) ── */
.hero { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px 16px 64px; }
.hero canvas { width: min(560px, 100%); aspect-ratio: 16 / 9; }
.lema { font-size: clamp(40px, 6vw, 84px); line-height: 1.02; max-width: 22ch; margin: 28px 0 0; }
.lema em { white-space: nowrap; }
.sub { max-width: 30ch; margin: 22px 0 0; color: var(--gris); font-size: clamp(19px, 2vw, 25px); line-height: 1.35; }
.handle { margin-top: 18px; font-weight: 500; font-size: 15px; color: var(--gris); }
.redes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; }
.redes a { text-decoration: none; font-weight: 500; font-size: 16px; padding: 12px 22px; border-radius: 999px; background: var(--ink); color: var(--blanco); transition: background .2s, color .2s, transform .2s; }
.redes a:hover, .redes a:focus-visible { background: var(--acento); color: var(--ink); transform: translateY(-2px); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; }

/* ── colores de bloque ── */
.blanco { background: var(--blanco); } .claro { background: var(--claro); } .azul { background: var(--azul); color: var(--blanco); }
.frambuesa { background: var(--frambuesa); color: var(--blanco); } .tinta { background: var(--ink); color: var(--blanco); }
.g1 { background: var(--g1); } .g2 { background: var(--g2); } .g3 { background: var(--g3); color: var(--blanco); }
.azul em, .frambuesa em, .g3 em, .g1 em, .g2 em { background: none; -webkit-background-clip: initial; background-clip: initial; color: inherit; }

/* ── piezas comunes ── */
.bloque { padding: clamp(96px, 14vw, 180px) var(--pad); position: relative; }
.etiqueta { font: 700 14px/1.2 "Roobert", sans-serif; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 28px; display: inline-flex; align-items: center; gap: 10px; }
.etiqueta::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--g2); }
.azul .etiqueta::before, .frambuesa .etiqueta::before { background: var(--blanco); }
.titular { font-size: clamp(42px, 6vw, 92px); line-height: .98; max-width: 14ch; }
.titular.grande { font-size: clamp(48px, 7.4vw, 120px); max-width: 15ch; }
.mega { font-size: clamp(64px, 14vw, 230px); line-height: .86; letter-spacing: -.03em; margin-bottom: clamp(48px, 7vw, 96px); }
.mega .linea { display: block; }
.gigante { font-size: clamp(40px, 6.6vw, 108px); line-height: 1; max-width: 18ch; margin: 0; }
.lead { font-size: clamp(20px, 2vw, 26px); line-height: 1.4; max-width: 40ch; margin-top: 48px; }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.texto p, .dos > p { font-size: clamp(18px, 1.6vw, 23px); line-height: 1.5; max-width: 50ch; }
.corta { font-family: "Instrument Serif", serif; font-style: italic; font-size: clamp(26px, 2.6vw, 36px) !important; line-height: 1.15; }

/* entrada de bloques: suben y se asientan */
.sube { transform: translateY(60px); transition: transform 1s cubic-bezier(.2,.8,.2,1), opacity 1s; opacity: 0; }
.sube.dentro { transform: none; opacity: 1; }
.mega .linea, .foto-titular span { overflow: hidden; }
.mega .linea > b, .foto-titular span > b { display: inline-block; font-weight: inherit; transform: translateY(105%); transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
.mega.dentro .linea > b, .foto-titular.dentro span > b { transform: none; }
.mega .linea:nth-child(2) > b { transition-delay: .1s; } .mega .linea:nth-child(3) > b { transition-delay: .2s; }
.foto-titular span:nth-child(2) > b { transition-delay: .15s; }

/* texto que se va encendiendo palabra a palabra al bajar */
.revela .w { color: #D0D0D0; transition: color .25s; }
.revela .w.on { color: var(--ink); }

/* ── cinta de temas ── */
.cinta { overflow: hidden; padding: clamp(18px, 2.6vw, 34px) 0; border-block: 3px solid var(--ink); }
.cinta-pista { display: flex; align-items: center; width: max-content; will-change: transform; }
.cinta-pista span { font: 400 clamp(56px, 9vw, 150px)/1 "Instrument Serif", serif; letter-spacing: -.02em; padding: 0 .25em; white-space: nowrap; }
.cinta-pista em { color: var(--blanco); }
.cinta-pista i { flex: none; width: clamp(28px, 3.6vw, 56px); height: clamp(28px, 3.6vw, 56px); border-radius: 50%; background: var(--g2); }

/* ── entender ── */
.entender .gigante { max-width: 16ch; }

/* ── temas: tarjetas que se apilan ── */
.pila { padding: 0 var(--pad) clamp(80px, 10vw, 140px); background: var(--claro); }
.tema { position: sticky; top: clamp(16px, 4vh, 48px); min-height: min(78vh, 720px); border-radius: clamp(24px, 3vw, 44px); padding: clamp(28px, 4vw, 64px);
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(20px, 4vw, 60px); align-items: center; margin-bottom: 6vh; }
.tema .num { font: 700 16px "Roobert", sans-serif; letter-spacing: .1em; }
.tema h3 { font-size: clamp(60px, 10vw, 180px); line-height: .9; letter-spacing: -.03em; margin: 18px 0 28px; }
.tema p { font-size: clamp(20px, 1.9vw, 28px); line-height: 1.3; max-width: 26ch; }
.tema canvas { aspect-ratio: 1 / 1; border-radius: clamp(18px, 2.4vw, 32px); }

/* ── no todo merece un vídeo ── */
.no-todo .mega em { background: var(--g2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.no-todo-txt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 2px solid var(--blanco); padding-top: 32px; }
.no-todo-txt p { font-size: clamp(18px, 1.6vw, 22px); }
.no-todo-txt .fuerte { font-family: "Instrument Serif", serif; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.05; }

/* ── proceso: lateral ── */
.proceso { height: 520vh; background: var(--claro); position: relative; }
.proceso-fijo { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.proceso-pista { display: flex; gap: clamp(16px, 2vw, 28px); padding: 0 var(--pad); will-change: transform; }
.paso { flex: none; width: min(78vw, 640px); height: min(72vh, 640px); border-radius: clamp(24px, 3vw, 44px); padding: clamp(28px, 3.6vw, 56px); display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; }
.paso.intro { width: min(86vw, 760px); justify-content: center; padding-left: 0; }
.paso-n { position: absolute; top: clamp(14px, 2vw, 28px); right: clamp(20px, 3vw, 44px); font: 400 clamp(140px, 22vw, 340px)/.8 "Instrument Serif", serif; letter-spacing: -.04em; }
.paso-n { color: transparent; -webkit-text-stroke: 2px var(--ink); } .paso.azul .paso-n, .paso.tinta .paso-n, .paso.frambuesa .paso-n { -webkit-text-stroke-color: var(--blanco); }
.paso h3 { font-size: clamp(56px, 7.4vw, 120px); line-height: .9; margin-bottom: 20px; position: relative; }
.paso p { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.35; max-width: 28ch; margin: 0; position: relative; }
.pista-aviso { font-weight: 500; color: var(--gris); margin-top: 32px; }
.proceso-barra { margin: clamp(20px, 4vh, 40px) var(--pad) 0; height: 4px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.proceso-barra i { display: block; height: 100%; width: 100%; background: var(--g2); transform-origin: left; transform: scaleX(0); }

/* ── rigor: texto con imágenes dentro ── */
.mixto { font-size: clamp(46px, 8.4vw, 140px); line-height: 1.02; letter-spacing: -.025em; margin-bottom: clamp(56px, 7vw, 100px); }
.chip { display: inline-block; vertical-align: middle; height: .78em; border-radius: 999px; margin: -.1em .06em 0; }
canvas.chip { width: 1.5em; }
.chip.foto { width: 1.9em; background: url(img/david.webp) 50% 24% / 140% auto no-repeat, var(--blanco); }
.rigor-txt { margin-bottom: 56px; }
.remate-linea { font: italic 400 clamp(30px, 3.4vw, 52px)/1.1 "Instrument Serif", serif; max-width: 26ch; padding-left: 24px; border-left: 6px solid var(--acento); margin: 0; }

/* ── foto con parallax ── */
.foto-bloque { position: relative; height: min(110vh, 1100px); overflow: hidden; background: var(--ink); }
.foto-img { position: absolute; inset: -12% 0; background: url(img/david.webp) 50% 30% / cover no-repeat; will-change: transform; }
.foto-titular { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(32px, 6vw, 80px); color: var(--blanco); font-size: clamp(52px, 9vw, 150px); line-height: .92; letter-spacing: -.03em; }
.foto-titular span { display: block; }
.foto-titular span > b { background: var(--ink); padding: 0 .14em .08em; }
.foto-titular em { background: var(--g2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.herramientas .destacado { font-size: clamp(44px, 5.6vw, 88px); line-height: 1; margin: 0; }
.herramientas .gigante { margin-top: clamp(72px, 10vw, 140px); max-width: 20ch; }

/* ── producir más ── */
.producir .titular { margin-bottom: 56px; max-width: 18ch; }
.contraste { font-size: clamp(52px, 8vw, 132px); line-height: .95; margin: clamp(56px, 7vw, 96px) 0 0; letter-spacing: -.03em; }
.subraya { background: linear-gradient(var(--ink), var(--ink)) 0 92% / 100% .08em no-repeat; }
.producir .lead { margin-top: 32px; }

/* ── periódico: titular con «hechos» marcado, dos ideas numeradas y el sello «Ni esta.» ── */
.per-tit { font-size: clamp(64px, 12.5vw, 210px); line-height: .9; letter-spacing: -.035em; margin: 0 0 clamp(56px, 8vw, 110px); }
.per-tit .linea { display: inline; }
.marca { display: inline-block; background: var(--blanco); color: var(--frambuesa); font-style: italic; padding: 0 .16em .04em; border-radius: .14em; transform: rotate(-2deg); margin: .04em 0; }
.per-grid { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.per-p { font-size: clamp(18px, 1.6vw, 23px); line-height: 1.5; border-top: 2px solid var(--blanco); padding-top: 22px; margin: 0; }
.per-n { display: block; font: 400 clamp(44px, 4vw, 64px)/1 "Instrument Serif", serif; margin-bottom: 14px; }
.per-sello { background: var(--blanco); color: var(--ink); border-radius: clamp(20px, 2.4vw, 36px); padding: clamp(24px, 3vw, 44px); transform: rotate(2deg); box-shadow: 0 8px 0 var(--ink); }
.per-sello p { font-size: clamp(18px, 1.6vw, 22px); margin: 0 0 8px; }
.per-sello strong { display: block; font: 400 clamp(76px, 9vw, 150px)/.9 "Instrument Serif", serif; letter-spacing: -.04em; }

/* ── por qué ── */
.porque-pj { aspect-ratio: 2 / 1; margin-top: clamp(56px, 7vw, 96px); border-radius: clamp(24px, 3vw, 44px); }

/* ── apoyar ── */
.boton-yt { display: inline-flex; align-items: center; gap: 14px; margin-top: 56px; text-decoration: none; font: 700 clamp(20px, 2vw, 28px) "Roobert", sans-serif;
  padding: 24px 40px; border-radius: 999px; background: var(--g2); color: var(--ink); transition: transform .25s, box-shadow .25s; box-shadow: 0 6px 0 var(--ink); }
.boton-yt:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 10px 0 var(--ink); }
.redes.claras { justify-content: flex-start; margin-top: 28px; }
.redes.claras a { background: var(--blanco); color: var(--ink); }

/* ── preguntas ── */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-cab { position: sticky; top: 48px; }
.faq-lista { border-top: 2px solid var(--ink); }
details { border-bottom: 2px solid var(--ink); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0;
  font: 400 clamp(26px, 2.6vw, 40px)/1.1 "Instrument Serif", serif; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font: 400 30px "Roobert", sans-serif;
  background: var(--ink); color: var(--blanco); transition: transform .3s, background .3s; }
details[open] summary::after { transform: rotate(45deg); background: var(--acento); color: var(--ink); }
summary:hover::after { background: var(--acento); color: var(--ink); }
details > div { padding: 0 64px 30px 0; }
details p { font-size: clamp(18px, 1.5vw, 21px); max-width: 56ch; }
.resp { font-size: clamp(30px, 2.8vw, 42px) !important; line-height: 1.05; margin-bottom: 14px; }

/* ── al final ── */
.final { height: 340vh; background: var(--ink); color: var(--blanco); position: relative; padding-bottom: 10vh; }
.final-fijo { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--pad); }
.final-lista { list-style: none; padding: 0; margin: 0; font-size: clamp(30px, min(5.6vw, 7.4vh), 92px); line-height: 1.02; letter-spacing: -.02em; }
.final-lista li { color: #6B6B6B; transition: color .4s; max-width: 22ch; }
.final-lista li.on { color: var(--blanco); }
.final-lista li.on:last-child { background: var(--g2); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── cierre ── */
.cierre { text-align: center; padding: clamp(80px, 10vw, 140px) 16px 48px; background: var(--bg); }
.cierre-logo { width: min(420px, 80%); aspect-ratio: 16 / 9; margin: 0 auto; }
.ya { font-size: clamp(64px, 12vw, 190px); line-height: 1; margin: 24px 0 0; letter-spacing: -.03em; }
.ya em { padding-right: .02em; }
.pie { margin: 72px 0 0; font-size: 14px; color: var(--gris); }

/* ── móvil ── */
@media (max-width: 820px) {
  .dos, .faq, .no-todo-txt, .per-grid { grid-template-columns: 1fr; }
  .per-sello { transform: rotate(1deg); margin-top: 16px; }
  .faq-cab { position: static; }
  .tema { grid-template-columns: 1fr; min-height: auto; top: 12px; }
  .tema canvas { max-width: 300px; aspect-ratio: 4 / 3; }
  .proceso { height: auto; }
  .proceso-fijo { position: static; height: auto; padding: 72px 0; }
  .proceso-pista { flex-direction: column; transform: none !important; }
  .paso, .paso.intro { width: 100%; height: auto; min-height: 340px; }
  .paso.intro { min-height: 0; padding: 0 0 16px; }
  .pista-aviso, .proceso-barra { display: none; }
  .final { height: auto; }
  .final-fijo { position: static; height: auto; padding: 96px var(--pad); }
  .final-lista li { color: var(--blanco); }
  .porque-pj { aspect-ratio: 4 / 5; }
  details > div { padding-right: 0; }
  .foto-bloque { height: 88svh; }
  .foto-img { background-position: 50% 20%; }
}
@media (prefers-reduced-motion: reduce) {
  .sube, .mega .linea > b, .foto-titular span > b { transform: none !important; opacity: 1 !important; transition: none; }
  .revela .w, .final-lista li { color: inherit !important; }
}
