/* =========================================================
   P4nxit0 — estilo ZeroPlayer (negro puro, verde, Material You)
   ========================================================= */
:root {
  --bg: #000; --fg: #f5f5f7; --muted: #86868b; --soft: #a1a1a6;
  --card: #101012; --card2: #161619; --line: rgba(255,255,255,.08);
  --g1: #19c37d; --g2: #5df2b0; --g3: #08835e;
  --ease: cubic-bezier(.2,.8,.2,1);
  --display: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(18px, 4vw, 22px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body { background: var(--bg); color: var(--fg); font-family: var(--text); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(25,195,125,.35); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--pad); }
.center { text-align: center; }
.ms {
  font-family: "Material Symbols Rounded"; font-weight: normal; font-style: normal;
  font-size: 22px; line-height: 1; display: inline-block; white-space: nowrap; letter-spacing: normal;
  font-feature-settings: "liga"; -webkit-font-feature-settings: "liga";
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24; user-select: none;
}
.dot { color: var(--g1); }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 56px; display: flex; align-items: center;
  background: rgba(0,0,0,.6); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 22px; width: 100%; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.brand-mark {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(140deg, var(--g2), var(--g1) 55%, var(--g3)); color: #03140c;
  font-size: 12px; font-weight: 800; letter-spacing: -.03em;
  transition: border-radius .5s var(--ease), rotate .5s var(--ease);
}
.brand:hover .brand-mark { border-radius: 50%; rotate: -10deg; }
.links { display: flex; gap: 26px; margin-left: auto; font-size: 13px; color: #d2d2d7; }
.links a { transition: color .2s; }
.links a:hover, .links a.active { color: #fff; }
.links a.active { color: var(--g2); }
.lang { font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; color: #d2d2d7; font-weight: 600; transition: background .2s, color .2s; }
.lang:hover { background: rgba(255,255,255,.08); color: #fff; }
.burger { display: none; width: 40px; height: 40px; border-radius: 12px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: #fff; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 15px; } .burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- Botones píldora ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px;
  font-weight: 600; font-size: 15px; padding: 12px 22px; min-height: 46px;
  transition: scale .35s var(--ease), background .25s, box-shadow .35s;
}
.pill:hover { scale: 1.04; } .pill:active { scale: .97; }
.pill.primary { background: var(--g1); color: #03140c; box-shadow: 0 10px 40px -10px rgba(25,195,125,.6); }
.pill.primary:hover { background: var(--g2); }
.pill.ghost { background: rgba(255,255,255,.08); color: #fff; }
.pill.ghost:hover { background: rgba(255,255,255,.14); }
.pill.small { font-size: 12px; padding: 6px 14px; min-height: 32px; }
.pill .ms { font-size: 19px; }
.pill[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Portada ---------- */
.hero { min-height: 100vh; min-height: 100svh; padding: 130px 0 80px; position: relative; text-align: center; overflow: hidden; }
.aura {
  position: absolute; left: 50%; top: 42%; width: min(1100px, 160vw); aspect-ratio: 1; translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(25,195,125,.35), rgba(25,195,125,.08) 45%, transparent 70%);
  pointer-events: none; animation: breathe 8s ease-in-out infinite; will-change: transform, opacity;
}
.aura.small { top: 30%; width: min(900px, 140vw); opacity: .55; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .8; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--g2);
  background: rgba(25,195,125,.12); border: 1px solid rgba(25,195,125,.25); padding: 6px 14px; border-radius: 999px;
  max-width: 100%;
}
.eyebrow i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--g1); box-shadow: 0 0 12px var(--g1); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
h1 { font-family: var(--display); font-weight: 800; font-size: clamp(50px, 10vw, 130px); line-height: .95; letter-spacing: -.045em; margin: 22px 0 24px; position: relative; }
h1 .line { display: block; overflow: hidden; padding-bottom: .07em; }
h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
h1 .line:nth-child(2) > span { animation-delay: .12s; }
@keyframes rise { to { transform: none; } }
.grad {
  background: linear-gradient(100deg, #fff 0%, #c9ffe6 30%, var(--g2) 55%, var(--g1) 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%; animation: sheen 7s ease-in-out infinite;
}
@keyframes sheen { 50% { background-position: 100% 0; } }
.lead { font-size: clamp(18px, 2.2vw, 23px); color: var(--soft); max-width: 640px; margin: 0 auto; font-weight: 500; letter-spacing: -.01em; position: relative; }
.cta { display: flex; gap: 12px; justify-content: center; margin-top: 34px; flex-wrap: wrap; position: relative; }
.fade-in { opacity: 0; animation: fade 1s .45s var(--ease) forwards; }
.stage.fade-in { animation-delay: .6s; } .wavebox.fade-in { animation-delay: .75s; }
@keyframes fade { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- Carrusel 3D ---------- */
.stage {
  --cw: clamp(210px, 25vw, 300px);
  --gap: clamp(150px, 21vw, 280px);
  position: relative; margin: 70px auto 0; height: calc(var(--cw) * 1.36 + 70px);
  perspective: 1600px; outline: none; touch-action: pan-y;
}
.cards { position: absolute; inset: 0; transform-style: preserve-3d; }
.acard {
  position: absolute; left: 50%; top: 0; width: var(--cw); aspect-ratio: 3 / 4.1;
  border-radius: 40px; padding: 10px;
  background: linear-gradient(145deg, #2a2a2e, #0c0c0e);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 60px 120px -30px rgba(0,0,0,.9), 0 30px 80px -40px rgba(25,195,125,.5);
  transform: translateX(-50%) translateY(70px) scale(.7); opacity: 0; pointer-events: none;
  transition: transform 1s var(--ease), opacity .7s var(--ease), filter .7s var(--ease);
  cursor: pointer;
}
.acard .scr {
  position: relative; width: 100%; height: 100%; border-radius: 31px; overflow: hidden;
  background: radial-gradient(110% 70% at 50% 105%, rgba(25,195,125,.55), transparent 62%), linear-gradient(170deg, #0f2a1f, #08110d 70%);
}
.acard .scr::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(93,242,176,.22) 1px, transparent 1.3px); background-size: 16px 16px;
  mask-image: linear-gradient(#000, transparent 70%); -webkit-mask-image: linear-gradient(#000, transparent 70%);
}
.acard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; padding: 18px 12px 0; filter: drop-shadow(0 18px 24px rgba(0,0,0,.5)); }
.acard[data-pos="0"] { transform: translateX(-50%) rotateX(var(--rx, 10deg)); opacity: 1; z-index: 3; pointer-events: auto; cursor: default; }
.acard[data-pos="-1"] { transform: translateX(calc(-50% - var(--gap))) translateY(60px) rotateY(18deg) scale(.84); opacity: .7; z-index: 2; pointer-events: auto; filter: brightness(.75); }
.acard[data-pos="1"]  { transform: translateX(calc(-50% + var(--gap))) translateY(60px) rotateY(-18deg) scale(.84); opacity: .7; z-index: 2; pointer-events: auto; filter: brightness(.75); }
.acard[data-pos="-2"] { transform: translateX(calc(-50% - var(--gap) * 1.7)) translateY(110px) rotateY(26deg) scale(.66); opacity: 0; z-index: 1; }
.acard[data-pos="2"]  { transform: translateX(calc(-50% + var(--gap) * 1.7)) translateY(110px) rotateY(-26deg) scale(.66); opacity: 0; z-index: 1; }
.acard[data-pos="-1"]:hover, .acard[data-pos="1"]:hover { opacity: .9; filter: brightness(.9); }

/* ---------- Reproductor ---------- */
.wavebox {
  position: relative; margin: 26px auto 0; max-width: 760px;
  display: flex; align-items: center; gap: clamp(14px, 3vw, 24px);
  padding: clamp(14px, 2.5vw, 20px) clamp(16px, 3.5vw, 30px);
  border-radius: 32px; background: rgba(16,16,18,.8); border: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); text-align: left;
}
.play {
  flex: none; width: 60px; height: 60px; border-radius: 22px; background: var(--g1); color: #03140c;
  display: grid; place-items: center; transition: border-radius .5s var(--ease), scale .3s var(--ease), background .25s;
}
.play:hover { background: var(--g2); } .play:active { scale: .92; }
.play.paused { border-radius: 50%; }
.play .ms { font-size: 30px; font-variation-settings: "FILL" 1, "wght" 500; }
.wb-mid { flex: 1; min-width: 0; }
.wb-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.wb-title { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.wave { position: relative; height: 22px; margin-top: 8px; }
.wave-played, .wave-flat { position: absolute; left: 0; top: 50%; translate: 0 -50%; width: max(0px, calc(var(--prog) * 100% - 7px)); }
.wave-played {
  height: 12px; background: linear-gradient(90deg, var(--g1), var(--g2));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12' viewBox='0 0 24 12'%3E%3Cpath d='M0 6 Q6 1 12 6 T24 6' fill='none' stroke='black' stroke-width='2.8'/%3E%3C/svg%3E") repeat-x 0 50% / 24px 12px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12' viewBox='0 0 24 12'%3E%3Cpath d='M0 6 Q6 1 12 6 T24 6' fill='none' stroke='black' stroke-width='2.8'/%3E%3C/svg%3E") repeat-x 0 50% / 24px 12px;
  animation: waveflow 1.1s linear infinite; transition: opacity .3s;
}
.wave-flat { height: 4px; border-radius: 4px; background: var(--g1); opacity: 0; transition: opacity .3s; }
.wave.paused .wave-played { opacity: 0; } .wave.paused .wave-flat { opacity: 1; }
@keyframes waveflow { to { -webkit-mask-position: 24px 50%; mask-position: 24px 50%; } }
.wave-thumb { position: absolute; top: 50%; left: calc(var(--prog) * 100%); width: 5px; height: 22px; border-radius: 4px; background: var(--g2); translate: -50% -50%; box-shadow: 0 0 12px rgba(93,242,176,.6); }
.wave-rest { position: absolute; top: 50%; translate: 0 -50%; left: calc(var(--prog) * 100% + 8px); right: 0; height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); }
.wb-ctrl { display: flex; gap: 4px; flex: none; }
.ctl { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #d2d2d7; transition: background .2s, color .2s, scale .2s var(--ease); }
.ctl:hover { background: rgba(255,255,255,.08); color: #fff; } .ctl:active { scale: .9; }
.ctl .ms { font-variation-settings: "FILL" 1, "wght" 500; font-size: 26px; }

/* ---------- Secciones ---------- */
section { position: relative; padding: clamp(90px, 13vw, 140px) 0; scroll-margin-top: 56px; }
h2 { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 6.4vw, 80px); line-height: 1; letter-spacing: -.04em; }
h3 { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -.02em; line-height: 1.15; }
.kicker { font-family: var(--display); font-size: 19px; font-weight: 600; color: var(--g1); margin-bottom: 14px; }
.sub { font-size: clamp(18px, 2vw, 21px); color: var(--soft); max-width: 620px; margin-top: 22px; font-weight: 500; }
.center .sub { margin-left: auto; margin-right: auto; }
.js .reveal { opacity: 0; translate: 0 46px; filter: blur(8px); transition: opacity 1s var(--ease), translate 1.1s var(--ease), filter 1s var(--ease), scale .5s var(--ease), border-color .4s; }
.js .reveal.in { opacity: 1; translate: 0 0; filter: none; }

/* ---------- Experiencia (historia) ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; margin-top: 30px; }
.steps { padding: 6vh 0; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .22; transition: opacity .6s var(--ease); }
.step.on { opacity: 1; }
.step .kicker { color: var(--c, var(--g1)); }
.step h3 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; }
.step .org { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 18px; font-family: var(--display); font-weight: 700; font-size: 20px; }
.step .org small { font-family: var(--text); font-weight: 500; font-size: 14px; color: var(--muted); }
.now { display: inline-flex; align-items: center; gap: 6px; font-family: var(--text); font-size: 12px; font-weight: 600; color: var(--g2); background: rgba(25,195,125,.12); border: 1px solid rgba(25,195,125,.25); padding: 3px 10px; border-radius: 999px; }
.now i { width: 6px; height: 6px; border-radius: 50%; background: var(--g1); box-shadow: 0 0 10px var(--g1); animation: pulse 2s infinite; }
.step p { color: var(--soft); font-size: 18px; margin-top: 16px; max-width: 520px; }
.roles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.roles span {
  font-family: var(--display); font-weight: 600; font-size: 14px; padding: 7px 14px; border-radius: 12px;
  background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 32%, transparent); color: #f5f5f7;
}
.step .mini { display: none; }
.sticky { position: sticky; top: 14vh; height: 72vh; display: flex; align-items: center; justify-content: center; }
.badge-card {
  position: relative; width: min(400px, 100%); aspect-ratio: 4 / 5; border-radius: 40px; padding: 10px;
  background: linear-gradient(145deg, #2a2a2e, #0c0c0e);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 60px 120px -30px rgba(0,0,0,.9);
}
.badge-card .layer { position: absolute; inset: 10px; border-radius: 31px; overflow: hidden; opacity: 0; transform: scale(1.04); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.badge-card .layer.on { opacity: 1; transform: none; }
.bc {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 28px; text-align: center;
  background: radial-gradient(90% 60% at 50% 0%, color-mix(in srgb, var(--c) 45%, transparent), transparent 70%), radial-gradient(80% 50% at 50% 110%, color-mix(in srgb, var(--c) 25%, transparent), transparent 70%), #0b0b0d;
}
.bc::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.3px); background-size: 18px 18px; mask-image: radial-gradient(closest-side, #000, transparent); -webkit-mask-image: radial-gradient(closest-side, #000, transparent); }
.logo {
  position: relative; width: 46%; aspect-ratio: 1; border-radius: 30%; overflow: hidden; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 22%, #161619); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  color: var(--c); font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4vw, 48px); letter-spacing: -.04em;
  box-shadow: 0 30px 60px -20px color-mix(in srgb, var(--c) 60%, transparent);
}
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #111; }
.bc b { position: relative; font-family: var(--display); font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.bc small { position: relative; color: var(--soft); font-size: 14px; margin-top: -10px; }

/* ---------- Rejilla (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 70px; }
.card {
  grid-column: span 2; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 30px;
  position: relative; overflow: hidden;
}
.card:hover { scale: 1.012; border-color: rgba(25,195,125,.35); }
.card.s3 { grid-column: span 3; } .card.big { grid-column: span 4; min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end; }
.card p { color: var(--soft); margin-top: 10px; font-size: 16px; position: relative; }
.card h3 { position: relative; }
.ic { position: relative; width: 46px; height: 46px; border-radius: 14px; background: rgba(25,195,125,.14); display: grid; place-items: center; margin-bottom: 22px; color: var(--g2); }
.ic .ms { font-size: 24px; }
.card.glow { background: radial-gradient(120% 90% at 10% 0%, rgba(25,195,125,.3), transparent 55%), var(--card); }
.card.big { background: radial-gradient(120% 80% at 80% 0%, rgba(25,195,125,.25), transparent 60%), var(--card); }
.chat { position: absolute; top: 28px; right: 28px; left: 28px; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; pointer-events: none; }
.bub { max-width: min(330px, 85%); padding: 11px 15px; border-radius: 18px; font-size: 14px; line-height: 1.4; }
.bub.me { background: var(--g1); color: #03140c; font-weight: 600; border-bottom-right-radius: 6px; }
.bub.ai { align-self: flex-start; background: var(--card2); border: 1px solid var(--line); color: #d2d2d7; border-bottom-left-radius: 6px; display: flex; align-items: center; gap: 8px; }
.bub.ai .ms { color: var(--g2); font-size: 18px; }
.typing { display: inline-flex; gap: 3px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: typ 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typ { 0%, 60%, 100% { opacity: .3; translate: 0 0; } 30% { opacity: 1; translate: 0 -3px; } }
.card.big .stat { font-family: var(--display); font-weight: 800; font-size: clamp(56px, 7vw, 80px); letter-spacing: -.05em; line-height: .9; position: relative; }
.card.big .stat .dot { font-size: .55em; }

/* ---------- Herramientas ---------- */
.marquee { margin-top: 60px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.track { display: flex; gap: 12px; padding-right: 12px; width: max-content; will-change: transform; animation: scroll 40s linear infinite; }
.track.rev { animation-direction: reverse; margin-top: 12px; animation-duration: 48s; }
.marquee:hover .track { animation-play-state: paused; }
.chip { font-family: var(--display); font-weight: 700; font-size: clamp(17px, 2vw, 22px); padding: 14px 26px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); color: #d2d2d7; letter-spacing: -.01em; white-space: nowrap; }
.chip.g { color: var(--g2); border-color: rgba(25,195,125,.3); background: rgba(25,195,125,.08); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Redes ---------- */
.socials { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; margin: 60px auto 0; max-width: 900px; }
.social { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); text-align: left; width: 100%; transition: scale .5s var(--ease), border-color .4s; }
.social:hover { scale: 1.02; border-color: rgba(25,195,125,.35); }
.social .ic { margin: 0; flex: none; }
.social .ic svg { width: 24px; height: 24px; }
.s-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.s-txt b { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.s-txt small { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.social > .ms { color: var(--muted); transition: translate .4s var(--ease), color .3s; }
.social:hover > .ms { translate: 3px -3px; color: var(--g2); }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; margin-top: 60px; position: relative; }
.form, .direct { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: clamp(20px, 3.5vw, 32px); }
.form { display: grid; gap: 14px; align-content: start; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 24px 16px 10px; border-radius: 16px; background: var(--card2); color: var(--fg);
  border: 1px solid var(--line); font: inherit; font-size: 16px; outline: none; resize: vertical;
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { min-height: 150px; }
.field input:focus, .field textarea:focus { border-color: rgba(25,195,125,.6); box-shadow: 0 0 0 4px rgba(25,195,125,.14); }
.field label { position: absolute; left: 17px; top: 17px; color: var(--muted); font-size: 16px; pointer-events: none; transform-origin: left top; transition: transform .25s var(--ease), color .25s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(.76); }
.field input:focus + label, .field textarea:focus + label { color: var(--g2); }
.field.bad input, .field.bad textarea { border-color: rgba(255,90,82,.6); }
.reasons { display: flex; flex-wrap: wrap; gap: 8px; }
.reasons label { position: relative; cursor: pointer; }
.reasons input { position: absolute; opacity: 0; pointer-events: none; }
.reasons span { display: inline-block; font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: #d2d2d7; transition: background .25s, color .25s, border-color .25s; }
.reasons label:hover span { background: rgba(255,255,255,.1); }
.reasons input:checked + span { background: rgba(25,195,125,.14); border-color: rgba(25,195,125,.45); color: var(--g2); }
.reasons input:focus-visible + span { outline: 2px solid var(--g2); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.status { font-size: 15px; font-weight: 500; }
.status.ok { color: var(--g2); } .status.err { color: #ff8a84; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.direct { display: flex; flex-direction: column; gap: 18px; background: radial-gradient(120% 80% at 100% 0%, rgba(88,101,242,.22), transparent 60%), var(--card); }
.direct-k { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; line-height: 1.2; }
.discord { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: 22px; background: #5865f2; color: #fff; text-align: left; transition: scale .35s var(--ease), background .25s; }
.discord:hover { scale: 1.03; background: #6772f5; } .discord:active { scale: .97; }
.d-ic { flex: none; width: 46px; height: 46px; border-radius: 15px; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.d-ic svg { width: 26px; height: 26px; }
.d-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.d-txt small { font-size: 12px; opacity: .85; }
.d-txt b { font-family: var(--display); font-size: 18px; overflow: hidden; text-overflow: ellipsis; }
.direct-list { list-style: none; display: grid; gap: 12px; margin-top: auto; }
.direct-list li { display: flex; gap: 12px; align-items: center; color: var(--soft); font-size: 15px; }
.direct-list .ms { color: var(--g2); font-size: 20px; }

/* ---------- Pie ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); }
.foot-in { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-txt { color: var(--muted); font-size: 13px; }
.to-top { margin-left: auto; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); transition: background .25s, scale .3s var(--ease); }
.to-top:hover { background: var(--g1); color: #03140c; scale: 1.08; }

/* ---------- Aviso ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 100; padding: 12px 20px; border-radius: 999px; background: #f5f5f7; color: #000; font-weight: 600; font-size: 14px; translate: -50% 160%; opacity: 0; transition: translate .5s var(--ease), opacity .3s; max-width: calc(100% - 32px); text-align: center; }
.toast.show { translate: -50% 0; opacity: 1; }

/* =========================================================
   Adaptación a pantallas
   ========================================================= */
/* Pantallas grandes */
@media (min-width: 1600px) {
  .wrap { max-width: 1240px; }
  .stage { --cw: 320px; --gap: 300px; }
}

/* Portátil pequeño / tablet horizontal */
@media (max-width: 1080px) {
  .card.big { grid-column: span 6; }
  .card { grid-column: span 3; }
  .card.s3 { grid-column: span 3; }
}

/* Tablet */
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; gap: 0; }
  .sticky { display: none; }
  .steps { padding: 0; display: grid; gap: 16px; margin-top: 50px; }
  .step { min-height: 0; opacity: 1; padding: 26px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; column-gap: 20px; }
  .step > * { grid-column: 1; }
  .step .mini { display: grid; grid-column: 2; grid-row: 1 / span 3; width: 84px; font-size: 26px; align-self: start; box-shadow: none; border-radius: 24px; }
  .step h3 { font-size: clamp(28px, 5vw, 40px); }
  .contact { grid-template-columns: 1fr; }
}

/* Navegación compacta */
@media (max-width: 860px) {
  .burger { display: inline-block; }
  .nav-in { gap: 12px; }
  .lang { margin-left: auto; }
  .links {
    position: fixed; top: 56px; left: 0; right: 0; margin: 0; flex-direction: column; gap: 0;
    padding: 8px var(--pad) 18px; font-size: 22px; font-family: var(--display); font-weight: 700; letter-spacing: -.02em;
    background: rgba(0,0,0,.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    opacity: 0; translate: 0 -12px; pointer-events: none; transition: opacity .3s var(--ease), translate .45s var(--ease);
  }
  .links.open { opacity: 1; translate: 0 0; pointer-events: auto; }
  .links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .links a:last-child { border-bottom: 0; }
}

/* Móvil */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 104px; padding-bottom: 50px; }
  .cta .pill { flex: 1 1 auto; }
  .stage { --cw: min(62vw, 270px); --gap: 44vw; margin-top: 50px; height: calc(var(--cw) * 1.36 + 40px); }
  .acard { border-radius: 34px; padding: 8px; }
  .acard .scr { border-radius: 27px; }
  .acard[data-pos="-1"], .acard[data-pos="1"] { opacity: .45; }
  .acard[data-pos="0"] { --rx: 0deg; }
  .wavebox { border-radius: 26px; gap: 12px; }
  .play { width: 52px; height: 52px; border-radius: 18px; }
  .ctl { width: 38px; height: 38px; }
  .bento { grid-template-columns: 1fr; margin-top: 50px; }
  .card, .card.s3, .card.big { grid-column: auto; }
  .card { padding: 24px; border-radius: 26px; }
  .card.big { min-height: 380px; }
  .chat { top: 22px; left: 22px; right: 22px; }
  .row2 { grid-template-columns: 1fr; }
  .form-foot .pill { width: 100%; }
  .step { padding: 22px; grid-template-columns: 1fr; }
  .step .mini { grid-column: 1; grid-row: auto; width: 64px; margin-bottom: 18px; border-radius: 20px; font-size: 22px; order: -1; }
  .socials, .contact { margin-top: 44px; }
}

/* Móvil pequeño */
@media (max-width: 380px) {
  .nav-cta { display: none; }
  .wb-ctrl .ctl:first-child { display: none; }
  .eyebrow { font-size: 12px; }
}

/* Pantallas muy bajas en horizontal */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: auto; }
  .sticky { top: 70px; height: calc(100vh - 90px); }
  .step { min-height: 90vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; translate: none; filter: none; }
}

/* Tarjeta grande en móvil: burbujas en flujo normal */
@media (max-width: 640px) {
  .card.big { min-height: 0; }
  .chat { position: relative; top: auto; left: auto; right: auto; margin-bottom: 26px; }
}

/* Carrusel en tablet */
@media (min-width: 641px) and (max-width: 1000px) {
  .stage { --cw: clamp(220px, 30vw, 280px); --gap: 26vw; }
}

/* Captcha (Cloudflare Turnstile) */
.captcha { min-height: 65px; display: flex; align-items: center; }
.captcha > div { width: 100%; }
.captcha iframe { border-radius: 12px; }
.captcha-wait { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; padding: 0 4px; }
.captcha-wait .ms { color: var(--g2); font-size: 20px; }

/* Mientras carga el contenido guardado en el panel */
.loading body { opacity: 0; }
.loading * { animation-play-state: paused !important; }
body { transition: opacity .35s ease; }
