/* ============================================================
   Diálogos IA360° — estilos
   Paleta y tipografía tomadas del diseño original (design/)
   ============================================================ */

:root {
  --bg: #04040a;
  --bg-2: #06060e;
  --bg-3: #0a0a14;
  --bg-hover: #0c0c18;
  --fg: #ffffff;
  --fg-86: rgba(255,255,255,0.86);
  --fg-80: rgba(255,255,255,0.8);
  --fg-72: rgba(255,255,255,0.72);
  --fg-68: rgba(255,255,255,0.68);
  --fg-62: rgba(255,255,255,0.62);
  --fg-60: rgba(255,255,255,0.6);
  --fg-50: rgba(255,255,255,0.5);
  --fg-40: rgba(255,255,255,0.4);
  --line: rgba(255,255,255,0.1);
  --line-soft: rgba(255,255,255,0.08);
  --link: #5cc8e8;
  --accent: #e0399a;
  --orange: #ff8a3d;  --orange-t: #ffb27d;
  --pink: #e0399a;    --pink-t: #f479ba;
  --purple: #a86bff;  --purple-t: #c3a0ff;
  --blue: #3d9bff;    --blue-t: #8ac2ff;
  --teal: #0ea89e;    --teal-t: #55d3c9;
  --ok: #55d3c9;
  --err: #ff7a7a;
  --sans: 'Space Grotesk', system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --pad-x: clamp(20px, 5vw, 72px);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body {
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--fg); }
::selection { background: var(--accent); color: #fff; }
img { max-width: 100%; }

.container { max-width: var(--max); margin: 0 auto; position: relative; }

/* ---------- Marca ---------- */
.brand { display: inline-flex; align-items: baseline; gap: 2px; font-size: 17px; letter-spacing: -0.01em; color: var(--fg); }
.brand:hover { color: var(--fg); }
.brand-a { font-weight: 700; }
.brand-b { font-weight: 300; font-family: var(--mono); }
.brand-lg { font-size: 22px; }
.brand-a-inline { font-weight: 500; }
.brand-b-inline { font-family: var(--mono); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 28px;
  background: rgba(4,4,10,0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-72);
}
.nav-links a:hover { color: var(--fg); }
.nav-links .nav-cta {
  color: var(--bg); background: var(--fg); padding: 10px 18px; border-radius: 2px; font-weight: 700;
}
.nav-links .nav-cta:hover { background: var(--fg-86); color: var(--bg); }
@media (max-width: 480px) {
  .nav { padding: 12px 16px; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---------- Utilidades ---------- */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 140px 140px;
}
.grid-bg-soft {
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
}
.eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 34px; }
.dot { width: 7px; height: 7px; background: var(--fg); display: block; flex: none; }
.eyebrow-text { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-80); }
.eyebrow-logo { height: clamp(56px, 6.4vw, 80px); width: auto; max-width: 100%; object-fit: contain; object-position: left center; display: block; }

.btn {
  display: inline-block; padding: 18px 34px; border-radius: 2px; border: 0; cursor: pointer;
  font-family: var(--mono); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { background: var(--bg); color: var(--fg); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7); }
.btn-ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4); }
.btn-ghost:hover { background: var(--fg); color: var(--bg); }

.section-title {
  margin: 0; font-size: clamp(30px, 4.4vw, 54px); line-height: 1.04; font-weight: 300; letter-spacing: -0.02em; max-width: 24ch;
}
.section-title-lg { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.02; max-width: none; }
.section-lead {
  margin: 22px 0 clamp(34px, 4vw, 48px); max-width: 52ch;
  font-size: clamp(17px, 1.7vw, 21px); line-height: 1.6; font-weight: 300; color: rgba(255,255,255,0.86);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(72px, 11vw, 150px) var(--pad-x) clamp(80px, 10vw, 132px);
  background:
    radial-gradient(60% 70% at 76% 62%, rgba(214,78,22,0.85), transparent 62%),
    radial-gradient(55% 65% at 26% 40%, rgba(18,98,196,0.85), transparent 60%),
    radial-gradient(45% 55% at 52% 92%, rgba(14,168,158,0.6), transparent 60%),
    radial-gradient(40% 50% at 8% 88%, rgba(120,40,180,0.5), transparent 62%),
    var(--bg);
}
.hero-title {
  margin: 0; font-size: clamp(42px, 8.5vw, 104px); line-height: 0.94; font-weight: 400; letter-spacing: -0.02em; text-wrap: balance;
}
.hero-a { font-weight: 500; }
.hero-b { font-family: var(--mono); font-weight: 400; }
.hero-tagline { margin: 26px 0 0; font-size: clamp(22px, 3.4vw, 40px); line-height: 1.15; font-weight: 300; max-width: 16ch; }
.hero-lead { margin: 34px 0 0; max-width: 56ch; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.6; font-weight: 300; color: var(--fg-86); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 44px; }
.hero-note { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; color: var(--fg-80); }

/* ---------- Cifras ---------- */
.stats {
  padding: clamp(56px, 7vw, 96px) var(--pad-x);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1px; background: var(--line);
}
.stat { background: var(--bg-2); padding: clamp(24px, 3vw, 38px); }
.stat-num {
  font-family: var(--mono); font-size: clamp(38px, 5vw, 60px); line-height: 1; font-weight: 700;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-num-1 { background-image: linear-gradient(92deg, #ff8a3d, #e0399a); }
.stat-num-2 { background-image: linear-gradient(92deg, #3d9bff, #0ea89e); }
.stat-num-3 { background-image: linear-gradient(92deg, #a86bff, #3d9bff); }
.stat-title { margin-top: 14px; font-size: 20px; font-weight: 500; }
.stat-desc { margin: 8px 0 0; font-size: 16px; line-height: 1.55; font-weight: 300; color: var(--fg-72); }
.trust {
  margin: clamp(28px, 3vw, 44px) auto 0; padding: 20px 24px;
  background: rgba(255,255,255,0.04); box-shadow: inset 0 0 0 1px var(--line-soft);
}
.trust p { margin: 0; font-size: 17px; line-height: 1.55; font-weight: 400; }
.trust strong { font-weight: 700; }
.trust span { color: var(--fg-80); font-weight: 300; }

/* ---------- Registro ---------- */
.registro {
  position: relative; overflow: hidden;
  padding: clamp(64px, 8vw, 116px) var(--pad-x);
  background:
    radial-gradient(50% 60% at 20% 20%, rgba(18,98,196,0.5), transparent 62%),
    radial-gradient(45% 55% at 82% 78%, rgba(224,57,154,0.4), transparent 62%),
    var(--bg);
}
.registro .eyebrow { margin-bottom: 22px; }

.form-panel {
  background: var(--bg-3); border-radius: 3px; overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,0.6), inset 0 0 0 1px var(--line);
}
.form-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 18px; background: var(--bg); border-bottom: 1px solid var(--line);
}
.form-panel-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-60); }
.form-panel-label-right { color: var(--fg-40); }

.form { padding: clamp(22px, 3vw, 36px); }
.form-intro { margin: 0 0 26px; font-size: 17px; line-height: 1.55; color: var(--fg-72); max-width: 60ch; }
.form-row-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0 20px; }
.field { display: flex; flex-direction: column; margin-bottom: 20px; }
.field label {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-68);
  margin-bottom: 8px;
}
.req { color: var(--pink-t); }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; padding: 13px 14px;
  background: rgba(255,255,255,0.04); color: var(--fg);
  border: 1px solid rgba(255,255,255,0.16); border-radius: 2px;
  font-family: var(--sans); font-size: 17px; font-weight: 300; line-height: 1.4;
  transition: border-color .15s ease, background .15s ease;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-40); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--fg); background: rgba(255,255,255,0.06); }
.field.invalid input, .field.invalid textarea { border-color: var(--err); }
.field-error { display: none; margin-top: 6px; font-size: 12px; color: var(--err); font-family: var(--mono); letter-spacing: 0.04em; }
.field.invalid .field-error { display: block; }

.field-check { margin-top: 4px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.field .check { font-family: var(--sans); font-size: 15.5px; letter-spacing: 0; text-transform: none; color: var(--fg-80); line-height: 1.5; margin-bottom: 0; }
.check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--fg); cursor: pointer; }
.check a { text-decoration: underline; text-underline-offset: 3px; }

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

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 10px; }
.form-hint { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.12em; color: var(--fg-60); }
.btn .btn-loading { display: none; }
.btn.is-loading { pointer-events: none; opacity: 0.7; }
.btn.is-loading .btn-label { display: none; }
.btn.is-loading .btn-loading { display: inline; }

.form-status { margin-top: 18px; font-size: 15.5px; line-height: 1.5; min-height: 0; }
.form-status:empty { display: none; }
.form-status.error { color: var(--err); padding: 12px 14px; box-shadow: inset 0 0 0 1px rgba(255,122,122,0.35); background: rgba(255,122,122,0.06); }
.form-status.ok { color: var(--ok); }

.form-success { padding: clamp(28px, 4vw, 48px); }
.form-success .eyebrow { margin-bottom: 18px; }
.form-success h3 { margin: 0; font-size: clamp(26px, 3.4vw, 40px); font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; }
.form-success p { margin: 16px 0 28px; max-width: 56ch; font-size: 18px; line-height: 1.6; color: var(--fg-80); }

/* ---------- Calendario ---------- */
.calendario { padding: clamp(64px, 8vw, 116px) var(--pad-x); background: var(--bg-2); border-top: 1px solid var(--line); }
.calendario-head {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(24px, 4vw, 56px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px);
}
.cursor { font-weight: 400; }
.calendario-sub { margin: 0; font-size: clamp(18px, 2.2vw, 26px); line-height: 1.25; font-weight: 300; }
.calendario-sub strong { font-weight: 500; }
.calendario-sub span { color: var(--fg-72); }

.cal-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1px; background: var(--line);
}
.cal { background: var(--bg-2); padding: clamp(22px, 2.6vw, 32px); transition: background .18s ease; }
.cal:hover { background: var(--bg-hover); }
.cal-date { display: flex; align-items: center; gap: 8px; }
.cal-dot { width: 5px; height: 5px; display: block; background: var(--c); }
.cal-date-text { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.14em; color: var(--ct); }
.cal-line { height: 1px; margin: 10px 0 16px; background: linear-gradient(90deg, var(--cl), var(--line-soft)); }
.cal h3 { margin: 0; font-size: clamp(20px, 2.1vw, 25px); line-height: 1.16; font-weight: 400; letter-spacing: -0.01em; }
.cal p { margin: 12px 0 0; font-size: 16px; line-height: 1.55; font-weight: 300; color: rgba(255,255,255,0.74); }

.c1 { --c: var(--orange); --ct: var(--orange-t); --cl: rgba(255,178,125,0.7); }
.c2 { --c: var(--pink);   --ct: var(--pink-t);   --cl: rgba(244,121,186,0.7); }
.c3 { --c: var(--purple); --ct: var(--purple-t); --cl: rgba(195,160,255,0.7); }
.c4 { --c: var(--blue);   --ct: var(--blue-t);   --cl: rgba(138,194,255,0.7); }
.c5 { --c: var(--teal);   --ct: var(--teal-t);   --cl: rgba(85,211,201,0.7); }

.cal-tbd { display: flex; flex-direction: column; gap: 12px; justify-content: center; background: rgba(255,255,255,0.03); }
.cal-tbd:hover { background: rgba(255,255,255,0.03); }
.cal-tbd .cal-date-text { color: var(--fg-80); }
.cal-tbd h3 { font-size: clamp(19px, 2vw, 23px); line-height: 1.2; }
.cal-tbd p { margin: 0; color: rgba(255,255,255,0.78); }

/* ---------- Footer ---------- */
.footer { padding: clamp(48px, 6vw, 80px) var(--pad-x) 36px; background: var(--bg-2); border-top: 1px solid var(--line); }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(28px, 4vw, 56px); align-items: start;
}
.footer-tag { margin: 10px 0 20px; font-size: 16px; font-weight: 300; color: var(--fg-60); }
.footer-logo { height: 88px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; display: block; }
.footer-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-50); margin-bottom: 12px; }
.footer-contact { margin: 0; font-size: 17px; line-height: 1.6; font-weight: 300; }
.footer-name { font-weight: 500; }
.footer-role { color: var(--fg-68); }
.footer-about { margin: 0; font-size: 16px; line-height: 1.6; font-weight: 300; color: var(--fg-68); }
.footer-bottom {
  margin-top: clamp(34px, 4vw, 54px); padding-top: 20px; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; color: var(--fg-50);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .cal, .field input, .field textarea { transition: none; }
}

/* La tarjeta "Por definir" ocupa el hueco que deja la cuadrícula de 11 elementos */
@media (min-width: 700px) {
  .cal-tbd { grid-column: span 2; }
}

/* En pantallas angostas el logo se ajusta al ancho y conserva su proporción */
@media (max-width: 560px) {
  .eyebrow-logo, .footer-logo { height: auto; width: 100%; max-width: 360px; }
}
