/* Vogara Nova 2026: Nova (Pantone 2955 C), Orbis (Cool Gray 10 C), Aura (Cool Gray 2 C). Same tokens as Nova-Client-Portal. */
:root {
  --nova: #003968; --nova-strong: #002a4d; --nova-soft: #e6eef5; --nova-hover: #144f7f;
  --orbis: #63666f; --aura: #d0d1db; --aura-soft: #eeeff3; --plate: #ffffff;
  --ink: #1a2533; --paper: #f5f6f9; --line: #dcdde4;
  --success: #1e6b3a; --success-soft: #e6f4ea; --error: #b42318; --error-soft: #fdecea;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Sora', var(--font-sans);
  --radius: 8px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--font-sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
a { color: var(--nova); }
:focus-visible { outline: 3px solid #9bb5ca; outline-offset: 2px; }

.page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .page { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--nova); color: #fff; padding: 28px 20px 36px; }
.hero::after { content: ''; position: absolute; right: -140px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; border: 2px solid rgba(255,255,255,.08); box-shadow: 0 0 0 46px rgba(255,255,255,.03), 0 0 0 92px rgba(255,255,255,.02); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; }
@media (min-width: 960px) {
  .hero { padding: 56px 56px; display: flex; align-items: center; position: sticky; top: 0; height: 100vh; }
  .hero-inner { margin: 0 0 0 auto; width: 100%; }
}
.brand-plate { display: inline-flex; padding: 8px 12px; border-radius: var(--radius); background: var(--plate); box-shadow: 0 0 0 1px var(--line); }
.brand-plate img { display: block; height: 64px; width: auto; }
@media (min-width: 960px) { .brand-plate img { height: 88px; } }
.eyebrow { margin: 28px 0 10px; color: #b9cde0; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { margin: 0; font: 700 clamp(26px, 6.4vw, 40px)/1.15 var(--font-display); letter-spacing: -.01em; text-wrap: balance; }
.lead { margin: 14px 0 0; color: #d9e4ee; font-size: 16px; }
.points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.points li { display: flex; gap: 10px; align-items: flex-start; color: #eef3f8; font-size: 15px; }
.points svg { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 2px; padding: 2px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; }
@media (max-width: 959px) { .points { display: none; } }

/* Form panel */
.panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 16px 24px; }
@media (min-width: 960px) { .panel { padding: 56px; } }
.card { width: 100%; max-width: 520px; margin-top: -16px; position: relative; z-index: 2; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px 20px; box-shadow: 0 10px 30px rgba(0, 57, 104, .08); }
@media (min-width: 600px) { .card { padding: 32px; } }
@media (min-width: 960px) { .card { margin-top: 0; } }
.card-title { margin: 0 0 6px; color: var(--nova); font: 700 22px/1.25 var(--font-display); }

.field { display: grid; gap: 6px; margin: 16px 0 0; }
.field label { color: #474a57; font-size: 14px; font-weight: 600; }
.optional { color: var(--orbis); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; border: 1px solid #c9ccd5; border-radius: 7px; background: #fff; color: var(--ink); padding: 11px 13px; font-size: 16px; transition: border-color .15s ease, box-shadow .15s ease; appearance: none; }
.field select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%2363666f' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; padding-right: 40px; }
.field input::placeholder, .field textarea::placeholder { color: #8f929c; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #698daa; outline: 0; box-shadow: 0 0 0 3px rgba(0, 57, 104, .12); }
.field small { color: var(--orbis); font-size: 13px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); }
.field-error { margin: 0; min-height: 0; color: var(--error); font-size: 13px; }
.field-error:empty { display: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; color: #474a57; font-size: 14px; font-weight: 400 !important; line-height: 1.45; cursor: pointer; }
.consent input { flex: 0 0 20px; width: 20px; height: 20px; min-height: 0; margin: 1px 0 0; padding: 0; accent-color: var(--nova); appearance: auto; }
.consent a { white-space: nowrap; }
.field-consent { margin-top: 20px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; margin-top: 22px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--radius); background: var(--nova); color: #fff; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; box-shadow: 0 3px 8px rgba(0, 57, 104, .18); transition: background .18s ease, transform .18s ease; }
.button:hover { background: var(--nova-hover); transform: translateY(-1px); }
.button:disabled { opacity: .7; cursor: progress; transform: none; }
.button-ghost { background: #fff; color: var(--nova); border-color: #b9c9d8; box-shadow: none; margin-top: 10px; }
.button-ghost:hover { background: var(--nova-soft); }
.spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-alert { margin: 12px 0 0; padding: 10px 12px; border-radius: 7px; background: var(--error-soft); color: var(--error); font-size: 14px; }
.fine-print { margin: 12px 0 0; color: var(--orbis); font-size: 12px; text-align: center; }

.success { text-align: center; padding: 8px 0; }
.success:focus { outline: none; }
.success p { color: #474a57; margin: 8px 0 0; }
.success-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 14px; border-radius: 50%; background: var(--success-soft); color: var(--success); }
.success-icon svg { width: 30px; height: 30px; }
.success-actions { margin-top: 8px; }

.foot { margin-top: 20px; color: var(--orbis); font-size: 13px; text-align: center; }
.foot a { color: inherit; }

.message-page { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.message-card { max-width: 440px; margin: 0; text-align: center; }
.message-card .brand-plate { margin-bottom: 20px; box-shadow: none; }
.message-card p { color: #474a57; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation-duration: 0s !important; } }

/* Privacy notice: modal on the form, full page or embedded (?embed=1) */
.legal-modal { width: min(760px, calc(100vw - 24px)); height: min(86vh, 900px); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 20, 40, .35); }
.legal-modal[open] { display: flex; flex-direction: column; }
.legal-modal::backdrop { background: rgba(0, 26, 48, .55); }
.legal-modal-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.legal-modal-bar h2 { margin: 0; color: var(--nova); font: 700 17px/1.2 var(--font-display); }
.legal-close { width: auto; min-height: 40px; margin: 0; font-size: 14px; white-space: nowrap; flex: 0 0 auto; }
.legal-modal iframe { flex: 1; width: 100%; border: 0; background: #fff; }

.legal-page { background: var(--paper); }
.legal { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; }
.legal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.legal-head .brand-plate img { height: 56px; }
.legal-back { width: auto; min-height: 42px; margin: 0; font-size: 14px; }
.legal h1 { margin: 0 0 4px; color: var(--nova); font: 700 clamp(26px, 5vw, 34px)/1.2 var(--font-display); }
.legal-body { color: #3a3f4b; font-size: 15px; line-height: 1.65; }
.legal-body h2 { margin: 28px 0 8px; color: var(--nova); font: 700 18px/1.3 var(--font-display); }
.legal-body ul { padding-left: 20px; }
.legal-body li { margin: 4px 0; }
.legal-updated { color: var(--orbis); font-size: 13px; }
.legal-foot { margin-top: 32px; }
.pendiente { background: #fff4e0; color: var(--warning, #8a4b00); padding: 0 3px; border-radius: 3px; font-weight: 600; }
.is-embed .legal-head, .is-embed .legal-foot { display: none; }
.is-embed .legal { padding: 16px 20px 32px; }
.is-embed.legal-page { background: #fff; }
.is-embed .legal h1 { display: none; }
