:root {
  --negro: #0a0a0a;
  --negro-suave: #1a1a1a;
  --gris-oscuro: #2d2d2d;
  --gris-medio: #6b6b6b;
  --gris-claro: #a3a3a3;
  --blanco: #fafafa;
  --hueso: #f5f0eb;
  --naranja: #c4703f;
  --naranja-oscuro: #a85a2f;
  --rec: #ff453a;
  --display: 'Space Grotesk', -apple-system, 'Helvetica Neue', sans-serif;
  --body: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;
  --mono: 'Space Mono', ui-monospace, Menlo, monospace;
  --max: 1200px;
  /* Movimiento: salidas rápidas y desaceleradas, nunca rebotes. */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 600ms;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 1rem; line-height: 1.7; color: var(--negro); background: var(--blanco); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.025em; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--naranja); }
.btn { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--display); font-weight: 700; font-size: 0.95rem; padding: 0.85rem 1.35rem; border-radius: 4px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), transform 120ms var(--ease-out); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--naranja); color: var(--blanco); }
.btn-primary:hover { background: var(--naranja-oscuro); }
.btn-secondary { border-color: rgba(196, 112, 63, 0.7); color: var(--naranja); }
.btn-secondary:hover { border-color: var(--naranja); background: rgba(196, 112, 63, 0.1); }
.btn[aria-disabled='true'] { opacity: 0.45; pointer-events: none; }
.btn small { font-family: var(--body); font-weight: 400; font-size: 0.8rem; opacity: 0.85; }
:focus-visible { outline: 2px solid var(--naranja); outline-offset: 3px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(10, 10, 10, 0.72); backdrop-filter: saturate(140%) blur(14px); color: var(--blanco); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.nav .wrap { display: flex; align-items: center; gap: 1.5rem; height: 60px; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--display); font-weight: 700; text-decoration: none; }
.brand img { width: 24px; height: 24px; }
.nav-links { margin-left: auto; display: flex; gap: 1.25rem; align-items: center; font-size: 0.9rem; }
.nav-links a { text-decoration: none; color: var(--gris-claro); transition: color 200ms var(--ease-out); }
.nav-links a:hover { color: var(--blanco); }
.nav-links .btn { padding: 0.5rem 0.95rem; font-size: 0.85rem; }

/* hero */
.hero { position: relative; background: var(--negro); color: var(--blanco); overflow: hidden; padding: 5.5rem 0 0; }
.hero::before { content: ''; position: absolute; inset: 0; background: url('assets/textura-grano.svg'); opacity: 0.045; pointer-events: none; }
.hero .glow { position: absolute; width: 900px; height: 900px; right: -300px; top: -400px; border-radius: 50%; background: radial-gradient(closest-side, rgba(196, 112, 63, 0.22), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 5fr 7fr; gap: 3.5rem; align-items: end; }
.hero-copy { padding-bottom: 4.5rem; }
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); font-weight: 700; letter-spacing: -0.035em; margin: 1rem 0 1.25rem; }
.hero h1 .dot { color: var(--naranja); }
.hero .lead { color: var(--gris-claro); font-size: 1.08rem; max-width: 30rem; }
.downloads { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.meta { margin-top: 1.1rem; font-size: 0.85rem; color: var(--gris-medio); }
.meta details { margin-top: 0.4rem; }
.meta summary { cursor: pointer; color: var(--gris-claro); }

/* la escena: la plataforma con el grabador flotando encima */
.scene { position: relative; align-self: end; }
.screen { position: relative; border-radius: 10px 10px 0 0; overflow: hidden; background: #0f0f10; border: 1px solid rgba(255, 255, 255, 0.1); border-bottom: 0; box-shadow: 0 -20px 80px rgba(0, 0, 0, 0.55); }
.screen .bar { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #151517; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.screen .bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a3c; display: block; }
.screen .bar i:nth-child(1) { background: #ff5f57; } .screen .bar i:nth-child(2) { background: #febc2e; } .screen .bar i:nth-child(3) { background: #28c840; }
.screen img, .screen video { display: block; width: 100%; height: auto; }
.screen video { aspect-ratio: 1600 / 1085; object-fit: cover; }
.pill { position: absolute; right: -18px; top: 62px; display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 22px; background: rgba(28, 28, 30, 0.96); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.5); backdrop-filter: blur(20px); font-family: var(--body); }
.pill .rec { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 69, 58, 0.15); display: grid; place-items: center; }
.pill .rec i { width: 16px; height: 16px; border-radius: 50%; background: var(--rec); display: block; transition: border-radius 300ms var(--ease-out), transform 300ms var(--ease-out); }
.pill.on .rec i { border-radius: 3px; transform: scale(0.8); }
.pill .state { display: flex; flex-direction: column; min-width: 0; padding: 0 6px; }
.pill .time { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; line-height: 1.1; }
.pill .wave { display: flex; gap: 2px; align-items: flex-end; height: 12px; margin-top: 4px; }
.pill .wave b { width: 3px; height: 4px; border-radius: 2px; background: var(--rec); opacity: 0.85; transform-origin: bottom; }
.pill.on .wave b { animation: wave 900ms ease-in-out infinite alternate; }
.pill .wave b:nth-child(2) { animation-delay: -150ms; } .pill .wave b:nth-child(3) { animation-delay: -300ms; } .pill .wave b:nth-child(4) { animation-delay: -450ms; } .pill .wave b:nth-child(5) { animation-delay: -600ms; } .pill .wave b:nth-child(6) { animation-delay: -750ms; }
@keyframes wave { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }
.pill .icons { display: flex; gap: 2px; padding-right: 4px; }
.pill .icons span { width: 30px; height: 30px; display: grid; place-items: center; color: rgba(255, 255, 255, 0.7); border-radius: 8px; }
.pill .icons svg { width: 15px; height: 15px; }

/* secuencia de entrada: una sola, al cargar el hero */
.rise { opacity: 0; transform: translateY(14px); filter: blur(6px); animation: rise var(--dur) var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
@keyframes rise { to { opacity: 1; transform: none; filter: blur(0); } }
.scene .rise { --d: 260ms; }
.pill.rise { transform: translateY(10px) scale(0.92); --d: 700ms; animation-duration: 700ms; }

/* secciones */
section { padding: 6rem 0; }
.hueso { background: var(--hueso); }
.negro { background: var(--negro); color: var(--blanco); }
.negro h2, .negro h3 { color: var(--blanco); }
.negro p, .negro li { color: var(--gris-claro); }
.section-head { max-width: 42rem; margin-bottom: 3rem; }
.section-head p { margin-top: 0.8rem; color: var(--gris-medio); font-size: 1.05rem; }
.negro .section-head p { color: var(--gris-claro); }

/* la historia: tres momentos, imágenes reales, filas asimétricas */
.moment { display: grid; grid-template-columns: 5fr 7fr; gap: 3rem; align-items: center; }
.moment + .moment { margin-top: 5rem; }
.moment:nth-child(even) { grid-template-columns: 7fr 5fr; }
.moment:nth-child(even) .moment-copy { order: 2; }
.moment-copy h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.moment-copy p { color: var(--gris-medio); max-width: 28rem; }
.moment-copy .n { font-family: var(--mono); font-size: 0.72rem; color: var(--naranja); letter-spacing: 0.15em; margin-bottom: 0.9rem; display: block; }
.shot { border-radius: 8px; overflow: hidden; border: 1px solid rgba(0, 0, 0, 0.08); box-shadow: 0 30px 80px rgba(10, 10, 10, 0.16); background: #0f0f10; }
.shot img { display: block; width: 100%; height: auto; }
.shot.pill-shot { background: transparent; border: 0; box-shadow: none; display: flex; justify-content: center; padding: 3rem 0; }
.shot.pill-shot img { width: 260px; filter: drop-shadow(0 30px 50px rgba(10, 10, 10, 0.35)); }
/* aparición al hacer scroll: solo estos tres bloques, una vez */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* requisitos */
.req { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem 2.5rem; max-width: 60rem; }
.req li { padding-left: 1.4rem; position: relative; color: var(--gris-medio); }
.req li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 7px; height: 7px; border-radius: 50%; background: var(--naranja); }
.req li b { color: var(--negro); font-weight: 600; }

/* instalar */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; }
.two h3 { margin-bottom: 1.1rem; }
.steps { counter-reset: paso; list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.steps li { counter-increment: paso; position: relative; padding-left: 2.9rem; }
.steps li::before { content: counter(paso); position: absolute; left: 0; top: 0.15em; width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 0.78rem; background: var(--naranja); color: var(--blanco); }
.steps b { color: inherit; font-weight: 600; }
.negro .steps b { color: var(--blanco); }
code { font-family: var(--mono); font-size: 0.82em; }
.code { display: block; font-family: var(--mono); font-size: 0.82rem; background: var(--gris-oscuro); color: var(--blanco); padding: 0.9rem 1.1rem; border-radius: 4px; margin-top: 1rem; overflow-x: auto; white-space: nowrap; }
.callout { border-left: 3px solid var(--naranja); padding: 0.9rem 1.2rem; background: rgba(196, 112, 63, 0.08); border-radius: 0 4px 4px 0; color: var(--gris-medio); }
.callout b { color: var(--negro); }

footer { background: var(--negro); color: var(--gris-medio); padding: 2.5rem 0; font-size: 0.85rem; border-top: 1px solid rgba(255, 255, 255, 0.06); }
footer .wrap { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
footer img { width: 20px; height: 20px; }
footer .right { margin-left: auto; }

@media (max-width: 880px) {
  section { padding: 3.75rem 0; }
  .hero { padding-top: 3.5rem; }
  .hero .wrap, .two, .req, .moment, .moment:nth-child(even) { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 2.5rem; }
  .moment:nth-child(even) .moment-copy { order: 0; }
  .pill { right: 8px; top: 46px; transform: scale(0.85); transform-origin: top right; }
  .pill.rise { transform: translateY(10px) scale(0.78); }
  .nav-links a:not(.btn) { display: none; }
  .downloads .btn { flex: 1 1 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .rise, .reveal { opacity: 1; transform: none; filter: none; animation: none; transition: none; }
  .pill.on .wave b { animation: none; transform: scaleY(0.6); }
  html { scroll-behavior: auto; }
}

/* Los hijos de grillas no se ensanchan por el ancho intrínseco de las capturas. */
.hero .wrap > *, .moment > *, .two > * { min-width: 0; }
.screen img, .shot img { max-width: 100%; }
