@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/instrument-serif-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #050608;
  --card: #0d0f14;
  --border: #1e222b;
  --accent: #2f6bff;
  --accent-hover: #4b80ff;
  --accent-btn: #2a62ee;
  --text: #f2f4f8;
  --muted: #9aa1b0;
  --error: #ff6b6b;
  --ok: #3ddc97;
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Resplandor ambiental (como colmenatrading.com): sigue al cursor en escritorio */
.ambient-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px circle at var(--mx, 50%) var(--my, 20%), rgba(47, 107, 255, .16), transparent 60%);
}
@media (max-width: 640px) { .ambient-glow { background: radial-gradient(700px circle at 50% 0%, rgba(47, 107, 255, .14), transparent 60%); } }
@media (min-width: 1600px) { .ambient-glow { background: radial-gradient(1300px circle at var(--mx, 50%) var(--my, 20%), rgba(47, 107, 255, .14), transparent 60%); } }

a { color: inherit; }
img { display: block; max-width: 100%; }
em { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 520px; margin: 0 auto; padding: 40px 16px 32px; }

/* Cabecera */
.profile { text-align: center; }
.avatar {
  width: 104px; height: 104px; margin: 0 auto 16px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, .15), 0 10px 40px rgba(47, 107, 255, .25);
}
.name { margin: 0; font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.dot { color: var(--accent); }

.socials { display: flex; justify-content: center; gap: 10px; margin: 20px 0 28px; flex-wrap: wrap; }
.socials a {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; background: var(--card); border: 1px solid var(--border);
  color: var(--muted); transition: transform .2s, color .2s, border-color .2s;
}
.socials a:hover { transform: translateY(-2px); color: var(--text); border-color: var(--accent); }
.socials .logo-ico { width: 20px; height: 23px; background: currentColor; -webkit-mask: url(assets/colmena.png) center / contain no-repeat; mask: url(assets/colmena.png) center / contain no-repeat; }
.socials svg { width: 20px; height: 20px; fill: currentColor; }

/* Tarjeta formulario */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 18px 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.eyebrow {
  display: flex; align-items: center; gap: 8px; margin: 0 0 8px;
  font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #6f9bff;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(47, 107, 255, .6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(47, 107, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 107, 255, 0); } }

.waitlist h2 { margin: 0; font-size: 1.4rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.waitlist h2 .hl { color: var(--accent); }
.sub { margin: 6px 0 14px; color: var(--muted); font-size: .85rem; line-height: 1.45; }

.field { margin-bottom: 10px; }
.field > label { display: block; margin-bottom: 6px; font-size: .82rem; font-weight: 500; color: var(--muted); }

input[type="text"], input[type="tel"], select {
  width: 100%; height: 46px; padding: 0 14px;
  background: #090b0f; color: var(--text);
  border: 1px solid var(--border); border-radius: 12px;
  font: inherit; font-size: 1rem; /* 16px evita zoom en iOS */
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder { color: #7b8292; }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 107, 255, .25); }
select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239aa1b0' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m1 1.500 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
select:required:invalid { color: #7b8292; }
select option { color: var(--text); background: var(--card); }

.phone { display: grid; grid-template-columns: 112px 1fr; gap: 8px; }
.phone select { padding-right: 30px; background-position: right 12px center; }

[aria-invalid="true"] { border-color: var(--error) !important; }
.error { margin: 6px 0 0; min-height: 0; font-size: .8rem; color: var(--error); }
.error:empty { display: none; }
.form-error { text-align: center; margin: 10px 0 0; }


.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 48px; padding: 0 20px; margin-top: 4px;
  background: var(--accent-btn); color: #fff; border: 0; border-radius: 12px;
  font: inherit; font-size: .88rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s;
  box-shadow: 0 8px 24px rgba(47, 107, 255, .3);
}
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.micro { margin: 10px 0 0; text-align: center; font-size: .78rem; font-weight: 600; color: var(--muted); }

/* Éxito */
.success { text-align: center; padding: 8px 0; }
.success:focus { outline: none; }
.check { width: 56px; height: 56px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: rgba(61, 220, 151, .12); border: 1px solid rgba(61, 220, 151, .4); }
.check svg { width: 28px; height: 28px; fill: none; stroke: var(--ok); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .5s .15s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success h3 { margin: 0 0 8px; font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; }
.success p { margin: 0 0 18px; color: var(--muted); font-size: .95rem; }
[hidden] { display: none !important; }

/* Enlaces */
.links { display: grid; gap: 12px; margin-top: 20px; }
.link {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; transition: transform .2s, border-color .2s, background .2s;
}
.link:hover { transform: translateY(-2px); border-color: #2d3442; }
.link .icon { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; background: #141822; color: var(--muted); }
.link .icon svg { width: 20px; height: 20px; fill: currentColor; }
.link .icon svg.stroke-icon { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.link .text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.link strong { font-weight: 600; font-size: .98rem; }
.link small { color: var(--muted); font-size: .8rem; }
.arrow { color: var(--muted); transition: transform .2s, color .2s; }
.link:hover .arrow { transform: translateX(4px); color: var(--text); }

.link.featured { border-color: rgba(47, 107, 255, .5); background: linear-gradient(135deg, rgba(47, 107, 255, .14), var(--card) 60%); }
.link.featured:hover { border-color: var(--accent); }
.link.featured .icon { background: var(--accent); color: #fff; }
.badge {
  flex: none; padding: 3px 9px; border-radius: 999px;
  background: rgba(47, 107, 255, .18); border: 1px solid rgba(47, 107, 255, .5);
  color: #9dbbff; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}

/* Footer */
.footer { margin-top: 36px; text-align: center; font-size: .85rem; color: var(--muted); }
.footer p { margin: 8px 0 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); text-decoration: underline; }
.footer .copy { font-size: .72rem; color: #7b8292; max-width: 44ch; margin-inline: auto; }

/* Páginas legales */
.legal { max-width: 720px; }
.legal h1 { font-size: 1.8rem; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 4px; }
.legal h2 { font-size: 1.1rem; margin: 28px 0 8px; }
.legal p, .legal li { color: #c3c8d3; font-size: .95rem; }
.legal a { color: #8fb0ff; }
.legal .back { display: inline-block; margin-bottom: 12px; color: var(--muted); text-decoration: none; font-size: .9rem; }
.legal .back:hover { color: var(--text); }
.legal mark { background: rgba(255, 196, 0, .15); color: #ffd666; padding: 0 4px; border-radius: 4px; }
.legal .note { padding: 12px 14px; border: 1px dashed #5a4a10; background: rgba(255, 196, 0, .06); border-radius: 12px; font-size: .85rem; }

@media (max-width: 360px) {
  .wrap { padding: 28px 12px 24px; }
  .card { padding: 16px 12px; }
  .waitlist h2 { font-size: 1.2rem; }
  .socials { gap: 6px; }
  .socials a { width: 40px; height: 40px; }
  .link { padding: 12px; gap: 12px; }
}
@media (max-width: 380px) {
  .phone { grid-template-columns: 116px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .check svg { stroke-dashoffset: 0; }
}

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Estadísticas: fila de 3 columnas bajo la cabecera, con contador animado */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 22px; }
.stat { margin: 0; padding: 4px 6px; text-align: center; opacity: 0; transform: translateY(8px); animation: stat-in .7s cubic-bezier(.2, .7, .2, 1) forwards; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat:nth-child(1) { animation-delay: .3s; }
.stat:nth-child(2) { animation-delay: .6s; }
.stat:nth-child(3) { animation-delay: .9s; }
.stat strong { display: block; font-size: clamp(1.05rem, 5.2vw, 1.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stat b { font-weight: inherit; }
.stat i { font-style: normal; color: var(--accent); margin-right: .12em; }
.stat span { display: block; margin-top: 3px; color: var(--muted); font-size: clamp(.64rem, 2.8vw, .78rem); line-height: 1.3; }
@keyframes stat-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .stat { opacity: 1; transform: none; } }
