/* Landing Especialistas v2 — estilos de página sobre los tokens de Si Soy. */
html { scroll-behavior: smooth; }
body { margin: 0; background: #f6f7fb; color: #14142b; font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
a { color: #5f55ff; text-decoration: none; }
a:hover { color: #c638fb; }
select option { background: #ffffff; color: #14142b; }

.page { position: relative; min-height: 100vh; background: var(--bg); color: var(--tx); overflow-x: hidden; }

/* Header / footer */
.site-header { max-width: 1120px; margin: 0 auto; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header .logo { height: 53px; width: 47px; display: block; }
.btn-ghost { font-size: 13px; font-weight: 800; color: var(--tx); padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--br); }
.site-footer { max-width: 1120px; margin: 0 auto; padding: 28px 24px 48px; border-top: 1px solid var(--br); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.site-footer .logo { height: 51px; width: 45px; display: block; }
.site-footer span { font-size: 12px; color: var(--mt); }

/* Botones */
.btn-gradient { display: inline-flex; align-items: center; justify-content: center; border-radius: 16px; background: var(--gr); color: #fff; font-weight: 800; }
.btn-gradient:hover { color: #fff; opacity: var(--hover-opacity); }
.btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px; border-radius: var(--r-2xl); font-family: var(--font-sans); font-size: 15px; font-weight: var(--fw-extrabold); letter-spacing: var(--tracking-tight); cursor: pointer; border: none; background: var(--gr); color: #fff; transition: opacity var(--dur-base) var(--ease); }
.btn:hover:not(:disabled) { opacity: var(--hover-opacity); }
.btn:disabled { cursor: not-allowed; opacity: var(--disabled-opacity); }

/* Hero */
.hero { max-width: 880px; margin: 0 auto; padding: 40px 24px 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
/* Pill "en vivo": borde con el degradado de marca, punto pulsante y glow suave */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tx); padding: 10px 18px 10px 14px; border-radius: 999px; border: 1.5px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--gr) border-box; box-shadow: 0 6px 20px rgba(95,85,255,0.22), 0 0 0 5px rgba(95,85,255,0.07); }
.eyebrow .sep { color: var(--mg); }
.live-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--mg); flex-shrink: 0; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--mg); animation: live-pulse 1.8s var(--ease) infinite; }
@keyframes live-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .live-dot::after { animation: none; } }
.hero h1 { margin: 0; font-size: clamp(38px, 6.4vw, 68px); font-weight: 900; line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; }
.hero p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--mt); max-width: 560px; text-wrap: pretty; }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-cta .btn-gradient { padding: 16px 28px; font-size: 15px; }
.hero-cta small { font-size: 12px; color: var(--mt); }

/* Escenario de teléfonos */
.stage { position: relative; height: 640px; margin-top: 56px; overflow: hidden; }
.stage-glow { position: absolute; left: 50%; top: 40px; width: 900px; height: 520px; margin-left: -450px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(95,85,255,0.22), rgba(198,56,251,0.10) 45%, transparent 70%); pointer-events: none; }
.phone { position: absolute; left: 50%; top: 0; width: 272px; margin-left: -136px; }
/* Misma altura para todos los teléfonos; el recorte inferior se disuelve con la máscara */
.phone img { width: 272px; height: 440px; object-fit: cover; object-position: top; display: block; }
.fade-bottom { -webkit-mask-image: linear-gradient(180deg, #000 55%, rgba(0,0,0,.6) 72%, transparent 94%); mask-image: linear-gradient(180deg, #000 55%, rgba(0,0,0,.6) 72%, transparent 94%); }
.stage-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(180deg, rgba(246,247,251,0), var(--bg)); pointer-events: none; }

/* Mockup "Mi panel" */
.panel-device { width: 272px; height: 440px; border-radius: 44px 44px 0 0; background: #14142b; padding: 7px 7px 0; box-sizing: border-box; }
.panel-screen { width: 100%; height: 100%; border-radius: 37px 37px 0 0; background: var(--bg); overflow: hidden; display: flex; flex-direction: column; }
.status-bar { padding: 16px 24px 10px; display: flex; align-items: center; justify-content: space-between; }
.status-bar > span:first-child { font-size: 12px; font-weight: 800; }
.status-icons { display: flex; align-items: flex-end; gap: 4px; }
.signal { display: flex; align-items: flex-end; gap: 1.5px; }
.signal i { width: 2.5px; background: var(--tx); border-radius: 1px; }
.battery { width: 18px; height: 9px; border: 1.5px solid var(--tx); border-radius: 3px; box-sizing: border-box; padding: 1px; }
.battery i { display: block; width: 100%; height: 100%; background: var(--tx); border-radius: 1px; }
.panel-body { padding: 4px 16px; display: flex; flex-direction: column; gap: 12px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; }
.panel-head strong { font-size: 20px; font-weight: 900; letter-spacing: -0.01em; white-space: nowrap; }
.panel-head span { font-size: 10px; font-weight: 700; color: var(--mt); }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.metric, .balance { background: var(--cd); border: 1px solid var(--br); border-radius: 14px; }
.metric { padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.metric .k { font-size: 8px; font-weight: 800; letter-spacing: 0.12em; color: var(--mt); }
.metric .v { font-size: 20px; font-weight: 900; }
.metric .v.masked { font-size: 14px; line-height: 1.6; }
.metric .d { font-size: 9px; font-weight: 700; color: var(--ok); }
.metric .d.muted { color: var(--mt); }
.balance { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.balance .row { display: flex; justify-content: space-between; }
.balance .row span:first-child { font-size: 10px; font-weight: 700; color: var(--mt); }
.balance .row span:last-child { font-size: 11px; font-weight: 800; }
.balance .withdraw { text-align: center; padding: 10px; border-radius: 12px; background: var(--gr); color: #fff; font-size: 11px; font-weight: 800; }
.panel-note { font-size: 9px; color: var(--mt); text-align: center; }

/* Registro */
.registro { position: relative; z-index: 2; max-width: 1120px; margin: -120px auto 0; padding: 0 24px 96px; display: flex; justify-content: center; }
.registro-glow { position: absolute; left: 50%; top: 10%; width: 720px; max-width: 100%; height: 80%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse at center, rgba(95,85,255,0.28), rgba(198,56,251,0.14) 45%, transparent 72%); filter: blur(20px); pointer-events: none; }
.form-frame { position: relative; width: 100%; max-width: 500px; box-sizing: border-box; scroll-margin-top: 24px; padding: 2px; border-radius: 26px; background: var(--gr); box-shadow: 0 30px 60px rgba(44,12,247,0.22), 0 8px 20px rgba(20,20,43,0.08); }
.form-card { background: var(--cd); border-radius: 24px; padding: 36px 32px; }
.form { display: flex; flex-direction: column; gap: 22px; }
.form-title { display: flex; flex-direction: column; gap: 6px; text-align: center; }
.form-title h2 { margin: 0; font-size: 34px; font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; }
.form-title p { margin: 0; font-size: 13px; color: var(--mt); }
.slot-group { display: flex; flex-direction: column; gap: 8px; }
.micro-label { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mt); }
.slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.slot { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 6px; border-radius: 12px; cursor: pointer; font-family: var(--font-sans); color: var(--tx); background: var(--bg); border: 1px solid var(--br); transition: background 150ms cubic-bezier(.4,0,.2,1), color 150ms cubic-bezier(.4,0,.2,1); }
.slot .t { font-size: 17px; font-weight: 900; letter-spacing: -0.01em; }
.slot .l { font-size: 11px; font-weight: 600; opacity: 0.75; }
.slot[aria-pressed="true"] { color: #fff; background: var(--gr); border-color: transparent; }
.slots.has-error .slot:not([aria-pressed="true"]) { border-color: var(--err); }
.hero-cta .countdown { font-size: 12px; font-weight: 800; color: var(--vi); letter-spacing: 0.04em; }
.error-text { margin: 0; font-size: 11px; font-weight: 600; color: var(--err); }

/* TextField (componente del design system) */
.field { margin-bottom: 12px; }
.field label { display: block; margin-bottom: 6px; font-size: var(--fs-10); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: var(--tracking-wider); color: var(--mt); }
.field input { width: 100%; box-sizing: border-box; background: var(--cd); border: 1px solid var(--br); border-radius: var(--r-xl); padding: 12px 14px; font-family: var(--font-sans); font-size: var(--fs-14); color: var(--tx); outline: none; transition: border-color var(--dur-base) var(--ease); }
.field input::placeholder { color: var(--placeholder); }
.field input:focus { border-color: var(--vi); }
.field.invalid input { border-color: var(--err); }
.field .error-text { margin-top: 6px; }
.form-note { margin: -10px 0 0; font-size: 11px; color: var(--mt); text-align: center; line-height: 1.5; }

/* Agenda */
.agenda { max-width: 1120px; margin: 0 auto; padding: 72px 24px; }
.agenda h2 { margin: 0 0 40px; font-size: clamp(28px, 4vw, 40px); font-weight: 900; line-height: 1.15; letter-spacing: -0.02em; text-align: center; text-wrap: balance; }
.agenda-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 32px 24px; }
.agenda-item { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--br); padding-top: 18px; }
.agenda-item .k { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--vi); }
.agenda-item .t { font-size: 18px; font-weight: 800; line-height: 1.3; }
.agenda-item .d { font-size: 14px; line-height: 1.55; color: var(--mt); }

/* CTA final */
.cta-final { max-width: 880px; margin: 0 auto; padding: 72px 24px 128px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cta-final h2 { margin: 0; font-size: clamp(30px, 5vw, 48px); font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.cta-slots { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cta-slots a { font-size: 15px; font-weight: 800; color: var(--tx); padding: 14px 22px; border-radius: 999px; border: 1.5px solid var(--br); background: var(--cd); }
.cta-final > span { font-size: 12px; color: var(--mt); }

/* CTA fijo en móvil */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 34px; background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--br); box-shadow: 0 8px 16px rgba(20,20,43,.10); }
.sticky-cta[hidden] { display: none; }
.sticky-cta div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sticky-cta strong { font-size: 13px; font-weight: 800; }
.sticky-cta small { font-size: 11px; color: var(--mt); }
.sticky-cta a { background: var(--gr); color: #fff; font-size: 13px; font-weight: 800; padding: 12px 18px; border-radius: 999px; white-space: nowrap; }

/* ---------- Mobile ---------- */
.stage-inner { position: absolute; inset: 0; transform-origin: 50% 0; }
.btn, .slot, .cta-slots a, .btn-ghost, .sticky-cta a, .hero-cta .btn-gradient { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.btn-ghost, .sticky-cta a { min-height: 44px; box-sizing: border-box; display: inline-flex; align-items: center; }
.slot .t { white-space: nowrap; }

@media (max-width: 899px) {
  /* Espacio para que el CTA fijo no tape el footer */
  .page { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .sticky-cta { bottom: calc(12px + env(safe-area-inset-bottom)); }
}

@media (max-width: 640px) {
  .site-header { padding: 14px 16px; }
  .site-header .logo { height: 44px; width: auto; }

  .hero { padding: 24px 16px 0; gap: 18px; }
  .hero h1 { font-size: clamp(34px, 10vw, 44px); }
  .eyebrow { font-size: 11px; letter-spacing: 0.08em; gap: 8px; padding: 9px 14px 9px 12px; }
  .hero p { font-size: 16px; }
  .hero-cta { width: 100%; }
  .hero-cta .btn-gradient { width: 100%; max-width: 340px; box-sizing: border-box; }

  /* Teléfonos a escala: el central completo y los laterales asomando */
  .stage { height: 470px; margin-top: 36px; }
  .stage-inner { transform: scale(0.72); }
  .stage-fade { height: 96px; }

  .registro { margin-top: -96px; padding: 0 16px 72px; }
  .form-card { padding: 28px 20px; }
  .form-title h2 { font-size: 30px; }
  .slots { gap: 6px; }
  .slot { padding: 12px 4px; }
  .slot .t { font-size: 15px; }
  /* 16px evita que iOS haga zoom al enfocar un campo */
  .field input { font-size: 16px; padding: 13px 14px; }

  .agenda { padding: 56px 16px; }
  .agenda h2 { margin-bottom: 28px; }
  .agenda-grid { gap: 24px; }

  .cta-final { padding: 56px 16px 88px; gap: 18px; }
  .cta-slots a { padding: 13px 20px; }

  .site-footer { padding: 24px 16px 32px; flex-direction: column; text-align: center; }
}

@media (max-width: 360px) {
  .slot .t { font-size: 14px; }
  .slot .l { font-size: 10px; }
}

/* Campo trampa anti-spam */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
