:root {
  --bg: #07080b;
  --panel: #0e1015;
  --line: rgb(244 241 234 / .1);
  --field: #6b7080;
  --text: #f4f1ea;
  --muted: #a9adba;
  --accent: #5ff0bc;
  --accent-2: #8fb4ff;
  --on-accent: #04130d;
  --error: #ffaaaa;
  --grad: linear-gradient(100deg, var(--accent), var(--accent-2));
  --head: "Inter Tight", "Inter", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --script: "Dancing Script", "Segoe Script", cursive;
  --body: "Inter", system-ui, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.7 var(--body); overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
/* grano sutil */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 30; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.08; margin: 0 0 1rem; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7.4vw, 6rem); letter-spacing: -.045em; max-width: 13ch; margin-inline: auto; }
h2 { font-size: clamp(2.1rem, 5vw, 3.75rem); letter-spacing: -.035em; }
h3 { font-size: 1.3rem; letter-spacing: -.015em; }
h1 em, h2 em, .demo h3 em { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
p { margin: 0 0 1rem; color: var(--muted); }
a { color: inherit; }
ul, ol, dl, dd, figure { list-style: none; margin: 0; padding: 0; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
section { padding: clamp(5rem, 11vw, 9.5rem) 0 0; }
.kicker { display: flex; align-items: center; gap: .75rem; color: var(--accent); font-size: .8125rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.kicker::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.head { margin-bottom: 3.5rem; max-width: 760px; }
.big { font-size: 1.2rem; color: var(--text); }
.skip { position: absolute; left: 1rem; top: -5rem; background: var(--accent); color: var(--on-accent); padding: .75rem 1rem; border-radius: 8px; z-index: 40; }
.skip:focus { top: 1rem; }

/* navegación */
.top { position: fixed; z-index: 20; inset: 14px 0 auto; }
.top-in { width: min(1180px, 100% - 1.5rem); margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: 66px; padding: 0 .75rem 0 1.5rem; border: 1px solid var(--line); border-radius: 22px; background: rgb(10 11 15 / .78); backdrop-filter: blur(18px) saturate(140%); }
.logo, .firma, .giant { font-family: var(--script); font-weight: 700; }
.logo { font-size: 2rem; line-height: 1; text-decoration: none; padding: .35rem 0 .55rem; }
nav { display: flex; align-items: center; gap: 2rem; }
nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: .9375rem; padding: .7rem 0; transition: color .2s; }
nav a:not(.btn):hover { color: var(--text); }
.menu-btn { display: none; width: 44px; height: 44px; place-items: center; background: none; border: 1px solid var(--line); border-radius: 12px; color: var(--text); cursor: pointer; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 52px; padding: .8rem 1.7rem; border: 1px solid transparent; border-radius: 999px; background: var(--text); color: var(--bg); font: 600 .9688rem var(--body); text-decoration: none; cursor: pointer; transition: transform .25s, box-shadow .25s, background-color .25s; }
.btn:hover { background: var(--accent); color: var(--on-accent); transform: translateY(-2px); box-shadow: 0 14px 40px -14px var(--accent); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-ghost { background: rgb(255 255 255 / .03); color: var(--text); border-color: var(--field); }
.btn-ghost:hover { background: rgb(255 255 255 / .08); color: var(--text); box-shadow: none; }
.btn-small { min-height: 44px; padding: .5rem 1.25rem; }

/* portada */
.hero { position: relative; isolation: isolate; padding: 150px 0 5rem; text-align: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 72px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 72px 100%; -webkit-mask-image: radial-gradient(60% 60% at 50% 35%, #000, transparent); mask-image: radial-gradient(60% 60% at 50% 35%, #000, transparent); }
.aurora { position: absolute; inset: 0; z-index: -1; }
.aurora i { position: absolute; width: min(620px, 90vw); aspect-ratio: 1; border-radius: 50%; opacity: .22; background: radial-gradient(closest-side, var(--accent), transparent); }
.aurora i:nth-child(1) { top: -18%; left: 4%; }
.aurora i:nth-child(2) { top: 4%; right: -6%; background: radial-gradient(closest-side, var(--accent-2), transparent); }
.aurora i:nth-child(3) { bottom: -35%; left: 32%; background: radial-gradient(closest-side, #a78bfa, transparent); opacity: .16; }
.pill { display: inline-flex; align-items: center; gap: .65rem; padding: .5rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: rgb(255 255 255 / .04); color: var(--text); font-size: .8438rem; line-height: 1.5; }
.dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.firma { width: fit-content; margin: .5rem auto 0; padding: 0 .2em; font-size: clamp(3.5rem, 11vw, 7.5rem); line-height: 1.35; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 60ch; margin: 1.5rem auto 0; font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .85rem; margin-top: 2.25rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 4.5rem; border: 1px solid var(--line); border-radius: 24px; background: rgb(255 255 255 / .025); }
.stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 1.75rem 1rem; }
.stats div + div { border-left: 1px solid var(--line); }
.stats dd { font: 600 clamp(1.8rem, 3.6vw, 2.75rem)/1.2 var(--head); letter-spacing: -.03em; }
.stats small { display: block; font: 400 .9375rem var(--body); letter-spacing: 0; }
.stats dt { margin-top: .6rem; color: var(--muted); font-size: .8125rem; }

.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 1.35rem 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12% 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12% 88%, transparent); }
.marquee > div { display: flex; width: max-content; }
.marquee ul { display: flex; }
.marquee li { display: flex; align-items: center; gap: 2.5rem; padding-right: 2.5rem; font: 500 1.05rem var(--head); color: var(--muted); white-space: nowrap; }
.marquee li::after { content: ""; width: 5px; height: 5px; background: var(--accent); transform: rotate(45deg); }

/* sobre mí */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
.demo { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; margin-top: clamp(3.5rem, 8vw, 6rem); }
.demo h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
/* El video es vertical con franjas: se muestra solo la zona de las dos cámaras. */
.pantalla { position: relative; aspect-ratio: 656 / 276; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 40px 100px -40px rgb(95 240 188 / .35); }
.pantalla video { position: absolute; width: 109.756%; max-width: none; height: auto; left: -6.098%; top: -183.333%; }
.photo { position: sticky; top: 120px; text-align: center; }
.photo > div { width: min(100%, 380px); margin-inline: auto; padding: 10px; border-radius: 50%; background: conic-gradient(from 210deg, var(--accent), var(--accent-2), transparent 55%, var(--accent)); box-shadow: 0 40px 100px -40px rgb(95 240 188 / .45); }
.photo img { display: block; width: 100%; height: auto; border-radius: 50%; border: 8px solid var(--bg); }
.photo figcaption { margin-top: 1.5rem; }
.photo b { display: block; font: 600 1.4rem var(--head); }
.photo span { color: var(--muted); font-size: .9375rem; }
.timeline { margin-top: 2.75rem; }
.timeline li { position: relative; padding: 0 0 2rem 2rem; border-left: 1px solid var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: .45rem; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.timeline span { display: block; color: var(--accent); font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.timeline b { display: block; font: 600 1.1rem/1.45 var(--head); margin: .35rem 0; }
.timeline p { margin: 0; }

/* tarjetas con luz que sigue al cursor */
.card, .project, .certs li, form { position: relative; border: 1px solid var(--line); border-radius: 26px; background: radial-gradient(420px circle at var(--x, 50%) var(--y, -200px), rgb(95 240 188 / .09), transparent 65%), linear-gradient(160deg, #12151c, var(--panel) 60%); }
.card, .certs li, .project { transition: border-color .3s; }
.card:hover, .certs li:hover, .project:hover { border-color: rgb(95 240 188 / .45); }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.1rem; }
.card { display: flex; flex-direction: column; padding: 2rem; min-height: 260px; }
.card p { margin-bottom: 0; }
.w2 { grid-column: span 2; }
.w3 { grid-column: span 3; }
.w4 { grid-column: span 4; }
.w6 { grid-column: span 6; min-height: 0; }
.w4 p, .w6 p { max-width: 52ch; }
.idiomas { display: flex; align-items: center; }
.idiomas a { display: grid; place-items: center; min-width: 32px; min-height: 44px; font-size: .8125rem; }
nav .idiomas a[aria-current] { color: var(--accent); }
.mas { margin: 2.25rem 0 0; text-align: center; font: italic 400 clamp(1.5rem, 3vw, 2.1rem) var(--serif); color: var(--accent); }
.listos { border-color: rgb(95 240 188 / .45); }
.listos .btn { align-self: flex-start; margin-top: 1.5rem; }
.num { margin-bottom: auto; padding-bottom: 2rem; font: italic 2rem/1 var(--serif); color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.tags li { padding: .25rem .8rem; border: 1px solid var(--line); border-radius: 999px; font-size: .8125rem; color: var(--muted); }

.project { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; margin-bottom: 1.5rem; }
.art { display: grid; place-items: center; min-height: 340px; padding: 2rem; background: radial-gradient(closest-side, rgb(95 240 188 / .17), transparent), radial-gradient(var(--line) 1px, transparent 1px) 0 0 / 22px 22px; color: var(--accent); }
.art svg { width: min(100%, 400px); height: auto; stroke-width: 1.4; }
.art .soft { stroke: var(--accent-2); }
.art circle { fill: var(--panel); }
.residuo { opacity: 0; stroke: var(--accent-2); }
.info { align-self: center; padding: clamp(1.75rem, 5vw, 4rem); }
.info h3 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.035em; }
.award { color: var(--accent); font-size: .875rem; font-weight: 600; }
.flip .art { order: 2; }
.link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 1rem; font-weight: 600; text-underline-offset: 6px; }
.link:hover { color: var(--accent); }

.certs { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.certs li { display: grid; grid-template-columns: 92px 1fr; gap: 1.25rem; align-items: start; padding: 1.75rem; }
.certs span { display: grid; place-items: center; height: 44px; border: 1px solid var(--line); border-radius: 12px; font: 600 .9375rem var(--head); background: rgb(255 255 255 / .04); }
.certs h3 { font-size: 1.1rem; line-height: 1.35; margin-bottom: .4rem; }
.certs p { margin: 0; font-size: .9375rem; }
.otras { margin: 2.25rem 0 0; }
.otras > div { display: grid; grid-template-columns: 92px 1fr; gap: 1.25rem; padding: 1.25rem 1.75rem; border-top: 1px solid var(--line); }
.otras dt { font: 600 .9375rem/2 var(--head); }
.otras dd { margin: 0; }
.otras .tags { margin: 0; padding: 0; }
.mas a { color: inherit; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: paso; }
.steps li { counter-increment: paso; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.steps li::before { content: "0" counter(paso); display: block; margin-bottom: 1.25rem; font: italic 3rem/1 var(--serif); color: var(--accent); }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.direct { margin-top: 2.5rem; }
.direct a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding: .85rem 0; border-top: 1px solid var(--line); text-decoration: none; transition: color .2s; }
.direct a:hover { color: var(--accent); }
.direct span { display: flex; align-items: center; gap: .95rem; color: var(--muted); }
/* Iconos de contacto tipo "liquid glass": vidrio gris que se tiñe con el color de cada app
   al pasar el puntero (o siempre, si no hay puntero). */
.direct a { align-items: center; }
.ico { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; color: #d7dae2;
  background: linear-gradient(155deg, rgb(255 255 255 / .17), rgb(255 255 255 / .03) 52%, rgb(255 255 255 / .1));
  -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / .45), inset 0 -1px 1px rgb(255 255 255 / .18), inset 0 0 0 1px rgb(255 255 255 / .07), 0 8px 18px rgb(0 0 0 / .45);
  transition: translate .35s cubic-bezier(.34, 1.56, .64, 1), scale .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .35s; }
.ico::before, .ico::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.ico::before { z-index: -1; background: var(--marca); opacity: 0; transition: opacity .3s; }
/* Brillo del vidrio: reflejo arriba y borde luminoso en las esquinas. */
.ico::after { background: linear-gradient(180deg, rgb(255 255 255 / .28), rgb(255 255 255 / .06) 45%, transparent 55%), radial-gradient(120% 70% at 50% 118%, rgb(255 255 255 / .28), transparent 60%);
  box-shadow: inset 1px 1px 1px -0.5px rgb(255 255 255 / .7), inset -1px -1px 1px -0.5px rgb(255 255 255 / .45); }
.marca { width: 27px; height: 27px; fill: currentColor; stroke: none; filter: drop-shadow(0 1px 1px rgb(0 0 0 / .28)); }
.ico-gm .marca { width: 29px; height: 22px; }
.ico-in .marca { width: 34px; height: 34px; }
.marca, .marca * { transition: fill .3s; }
.ico-wa { --marca: linear-gradient(180deg, #66fb7e, #08b92a); }
.ico-gm { --marca: linear-gradient(180deg, #fff, #e9edf3); }
.ico-in { --marca: linear-gradient(180deg, #2b93ef, #0a58a8); }
.ico-gh { --marca: linear-gradient(180deg, #464e59, #0b0e13); }
.direct a:is(:hover, :focus-visible) .ico { translate: 0 -3px; scale: 1.1; box-shadow: inset 0 1px 1px rgb(255 255 255 / .55), 0 14px 26px rgb(0 0 0 / .55); }
.direct a:is(:hover, :focus-visible) .ico::before { opacity: 1; }
.direct a:is(:hover, :focus-visible) .ico-wa, .direct a:is(:hover, :focus-visible) .ico-in, .direct a:is(:hover, :focus-visible) .ico-gh { color: #fff; }
.direct a:is(:hover, :focus-visible) .g1 { fill: #4285f4; }
.direct a:is(:hover, :focus-visible) .g2 { fill: #34a853; }
.direct a:is(:hover, :focus-visible) .g3 { fill: #fbbc04; }
.direct a:is(:hover, :focus-visible) .g4 { fill: #ea4335; }
.direct a:is(:hover, :focus-visible) .g5 { fill: #c5221f; }
@media (hover: none) {
  .direct .ico::before { opacity: 1; }
  .direct .ico-wa, .direct .ico-in, .direct .ico-gh { color: #fff; }
  .direct .g1 { fill: #4285f4; }
  .direct .g2 { fill: #34a853; }
  .direct .g3 { fill: #fbbc04; }
  .direct .g4 { fill: #ea4335; }
  .direct .g5 { fill: #c5221f; }
}
.direct b { font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
form { display: grid; padding: clamp(1.35rem, 4vw, 2.5rem); }
label { font-size: .875rem; font-weight: 500; margin-bottom: .4rem; }
input, select, textarea { width: 100%; min-width: 0; min-height: 52px; margin-bottom: 1.25rem; padding: .8rem 1rem; font: 1rem var(--body); color: var(--text); background: var(--bg); border: 1px solid var(--field); border-radius: 14px; }
textarea { resize: vertical; }
input:user-invalid, textarea:user-invalid { border-color: var(--error); }
#estado { margin: 1rem 0 0; min-height: 1.7em; color: var(--accent); }

footer { margin-top: clamp(5rem, 11vw, 9rem); overflow: hidden; border-top: 1px solid var(--line); padding: 2rem 0; text-align: center; }
.giant { width: fit-content; max-width: 100%; margin: 0 auto; padding-inline: .25em; font-size: clamp(4.5rem, 21vw, 17rem); line-height: 1.3; background: linear-gradient(100deg, transparent, var(--accent) 35%, #fff 50%, var(--accent-2) 65%, transparent) -66.7% 0 / 40% 100% no-repeat, linear-gradient(var(--text), rgb(244 241 234 / .08)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; color: var(--muted); font-size: .875rem; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 960px) {
  .about, .contact, .project, .demo { grid-template-columns: minmax(0, 1fr); }
  .photo { position: static; }
  .flip .art { order: 0; }
  .art { min-height: 260px; }
  .w2 { grid-column: span 3; }
  .w4, .w6 { grid-column: span 6; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .js .menu-btn { display: grid; }
  .js nav { display: none; }
  .js nav.open { display: flex; }
  nav { width: 100%; flex-direction: column; align-items: stretch; gap: .25rem; padding: .5rem .75rem 1rem 0; }
  html:not(.js) .top { position: absolute; }
  html:not(.js) .hero { padding-top: 360px; }
}
@media (max-width: 640px) {
  .stats, .certs, .steps { grid-template-columns: minmax(0, 1fr); }
  .stats div + div { border-left: 0; border-top: 1px solid var(--line); }
  .w2, .w3 { grid-column: span 6; }
  .card { min-height: 0; }
  .certs li { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .certs span { width: 92px; }
  .otras > div { grid-template-columns: minmax(0, 1fr); gap: .5rem; padding-inline: 0; }
  .actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  /* Brillo que recorre la firma del pie, de la j a la o. */
  .giant { animation: brillo 3.6s ease-in-out infinite; }
  @keyframes brillo { 0% { background-position: -66.7% 0, 0 0; } 80%, 100% { background-position: 166.7% 0, 0 0; } }
  .hero-in > * { animation: entrar .9s cubic-bezier(.16, 1, .3, 1) both; }
  .hero-in > :nth-child(3) { animation-delay: .35s; }
  .hero-in > :nth-child(4) { animation-delay: .45s; }
  .hero-in > :nth-child(5) { animation-delay: .55s; }
  .hero-in > :nth-child(6) { animation-delay: .65s; }
  .hero-in > .firma { animation: escribir 1.8s .15s cubic-bezier(.6, 0, .3, 1) both; }
  .aurora i { animation: flotar 16s ease-in-out infinite alternate; }
  .aurora i:nth-child(2) { animation-delay: -7s; }
  .marquee > div { animation: correr 40s linear infinite; }
  .hero::before { animation: cuadricula 6s linear infinite; }
  .js .reveal { opacity: 0; translate: 0 28px; transition: opacity .8s cubic-bezier(.16, 1, .3, 1), translate .8s cubic-bezier(.16, 1, .3, 1), border-color .3s; }
  .js .reveal.visible { opacity: 1; translate: 0 0; }
  @keyframes entrar { from { opacity: 0; translate: 0 24px; } }
  @keyframes escribir { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes flotar { to { transform: translate(60px, 50px) scale(1.15); } }
  @keyframes cuadricula { to { background-position: 72px 72px; } }
  @keyframes correr { to { transform: translateX(-50%); } }
  /* dibujos de proyectos */
  .tapa { transform-origin: 95px 76px; animation: tapa 4s ease-in-out infinite; }
  .residuo { animation: caer 4s ease-in infinite; }
  .nivel { transform-origin: 160px 187px; animation: llenar 2s ease-in-out infinite alternate; }
  .nivel + .nivel { animation-delay: -1.4s; }
  .nivel + .nivel + .nivel { animation-delay: -.7s; }
  .onda { animation: senal 2s ease-in-out infinite; }
  .onda + .onda { animation-delay: .35s; }
  .dedo { --giro: 16deg; transform-origin: 150px 215px; animation: flexionar 3.6s ease-in-out infinite; }
  .dedo:nth-of-type(2) { --giro: 7deg; animation-delay: .15s; }
  .dedo:nth-of-type(3) { --giro: 0deg; animation-delay: .3s; }
  .dedo:nth-of-type(4) { --giro: -8deg; animation-delay: .45s; }
  .dedo:nth-of-type(5) { --giro: -16deg; animation-delay: .6s; }
  .pulso { transform-origin: 150px 215px; animation: latir 1.8s ease-in-out infinite; }
  .linea { stroke-dasharray: 1; animation: trazar 4s ease-in-out infinite; }
  .caja { animation: activar 3s ease-in-out infinite; }
  .caja + .caja { animation-delay: .4s; }
  .caja + .caja + .caja { animation-delay: .8s; }
  .luz { animation: senal 1.8s ease-in-out infinite; }
  .luz + .luz { animation-delay: .25s; }
  .luz + .luz + .luz { animation-delay: .5s; }
  @keyframes tapa { 0%, 15%, 70%, 100% { transform: none; } 30%, 55% { transform: rotate(-22deg); } }
  @keyframes caer { 0%, 25% { opacity: 0; translate: 0 -30px; } 35% { opacity: 1; } 55% { opacity: 1; translate: 0 70px; } 62%, 100% { opacity: 0; translate: 0 90px; } }
  @keyframes llenar { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
  @keyframes senal { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
  @keyframes flexionar { 0%, 100% { transform: none; } 50% { transform: rotate(var(--giro)) scale(.84); } }
  @keyframes latir { 50% { transform: scale(1.35); } }
  @keyframes trazar { 0% { stroke-dashoffset: 1; opacity: 1; } 55%, 85% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
  @keyframes activar { 0%, 45%, 100% { fill: transparent; translate: 0 0; } 20% { fill: rgb(95 240 188 / .22); translate: 0 -5px; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .marquee > div { width: auto; }
  .marquee ul { flex-wrap: wrap; justify-content: center; row-gap: .5rem; }
  .marquee ul + ul { display: none; }
}
