/* Nuva Finanzas — sitio */
:root {
  --bg: #f6f6fb;
  --surface: #ffffff;
  --surface-2: #f0eefc;
  --text: #15131f;
  --muted: #5f5b72;
  --faint: #8d89a3;
  --border: #e6e3f2;
  --accent: #6d4aff;
  --accent-2: #4c2fd8;
  --accent-soft: #ece7ff;
  --success: #12a150;
  --success-soft: #e3f6ea;
  --warning: #b46a00;
  --warning-soft: #fff3df;
  --danger: #d93644;
  --danger-soft: #fdeaec;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(54, 32, 140, 0.25);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c10;
    --surface: #15161c;
    --surface-2: #1d1b2b;
    --text: #f2f1f7;
    --muted: #aaa6bd;
    --faint: #7c7893;
    --border: #2a2838;
    --accent: #8f73ff;
    --accent-2: #6d4aff;
    --accent-soft: #241d45;
    --success: #34c472;
    --success-soft: #11291b;
    --warning: #f0a830;
    --warning-soft: #2c2210;
    --danger: #ff6370;
    --danger-soft: #2e1418;
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: var(--accent); font-weight: 600; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* Encabezado */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.nav { display: flex; gap: 18px; font-size: 14px; }
.nav a { color: var(--muted); font-weight: 600; white-space: nowrap; }
.brand { white-space: nowrap; }
@media (max-width: 560px) { .nav .hide-sm { display: none; } .nav { gap: 12px; font-size: 13px; } .brand { font-size: 15px; } .brand img { width: 30px; height: 30px; } }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-weight: 800; font-size: 15px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  box-shadow: var(--shadow); transition: transform .15s ease, opacity .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: none; }
.btn.danger { background: var(--danger); }

/* Portada */
.hero { padding: 64px 0 40px; text-align: center; }
.hero .logo { width: 96px; height: 96px; border-radius: 28px; margin: 0 auto 22px; box-shadow: var(--shadow); }
.hero h1 { font-size: clamp(32px, 6vw, 54px); line-height: 1.08; letter-spacing: -0.035em; margin: 0 0 14px; }
.hero h1 span { background: linear-gradient(135deg, var(--accent), #c06bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(17px, 2.4vw, 20px); color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--success-soft); color: var(--success); font-weight: 700; font-size: 13px; margin-bottom: 18px; }

/* Tarjetas de funciones */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 24px 0 56px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.feature .ico { width: 42px; height: 42px; border-radius: 13px; background: var(--accent-soft); display: grid; place-items: center; font-size: 21px; margin-bottom: 12px; }
.feature h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }

.band { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 28px; margin-bottom: 56px; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.band .big { font-size: 40px; }
.band h2 { margin: 0 0 6px; letter-spacing: -0.02em; }
.band p { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .band { grid-template-columns: 1fr; text-align: center; } }

/* Documentos */
.doc { padding: 40px 0 64px; }
.doc h1 { font-size: clamp(28px, 5vw, 40px); letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 8px; }
.doc .meta { color: var(--faint); font-size: 14px; margin-bottom: 28px; }
.doc h2 { font-size: 21px; letter-spacing: -0.01em; margin: 36px 0 10px; scroll-margin-top: 80px; }
.doc h3 { font-size: 17px; margin: 22px 0 6px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .muted { color: var(--muted); }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 8px; }
.toc ol { margin: 6px 0 0; padding-left: 20px; columns: 2; column-gap: 28px; font-size: 14.5px; }
.doc .toc li { margin: 0 0 6px; break-inside: avoid; }
@media (max-width: 560px) { .toc ol { columns: 1; } }
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; margin: 18px 0; }
.callout.ok { background: var(--success-soft); }
.callout.info { background: var(--accent-soft); }
.callout.warn { background: var(--warning-soft); }
.callout.err { background: var(--danger-soft); }
.callout .i { font-size: 20px; line-height: 1.4; }
.callout p { margin: 0; }
table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14.5px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.table-scroll table { margin: 0; min-width: 560px; }

/* Formulario de eliminación */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 18px 0 28px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.step .n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-weight: 800; margin-bottom: 8px; }
.step h3 { margin: 0 0 4px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }
label { display: block; font-weight: 700; font-size: 14px; margin: 14px 0 6px; }
input[type=email], input[type=password], input[type=text] {
  width: 100%; height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font: inherit; font-size: 16px;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-size: 14.5px; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.hidden { display: none !important; }
.status { margin-top: 14px; }

/* Pie */
.foot { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--faint); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--muted); }
