/* ═══════════════════════════════════════════════════════════════
   Alta ligera de EU Funding Studio (/crear-cuenta, /verify-email)
   27-oct-2026. Una sola tarjeta y una sola acción. Sin la app: este
   CSS, i18n.js, track.js y alta.js. Marca como la portada (landing.css):
   azul #4312d8, tinta #1b0759, lima #e9ff60 solo de fondo/CTA, Poppins.
   Controles en píldora; superficies 20px. Campos a 16px (iOS no hace zoom).
   ═══════════════════════════════════════════════════════════════ */

@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/poppins/poppins-400.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/poppins/poppins-600.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/poppins/poppins-700.woff2) format('woff2'); }

:root {
  --azul: #4312d8;
  --tinta: #1b0759;
  --violeta: #7349f0;
  --lima: #e9ff60;
  --lima-osc: #d4ec3c;
  --error: #b3261e;

  --fondo: #fcfbfa;
  --tarjeta: #fff;
  --texto: var(--tinta);
  --texto-2: #55577a;
  --titulo: var(--azul);
  --linea: #d6d3dc;
  --campo: #fff;
  --sombra: 0 24px 60px -28px rgba(67, 18, 216, .28);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #16173a;
    --tarjeta: #23255a;
    --texto: #e8eef6;
    --texto-2: #c4c3dc;
    --titulo: #e8eef6;
    --linea: rgba(239, 232, 254, .22);
    --campo: #1d1f4a;
    --error: #ffb4ab;
    --sombra: 0 24px 60px -24px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--fondo);
  color: var(--texto);
  font-family: Poppins, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem; line-height: 1.5;
}
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--violeta); outline-offset: 2px; }

.saltar { position: absolute; left: 8px; top: -60px; z-index: 40; padding: 8px 14px; border-radius: 999px;
  background: var(--lima); color: var(--azul); font-weight: 600; text-decoration: none; }
.saltar:focus { top: 8px; }

/* ── Cabecera ──────────────────────────────────────────────── */
.cab { background: var(--azul); }
.cab__in { max-width: 1200px; margin: 0 auto; height: 56px; padding: 0 clamp(16px, 4vw, 40px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cab__marca { display: inline-flex; }
.cab__marca img { width: 187px; height: auto; display: block; }
.cab :focus-visible { outline-color: var(--lima); }
.efs-lang { display: inline-flex; padding: 2px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; }
.efs-lang a { min-width: 40px; min-height: 28px; display: inline-flex; align-items: center; justify-content: center;
  padding: 2px 10px; border-radius: 999px; color: rgba(255,255,255,.85); text-decoration: none; font-size: .8rem; font-weight: 600; }
.efs-lang a:hover { color: #fff; }
html[lang="es"] .efs-lang a[data-lang="es"],
html[lang="en"] .efs-lang a[data-lang="en"] { background: #fff; color: var(--azul); }

/* ── Tarjeta ───────────────────────────────────────────────── */
.alta { flex: 1; width: 100%; max-width: 480px; margin: 0 auto; padding: 20px 16px 32px; }
.tarjeta { background: var(--tarjeta); border-radius: 20px; box-shadow: var(--sombra); padding: 24px 20px; }
@media (min-width: 520px) { .alta { padding-top: 48px; } .tarjeta { padding: 32px; } }

h1 { margin: 0 0 6px; color: var(--titulo); font-size: clamp(1.35rem, 5.4vw, 1.6rem); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
h1:focus { outline: none; }
.texto { margin: 8px 0 16px; color: var(--texto-2); }
.destino { margin: 0 0 4px; font-size: .9rem; color: var(--texto-2); }
.destino__nombre { color: var(--texto); font-weight: 600; }

/* ── Google ────────────────────────────────────────────────── */
.google { margin-top: 18px; }
.google__btn { min-height: 44px; display: flex; justify-content: center; }
.nota { margin: 8px 0 0; font-size: .75rem; line-height: 1.4; text-align: center; color: var(--texto-2); }
.sep { display: flex; align-items: center; gap: 12px; margin: 18px 0 2px; color: var(--texto-2); font-size: .8rem; }
.sep::before, .sep::after { content: ''; flex: 1; height: 1px; background: var(--linea); }
.google__hueco { margin: 8px 0 16px; }
.google__hueco .sep { display: none; }

/* ── Formulario ────────────────────────────────────────────── */
.form { margin-top: 14px; }
.campo { margin-bottom: 14px; }
.campo label { display: block; margin-bottom: 6px; font-size: .85rem; font-weight: 600; }
.opcional { font-weight: 400; color: var(--texto-2); }
.campo input { width: 100%; height: 48px; padding: 0 16px; border: 1px solid var(--linea); border-radius: 12px;
  background: var(--campo); color: var(--texto); font: inherit; font-size: 16px; }
.campo input:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(67, 18, 216, .18); }
.campo input[aria-invalid="true"] { border-color: var(--error); }
.clave { position: relative; }
.clave input { padding-right: 52px; }
.clave__ver { position: absolute; right: 2px; top: 2px; width: 44px; height: 44px; border: 0; border-radius: 10px;
  background: transparent; color: var(--texto-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.clave__ver[aria-pressed="true"] { color: var(--azul); }
.ayuda { margin: 6px 0 0; font-size: .78rem; color: var(--texto-2); }

.error { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; font-size: .85rem; font-weight: 600;
  color: var(--error); background: rgba(179, 38, 30, .08); }
.error.ok { color: var(--texto); background: rgba(67, 18, 216, .08); }

.legal { margin: 4px 0 10px; font-size: .8rem; color: var(--texto-2); }
.legal a, .nota a, .entrar a, .rgpd a { color: var(--titulo); font-weight: 600; }
.btn { width: 100%; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 24px; border: 0; border-radius: 999px; font: inherit; font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer; transition: background-color .18s var(--ease-out), transform .12s var(--ease-out); }
.btn:active { transform: scale(.985); }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn--lima { background: var(--lima); color: var(--azul); }
.btn--borde { background: transparent; color: var(--titulo); border: 1px solid var(--linea); }
@media (hover: hover) {
  .btn--lima:hover { background: var(--lima-osc); }
  .btn--borde:hover { border-color: var(--azul); }
}
.confianza { margin: 10px 0 0; text-align: center; font-size: .85rem; font-weight: 600; color: var(--texto); }
.rgpd { margin: 14px 0 0; font-size: .7rem; line-height: 1.45; color: var(--texto-2); }
.entrar { margin: 18px 0 0; text-align: center; font-size: .9rem; color: var(--texto-2); }

.pie { padding: 0 16px 24px; text-align: center; font-size: .8rem; color: var(--texto-2); }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:active { transform: none; } }

/* /verify-email: el servidor marca <html data-modo="verificar">; nada de formulario de alta. */
html[data-modo="verificar"] #vista-alta { display: none !important; }
html[data-modo="verificar"] #vista-verificar[hidden] { display: block !important; }
