/* MontajIA — landing. Misma identidad que la app: sala de montaje oscura, degradado del logo
   (cian → azul → magenta → naranja) y detalles en monoespaciada tipo timecode. */
:root {
  --bg: #060a17;
  --bg-2: #0b1124;
  --ink: #eef1ff;
  --text-2: #c3c8de;
  --muted: #8a91ad;
  --cyan: #22d3ee;
  --magenta: #c13cff;
  --grad: linear-gradient(120deg, #22d3ee 0%, #3b6bff 34%, #c13cff 68%, #ff9a3c 100%);
  --grad-soft: linear-gradient(120deg, rgba(34, 211, 238, 0.14), rgba(193, 60, 255, 0.14));
  --line: rgba(255, 255, 255, 0.1);
  --glass: rgba(255, 255, 255, 0.045);
  --rim: rgba(255, 255, 255, 0.14);
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --display: "Sora", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* halos del logo sobre el negro */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40vw 40vw at 85% 5%, rgba(193, 60, 255, 0.18), transparent 70%),
    radial-gradient(45vw 45vw at 5% 35%, rgba(34, 211, 238, 0.12), transparent 70%),
    radial-gradient(40vw 40vw at 70% 95%, rgba(255, 154, 60, 0.1), transparent 70%);
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; margin: 0; }
p { margin: 0; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }

/* ---------- navegación ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(6, 10, 23, 0.72);
  backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.35rem; }
.logo img { width: 36px; height: 36px; border-radius: 10px; mix-blend-mode: screen; }
.nav nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 26px); font-size: 0.92rem; }
.nav nav a { text-decoration: none; color: var(--text-2); }
.nav nav a:hover { color: var(--ink); }
.nav nav a.btn { color: var(--ink); }
@media (max-width: 680px) { .nav nav a:not(.btn) { display: none; } }

/* ---------- botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--rim);
  border-radius: 999px;
  background: var(--glass);
  font-weight: 600;
  text-decoration: none;
  transition: transform 200ms var(--ease), border-color 160ms ease, box-shadow 200ms ease;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.3); }
.btn.sm { min-height: 38px; padding: 0 16px; font-size: 0.9rem; }
.btn.lg { min-height: 58px; padding: 0 30px; font-size: 1.1rem; }
.btn.primary { border-color: transparent; background: var(--grad); color: #fff; box-shadow: 0 10px 34px rgba(124, 77, 255, 0.45); }
.btn i { font-size: 1.2em; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- portada ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 96px) clamp(16px, 4vw, 48px) clamp(40px, 6vw, 72px);
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--cyan); font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; }
.rec { width: 9px; height: 9px; border-radius: 50%; background: #ff4d5e; box-shadow: 0 0 12px #ff4d5e; animation: rec 1.6s infinite; }
@keyframes rec { 50% { opacity: 0.3; } }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); line-height: 1.02; }
.lead { margin: 20px 0 28px; color: var(--text-2); font-size: clamp(1.02rem, 1.6vw, 1.18rem); line-height: 1.55; max-width: 34em; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 30px 0 0; padding: 0; list-style: none; color: var(--muted); font-family: var(--mono); font-size: 0.82rem; }
.facts b { color: var(--ink); font-weight: 500; }
.hero-video { margin: 0; border: 1px solid var(--rim); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(255, 255, 255, 0.03); }
.hero-video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }

/* ---------- bloques ---------- */
.block { max-width: 1240px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 48px); border-top: 1px solid var(--line); }
.block h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.08; max-width: 22em; }
.sub { margin-top: 16px; color: var(--text-2); font-size: 1.05rem; line-height: 1.6; max-width: 46em; }
.sub b { color: var(--ink); }
.note { margin-top: 22px; color: var(--muted); font-size: 0.85rem; }

/* ejemplos en móviles */
.phones { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 26px 20px; margin-top: 40px; }
.phones article h3 { margin-top: 14px; font-size: 1.05rem; }
.phones article p { margin-top: 4px; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.phone { position: relative; aspect-ratio: 9 / 16; border-radius: 26px; padding: 7px; background: linear-gradient(160deg, #2a2f45, #0d1020); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--rim); transition: transform 300ms var(--ease); }
.phone:hover { transform: translateY(-6px) rotate(-1deg); }
.phone video { width: 100%; height: 100%; border-radius: 20px; object-fit: cover; background: #000; }

/* estilos */
.styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 14px; margin: 36px 0 28px; }
.styles figure { margin: 0; }
.styles video { width: 100%; aspect-ratio: 9 / 16; border-radius: 14px; object-fit: cover; background: #000; border: 1px solid var(--line); }
.styles figcaption { margin-top: 8px; color: var(--text-2); font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; }

/* pasos */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin: 36px 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; padding: 26px 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--glass); counter-increment: s; }
.steps li::after { content: "0" counter(s); position: absolute; top: 20px; right: 22px; color: var(--muted); font-family: var(--mono); font-size: 0.8rem; }
.steps i { font-size: 2rem; color: var(--cyan); }
.steps h3 { margin: 14px 0 8px; font-size: 1.15rem; }
.steps p { color: var(--text-2); line-height: 1.5; font-size: 0.95rem; }
.tutorial { margin: 0; }
.tutorial video { width: 100%; aspect-ratio: 16 / 9; border-radius: 20px; border: 1px solid var(--rim); background: #000; }
.tutorial figcaption { margin-top: 10px; color: var(--muted); font-size: 0.9rem; }

/* automatizar: hoja de ejemplo */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.checks { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.checks li { padding-left: 28px; position: relative; color: var(--text-2); }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan); font-weight: 700; }
.sheet { border: 1px solid var(--rim); border-radius: 16px; overflow: hidden; font-family: var(--mono); font-size: 0.78rem; background: rgba(255, 255, 255, 0.03); }
.sheet > div { display: grid; grid-template-columns: 1.3fr 1.3fr 0.6fr 0.9fr; border-top: 1px solid var(--line); }
.sheet span { padding: 11px 12px; border-right: 1px solid var(--line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet .sheet-head { border-top: 0; background: #1f1b2e; color: #fff; }
.sheet .bad { background: rgba(255, 90, 110, 0.12); color: #ff9aa6; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* presentación */
.deck { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 36px 0 26px; }
.deck article { padding: 26px 24px; border-radius: 20px; border: 1px solid var(--line); background: var(--glass); }
.deck span { font-family: var(--mono); font-size: 0.8rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.deck h3 { margin: 10px 0 8px; font-size: 1.2rem; }
.deck p { color: var(--text-2); line-height: 1.55; font-size: 0.95rem; }

/* llamada final */
.cta { text-align: center; }
.cta h2 { margin: 0 auto; }
.cta .sub { margin: 16px auto 30px; }

footer { max-width: 1240px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 48px) 48px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 0.88rem; }
footer p:first-child { display: flex; align-items: center; gap: 8px; font-weight: 600; }
footer img { width: 22px; height: 22px; border-radius: 6px; mix-blend-mode: screen; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.logo b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.logo img { mix-blend-mode: normal; }
footer img { mix-blend-mode: normal; }
.unmute { position: absolute; right: 14px; bottom: 14px; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,0.35); border-radius: 50%; background: rgba(0,0,0,0.55); color: #fff; font-size: 1.2rem; display: grid; place-items: center; cursor: pointer; }
.cta-logo { width: 280px; height: auto; margin: -20px auto 10px; }

/* ---------- GSAP ---------- */
/* red de seguridad: la portada espera a la animación, pero se ve a los 3 s pase lo que pase */
html.gsap-on .hero-copy, html.gsap-on .hero-video { visibility: hidden; animation: gsap-fallback 0s 3s forwards; }
@keyframes gsap-fallback { to { visibility: visible; } }
.split-word { display: inline-block; will-change: transform; }
.nav { transition: background-color 250ms ease, box-shadow 250ms ease; }
.nav[data-scrolled="true"] { background: rgba(6, 10, 23, 0.9); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
/* tres pasos: una línea que se rellena con el scroll y cada paso se enciende al llegar */
.steps { position: relative; }
.steps-progress { position: absolute; left: 0; right: 0; top: -14px; height: 3px; border-radius: 3px; background: var(--grad); transform-origin: left center; transform: scaleX(0); }
@media (prefers-reduced-motion: reduce) { .steps-progress { transform: none; } }
.steps li { transition: border-color 300ms ease, box-shadow 300ms ease, background-color 300ms ease; }
.steps li.is-lit { border-color: rgba(34, 211, 238, 0.45); background: var(--grad-soft); box-shadow: 0 16px 40px rgba(124, 77, 255, 0.25); }
.hero-video { transform-style: preserve-3d; }
