/* =========================================================
   Hoja de infografía interactiva — recreación del diseño de Canva (1536 × 2752)
   Todas las medidas de la hoja usan --u = ancho de la hoja / 1536.
   ========================================================= */
:root {
  --paper: #EBF2FF;
  --ink: #0D0D0D;
  --c-jerarquico: #3A72C8;
  --c-red: #6E86A8;
  --c-relacional: #1FA3A0;
  --c-objeto-relacional: #C9952E;
  --c-orientado-objetos: #9B4DB5;
  --f-display: "Anton", Impact, sans-serif;
  --f-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --f-serif: "Tinos", "Times New Roman", serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --u: .5px;
  --sheet-w: min(calc(100vw - 32px), 900px);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: #1b2540;
  color: var(--ink);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #ffb703; outline-offset: 3px; border-radius: 6px; }

/* ---------- Escritorio (fondo alrededor de la hoja) ---------- */
.desk {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(1200px 700px at 50% -10%, #33457a 0%, transparent 60%),
    radial-gradient(900px 600px at 100% 100%, #2b2350 0%, transparent 55%),
    linear-gradient(180deg, #1d2846, #141b31);
}
.desk canvas { width: 100%; height: 100%; display: block; }

.stagewrap {
  display: flex; justify-content: center;
  padding: 24px 16px 110px;
}

/* ---------- La hoja ---------- */
.sheet {
  position: relative;
  width: var(--sheet-w);
  aspect-ratio: 1536 / 2752;
  background: var(--paper);
  border-radius: 10px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06);
  transition: width .7s var(--ease-out);
  overflow: hidden;
  opacity: 0; transform: translateY(30px) scale(.98);
  animation: sheetIn 1s var(--ease-out) .1s forwards;
}
body.fit .sheet { --sheet-w: min(calc(100vw - 32px), calc((100vh - 110px) * 1536 / 2752)); }
.sheet__inner { position: absolute; inset: 0; }

/* Posicionamiento en coordenadas de Canva */
.el {
  position: absolute;
  left: calc(var(--x) * var(--u));
  top: calc(var(--y) * var(--u));
  width: calc(var(--w) * var(--u));
  height: calc(var(--h) * var(--u));
}

/* Textos */
.tx {
  margin: 0;
  font-size: calc(var(--fs) * var(--u));
  line-height: var(--lh, 1.1);
  white-space: pre-line;
  color: var(--ink);
}
.tx--serif { font-family: var(--f-serif); text-transform: uppercase; letter-spacing: .01em; }
.tx--display { font-family: var(--f-display); text-transform: uppercase; letter-spacing: .01em; }
.tx--head { font-family: var(--f-head); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.tx--label { font-family: var(--f-head); font-weight: 700; text-transform: uppercase; }
.tx--body { font-family: var(--f-body); font-weight: 400; font-size: calc(var(--fs) * var(--u) * .95); letter-spacing: -.004em; }
.tx--origin { font-family: var(--f-body); font-weight: 400; font-size: calc(var(--fs) * var(--u) * .97); }
.tx--sub { font-family: var(--f-head); font-weight: 700; }
.c { text-align: center; }

/* Elementos tocables */
.hit {
  cursor: pointer;
  border: 0; background: none; padding: 0; text-align: inherit;
  border-radius: calc(14 * var(--u));
  transition: transform .45s var(--ease-spring), filter .4s, background .3s, color .3s, opacity .4s;
}
.hit:focus-visible { outline-width: calc(5 * var(--u)); }
.tx.c, .hit.c { text-align: center; }

/* Piezas de las ilustraciones */
.pc { --d: 0s; }
.pc__float { position: absolute; inset: 0; }
.pc__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  user-select: none; -webkit-user-drag: none; pointer-events: none;
  transform-origin: 50% 70%;
}
.pc__shine {                       /* destello que recorre solo el dibujo */
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.8) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%; background-position: 160% 0;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  mix-blend-mode: soft-light;
}
.pc.is-in .pc__shine { animation: shine 5.5s ease-in-out calc(var(--d) + 2.2s) infinite; }
.pc.is-in .pc__float { animation: float var(--fd, 6s) ease-in-out calc(var(--d) + 1.4s) infinite; }
.pc:hover .pc__img, .pc:focus-visible .pc__img {
  filter: drop-shadow(0 calc(10 * var(--u)) calc(14 * var(--u)) color-mix(in srgb, var(--c) 60%, transparent));
}
.pc:hover, .pc:focus-visible { transform: scale(1.06); z-index: 5; }
.group-hover .pc:not(:hover) { opacity: .6; }

/* Entradas de las piezas (cada una con su propio estilo) */
.pc .pc__img { opacity: 0; }
.pc.is-in .pc__img { animation: var(--in, popIn) 1s var(--ease-out) var(--d) both; }

/* Textos de la etapa: entradas */
.reveal { opacity: 0; }
.reveal.is-in { animation: var(--in, fadeUp) .9s var(--ease-out) var(--d, 0s) both; }
.line { display: block; }
.reveal-lines .line { opacity: 0; }
.reveal-lines.is-in .line { animation: fadeUp .7s var(--ease-out) both; animation-delay: calc(var(--d, 0s) + var(--i) * 110ms); }
.chk { display: inline-block; }
.reveal-lines.is-in .chk { animation: stamp .6s var(--ease-spring) both; animation-delay: calc(var(--d, 0s) + var(--i) * 110ms + .25s); }
.chk--ok { color: #158a4a; }
.chk--bad { color: #b3261e; }

/* Título principal */
.kicker .ch { display: inline-block; opacity: 0; transform: translateY(.5em) rotate(8deg); }
.kicker.is-in .ch { animation: chIn .8s var(--ease-out) forwards; animation-delay: calc(var(--i) * 34ms + .25s); }
.maintitle { overflow: hidden; }
.maintitle span {
  display: inline-block;
  background: linear-gradient(100deg, #0d0d0d 42%, #3a72c8 50%, #0d0d0d 58%) 0 0 / 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(110%);
}
.maintitle.is-in span { animation: rise 1.1s var(--ease-out) .75s forwards, titleShine 6s ease-in-out 3s infinite; }
.sub .word { display: inline-block; opacity: 0; transform: translateY(.4em); }
.sub.is-in .word { animation: fadeUp .6s var(--ease-out) forwards; animation-delay: calc(1.25s + var(--i) * 55ms); }

/* Etapa y año */
.etapa.is-in { animation: etapaIn .9s var(--ease-out) var(--d, 0s) both; }
.year { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.year .num { display: inline-block; font-variant-numeric: tabular-nums; }
.year.is-in .num, .year.is-in .yl { animation: yearPop .8s var(--ease-spring) var(--d, 0s) both; }
.hit.year:hover, .hit.etapa:hover { color: var(--c); transform: scale(1.08); }

/* Títulos de modelo */
/* .mtitle hereda position:absolute de .el */
.mtitle .tx-in { display: inline-block; clip-path: inset(0 100% 0 0); }
.mtitle.is-in .tx-in { animation: wipe 1s var(--ease-out) var(--d, 0s) forwards; }
.mtitle::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(-4 * var(--u)); height: calc(6 * var(--u));
  background: var(--c); border-radius: 9px; transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.mtitle.c::after { left: 8%; right: 8%; transform-origin: center; }
.mtitle:hover::after, .mtitle:focus-visible::after { transform: scaleX(1); }
.mtitle:hover { color: var(--c); }
.hit.body:hover, .hit.origin:hover { background: color-mix(in srgb, var(--c) 10%, transparent); }

/* Flechas centrales */
.arrow { overflow: visible; pointer-events: none; }
.arrow .shaft { stroke: var(--ink); stroke-width: 7; stroke-linecap: round; fill: none; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.arrow .head { fill: var(--ink); transform-box: fill-box; transform-origin: 50% 100%; transform: scale(0); }
.arrow.is-in .shaft { animation: draw 1s var(--ease-out) var(--d, 0s) forwards; }
.arrow.is-in .head { animation: pop .5s var(--ease-spring) calc(var(--d, 0s) + .85s) forwards; }
.arrow .packet { fill: var(--c); opacity: 0; }
.arrow.is-in .packet { animation: packet 2.6s ease-in calc(var(--d, 0s) + 1.6s) infinite; }

/* Pulso (raíz del árbol, nodos, elefante…) */
.pulse {
  position: absolute; border-radius: 50%; pointer-events: none;
  border: calc(4 * var(--u)) solid var(--c);
  opacity: 0;
}
.pulse.is-in { animation: ring 2.4s ease-out var(--d, 0s) infinite; }

/* Pista "toca" */
.hint {
  position: absolute; pointer-events: none; z-index: 6;
  display: flex; align-items: center; gap: calc(10 * var(--u));
  padding: calc(8 * var(--u)) calc(18 * var(--u)) calc(8 * var(--u)) calc(12 * var(--u));
  border-radius: 999px; background: var(--ink); color: #fff;
  font-family: var(--f-head); font-weight: 700; font-size: calc(24 * var(--u)); letter-spacing: .03em;
  opacity: 0; transform: translateY(8px) scale(.9);
  white-space: nowrap;
}
.hint i { width: calc(14 * var(--u)); height: calc(14 * var(--u)); border-radius: 50%; background: var(--c); animation: dotPing 1.6s ease-out infinite; }
.hint.is-in { animation: hintIn .6s var(--ease-spring) var(--d, 0s) forwards, hintOut .5s ease calc(var(--d, 0s) + 6s) forwards; }

/* Onda al tocar */
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 20;
  width: 20px; height: 20px; margin: -10px 0 0 -10px;
  background: radial-gradient(circle, color-mix(in srgb, var(--c, #3a72c8) 55%, transparent) 0%, transparent 70%);
  animation: rippleOut .7s ease-out forwards;
}

/* ---------- Barra de herramientas ---------- */
.toolbar {
  position: fixed; left: 50%; bottom: 18px; z-index: 30;
  display: flex; gap: 6px; padding: 6px;
  transform: translateX(-50%);
  background: rgba(15, 22, 40, .8);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7);
  opacity: 0; animation: toolIn .8s var(--ease-out) 2.2s forwards;
}
.tool {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: transparent; color: #e8eefc; text-decoration: none;
  font-family: var(--f-head); font-weight: 700; font-size: 16px; letter-spacing: .03em;
  transition: background .3s, color .3s, transform .3s var(--ease-spring);
}
.tool svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tool:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }
.tool[aria-pressed="true"] { background: #ebf2ff; color: #0d0d0d; }

/* ---------- Tooltip ---------- */
.tip {
  position: fixed; z-index: 40; pointer-events: none;
  padding: 7px 12px; border-radius: 10px;
  background: #0d0d0d; color: #fff;
  font-family: var(--f-head); font-weight: 600; font-size: 15px; letter-spacing: .02em;
  transform: translate(-50%, calc(-100% - 14px));
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.6);
  animation: tipIn .25s var(--ease-out);
  max-width: 280px; text-align: center;
}
.tip b { color: #ffd166; font-weight: 700; }

/* ---------- Ficha (modal) ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 12, 24, .55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .4s;
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__card {
  --c: #3a72c8;
  position: relative;
  width: min(720px, 100%);
  max-height: min(88vh, 900px);
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper);
  border-radius: 22px;
  padding: 30px 34px 24px;
  box-shadow: 0 40px 90px -20px rgba(0,0,0,.65);
  outline: none;
  transform-origin: var(--ox, 50%) var(--oy, 50%);
  transform: scale(.15); opacity: 0;
  transition: transform .6s var(--ease-out), opacity .35s ease;
}
.modal.is-open .modal__card { transform: none; opacity: 1; }
.modal__card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 200px; z-index: 0; border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 24%, var(--paper)), var(--paper));
  pointer-events: none;
}
#m-body { position: relative; z-index: 1; }
.modal__close {
  position: sticky; top: 0; float: right; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ink); display: grid; place-items: center;
  transition: transform .4s var(--ease-spring);
}
.modal__close:hover { transform: rotate(90deg) scale(1.05); }
.modal__close svg { width: 20px; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; }
.modal__grab { display: none; }

.m-stage { margin: 2px 0 6px; font-family: var(--f-head); font-weight: 700; letter-spacing: .08em; font-size: 16px; color: color-mix(in srgb, var(--c) 80%, black); }
.m-title { margin: 0; font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(34px, 6vw, 54px); line-height: 1; }
.m-origin { margin: 8px 0 0; font-size: 19px; color: #2a2f38; }
.m-anim { margin: 18px 0 14px; padding: 12px; background: #fff; border-radius: 18px; border: 1px solid rgba(13,13,13,.06); min-height: 200px; }
.m-anim svg { width: 100%; height: auto; max-height: 270px; display: block; }
.m-creator { margin: 0 0 16px; font-size: 17px; color: #2a2f38; line-height: 1.45; }
.m-creator strong { color: var(--ink); }
.tabs { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: rgba(13,13,13,.07); }
.tabs button { position: relative; z-index: 1; border: 0; background: transparent; cursor: pointer; padding: 10px 6px; border-radius: 10px; font-family: var(--f-head); font-weight: 700; font-size: 16px; color: #2a2f38; transition: color .3s; }
.tabs button[aria-selected="true"] { color: #fff; }
.tabs .pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; border-radius: 10px; background: var(--c); transition: transform .45s var(--ease-out), width .45s var(--ease-out); }
.tabpanel { padding: 18px 2px 6px; min-height: 180px; outline: none; font-size: 18px; line-height: 1.5; }
.tabpanel p { margin: 0; font-size: 20px; }
.tabpanel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.tabpanel li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid rgba(13,13,13,.06); }
.tabpanel li b { display: block; font-family: var(--f-head); font-weight: 700; font-size: 19px; margin-bottom: 2px; }
.tabpanel .num { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-family: var(--f-head); font-weight: 800; color: #fff; background: var(--c); }
.tabpanel .num svg { width: 18px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tabpanel .num.bad { background: var(--ink); }
.anim-in > * { animation: fadeUp .55s var(--ease-out) both; }
.anim-in > *:nth-child(2) { animation-delay: .08s; }
.anim-in > *:nth-child(3) { animation-delay: .16s; }
.anim-in > *:nth-child(4) { animation-delay: .24s; }
.m-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(13,13,13,.1); }
.navbtn { display: inline-flex; align-items: center; gap: 8px; max-width: 48%; border: 1.5px solid rgba(13,13,13,.18); background: rgba(255,255,255,.7); cursor: pointer; padding: 10px 14px; border-radius: 12px; font-family: var(--f-head); font-weight: 700; font-size: 16px; transition: background .3s, color .3s, border-color .3s; }
.navbtn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.navbtn--next { margin-left: auto; }
.navbtn[disabled] { visibility: hidden; }
.navbtn .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Créditos dentro de la ficha */
.team { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.team li { display: flex; align-items: center; gap: 12px; font-size: 18px; animation: fadeUp .5s var(--ease-out) both; animation-delay: calc(var(--i) * 70ms); }
.team .av { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--f-head); font-weight: 700; }
.sources { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.sources a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; text-decoration: none; color: inherit; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid rgba(13,13,13,.06); transition: transform .3s var(--ease-out), border-color .3s; animation: fadeUp .5s var(--ease-out) both; animation-delay: calc(var(--i) * 70ms + .2s); }
.sources a:hover { transform: translateX(6px); border-color: #3a72c8; }
.sources b { font-weight: 600; font-size: 17px; line-height: 1.25; }
.sources span { grid-column: 1; color: #5b6575; font-size: 14px; }
.sources svg { grid-row: 1 / 3; grid-column: 2; width: 18px; fill: none; stroke: #0d0d0d; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.m-h { font-family: var(--f-head); font-weight: 800; text-transform: uppercase; font-size: 22px; margin: 22px 0 4px; }
.refs { margin: 8px 0 0; padding-left: 18px; font-size: 15px; color: #2a2f38; display: grid; gap: 6px; }

/* Mini animaciones SVG */
.sv-edge { fill: none; stroke: #23324a; stroke-width: 3; stroke-linecap: round; stroke-dasharray: var(--len, 300); stroke-dashoffset: var(--len, 300); animation: draw .9s var(--ease-out) forwards; animation-delay: var(--d, 0s); }
.sv-edge.hl { stroke: var(--c); stroke-width: 5; }
.sv-pop { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: pop .55s var(--ease-spring) forwards; animation-delay: var(--d, 0s); }
.sv-fade { opacity: 0; animation: fade .6s ease forwards; animation-delay: var(--d, 0s); }
.sv-pulse { transform-box: fill-box; transform-origin: center; animation: pulse 1.8s ease-in-out infinite; animation-delay: var(--d, 0s); }
.sv-label { font-family: var(--f-head); font-weight: 700; font-size: 15px; fill: #111; }
.sv-small { font-family: var(--f-body); font-size: 13px; fill: #333; }
.sv-mono { font-family: ui-monospace, Consolas, monospace; font-size: 14px; fill: #111; }

/* ---------- Keyframes ---------- */
@keyframes sheetIn { to { opacity: 1; transform: none; } }
@keyframes chIn { to { opacity: 1; transform: none; } }
@keyframes rise { to { transform: none; } }
@keyframes titleShine { 0%, 70% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes popIn { 0% { opacity: 0; transform: scale(.5); } 100% { opacity: 1; transform: none; } }
@keyframes fromLeft { 0% { opacity: 0; transform: translateX(-30%) rotate(-4deg); } 100% { opacity: 1; transform: none; } }
@keyframes fromRight { 0% { opacity: 0; transform: translateX(30%) rotate(4deg); } 100% { opacity: 1; transform: none; } }
@keyframes dropIn { 0% { opacity: 0; transform: translateY(-40%); } 60% { opacity: 1; transform: translateY(5%); } 100% { opacity: 1; transform: none; } }
@keyframes riseIn { 0% { opacity: 0; transform: translateY(35%); } 100% { opacity: 1; transform: none; } }
@keyframes spinIn { 0% { opacity: 0; transform: scale(.3) rotate(-25deg); } 100% { opacity: 1; transform: none; } }
@keyframes flipIn { 0% { opacity: 0; transform: perspective(600px) rotateX(-85deg); } 100% { opacity: 1; transform: none; } }
@keyframes bounceIn { 0% { opacity: 0; transform: scale(.3); } 55% { opacity: 1; transform: scale(1.12); } 75% { transform: scale(.95); } 100% { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(calc(-9 * var(--u))); } }
@keyframes shine { 0%, 55% { background-position: 160% 0; } 100% { background-position: -60% 0; } }
@keyframes etapaIn { from { opacity: 0; letter-spacing: .5em; } to { opacity: 1; letter-spacing: 0; } }
@keyframes yearPop { 0% { opacity: 0; transform: scale(.4); } 100% { opacity: 1; transform: none; } }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes stamp { 0% { transform: scale(2.4) rotate(-20deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { transform: scale(1); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes packet { 0% { opacity: 0; transform: translateY(0); } 12% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(var(--travel)); } }
@keyframes ring { 0% { opacity: .85; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes hintIn { to { opacity: 1; transform: none; } }
@keyframes hintOut { to { opacity: 0; transform: translateY(-6px) scale(.95); } }
@keyframes dotPing { 0% { box-shadow: 0 0 0 0 var(--c); } 100% { box-shadow: 0 0 0 calc(14 * var(--u)) transparent; } }
@keyframes rippleOut { to { transform: scale(9); opacity: 0; } }
@keyframes toolIn { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes tipIn { from { opacity: 0; transform: translate(-50%, calc(-100% - 6px)); } }

/* ---------- Celular ---------- */
@media (max-width: 640px) {
  .stagewrap { padding: 12px 8px 96px; }
  :root { --sheet-w: calc(100vw - 16px); }
  .tool span { display: none; }
  .tool { padding: 12px 14px; }
  .modal { padding: 0; align-items: end; }
  .modal__card {
    width: 100%; max-height: 92vh; max-height: 92svh;
    border-radius: 22px 22px 0 0; padding: 14px 18px 22px;
  }
  .modal__grab { display: block; width: 46px; height: 5px; border-radius: 5px; background: rgba(13,13,13,.25); margin: 0 auto 10px; }
  .tabs { grid-template-columns: repeat(2, 1fr); }
  .tabs .pill { display: none; }
  .tabs button[aria-selected="true"] { background: var(--c); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .pc .pc__img, .reveal-lines .line, .kicker .ch, .sub .word, .sheet { opacity: 1 !important; transform: none !important; }
  .maintitle span { transform: none !important; }
  .mtitle .tx-in { clip-path: none !important; }
  .arrow .shaft { stroke-dashoffset: 0 !important; } .arrow .head { transform: none !important; }
}
