/* Fondo de Asistencia Laboral — Asesor de Inversiones
   Paleta navy / royal / cielo. No institucional-gubernamental. */

:root {
  --navy: #0b3a6a;
  --navy-deep: #07284b;
  --blue: #1b6bd6;
  --blue-hover: #1557b0;
  --blue-soft: #4a90e8;
  --sky: #e8f2fc;
  --sky-2: #f4f8fd;
  --ice: #f7fbff;
  --white: #ffffff;
  --text: #1a2332;
  --muted: #5a6a7a;
  --line: #d4e4f4;
  --line-strong: #b7cfe6;
  --success: #0d7a4f;
  --success-bg: #e8f6ef;
  --error: #b42318;
  --error-bg: #fdecea;
  --shadow: 0 12px 40px rgba(11, 58, 106, 0.08);
  --shadow-sm: 0 4px 16px rgba(11, 58, 106, 0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --header-offset: 120px;
  --max: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-offset) + 12px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(27, 107, 214, 0.12), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(11, 58, 106, 0.08), transparent 50%),
    linear-gradient(180deg, #dceefc 0%, var(--ice) 280px, var(--white) 640px);
  line-height: 1.6;
  min-height: 100vh;
}

body.nav-open { overflow: hidden; }

.chrome {
  position: sticky;
  top: 0;
  z-index: 50;
}

img, svg { max-width: 100%; display: block; }

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover { color: var(--blue-hover); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

/* Disclaimer — always visible */
.disclaimer {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-deep);
  color: #e8f0fa;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  padding: 8px 0;
  text-align: center;
  line-height: 1.4;
}
.disclaimer strong { color: var(--white); font-weight: 600; }

/* Header */
.site-header {
  position: relative;
  top: auto;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 8px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
}
.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}
.brand-product {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 8px;
}
.nav a:hover,
.nav a.is-active {
  background: var(--sky);
  color: var(--blue);
}

.nav-cta { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  margin: 0 auto;
  position: relative;
  border-radius: 1px;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-backdrop {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  line-height: 1.2;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: var(--white); }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: var(--white); }
.btn-ghost {
  background: var(--white);
  color: var(--blue);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-hover); }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }
.btn[disabled] { opacity: 0.65; cursor: not-allowed; transform: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero {
  position: relative;
  padding: 56px 0 40px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 12px;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--blue);
  border-radius: 1px;
}
h1, h2, h3 {
  font-family: var(--font);
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 12px;
}
h1 { font-size: clamp(1.85rem, 4vw, 2.75rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 750; font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; font-weight: 600; }
.lede {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 58ch;
  margin: 0 0 24px;
}
.powered {
  margin-top: 20px;
  font-size: 0.78rem;
  color: var(--muted);
}

.hero-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  position: relative;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: auto -24px -24px auto;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(27, 107, 214, 0.18), transparent 70%);
  pointer-events: none;
}
.hero-card h2 { font-size: 1rem; margin-bottom: 16px; }
.fact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fact-list li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  font-size: 0.92rem;
}
.fact-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px var(--sky);
}
.fact-list strong { color: var(--navy); }
.hero-note {
  margin: 16px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Sections */
.section { padding: 64px 0; }
.section-alt {
  background: linear-gradient(180deg, var(--sky-2), var(--white));
}
.section-head { max-width: 720px; margin-bottom: 28px; }
.section-head p { color: var(--muted); margin: 0; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.card li { margin: 4px 0; }

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--sky);
  padding: 4px 8px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.callout {
  background: var(--sky);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  color: var(--navy);
  font-size: 0.95rem;
}
.callout.warn {
  background: #fff8eb;
  border-color: #f0d9a8;
  border-left-color: #c47d0c;
}
.callout p { margin: 0 0 10px; }
.callout p:last-child { margin: 0; }

.prose { max-width: 72ch; }
.prose p { margin: 0 0 12px; color: var(--text); }
.prose ul { color: var(--text); }

.rate-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}
.rate {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.rate .num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.04em;
  line-height: 1;
}
.rate .lbl { color: var(--muted); margin-top: 8px; font-size: 0.9rem; }

table.limits {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
table.limits th,
table.limits td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.limits th {
  background: var(--sky);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
table.limits tr:last-child td { border-bottom: 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px 20px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.step h3 { font-size: 1.02rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Calculator */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.calc-form,
.calc-result {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.calc-result {
  background: linear-gradient(180deg, var(--white), var(--sky-2));
  min-height: 280px;
}
.calc-result[hidden] { display: none; }
.calc-placeholder {
  color: var(--muted);
  font-size: 0.95rem;
}
.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}
.result-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
.result-item .k { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.result-item .v { font-size: 1.15rem; font-weight: 700; color: var(--navy); letter-spacing: -0.02em; }
.result-item.span { grid-column: 1 / -1; }
.calc-legends { font-size: 0.82rem; color: var(--muted); margin: 0 0 16px; }
.calc-error {
  color: var(--error);
  background: var(--error-bg);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.88rem;
  margin: 0 0 12px;
}
.calc-error[hidden] { display: none; }

/* Who */
.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* FAQ */
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 18px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--blue);
  flex: 0 0 auto;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Form */
.lead-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.span-2 { grid-column: 1 / -1; }
.field label,
.field .label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}
.req { color: var(--blue); }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 0.95rem;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--white);
  color: var(--text);
  width: 100%;
}
.field textarea { min-height: 80px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27, 107, 214, 0.15);
  outline: none;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--error);
}
.field-error {
  margin: 0;
  min-height: 0;
  font-size: 0.8rem;
  color: var(--error);
}
.hint { font-size: 0.78rem; color: var(--muted); }

.checks { display: grid; gap: 12px; margin: 18px 0; }
.check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 0.88rem;
  color: var(--text);
}
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--blue); }

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.92rem;
}
.form-status.is-success { background: var(--success-bg); color: var(--success); }
.form-status.is-error { background: var(--error-bg); color: var(--error); }
.form-status[hidden] { display: none; }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #c5d4e6;
  padding: 40px 0 24px;
  margin-top: 24px;
}
.site-footer a { color: #d6e6f8; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.footer-brand { font-weight: 700; color: var(--white); margin-bottom: 8px; }
.site-footer p, .site-footer li { font-size: 0.85rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 16px;
  font-size: 0.78rem;
  color: #9bb0c8;
}

/* Legal pages */
.legal { padding: 48px 0 72px; }
.legal article { max-width: 760px; }
.legal h1 { margin-bottom: 8px; }
.legal .meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 28px; }
.legal h2 { margin-top: 28px; font-size: 1.2rem; }
.legal p, .legal li { color: var(--text); }
.placeholder-note {
  background: var(--sky);
  border: 1px dashed var(--blue-soft);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.88rem;
  color: var(--navy);
}

/* Mobile */
@media (max-width: 960px) {
  .hero-grid,
  .grid-2, .grid-3, .calc-layout, .who-grid, .footer-grid { grid-template-columns: 1fr; }
  .grid-4, .steps { grid-template-columns: 1fr 1fr; }
  .nav-cta { display: none; }
  [data-nav] {
    display: none;
    position: fixed;
    inset: auto 16px 16px 16px;
    top: calc(var(--header-offset) + 8px);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    box-shadow: var(--shadow);
    z-index: 60;
    max-height: calc(100vh - var(--header-offset) - 32px);
    overflow: auto;
  }
  [data-nav].is-open { display: flex; }
  [data-nav] a { padding: 12px 14px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(7, 40, 75, 0.35);
    z-index: 55;
  }
  .header-inner { min-height: 64px; }
}

@media (max-width: 640px) {
  .fields, .rate-pair, .result-grid, .grid-4, .steps { grid-template-columns: 1fr; }
  .field.span-2 { grid-column: auto; }
  .hero { padding-top: 32px; }
  .section { padding: 48px 0; }
  .lead-form, .calc-form, .calc-result { padding: 18px; }
  .hero .btn-row .btn,
  .lead-form > .btn,
  .calc-form .btn,
  .calc-result .btn { width: 100%; }
  .disclaimer { font-size: 0.72rem; padding: 10px 12px; }

}

@media (min-width: 961px) {
  .nav-cta .btn-sm { display: inline-flex; }
}
