/* Bushi · página propia · estilo B2 (oscuro, nombre entero y gigante).
   Fuentes locales: Mona Sans (cuerpo y nombre), Literata (títulos), Martian Mono (etiquetas). Todas con licencia OFL. */

@font-face { font-family: "Mona Sans"; src: url("fonts/mona-sans-latin-standard-normal.woff2") format("woff2-variations"), url("fonts/mona-sans-latin-standard-normal.woff2") format("woff2"); font-weight: 200 900; font-stretch: 75% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("fonts/literata.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("fonts/literata-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("fonts/martian-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("fonts/martian-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --bg: #0d0d0d;
  --panel: #131312;
  --linea: #2a2926;
  --crema: #ece6d9;
  --suave: #cfc9bb;
  --apagado: #a39e90;
  --oro: #c9a45c;
  --oro-claro: #d8b878;
  --g: clamp(20px, 4.7vw, 64px);          /* margen lateral */
  --alto-cab: 72px;
  --r: 3.02;                               /* ancho de «BUSHI» en em (medido); el nombre llena el ancho del contenedor */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);   /* curva fuerte de salida (Emil), la única que usa la página */
  --sans: "Mona Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --mono: "Martian Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { color-scheme: dark; -webkit-tap-highlight-color: transparent; background: var(--bg); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--alto-cab) + 12px); interpolate-size: allow-keywords; }
body { background: var(--bg); color: var(--crema); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; touch-action: manipulation; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--oro); color: #0d0d0d; }

[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.saltar { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 12px 18px; background: var(--oro); color: #0d0d0d; font-weight: 600; border-radius: 6px; text-decoration: none; }
.saltar:focus { top: 12px; }

.wrap { width: 100%; max-width: 1400px; margin-inline: auto; padding-left: max(var(--g), env(safe-area-inset-left)); padding-right: max(var(--g), env(safe-area-inset-right)); container-type: inline-size; }

.k { font: 500 .8125rem/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--apagado); }
.k--oro { color: var(--oro); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 6px; border: 1px solid transparent; font: 600 1rem/1.1 var(--sans); letter-spacing: .005em; text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out), color .2s var(--ease-out), transform .16s var(--ease-out), box-shadow .2s var(--ease-out); -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.btn--oro { background: var(--oro); color: #0d0d0d; }
.btn--linea { border-color: #46433c; color: var(--crema); }
.btn--chico { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
.btn--grande { min-height: 58px; padding: 0 34px; font-size: 1.0625rem; }
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .btn--oro:hover { background: var(--oro-claro); box-shadow: 0 10px 30px -10px #c9a45c66; }
  .btn--linea:hover { border-color: var(--oro); color: var(--oro-claro); }
}
.acciones { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Cabecera ---------- */
.cab { position: relative; z-index: 50; height: var(--alto-cab); border-bottom: 1px solid transparent; transition: background-color .25s var(--ease-out), border-color .25s var(--ease-out); }
.cab__in { height: 100%; max-width: 1400px; margin-inline: auto; padding-left: max(var(--g), env(safe-area-inset-left)); padding-right: max(var(--g), env(safe-area-inset-right)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.cab__in > .btn { justify-self: end; }
.marca { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; justify-self: start; }
.marca__logo { display: block; flex: none; }
.marca__txt { font: 600 1.3125rem/1 var(--sans); letter-spacing: -.01em; transition: color .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .marca:hover .marca__txt { color: var(--oro-claro); } }
.menu { display: none; gap: clamp(18px, 2.4vw, 36px); }
.menu a { display: inline-flex; align-items: center; min-height: 44px; font: 500 .8125rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--apagado); padding: 0 2px; position: relative; transition: color .2s var(--ease-out); }
.menu a::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 10px; height: 1px; background: var(--oro); transform: scaleX(0); transform-origin: 0 50%; transition: transform .25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .menu a:hover { color: var(--crema); }
  .menu a:hover::after { transform: scaleX(1); } }
.menu a:focus-visible { color: var(--crema); }
.cab__progreso { display: none; }
@media (max-width: 899.98px) { .cab__in { grid-template-columns: 1fr auto; } }
@media (min-width: 900px) {
  .cab { position: sticky; top: 0; }
  .menu { display: flex; }
  .cab.abajo { background: #0d0d0dd9; border-bottom-color: var(--linea); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
  .cab__progreso { display: block; position: absolute; inset: auto 0 -1px 0; height: 2px; background: var(--oro); transform: scaleX(0); transform-origin: 0 50%; }
}

/* ---------- Inicio ---------- */
.inicio { padding: clamp(10px, 2vw, 28px) 0 clamp(40px, 6vw, 88px); }
.nombre { font-family: var(--sans); font-weight: 900; font-stretch: 100%; font-size: calc(100cqw / var(--r)); line-height: .8; letter-spacing: -.035em; color: var(--crema); white-space: nowrap; display: flex; justify-content: space-between; margin-left: -.045em; user-select: none; }
.nombre .l { display: inline-block; }
/* el nombre es adorno (el título real es el h1): si alguien fuerza más espacio entre letras, no debe romper el ancho */
.nombre, .nombre .l, .pie__nombre { letter-spacing: -.035em !important; word-spacing: 0 !important; line-height: .8 !important; }
.sub { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: clamp(14px, 2vw, 28px); font: 500 clamp(.75rem, .95vw, .8125rem)/1.5 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--oro); }
.inicio__fila { display: grid; grid-template-columns: 1fr; gap: clamp(36px, 5vw, 56px); margin-top: clamp(32px, 4vw, 52px); align-items: start; }
.inicio__texto .k { margin-bottom: 14px; }
.inicio h1 { font: 600 clamp(2rem, 1.2rem + 2vw, 2.875rem)/1.1 var(--serif); letter-spacing: -.015em; }
.inicio__bajada { margin-top: 20px; font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); line-height: 1.6; color: var(--suave); max-width: 52ch; }
.inicio .acciones { margin-top: 30px; }
.datos { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 30px; color: var(--apagado); font-size: 1rem; }
.datos b { color: var(--crema); font-weight: 600; }

.inicio__visual { position: relative; padding-bottom: clamp(36px, 8vw, 72px); }
.compu { border-radius: 12px; overflow: hidden; background: #111; border: 1px solid #36342f; box-shadow: 0 50px 100px -30px #000, 0 0 0 1px #0008; }
.compu__barra { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #1b1b1a; }
.compu__barra i { width: 9px; height: 9px; border-radius: 50%; background: #484640; }
.compu__barra span { margin-left: 14px; font: 400 .6875rem/1 var(--mono); letter-spacing: .04em; color: #8f8b7e; }
.compu img { width: 100%; height: auto; aspect-ratio: 1360 / 860; }
.cel { position: absolute; right: -1.2%; bottom: 0; width: clamp(92px, 25%, 200px); border: clamp(4px, .5vw, 6px) solid #1f1f1d; border-radius: clamp(18px, 2.4vw, 30px); overflow: hidden; background: #000; box-shadow: 0 30px 70px -20px #000, 0 0 0 1px #0008; }
.cel img { width: 100%; height: auto; aspect-ratio: 375 / 812; }

@media (min-width: 900px) {
  .inicio__fila { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 5vw, 72px); }
}

/* ---------- Secciones ---------- */
.sec { padding-block: clamp(56px, 7vw, 96px); }
.sec--panel { background: var(--panel); border-block: 1px solid var(--linea); }
.sec__cab { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--linea); }
.sec__cab h2, .cel-sec h2, .faq h2 { font: 600 clamp(2rem, 1.2rem + 3.2vw, 3.75rem)/1.04 var(--serif); letter-spacing: -.02em; }
.sec__intro { margin-top: 22px; color: var(--suave); max-width: 56ch; }
@media (min-width: 760px) {
  .sec__cab { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .sec__cab h2 { text-align: right; }
}

/* ---------- Trabajos ---------- */
.casos { display: grid; grid-template-columns: 1fr; gap: clamp(36px, 5vw, 56px) clamp(22px, 3.2vw, 44px); margin-top: clamp(32px, 4vw, 56px); }
.caso { display: block; text-decoration: none; color: inherit; transition: transform .25s var(--ease-out); }
.caso__marco { display: block; overflow: clip; border-radius: 12px; border: 1px solid var(--linea); background: #111; aspect-ratio: 17 / 10; box-shadow: 0 30px 60px -34px #000; }
.caso__marco img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: scale .3s var(--ease-out); }
.caso__texto { display: grid; gap: 4px; padding-top: 18px; }
.caso__nombre { font: 600 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.15 var(--serif); letter-spacing: -.01em; }
.caso__desc { color: var(--apagado); }
.caso__ir { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; width: fit-content; color: var(--oro); font-weight: 600; position: relative; padding-bottom: 3px; transition: color .2s var(--ease-out); }
.caso__ir::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform .25s var(--ease-out); }
.caso__ir svg { transition: transform .25s var(--ease-out); }
.caso:active { transform: scale(.99); }
@media (hover: hover) and (pointer: fine) {
  .caso:hover { transform: translateY(-2px); }
  .caso:hover .caso__marco img { scale: 1.03; }
  .caso:hover .caso__ir { color: var(--oro-claro); }
  .caso:hover .caso__ir::after { transform: scaleX(1); }
  .caso:hover .caso__ir svg { transform: translateX(4px); }
}
@media (min-width: 760px) {
  .casos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .casos > li:nth-child(even) { margin-top: clamp(40px, 6vw, 88px); }
}

/* ---------- Qué trae ---------- */
.trae { margin-top: clamp(24px, 3vw, 40px); }
.fila { display: grid; grid-template-columns: 1fr; gap: clamp(22px, 4vw, 56px); align-items: center; padding-block: clamp(30px, 4.5vw, 64px); border-bottom: 1px solid var(--linea); }
.fila:last-child { border-bottom: 0; padding-bottom: 0; }
.fila__img { overflow: hidden; border-radius: 12px; border: 1px solid #2f2d29; background: #111; box-shadow: 0 40px 80px -40px #000; }
.fila__img img { width: 100%; height: auto; }
.num { font: 500 .8125rem/1 var(--mono); letter-spacing: .16em; color: var(--oro); }
.fila h3, .paso h3 { margin-top: 14px; font: 600 clamp(1.5rem, 1.1rem + 1.3vw, 2.25rem)/1.12 var(--serif); letter-spacing: -.015em; }
.fila__txt p:not(.num) { margin-top: 14px; color: var(--suave); max-width: 44ch; }
@media (min-width: 900px) {
  .fila { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .fila--inv { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .fila--inv .fila__img { order: 2; }
}

/* ---------- Celular ---------- */
.cel-sec { display: grid; grid-template-columns: 1fr; gap: clamp(36px, 5vw, 64px); align-items: center; }
.cel-sec__txt > p:not(.k) { margin-top: 20px; color: var(--suave); max-width: 46ch; }
.cel-sec h2 { margin-top: 14px; }
.tilde { display: grid; gap: 12px; margin-top: 26px; }
.tilde li { display: flex; align-items: center; gap: 12px; color: var(--crema); }
.tilde li::before { content: ""; flex: none; width: 20px; height: 20px; background: var(--oro); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.cel-sec__tira { display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 10px var(--g) 28px; margin-inline: calc(var(--g) * -1); scrollbar-width: none; }
.cel-sec__tira::-webkit-scrollbar { display: none; }
.tel { flex: 0 0 min(62vw, 220px); scroll-snap-align: center; border: 6px solid #1f1f1d; border-radius: 30px; overflow: hidden; background: #000; box-shadow: 0 40px 70px -30px #000, 0 0 0 1px #0008; }
.tel img { width: 100%; height: auto; aspect-ratio: 375 / 812; }
@media (min-width: 900px) {
  .cel-sec { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .cel-sec__tira { overflow: visible; justify-content: flex-end; gap: clamp(14px, 2vw, 28px); margin-inline: 0; padding: 40px 0; scroll-snap-type: none; }
  .tel { flex: 0 1 clamp(150px, 17vw, 236px); }
}

/* ---------- Proceso ---------- */
.pasos { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: clamp(28px, 4vw, 48px); counter-reset: paso; }
.paso { position: relative; padding: 26px 0 36px; border-top: 1px solid var(--linea); }
.paso::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--oro); transform-origin: 0 50%; }
.paso p:not(.num) { margin-top: 14px; color: var(--suave); max-width: 40ch; }
@media (min-width: 900px) {
  .pasos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
}

/* ---------- Precio ---------- */
.precio { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 56px); padding: clamp(26px, 5vw, 72px); border: 1px solid var(--linea); border-radius: 14px; background: linear-gradient(180deg, #151513, #0f0f0e); }
.precio__cifra { font: 600 clamp(3.5rem, 2rem + 9vw, 9.5rem)/.95 var(--serif); letter-spacing: -.03em; color: var(--oro); }
.precio__linea { margin-top: 18px; font: 500 clamp(.75rem, .7rem + .2vw, .875rem)/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--apagado); }
.precio__linea b { color: var(--crema); font-weight: 500; }
.precio__incluye { display: grid; gap: 14px; align-content: center; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); }
.precio__incluye li { display: flex; gap: 14px; align-items: baseline; color: var(--crema); }
.precio__incluye li::before { content: ""; flex: none; width: 9px; height: 9px; margin-top: .05em; transform: translateY(-1px) rotate(45deg); background: var(--oro); }
.precio__pagos { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--linea); }
.precio__pagos p { display: grid; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--linea); }
.precio__pagos b { font: 600 clamp(1.25rem, 1.05rem + .8vw, 1.75rem)/1.2 var(--serif); letter-spacing: -.01em; }
@media (min-width: 900px) {
  .precio { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .precio__pagos { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
  .precio__pagos p { border-bottom: 0; padding: 22px 0 0; }
}

/* ---------- Preguntas ---------- */
.faq { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 56px); }
.faq h2 { margin-top: 14px; }
details { border-top: 1px solid var(--linea); }
details:last-child { border-bottom: 1px solid var(--linea); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font: 600 1.125rem/1.35 var(--sans); -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: color .2s; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--oro), var(--oro)) center / 100% 2px no-repeat, linear-gradient(var(--oro), var(--oro)) center / 2px 100% no-repeat; transition: transform .25s var(--ease-out); }
details[open] summary::after { transform: rotate(90deg); background-size: 100% 2px, 0 100%; }
@media (hover: hover) and (pointer: fine) { summary:hover { color: var(--oro-claro); } }
details p { padding: 0 0 24px; color: var(--suave); max-width: 60ch; }
details::details-content { block-size: 0; overflow: clip; transition: block-size .25s var(--ease-out), content-visibility .25s allow-discrete; }
details[open]::details-content { block-size: auto; }
@media (min-width: 900px) {
  .faq { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .faq__cab { position: sticky; top: calc(var(--alto-cab) + 40px); align-self: start; }
}

/* ---------- Cierre y pie ---------- */
.sec--cierre { padding-bottom: clamp(56px, 8vw, 100px); }
.cierre__titulo { margin-top: 18px; font: 600 clamp(2.6rem, 1.2rem + 6.4vw, 7rem)/1 var(--serif); letter-spacing: -.025em; max-width: 13ch; }
.cierre__txt { margin-top: 26px; max-width: 52ch; font-size: clamp(1.125rem, 1rem + .5vw, 1.3125rem); color: var(--suave); }
.sec--cierre .acciones { margin-top: 36px; }
.cierre__ig { margin-top: 22px; color: var(--apagado); }
.cierre__ig a { display: inline-block; padding: 10px 4px; margin: -10px -4px; color: var(--crema); text-underline-offset: 4px; text-decoration-color: var(--oro); }
.pie { padding: 0 0 clamp(28px, 4vw, 44px); overflow: hidden; }
.pie__nombre { font: 900 calc(100cqw / var(--r))/.8 var(--sans); letter-spacing: -.035em; display: flex; justify-content: space-between; margin-left: -.045em; user-select: none; height: .52em; overflow: hidden; }
.pie__nombre::before { content: "BUSHI"; display: block; color: #1b1b19; }
.pie__linea { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--linea); font-size: .875rem; color: var(--apagado); }
.pie__linea p:first-child { font: 500 .75rem/1.6 var(--mono); letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Preferencias del sistema (apple-design) ---------- */
@media (prefers-reduced-transparency: reduce) {
  .cab.abajo { background: #0d0d0d; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --linea: #5a5750; --apagado: #cfc9bb; --suave: #ece6d9; }
  .btn--linea { border-color: var(--crema); }
}

/* ---------- Movimiento ----------
   Coreografía de la entrada del inicio (una sola vez, al cargar). Cada pieza tiene su papel:
   - Líder: las 5 letras de BUSHI, suben desde la línea de base (arranque cada 75 ms, 1 s cada una).
   - Apoyo: título (0,60 s, sube 20 px), bajada (0,70 s, 14 px), botones (0,80 s, 10 px), compu (0,70 s, 44 px) y celular (0,96 s, 60 px).
   - Decoración: rubros, «Qué hago» y precios solo aparecen (opacidad), no se mueven.
   Nada bloquea el clic: todo queda en su lugar desde el primer cuadro. */
@keyframes sube { from { opacity: 0; transform: translateY(var(--dy, 16px)); } to { opacity: 1; transform: none; } }
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .js .nombre .l { opacity: 0; clip-path: inset(100% 0 0 0); transform: translateY(14%); }
  .js .sub, .js .inicio__texto > *, .js .compu, .js .cel { opacity: 0; }
  .is-ready .nombre .l { animation: letra 1s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 75ms + 60ms); }
  .nombre .l:nth-child(1) { --i: 0; } .nombre .l:nth-child(2) { --i: 1; } .nombre .l:nth-child(3) { --i: 2; } .nombre .l:nth-child(4) { --i: 3; } .nombre .l:nth-child(5) { --i: 4; }
  .is-ready .sub { --dy: 0px; animation: sube .8s var(--ease-out) .5s both; }
  .is-ready .inicio__texto > * { animation: sube .8s var(--ease-out) var(--t, 0s) both; }
  .inicio__texto > :nth-child(1) { --t: .56s; --dy: 0px; }
  .inicio__texto > :nth-child(2) { --t: .6s; --dy: 20px; }
  .inicio__texto > :nth-child(3) { --t: .7s; --dy: 14px; }
  .inicio__texto > :nth-child(4) { --t: .8s; --dy: 10px; }
  .inicio__texto > :nth-child(5) { --t: .92s; --dy: 0px; }
  .is-ready .compu { --dy: 44px; animation: sube 1s var(--ease-out) .7s both; }
  .is-ready .cel { --dy: 60px; animation: sube 1s var(--ease-out) .96s both; }

  @keyframes letra { from { opacity: 0; clip-path: inset(100% 0 0 0); transform: translateY(14%); } to { opacity: 1; clip-path: inset(-12% -8% -12% -8%); transform: none; } }

  /* Al llegar a cada parte (una vez): sube poco y rápido, para no hacer esperar a quien baja deprisa */
  .js .rev { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease-out) var(--d, 0s), transform .7s var(--ease-out) var(--d, 0s); }
  .js .rev.in { opacity: 1; transform: none; }
  .js .paso::before { transform: scaleX(0); transition: transform 1s var(--ease-out) calc(var(--d, 0s) + .2s); }
  .js .paso.in::before { transform: scaleX(1); }

  /* Fluidez al bajar: lo hace el navegador, atado al scroll (solo en los que lo soportan). Solo foto y fondo, nunca texto. */
  @supports (animation-timeline: view()) {
    @keyframes parallax { from { translate: 0 -2%; } to { translate: 0 2%; } }
    .caso__marco img { scale: 1.04; animation: parallax linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    @media (hover: hover) and (pointer: fine) { .caso:hover .caso__marco img { scale: 1.07; } }
    @keyframes profundidad { from { translate: 0 0; } to { translate: 0 -64px; } }
    @keyframes profundidad-lenta { from { translate: 0 0; } to { translate: 0 -18px; } }
    :is(.is-ready, :root) .cel { animation: sube 1s var(--ease-out) .96s both, profundidad linear both; animation-timeline: auto, view(); animation-range: normal, exit 0% exit 100%; }
    :is(.is-ready, :root) .compu { animation: sube 1s var(--ease-out) .7s both, profundidad-lenta linear both; animation-timeline: auto, view(); animation-range: normal, exit 0% exit 100%; }
    @keyframes tel-a { from { translate: 0 36px; } to { translate: 0 -36px; } }
    @keyframes tel-b { from { translate: 0 0; } to { translate: 0 -12px; } }
    @keyframes tel-c { from { translate: 0 -36px; } to { translate: 0 36px; } }
    @media (min-width: 900px) {
      .tel { animation: linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
      .tel:nth-child(1) { animation-name: tel-a; } .tel:nth-child(2) { animation-name: tel-b; } .tel:nth-child(3) { animation-name: tel-c; }
    }
    @keyframes progreso { to { transform: scaleX(1); } }
    @media (min-width: 900px) { .cab__progreso { animation: progreso linear both; animation-timeline: scroll(root block); } }
  }
}

/* Con «reducir movimiento»: menos y más suave, no cero. Sin desplazamientos ni retrasos: todo aparece junto, solo con opacidad. */
@media (prefers-reduced-motion: reduce) {
  .js .nombre .l, .js .sub, .js .inicio__texto > *, .js .compu, .js .cel { opacity: 0; }
  .is-ready .nombre .l, .is-ready .sub, .is-ready .inicio__texto > *, .is-ready .compu, .is-ready .cel { animation: aparece .45s ease both; }
  .js .rev { opacity: 0; transition: opacity .45s ease; }
  .js .rev.in { opacity: 1; }
  .caso, .caso__marco img, .caso__ir::after, .menu a::after, details::details-content, summary::after { transition: none; }
}
