/* Home: antetítulo de zona y titular de tres líneas */
.hero__kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: clamp(16px, 2vw, 26px); font-size: 0.875rem; letter-spacing: 0.06em; color: var(--muted); }
.hero__kicker i { width: 6px; height: 6px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 10px 1px oklch(70% 0.15 240 / 0.8); flex: none; }
.hero__title { font-size: clamp(2.5rem, 4.4vw, 5.2rem); line-height: 0.98; letter-spacing: -0.03em; }
.hero__title .line { white-space: nowrap; }
.hero__lead { max-width: 40ch; }
.contact__zone a { color: var(--ink-2); text-underline-offset: 3px; }
.contact__zone a:hover { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .hero__kicker { animation: soft-in 1000ms var(--ease) 150ms backwards; }
}
@media (max-width: 900px) {
  .hero__title { font-size: clamp(2.3rem, 8.4vw, 4.6rem); }
}
@media (max-width: 560px) {
  .hero__kicker { font-size: 0.8125rem; letter-spacing: 0.03em; }
  .hero__title { font-size: 9.6vw; }
  .hero__title .line { white-space: normal; }
}

/* titular: la segunda frase, más pequeña y en tinta secundaria */
.hero__title .line--sub { font-size: 0.42em; line-height: 1.1; letter-spacing: -0.005em; font-stretch: 105%; color: var(--ink-2); font-weight: 350; margin-top: 0.3em; }

/* ==========================================================================
   Hero: secuencia de 4 escenas (web, mensajes, Google, tareas). JS: hero.js
   Estado por defecto = estado final de cada escena (sin JS y con
   "reducir movimiento" se ve completo). Solo se anima transform, opacity,
   clip-path y filter.
   ========================================================================== */
.seq {
  --io: cubic-bezier(0.4, 0, 0.2, 1);
  --pop: cubic-bezier(0.3, 0.7, 0.4, 1.4);
  --glass: linear-gradient(165deg, oklch(24% 0.065 258 / 0.88), oklch(16% 0.052 263 / 0.88));
  --seq-edge: 0 0 0 1px oklch(70% 0.07 245 / 0.2) inset;
  --btn-grad: linear-gradient(135deg in oklch, oklch(93% 0.05 220), oklch(78% 0.11 240) 55%, oklch(66% 0.14 250));
  justify-self: end; width: min(100%, 440px); padding: 18px 18px 6px; border-radius: 32px;
  background: linear-gradient(160deg, oklch(24% 0.07 258 / 0.55), oklch(14% 0.05 264 / 0.35));
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 40px 80px -40px oklch(4% 0.04 264 / 0.9), 0 0 0 1px oklch(70% 0.06 250 / 0.1) inset, 0 0 120px -30px oklch(64% 0.17 255 / 0.45);
}
.seq p { margin: 0; }
.seq__head { position: relative; height: 1.6em; margin: 0 6px 12px; font-size: 0.9375rem; }
.seq__label { position: absolute; inset: 0 auto auto 0; display: flex; align-items: baseline; gap: 10px; white-space: nowrap; font-weight: 520; font-stretch: 108%; color: var(--ink); opacity: 0; transform: translateY(0.45em); filter: blur(4px); transition: opacity 600ms var(--ease), transform 700ms var(--ease), filter 600ms var(--ease); }
.seq__label.is-on { opacity: 1; transform: none; filter: none; transition-delay: 220ms; }
.seq__label .num, .seq__cap .num { font-size: 0.8em; font-weight: 600; color: var(--sky); letter-spacing: 0.04em; }
.seq__stage { position: relative; aspect-ratio: 6 / 5; border-radius: 22px; overflow: clip; background: radial-gradient(90% 70% at 70% 0%, oklch(52% 0.108 250 / 0.16), transparent 70%), oklch(11% 0.045 266 / 0.45); box-shadow: 0 0 0 1px oklch(60% 0.07 252 / 0.12) inset; }
.seq__scene { position: absolute; inset: 0; container-type: size; }
.seq__scene:not(.is-on) { opacity: 0; visibility: hidden; }
.seq__in { position: absolute; inset: 0; display: grid; place-items: center; font-size: min(calc(100cqi / 24), calc(100cqb / 19.5)); line-height: 1.25; }
.seq__cap { display: none; }
.seq__in svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* barra de progreso tipo stories */
.seq__bar { display: flex; gap: 6px; margin: 2px 4px 0; }
.seq__seg { flex: 1; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; align-items: center; border-radius: 6px; }
.seq__seg i { display: block; height: 3px; border-radius: 3px; overflow: hidden; background: oklch(45% 0.06 255 / 0.45); transition: background-color 300ms var(--ease); }
.seq__seg b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg in oklch, var(--brand), var(--cyan)); box-shadow: 0 0 10px oklch(70% 0.15 240 / 0.7); transform: scaleX(0); transform-origin: left; }
.seq__seg[aria-current="true"] b { transform: scaleX(1); }
.seq__seg:hover i { background: oklch(55% 0.07 250 / 0.6); }
.seq__seg:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; }
html:not(.js) .seq__bar { visibility: hidden; height: 12px; }

/* ---------- escena 1: la web se monta ---------- */
.br { width: 22em; height: 17.6em; display: grid; grid-template-rows: 1.9em 1fr; border-radius: 0.9em; overflow: hidden; background: var(--glass); box-shadow: var(--seq-edge), 0 1.6em 3em -1.6em oklch(4% 0.04 264 / 0.9), 0 0 4em -1em oklch(64% 0.17 255 / 0.35); }
.br__bar { display: flex; align-items: center; gap: 0.32em; padding: 0 0.8em; background: oklch(20% 0.055 262 / 0.9); box-shadow: 0 1px 0 var(--rule); }
.br__bar > i { width: 0.46em; height: 0.46em; border-radius: 50%; background: oklch(48% 0.06 255 / 0.8); }
.br__url { margin-left: 0.8em; flex: 1; display: flex; align-items: center; gap: 0.4em; height: 1.85em; padding: 0 0.8em; border-radius: 999px; background: oklch(13% 0.05 264 / 0.85); font-size: 0.62em; color: var(--ink-2); letter-spacing: 0.02em; }
.br__url svg { width: 1.15em; height: 1.15em; color: var(--sky); }
.br__body { display: grid; grid-template-rows: auto 1fr auto; gap: 0.6em; padding: 0.75em 0.8em 0.8em; min-height: 0; }
.br__nav { display: flex; align-items: center; justify-content: space-between; }
.br__logo { display: flex; align-items: center; gap: 0.45em; font-size: 0.66em; font-weight: 620; font-stretch: 115%; color: var(--ink); }
.br__logo b { width: 1.25em; height: 1.25em; border-radius: 50%; background: var(--btn-grad); box-shadow: 0 0 0.8em oklch(70% 0.15 240 / 0.6); }
.br__links { display: flex; gap: 0.45em; }
.br__links i { width: 1.7em; height: 0.26em; border-radius: 999px; background: oklch(90% 0.03 240 / 0.24); }
.br__hero { position: relative; display: grid; align-content: end; justify-items: start; gap: 0.5em; padding: 0.9em 1em; border-radius: 0.65em; overflow: hidden; min-height: 0;
  background: radial-gradient(70% 90% at 88% 6%, oklch(82% 0.11 215 / 0.6), transparent 62%), radial-gradient(60% 90% at 6% 100%, oklch(64% 0.17 255 / 0.6), transparent 72%), linear-gradient(140deg, oklch(44% 0.11 250), oklch(26% 0.085 258)); }
.br__hero::before { content: ""; position: absolute; right: 9%; top: 16%; width: 5.2em; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, oklch(94% 0.04 220 / 0.55), oklch(70% 0.12 235 / 0.12) 60%, transparent 70%); }
.br__title { position: relative; font-size: 1.2em; line-height: 1.02; font-weight: 380; font-stretch: 118%; letter-spacing: -0.02em; color: oklch(98% 0.01 240); }
.br__sub { position: relative; width: 8em; height: 0.26em; border-radius: 999px; background: oklch(96% 0.02 230 / 0.5); }
.br__btn { position: relative; overflow: hidden; margin-top: 0.15em; font-size: 0.6em; font-weight: 600; padding: 0.65em 1.3em; border-radius: 999px; background: var(--btn-grad); color: oklch(15% 0.06 262); box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.5), 0 0 1.6em -0.3em oklch(70% 0.15 240 / 0.9); }
.br__btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, oklch(100% 0 0 / 0.65) 50%, transparent 70%); transform: translateX(-120%); }
.br__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5em; }
.br__cards i { display: grid; align-content: start; gap: 0.32em; height: 3.3em; padding: 0.55em; border-radius: 0.55em; background: oklch(23% 0.06 260 / 0.85); box-shadow: 0 0 0 1px oklch(60% 0.07 252 / 0.18) inset; }
.br__cards b { width: 1em; height: 1em; border-radius: 0.32em; background: linear-gradient(140deg, oklch(80% 0.1 240 / 0.55), oklch(52% 0.108 250 / 0.4)); }
.br__cards s { display: block; height: 0.24em; width: 85%; border-radius: 999px; background: oklch(90% 0.03 240 / 0.22); }
.br__cards s + s { width: 55%; }

/* ---------- escena 2: notificaciones ---------- */
.nt { --sl: 5em; width: 21.5em; display: grid; gap: 0.6em; margin: 0; padding: 0; list-style: none; }
.nt__i { position: relative; height: 4.4em; display: grid; grid-template-columns: 2.3em minmax(0, 1fr); gap: 0.8em; align-items: center; padding: 0 1em 0 0.8em; border-radius: 1em; background: var(--glass); box-shadow: var(--seq-edge), 0 1.2em 2.4em -1.4em oklch(4% 0.04 264 / 0.95); }
.nt__i--c { box-shadow: 0 0 0 1px oklch(85% 0.08 225 / 0.38) inset, 0 1.2em 2.4em -1.4em oklch(4% 0.04 264 / 0.95), 0 0 2.4em -0.8em oklch(64% 0.17 255 / 0.55); }
.nt__ico { width: 2.3em; height: 2.3em; border-radius: 0.7em; display: grid; place-items: center; color: var(--ice); background: linear-gradient(140deg, oklch(52% 0.108 250 / 0.6), oklch(64% 0.17 255 / 0.22)); box-shadow: 0 0 0 1px oklch(80% 0.1 240 / 0.3) inset; }
.nt__ico svg { width: 1.25em; height: 1.25em; }
.nt__txt { display: grid; gap: 0.25em; min-width: 0; }
.nt__txt b { font-size: 0.8em; font-weight: 560; line-height: 1.2; color: var(--ink); }
.nt__txt small { font-size: 0.66em; color: var(--muted); }
.nt__stars svg { width: 5.6em; height: 1.12em; fill: var(--ice); stroke: none; filter: drop-shadow(0 0 0.35em oklch(82% 0.11 215 / 0.65)); }

/* ---------- escena 3: Google ---------- */
.gs { --sl: 3.95em; width: 22em; display: grid; gap: 0.8em; }
.gs__q { display: flex; align-items: center; gap: 0.6em; height: 2.7em; padding: 0 1em; border-radius: 999px; background: var(--glass); box-shadow: 0 0 0 1px oklch(80% 0.08 235 / 0.3) inset, 0 0 2em -0.8em oklch(64% 0.17 255 / 0.5); }
.gs__q svg { width: 1.1em; height: 1.1em; flex: none; color: var(--sky); }
.gs__typed { font-size: 0.84em; color: var(--ink); white-space: pre; }
.gs__caret { width: 0.09em; height: 1.15em; margin-left: -0.38em; background: var(--ice); box-shadow: 0 0 0.4em var(--cyan); }
.gs__list { position: relative; height: calc(var(--sl) * 3 - 0.45em); margin: 0 -0.6em; overflow: clip; -webkit-mask: linear-gradient(#000 82%, transparent); mask: linear-gradient(#000 82%, transparent); }
.gs__r, .gs__card { position: absolute; inset: 0 0.6em auto; height: 3.5em; border-radius: 0.75em; }
.gs__r { display: grid; align-content: center; gap: 0.38em; padding: 0 0.95em; translate: 0 calc(var(--n) * var(--sl)); background: oklch(19% 0.05 262 / 0.6); box-shadow: 0 0 0 1px oklch(60% 0.07 252 / 0.14) inset; }
.gs__r s { display: block; height: 0.3em; border-radius: 999px; }
.gs__u { width: 5em; background: oklch(76% 0.04 254 / 0.35); }
.gs__t { width: 11.5em; height: 0.46em !important; background: oklch(80% 0.1 240 / 0.5); }
.gs__d { width: 16em; background: oklch(90% 0.03 240 / 0.16); }
.gs__card { z-index: 2; display: grid; grid-template-columns: 2.2em minmax(0, 1fr) auto; gap: 0.7em; align-items: center; padding: 0 0.8em 0 0.65em; overflow: hidden;
  background: linear-gradient(150deg, oklch(30% 0.08 252 / 0.96), oklch(19% 0.06 260 / 0.96)); box-shadow: 0 0 0 1px oklch(88% 0.07 220 / 0.5) inset, 0 1em 2em -1em oklch(4% 0.04 264 / 0.95), 0 0 2.4em -0.6em oklch(64% 0.17 255 / 0.6); }
.gs__card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 1.5px var(--ice) inset, 0 0 1.4em oklch(82% 0.11 215 / 0.75) inset; opacity: 0; pointer-events: none; }
.gs__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 25%, oklch(95% 0.05 215 / 0.5) 50%, transparent 75%); transform: translateX(-130%); pointer-events: none; }
.gs__pin { width: 2.2em; height: 2.2em; border-radius: 50%; display: grid; place-items: center; background: var(--btn-grad); color: oklch(15% 0.06 262); }
.gs__pin svg { width: 1.2em; height: 1.2em; stroke-width: 1.9; }
.gs__info { display: grid; gap: 0.16em; min-width: 0; }
.gs__info b { font-size: 0.82em; font-weight: 600; color: var(--ink); }
.gs__info small { font-size: 0.6em; color: var(--muted); white-space: nowrap; }
.gs__stars svg { width: 3.6em; height: 0.72em; fill: var(--ice); stroke: none; }
.gs__go { font-size: 0.58em; font-weight: 560; color: var(--ice); padding: 0.5em 0.9em; border-radius: 999px; box-shadow: 0 0 0 1px oklch(85% 0.08 225 / 0.45) inset; white-space: nowrap; }

/* ---------- escena 4: tareas tachadas ---------- */
.td { width: 20em; display: grid; gap: 0.7em; }
.td__h { font-size: 0.66em; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-left: 0.3em; }
.td__list { display: grid; gap: 0.5em; margin: 0; padding: 0; list-style: none; }
.td__i { display: flex; align-items: center; gap: 0.75em; height: 2.65em; padding: 0 0.9em; border-radius: 0.75em; background: var(--glass); box-shadow: var(--seq-edge); }
.td__box { position: relative; flex: none; width: 1.3em; height: 1.3em; border-radius: 0.38em; box-shadow: 0 0 0 1.5px oklch(80% 0.1 240 / 0.55) inset; color: oklch(15% 0.06 262); }
.td__box::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--btn-grad); box-shadow: 0 0 0.8em oklch(70% 0.15 240 / 0.7); }
.td__box svg { position: relative; width: 100%; height: 100%; stroke-width: 2.6; }
.td__t { position: relative; font-size: 0.86em; }
.td__w { color: var(--ink); opacity: 0.5; }
.td__line { position: absolute; left: -0.15em; right: -0.15em; top: 52%; height: 0.16em; margin-top: -0.08em; border-radius: 999px; background: linear-gradient(90deg in oklch, var(--brand), var(--cyan) 70%, var(--ice)); box-shadow: 0 0 0.6em oklch(82% 0.11 215 / 0.9); transform-origin: left; }
.seq .td__done { display: flex; align-items: center; gap: 0.6em; margin-top: 0.2em; padding-left: 0.3em; font-size: 0.76em; font-weight: 540; color: var(--ice); }
.td__done::before { content: ""; width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0.7em 0.1em var(--cyan); }

/* ---------- movimiento (solo con JS y sin "reducir movimiento") ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .seq { animation: panel-in 1200ms var(--ease) 300ms backwards; }
  .js .seq__scene.is-on { z-index: 2; animation: seq-in 680ms var(--ease) 200ms both; }
  .js .seq__scene.is-out { z-index: 1; opacity: 1; visibility: visible; animation: seq-out 720ms var(--io) both; }
  .seq.is-paused .seq__scene, .seq.is-paused .seq__scene *, .seq.is-paused .seq__scene *::before, .seq.is-paused .seq__scene *::after { animation-play-state: paused !important; }

  /* 1 · la web: barra, cabecera, foto, titular, botón, tarjetas */
  .is-on .br { animation: q-soft 700ms var(--ease) 80ms both; }
  .is-on .br__url { animation: q-wipe 700ms var(--ease) 300ms both; }
  .is-on .br__nav { animation: q-wipe 750ms var(--ease) 520ms both; }
  .is-on .br__hero { animation: q-reveal 1000ms var(--ease) 900ms both; }
  .is-on .br__hero::before { animation: q-float 1600ms var(--ease) 1000ms both; }
  .is-on .br__title { animation: q-soft 800ms var(--ease) 1450ms both; }
  .is-on .br__sub { animation: q-grow 700ms var(--ease) 1700ms both; }
  .is-on .br__btn { animation: q-pop 650ms var(--pop) 2050ms both; }
  .is-on .br__btn::after { animation: q-sweep 900ms var(--ease) 2700ms both; }
  .is-on .br__cards i { animation: q-rise 800ms var(--ease) both; }
  .is-on .br__cards i:nth-child(1) { animation-delay: 2500ms; }
  .is-on .br__cards i:nth-child(2) { animation-delay: 2620ms; }
  .is-on .br__cards i:nth-child(3) { animation-delay: 2740ms; }

  /* 2 · mensajes: entran arriba con rebote y empujan a los anteriores */
  .is-on .nt__i--a { animation: nt-a 2900ms linear 350ms both; }
  .is-on .nt__i--b { animation: nt-b 1650ms linear 1600ms both; }
  .is-on .nt__i--c { animation: nt-c 650ms var(--pop) 2600ms both; }
  .is-on .nt__i .nt__ico { animation: q-ping 900ms var(--ease) both; }
  .is-on .nt__i--a .nt__ico { animation-delay: 450ms; }
  .is-on .nt__i--b .nt__ico { animation-delay: 1700ms; }
  .is-on .nt__i--c .nt__ico { animation-delay: 2700ms; }
  .is-on .nt__stars svg { animation: q-stars 700ms var(--ease) 1950ms both; }

  /* 3 · Google: se escribe la búsqueda (hero.js), salen 3 resultados y tu ficha sube al primer puesto */
  .is-on .gs__q { animation: q-soft 700ms var(--ease) 100ms both; }
  .gs__caret { animation: q-blink 1s steps(1) infinite; }
  .is-typing .gs__caret { animation: none; }
  .is-on .gs__r { animation: q-rise 800ms var(--ease) both, gs-shift 950ms var(--io) 3050ms both; }
  .is-on .gs__r:nth-child(1) { animation-delay: 1950ms, 3050ms; }
  .is-on .gs__r:nth-child(2) { animation-delay: 2070ms, 3050ms; }
  .is-on .gs__r:nth-child(3) { animation-delay: 2190ms, 3050ms; }
  .is-on .gs__card { animation: gs-climb 1050ms var(--io) 2950ms both, gs-lift 1100ms var(--io) 2950ms both; }
  .is-on .gs__card::after { animation: q-sweep 1000ms var(--ease) 3950ms both; }
  .is-on .gs__card::before { animation: q-flash 1400ms var(--ease) 3900ms both; }

  /* 4 · tareas: cada fila se marca y la tacha un trazo de luz */
  .is-on .td__h { animation: q-soft 700ms var(--ease) 100ms both; }
  .is-on .td__i { animation: q-rise 750ms var(--ease) calc(180ms + var(--k) * 90ms) both; }
  .is-on .td__box::before { animation: q-pop 420ms var(--pop) calc(1000ms + var(--k) * 720ms) both; }
  .is-on .td__box svg { animation: q-wipe 380ms var(--ease) calc(1140ms + var(--k) * 720ms) both; }
  .is-on .td__line { animation: q-grow 560ms var(--ease) calc(1160ms + var(--k) * 720ms) both; }
  .is-on .td__w { animation: q-dim 450ms var(--ease) calc(1320ms + var(--k) * 720ms) both; }
  .is-on .td__done { animation: q-soft 800ms var(--ease) 4200ms both; }
}

@keyframes seq-in { from { opacity: 0; transform: translateX(16%) scale(0.94); filter: blur(6px); } }
@keyframes seq-out { 85% { opacity: 0; } to { opacity: 0; transform: perspective(900px) translateX(-26%) rotateY(16deg) scale(0.82); filter: blur(6px); } }
@keyframes q-soft { from { opacity: 0; transform: translateY(0.7em); filter: blur(0.35em); } }
@keyframes q-rise { from { opacity: 0; transform: translateY(1.1em) scale(0.97); filter: blur(0.3em); } }
@keyframes q-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes q-reveal { from { clip-path: inset(0 0 100% 0 round 0.65em); transform: scale(1.05); filter: brightness(1.6) blur(0.3em); } to { clip-path: inset(0 0 0 0 round 0.65em); transform: none; filter: none; } }
@keyframes q-float { from { opacity: 0; transform: translate(1.2em, 0.6em) scale(0.7); } }
@keyframes q-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes q-pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: none; } }
@keyframes q-sweep { from { transform: translateX(-130%); } to { transform: translateX(130%); } }
@keyframes q-ping { 0% { filter: brightness(1); } 30% { filter: brightness(1.9) drop-shadow(0 0 0.6em oklch(82% 0.11 215 / 0.9)); } 100% { filter: brightness(1); } }
@keyframes q-stars { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes q-flash { 0%, 100% { opacity: 0; } 22% { opacity: 1; } }
@keyframes q-blink { 50% { opacity: 0; } }
@keyframes q-dim { from { opacity: 1; } to { opacity: 0.5; } }
@keyframes nt-a {
  0% { opacity: 0; transform: translateY(calc(var(--sl) * -2 - 1.4em)) scale(0.93); animation-timing-function: var(--pop); }
  14% { opacity: 1; transform: translateY(calc(var(--sl) * -2)); }
  43% { transform: translateY(calc(var(--sl) * -2)); animation-timing-function: var(--ease); }
  57% { transform: translateY(calc(var(--sl) * -1)); }
  77.5% { transform: translateY(calc(var(--sl) * -1)); animation-timing-function: var(--ease); }
  92%, 100% { opacity: 1; transform: none; }
}
@keyframes nt-b {
  0% { opacity: 0; transform: translateY(calc(var(--sl) * -1 - 1.4em)) scale(0.93); animation-timing-function: var(--pop); }
  24% { opacity: 1; transform: translateY(calc(var(--sl) * -1)); }
  60.5% { transform: translateY(calc(var(--sl) * -1)); animation-timing-function: var(--ease); }
  85%, 100% { opacity: 1; transform: none; }
}
@keyframes nt-c { from { opacity: 0; transform: translateY(-1.4em) scale(0.93); } }
@keyframes gs-shift { from { translate: 0 calc((var(--n) - 1) * var(--sl)); } }
@keyframes gs-climb { 0% { opacity: 0; translate: 0 calc(var(--sl) * 3.2); } 12% { opacity: 1; } 100% { opacity: 1; translate: 0 0; } }
@keyframes gs-lift { 0% { transform: none; } 45% { transform: scale(1.045); } 100% { transform: none; } }

/* ---------- "reducir movimiento": las 4 escenas en su estado final, en rejilla 2x2 ---------- */
@media (prefers-reduced-motion: reduce) {
  .seq__head, .seq__bar { display: none; }
  .seq { padding: 14px; }
  .seq__stage { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; overflow: visible; background: none; box-shadow: none; }
  .seq__scene, .seq__scene:not(.is-on) { position: relative; inset: auto; aspect-ratio: 1 / 1.02; opacity: 1; visibility: visible; border-radius: 16px; background: oklch(11% 0.045 266 / 0.45); box-shadow: 0 0 0 1px oklch(60% 0.07 252 / 0.14) inset; }
  .seq__cap { position: absolute; inset: 8px 10px auto; display: flex; gap: 6px; font-size: 0.6875rem; font-weight: 520; line-height: 1.25; color: var(--ink-2); }
  .seq__in { top: 24px; font-size: min(calc(100cqi / 24.5), calc((100cqb - 24px) / 19)); }
  .gs__caret { display: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 560px) {
  .seq__cap { font-size: 0.625rem; }
  .seq__in { top: 36px; font-size: min(calc(100cqi / 24.5), calc((100cqb - 36px) / 19)); }
}

@media (max-width: 900px) {
  .seq { justify-self: stretch; width: auto; max-width: 560px; padding: 14px 14px 4px; border-radius: 26px; }
  .seq__head { font-size: 0.875rem; margin: 0 4px 10px; }
  .seq__stage { aspect-ratio: 7 / 5; border-radius: 18px; }
}

/* ---------- móvil: la secuencia justo bajo el titular, visible en el primer pantallazo ----------
   El orden del DOM no cambia (antetítulo, h1, entradilla, botones y luego el ejemplo animado, que es
   decorativo): .hero__text se disuelve en la rejilla y `order` sube el marco entre h1 y entradilla. */
@media (max-width: 900px) {
  .hero { padding-top: 96px; }
  .hero__grid { gap: 0; }
  .hero__text { display: contents; }
  .hero__kicker { order: 0; justify-self: start; margin-bottom: 14px; }
  .hero__title { order: 1; }
  .seq { order: 2; margin-top: 22px; }
  .hero__lead { order: 3; margin-top: 24px; }
  .hero__actions { order: 4; margin-top: 24px; }
}
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  /* entra antes (sin esperar al titular) para que se vea moverse en el primer medio segundo */
  .js .seq { animation-duration: 900ms; animation-delay: 120ms; }
}
@media (max-width: 560px) {
  .hero__kicker { margin-bottom: 10px; }
  .seq { margin-top: 18px; padding: 12px 12px 2px; border-radius: 22px; }
  .seq__head { margin: 0 4px 8px; }
  .seq__bar { margin-top: 0; }
  .seq__seg { height: 26px; }
  .hero__lead { margin-top: 20px; }
}
/* pantallas bajas (iPhone SE y similares): marco algo más apaisado para que título + marco quepan */
@media (max-width: 560px) and (max-height: 700px) {
  .hero { padding-top: 88px; }
  .hero__kicker { font-size: 0.75rem; margin-bottom: 8px; }
  .seq__stage { aspect-ratio: 8 / 5; }
}

/* ==========================================================================
   MODO DÍA (html[data-theme="dia"]) · secuencia del hero
   Cristal blanco, barras en marino al 20-32 %, botones con el degradado
   --btn-a/b/c. Patrón: docs/MODO-DIA-PATRONES.md
   ========================================================================== */
html[data-theme="dia"] .hero__kicker i { box-shadow: 0 0 10px 1px var(--glow); }
html[data-theme="dia"] .seq {
  --glass: linear-gradient(165deg, oklch(100% 0 0 / 0.92), oklch(98% 0.01 245 / 0.82));
  --seq-edge: 0 0 0 1px oklch(45% 0.08 252 / 0.13) inset;
  --btn-grad: linear-gradient(135deg in oklch, var(--btn-a), var(--btn-b) 55%, var(--btn-c));
  background: linear-gradient(160deg, var(--g1), var(--g2));
  box-shadow: 0 40px 80px -44px var(--sh), 0 0 0 1px var(--edge-c) inset, 0 1px 0 oklch(100% 0 0 / 0.9) inset, 0 0 120px -40px var(--glow);
  outline: 1px solid oklch(40% 0.08 254 / 0.08); outline-offset: -1px;
}
html[data-theme="dia"] .seq__stage { background: radial-gradient(90% 70% at 70% 0%, var(--veil-1), transparent 70%), oklch(100% 0 0 / 0.35); box-shadow: 0 0 0 1px oklch(45% 0.08 252 / 0.1) inset; }
html[data-theme="dia"] .seq__seg i { background: oklch(50% 0.06 255 / 0.2); }
html[data-theme="dia"] .seq__seg:hover i { background: oklch(50% 0.06 255 / 0.32); }
html[data-theme="dia"] .seq__seg b { box-shadow: 0 0 8px var(--glow); }
/* 1 · la web */
html[data-theme="dia"] .br { box-shadow: var(--seq-edge), 0 1.6em 3em -1.8em var(--sh), 0 0 4em -1.4em var(--glow); }
html[data-theme="dia"] .br__bar { background: oklch(96% 0.012 248 / 0.95); box-shadow: 0 1px 0 var(--rule); }
html[data-theme="dia"] .br__bar > i { background: oklch(75% 0.04 252 / 0.8); }
html[data-theme="dia"] .br__url { background: oklch(100% 0 0 / 0.95); box-shadow: 0 0 0 1px oklch(45% 0.08 252 / 0.1) inset; }
html[data-theme="dia"] .br__logo b { box-shadow: 0 0 0.6em var(--glow); }
html[data-theme="dia"] .br__links i { background: oklch(40% 0.06 252 / 0.2); }
html[data-theme="dia"] .br__hero { background: radial-gradient(70% 90% at 88% 6%, oklch(88% 0.07 220 / 0.75), transparent 62%), radial-gradient(60% 90% at 6% 100%, oklch(62% 0.15 258 / 0.55), transparent 72%), linear-gradient(140deg, oklch(56% 0.13 252), oklch(44% 0.12 256)); }
html[data-theme="dia"] .br__btn { color: oklch(99% 0.005 250); box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.4), 0 0.4em 1em -0.3em oklch(25% 0.1 258 / 0.45); background: linear-gradient(135deg, oklch(30% 0.08 258), oklch(22% 0.07 260)); }
html[data-theme="dia"] .br__cards i { background: oklch(100% 0 0 / 0.85); box-shadow: 0 0 0 1px oklch(45% 0.08 252 / 0.12) inset; }
html[data-theme="dia"] .br__cards b { background: linear-gradient(140deg, oklch(70% 0.11 240 / 0.6), oklch(52% 0.108 250 / 0.5)); }
html[data-theme="dia"] .br__cards s { background: oklch(40% 0.06 252 / 0.18); }
/* 2 · mensajes */
html[data-theme="dia"] .nt__i { box-shadow: var(--seq-edge), 0 1.2em 2.4em -1.6em var(--sh); }
html[data-theme="dia"] .nt__i--c { box-shadow: 0 0 0 1px oklch(52% 0.13 252 / 0.4) inset, 0 1.2em 2.4em -1.6em var(--sh), 0 0 2.4em -0.9em var(--glow-strong); }
html[data-theme="dia"] .nt__ico { color: oklch(99% 0.005 250); background: linear-gradient(140deg, var(--btn-a), var(--btn-c)); box-shadow: 0 0.3em 0.8em -0.3em var(--glow); }
html[data-theme="dia"] .nt__stars svg { fill: var(--brand); filter: drop-shadow(0 0.2em 0.4em var(--glow)); }
/* 3 · Google */
html[data-theme="dia"] .gs__q { box-shadow: 0 0 0 1px oklch(45% 0.1 252 / 0.22) inset, 0 0.8em 1.8em -1em var(--sh); }
html[data-theme="dia"] .gs__caret { box-shadow: none; }
html[data-theme="dia"] .gs__r { background: oklch(100% 0 0 / 0.6); box-shadow: 0 0 0 1px oklch(45% 0.08 252 / 0.1) inset; }
html[data-theme="dia"] .gs__u { background: oklch(48% 0.045 252 / 0.3); }
html[data-theme="dia"] .gs__t { background: oklch(52% 0.108 250 / 0.45); }
html[data-theme="dia"] .gs__d { background: oklch(40% 0.06 252 / 0.14); }
html[data-theme="dia"] .gs__card { background: linear-gradient(150deg, oklch(100% 0 0 / 0.98), oklch(95% 0.025 245 / 0.98)); box-shadow: 0 0 0 1px oklch(52% 0.13 252 / 0.45) inset, 0 1em 2em -1.1em var(--sh), 0 0 2.4em -0.8em var(--glow-strong); }
html[data-theme="dia"] .gs__card::before { box-shadow: 0 0 0 1.5px var(--brand) inset, 0 0 1.2em var(--glow) inset; }
html[data-theme="dia"] .gs__card::after { background: linear-gradient(100deg, transparent 25%, oklch(85% 0.08 230 / 0.6) 50%, transparent 75%); }
html[data-theme="dia"] .gs__pin { color: oklch(99% 0.005 250); }
html[data-theme="dia"] .gs__stars svg { fill: var(--brand); }
html[data-theme="dia"] .gs__go { box-shadow: 0 0 0 1px oklch(45% 0.12 252 / 0.45) inset; }
/* 4 · tareas */
html[data-theme="dia"] .td__box { box-shadow: 0 0 0 1.5px oklch(45% 0.1 252 / 0.45) inset; color: oklch(99% 0.005 250); }
html[data-theme="dia"] .td__box::before { box-shadow: 0 0.2em 0.6em -0.1em var(--glow); }
html[data-theme="dia"] .td__line { background: linear-gradient(90deg in oklch, var(--brand), var(--electric) 70%, var(--cyan)); box-shadow: 0 0 0.5em var(--glow); }
html[data-theme="dia"] .td__done::before { box-shadow: 0 0 0.5em 0.05em var(--glow); }
@keyframes q-ping-dia { 0% { filter: brightness(1); } 30% { filter: brightness(1.25) drop-shadow(0 0 0.6em var(--glow-strong)); } 100% { filter: brightness(1); } }
@media (prefers-reduced-motion: no-preference) {
  html[data-theme="dia"] .is-on .nt__i .nt__ico { animation-name: q-ping-dia; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-theme="dia"] .seq__scene, html[data-theme="dia"] .seq__scene:not(.is-on) { background: oklch(100% 0 0 / 0.45); box-shadow: 0 0 0 1px oklch(45% 0.08 252 / 0.12) inset; }
}


/* ==========================================================================
   TRABAJOS · espaciado y cabecera de la sección. El carrusel (tarjetas,
   anillo y pantalla) es compartido: core/carrusel.css + core/carrusel.js
   ========================================================================== */
.trab { padding: var(--sec) 0 calc(var(--sec) * 0.62); }
.trab__head h2 { font-size: clamp(2.6rem, 5.6vw, 5.75rem); letter-spacing: -0.03em; }
.trab__head .lead { margin-top: 18px; }

/* Tablet en vertical (561 a 900 px): el hero usa todo el ancho; antes el marco se quedaba en 560 px
   y la entradilla en 40 caracteres, y sobraba un tercio de pantalla a la derecha */
@media (min-width: 561px) and (max-width: 900px) {
  .seq { max-width: none; }
  .seq__stage { aspect-ratio: 16 / 10; }
  .hero__lead { max-width: 52ch; }
  .hero__title { font-size: clamp(3rem, 9.4vw, 5.4rem); }
}
/* pantallas bajas de escritorio (portátiles con escala): titular y entradilla algo más compactos para que
   los botones y el marco quepan en el primer pantallazo */
@media (min-width: 901px) and (max-height: 820px) {
  .hero__kicker { margin-bottom: clamp(10px, 1.8svh, 18px); }
  .hero__title { font-size: min(clamp(2.5rem, 4.4vw, 5.2rem), 10.5svh); }
  .hero__lead { font-size: clamp(1.0625rem, 0.45vw + 0.95rem, 1.3125rem); }
}

/* enlaces a las landings de zona dentro de la entradilla */
.hero__lead a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: color-mix(in oklch, currentColor 45%, transparent); text-underline-offset: 0.2em; }
.hero__lead a:hover, .hero__lead a:focus-visible { text-decoration-color: currentColor; }

/* Prototipo: bloque de colaboración con ESPACIO treinta30 dentro de la home Midnight.
   Usa los tokens de core/styles.css; el rojo de ET30 solo aparece como acento en el «×». */
:root { --et-red: oklch(60% 0.2 28); --et-cream: oklch(95% 0.015 80); }

/* Etiqueta «en colaboración» */
.colab-tag {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px;
  font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.colab-tag__x { color: var(--et-red); font-weight: 600; font-size: 1.05em; }

/* Sexta tarjeta del bento: ancho completo, horizontal */
.card--colab { grid-column: span 12; text-decoration: none; color: inherit; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; align-items: end; gap: 28px 40px; }
.card--colab .card__head { align-self: start; grid-column: 1; }
.card--colab .card__count { display: none; }
.colab-card__list { display: flex; flex-wrap: wrap; gap: 8px; align-self: center; }
.colab-card__list li {
  padding: 9px 16px; border-radius: 999px; font-size: 0.975rem; color: var(--ink-2);
  box-shadow: 0 0 0 1px var(--edge-strong) inset; background: oklch(70% 0.06 250 / 0.06);
}
.colab-card__go { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--cyan); font-weight: 500; }
.colab-card__go .ico { transition: transform 400ms var(--ease); }
.card--colab:hover .colab-card__go .ico { transform: translateX(4px); }

/* Sección */
.colab { position: relative; padding: clamp(96px, 12vw, 180px) 0; overflow: hidden; isolation: isolate; }
.colab__glow {
  position: absolute; inset: -20% -10% auto; height: 80%; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 50% at 30% 30%, oklch(52% 0.108 250 / 0.22), transparent 70%),
              radial-gradient(40% 40% at 80% 20%, oklch(60% 0.2 28 / 0.07), transparent 70%);
}
.colab__brands { display: flex; align-items: center; gap: clamp(18px, 3vw, 36px); margin-bottom: clamp(36px, 5vw, 64px); }
.colab__logo { display: block; }
.colab__logo img { height: auto; display: block; }
.colab__logo .logo-dia { display: none; }
html[data-theme="dia"] .colab__logo .logo-noche { display: none; }
html[data-theme="dia"] .colab__logo .logo-dia { display: block; }
.colab__logo--ins img { width: clamp(130px, 14vw, 190px); }
.colab__logo--et img { width: clamp(140px, 15vw, 210px); }
.colab__logo--et { transition: opacity 300ms var(--ease); }
.colab__logo--et:hover { opacity: 0.8; }
.colab__x { font-size: clamp(1.6rem, 2.4vw, 2.4rem); font-weight: 200; color: var(--et-red); line-height: 1; }
.colab__head .lead { max-width: 60ch; }

.colab__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.colab-svc {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 2.4vw, 36px);
  border-radius: var(--r); background: linear-gradient(165deg, var(--g1), var(--g2));
  box-shadow: 0 0 0 1px oklch(60% 0.07 252 / 0.18) inset, 0 30px 60px -40px var(--sh);
}
.colab-svc__n { font-size: 0.875rem; color: var(--muted); letter-spacing: 0.06em; }
.colab-svc h3 { font-size: clamp(1.4rem, 1.8vw, 1.9rem); }
.colab-svc p { color: var(--ink-2); line-height: 1.5; margin: 0; }
.colab-svc--cta { justify-content: space-between; background: var(--contact-bg); }
.colab-svc--cta p { font-size: clamp(1.3rem, 1.6vw, 1.7rem); color: var(--ink); line-height: 1.25; }
.colab-svc--cta .btn { align-self: flex-start; }

.colab__how { margin-top: clamp(64px, 8vw, 112px); }
.colab__how-title { font-size: clamp(1.6rem, 2.4vw, 2.4rem); margin-bottom: 28px; }
.colab__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--rule); }
.colab__steps li { display: flex; gap: 18px; padding-top: 28px; }
.colab__steps .num {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  box-shadow: 0 0 0 1px var(--edge-strong) inset; color: var(--sky); font-weight: 500;
}
.colab__steps h4 { font-size: 1.2rem; margin-bottom: 6px; }
.colab__steps p { color: var(--muted); line-height: 1.5; margin: 0; }

.colab__proof { margin-top: clamp(56px, 7vw, 96px); padding-top: 28px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr); gap: 24px 40px; align-items: start; }
.colab__proof-lead { color: var(--muted); font-size: 0.95rem; margin: 0; }
.colab__marcas { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.colab__marcas li { font-size: clamp(1.05rem, 1.3vw, 1.3rem); color: var(--ink-2); font-weight: 500; letter-spacing: -0.01em; }

@media (max-width: 960px) {
  .card--colab { grid-template-columns: 1fr; align-items: start; }
  .colab__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .colab__steps { grid-template-columns: 1fr; gap: 0; }
  .colab__proof { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .card--colab { grid-column: auto; }
  .colab__grid { grid-template-columns: 1fr; }
}
.colab-svc h3 a.colab-svc__link { color: inherit; text-decoration: none; }
.colab-svc h3 a.colab-svc__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.colab-svc:has(.colab-svc__link) { transition: box-shadow 500ms var(--ease), transform 450ms var(--ease); }
.colab-svc:has(.colab-svc__link:hover), .colab-svc:has(.colab-svc__link:focus-visible) { transform: translateY(-3px); box-shadow: 0 0 0 1px oklch(78% 0.09 240 / 0.4) inset, 0 40px 80px -40px var(--glow-strong); }
.colab-svc:has(.colab-svc__link) p::after { content: " →"; color: var(--cyan); }
.colab__visit { margin-top: 8px; }
