/* Nubesoría · hoja de estilos (móvil primero). Letras del sistema: no se carga ninguna fuente de terceros. */
:root {
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --surface-2: #EEF2F7;
  --ink: #0F2A4A;
  --text: #1E293B;
  --muted: #4B5568;
  --line: #D8E0EA;
  --brand: #0F2A4A;
  --brand-hover: #1A3D66;
  --on-brand: #FFFFFF;
  --accent: #2BD49B;
  --accent-ink: #0B7A57;
  --accent-soft: #E3F8F0;
  --band: #0F2A4A;
  --band-text: #E8EEF6;
  --band-muted: #B9C5D8;
  --pending-bg: #FFF1C2;
  --pending-text: #5C4300;
  --error: #B42318;
  --focus: #1D6FE0;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 42, 74, .06), 0 6px 24px rgba(15, 42, 74, .07);
  --lg-badge: #0F2A4A; --lg-n: #FFFFFF; --lg-tick: #2BD49B; --lg-word: #0F2A4A; --lg-sub: #56627A;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A1524;
    --surface: #102036;
    --surface-2: #142740;
    --ink: #F1F5F9;
    --text: #E2E8F0;
    --muted: #B3C0D1;
    --line: #26384F;
    --brand: #2BD49B;
    --brand-hover: #5CE0B4;
    --on-brand: #0B1F36;
    --accent-ink: #5CE0B4;
    --accent-soft: #123A35;
    --band: #0D2742;
    --pending-bg: #FFE08A;
    --pending-text: #3D2C00;
    --error: #FF8A80;
    --focus: #8AB8FF;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 24px rgba(0, 0, 0, .25);
    --lg-badge: #FFFFFF; --lg-n: #0F2A4A; --lg-tick: #11A877; --lg-word: #FFFFFF; --lg-sub: #B9C5D8;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 7.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 5.2vw, 2.35rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--surface); color: var(--ink); padding: 12px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; min-width: 44px; padding: 12px 22px;
  border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1.0625rem; line-height: 1.2; text-align: center; text-decoration: none;
  cursor: pointer;
}
@media (prefers-reduced-motion: no-preference) { .btn { transition: background-color .15s ease, border-color .15s ease, transform .15s ease; } .btn:active { transform: translateY(1px); } }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-accent { background: var(--accent); color: #0B1F36; }
.btn-accent:hover { background: #5CE0B4; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: .95rem; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.brand .logo-svg { height: 40px; width: auto; display: block; }
.nav { display: none; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 8px; }
.nav a:hover { background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 8px; }
@media (min-width: 980px) { .nav { display: flex; gap: 2px; } .brand .logo-svg { height: 50px; } }
.header-actions .btn-sm { white-space: nowrap; padding: 8px 14px; font-size: .9rem; }
@media (max-width: 379px) { .brand .logo-svg { height: 32px; } .header-actions .btn-sm { white-space: normal; padding: 6px 12px; font-size: .85rem; max-width: 150px; } }

/* Portada */
.hero { padding: 36px 0 56px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 72px 0 88px; } .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; } }
.eyebrow { display: inline-block; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 6px 14px; font-size: .9rem; margin-bottom: 18px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
@media (min-width: 900px) { .lead { font-size: 1.25rem; } }
.cta-row { display: flex; flex-direction: column; gap: 12px; margin: 28px 0 22px; }
@media (min-width: 560px) { .cta-row { flex-direction: row; flex-wrap: wrap; } }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 560px) { .ticks { flex-direction: row; flex-wrap: wrap; gap: 10px 24px; } }
.ticks li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); }
.ticks svg { width: 22px; height: 22px; flex: none; color: var(--accent-ink); }

/* Ilustración del móvil (decorativa, sin datos reales) */
.mock { margin: 0 auto; width: 100%; max-width: 330px; }
.phone { background: #0B1F36; border-radius: 40px; padding: 12px; box-shadow: 0 30px 60px rgba(15, 42, 74, .25); }
.screen { background: #F5F7FA; border-radius: 30px; padding: 18px 14px 22px; color: #1E293B; display: grid; gap: 10px; }
.scr-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 6px; }
.scr-top .scr-logo { width: 34px; height: 34px; }
.scr-top b { font-size: 1.05rem; color: #0F2A4A; }
.scr-top span { font-size: .85rem; color: #4B5568; }
.scr-card { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 12px; box-shadow: 0 1px 2px rgba(15, 42, 74, .08); }
.scr-card .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: #E3F8F0; color: #0B7A57; }
.scr-card .ic svg { width: 22px; height: 22px; }
.scr-card.warn .ic { background: #FFF1C2; color: #7A5A00; }
.scr-card b { display: block; font-size: .95rem; color: #0F2A4A; line-height: 1.25; }
.scr-card small { display: block; font-size: .8rem; color: #4B5568; line-height: 1.3; }
.scr-card .ok { margin-left: auto; color: #0B7A57; width: 22px; height: 22px; flex: none; }
.scr-chat { background: #0F2A4A; color: #fff; border-radius: 16px 16px 16px 4px; padding: 10px 14px; font-size: .92rem; justify-self: start; max-width: 85%; }
.scr-chat small { display: block; color: #B9C5D8; font-size: .75rem; }
.mock figcaption { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 12px; }

/* Secciones */
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.kicker, .section-head .kicker { font-weight: 800; color: var(--accent-ink); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin-bottom: 10px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: paso; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.section.alt .steps li { background: var(--bg); }
.steps li::before { counter-increment: paso; content: counter(paso); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 800; font-size: 1.2rem; margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; }

.features { display: grid; gap: 16px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 14px; }
.feature .ic svg { width: 26px; height: 26px; }
.feature h3 { margin-bottom: .35em; }
.feature p { color: var(--muted); margin: 0; font-size: 1rem; }
@media (max-width: 639px) {
  .feature { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; padding: 18px; }
  .feature .ic { grid-row: span 2; margin-bottom: 0; }
}

.services { margin-top: 40px; }
.services h3 { margin-bottom: 14px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 16px; font-weight: 600; color: var(--ink); }

.who { display: grid; gap: 16px; }
@media (min-width: 800px) { .who { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.who-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.who-card .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); margin-bottom: 16px; }
.who-card .ic svg { width: 28px; height: 28px; }
.who-card p { color: var(--muted); }
.who-card ul { margin: 0 0 6px; padding-left: 1.2em; color: var(--text); }
.who-card li { margin-bottom: 6px; }

/* Banda «Cámbiate gratis» */
.band { background: var(--band); color: var(--band-text); padding: 64px 0; }
@media (min-width: 900px) { .band { padding: 88px 0; } }
.band h2 { color: #FFFFFF; }
.band .kicker { color: var(--accent); }
.band-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .band-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.band p { color: var(--band-muted); font-size: 1.1rem; }
.band-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.band-steps li { display: flex; gap: 14px; align-items: flex-start; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 16px; color: #FFFFFF; font-weight: 600; }
.band-steps .n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #0B1F36; display: grid; place-items: center; font-weight: 800; }
.band-steps small { display: block; font-weight: 400; color: var(--band-muted); font-size: .95rem; margin-top: 2px; }

/* Preguntas frecuentes */
.faq { max-width: 820px; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 20px; font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); font-size: 1.3rem; font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 20px 18px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* Formulario */
.form-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .form-grid { grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; } }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
@media (min-width: 560px) { .form-card { padding: 32px; } }
.field { margin-bottom: 18px; }
.field label, .field legend { display: block; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  border: 2px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text);
  font: inherit; font-size: 1.05rem;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); }
.hint { font-size: .9rem; color: var(--muted); margin: 6px 0 0; }
.err { display: none; color: var(--error); font-weight: 600; font-size: .95rem; margin: 6px 0 0; }
.err.show { display: block; }
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.radios { display: grid; gap: 10px; }
@media (min-width: 480px) { .radios { grid-template-columns: repeat(3, 1fr); } }
.radio { position: relative; }
.radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--bg); font-weight: 700; color: var(--ink); cursor: pointer; }
.radio input:checked + span { border-color: var(--accent-ink); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-ink); }
.radio input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
fieldset[aria-invalid="true"] .radio span { border-color: var(--error); }
.field label.check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 7px 0; margin: 0; font-weight: 400; color: var(--text); cursor: pointer; }
.check input { width: 30px; height: 30px; margin: 0; flex: none; accent-color: var(--accent-ink); cursor: pointer; }
.check span { font-weight: 400; color: var(--text); }
.form-note { font-size: .95rem; color: var(--muted); background: var(--surface-2); border-radius: 12px; padding: 12px 14px; margin: 4px 0 18px; }
.form-card .btn { width: 100%; }
.status { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--text); display: none; }
.status.show { display: block; }
.capa1 { font-size: .8rem; line-height: 1.5; color: var(--muted); margin: 18px 0 0; }
.direct { margin-top: 22px; display: grid; gap: 10px; }
.direct a { font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; justify-self: start; }

/* Pie */
.site-footer { background: #0B1F36; color: #C9D4E3; padding: 48px 0 32px; font-size: .97rem; }
.site-footer { --lg-badge: #FFFFFF; --lg-n: #0F2A4A; --lg-tick: #11A877; --lg-word: #FFFFFF; --lg-sub: #B9C5D8; }
.site-footer .logo-svg { height: 44px; width: auto; display: block; margin-bottom: 14px; }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h2 { color: #FFFFFF; font-size: 1rem; letter-spacing: .02em; margin-bottom: 12px; }
.site-footer a { color: #FFFFFF; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; }
.pending { display: inline-block; background: var(--pending-bg); color: var(--pending-text); font-weight: 800; font-size: .85rem; letter-spacing: .02em; padding: 3px 10px; border-radius: 6px; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 32px; padding-top: 12px; font-size: .88rem; color: #B9C5D8; display: grid; gap: 0; }
.foot-bottom p { margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; }

/* Páginas legales */
.legal { padding: 40px 0 72px; }
.legal .doc { max-width: 820px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px 20px; }
@media (min-width: 700px) { .legal .doc { padding: 44px 48px; } }
.legal h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }
.legal .updated { color: var(--muted); }
.legal dl { display: grid; gap: 4px 18px; margin: 0 0 1em; }
@media (min-width: 640px) { .legal dl { grid-template-columns: 210px 1fr; } }
.legal dt { font-weight: 700; color: var(--ink); }
.legal dd { margin: 0 0 8px; }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .97rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
.legal th { background: var(--surface-2); color: var(--ink); width: 34%; }
.back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; margin-bottom: 12px; }
