@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
}

:root {
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --white: #ffffff;
  --blue: #1e3a8a;
  --blue-hover: #172e6e;
  --gold: #b7791f;
  --gold-light: #fde68a;
  --red: #dc2626;
  --green: #16a34a;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn-small { padding: 9px 16px; font-size: 15px; }
.btn-large { padding: 15px 26px; font-size: 17px; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-hover); }
.btn-gold { background: var(--gold-light); color: var(--ink); }
.btn-gold:hover { background: #fcd34d; }

/* Navegación */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--blue);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
}
.logo-text { color: var(--ink); font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.logo-text b { color: var(--gold); font-weight: 800; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; }
.nav-links a { color: var(--text); font-size: 15px; font-weight: 500; text-decoration: none; }
.nav-links a:hover { color: var(--blue); }
.nav-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav-login { color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; }
.nav-login:hover { color: var(--blue); }

/* Portada */
.hero { padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 12px;
  border-radius: 6px;
  background: #fef3c7;
  color: #92400e;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1 { font-size: clamp(40px, 5.2vw, 62px); font-weight: 800; letter-spacing: -0.035em; }
.mark {
  color: var(--blue);
  background: linear-gradient(transparent 82%, var(--gold-light) 82%);
  white-space: nowrap;
}
.lead { max-width: 560px; margin-top: 22px; font-size: 19px; }
.lead strong { color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.email { color: var(--blue); font-weight: 700; user-select: all; -webkit-user-select: all; }
.contact-note { margin-top: 16px; font-size: 16px; }
.contact-box { padding: 20px 22px; border-radius: 14px; background: rgba(255, 255, 255, .09); }
.contact-box .email { display: block; margin: 4px 0 8px; color: var(--gold-light); font-size: 22px; word-break: break-all; }
.contact-hint { font-size: 15px; }
.assurances { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; font-size: 15px; font-weight: 500; }
.assurances li { display: flex; align-items: center; gap: 7px; }
.assurances li::before { content: "✓"; color: var(--green); font-weight: 800; }

/* Ejemplo de la pantalla */
.product { position: relative; margin: 0; padding: 22px 0; }
.window {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  box-shadow: 0 24px 50px -24px rgba(15, 23, 42, .32);
  font-size: 13px;
}
.window-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.window-title { color: var(--ink); font-size: 16px; font-weight: 700; }
.window-sub { color: var(--muted); font-size: 12px; }
.window-btn { flex: none; padding: 6px 10px; border-radius: 7px; background: var(--blue); color: var(--white); font-size: 11px; font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.stats div, .debtor, .breakdown { border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.stats div { padding: 10px 12px; }
.stats small, .debtor small { display: block; color: var(--muted); font-size: 11px; }
.stats b { color: var(--ink); font-size: 17px; }
.debtor { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 12px; }
.avatar { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: #fee2e2; color: var(--red); font-weight: 700; }
.debtor-info b { color: var(--ink); font-size: 14px; }
.debtor-total { margin-left: auto; text-align: right; }
.debtor-total b { color: var(--ink); font-size: 18px; }
.breakdown { display: grid; gap: 12px; margin: 10px 0 0; padding: 14px; }
.breakdown li { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; }
.breakdown .concept { color: var(--text); font-weight: 500; }
.breakdown .amount { color: var(--ink); font-weight: 700; }
.bar { grid-column: 1 / -1; height: 5px; border-radius: 5px; background: #f1f5f9; }
.bar i { display: block; height: 100%; border-radius: 5px; background: var(--blue); }
.late .concept, .late .amount { color: var(--red); }
.late .bar i { background: var(--red); }
.other .bar i { background: var(--gold); }
.channels { display: flex; gap: 4px; margin-top: 10px; padding: 4px; border-radius: 9px; background: #eef2f7; }
.channels span { flex: 1; padding: 5px; border-radius: 6px; color: var(--muted); font-size: 12px; font-weight: 500; text-align: center; }
.channels .active { background: var(--white); color: var(--blue); font-weight: 700; }
.tag {
  position: absolute;
  z-index: 1;
  padding: 7px 14px;
  border: 1.5px solid var(--blue);
  border-radius: 10px;
  background: var(--white);
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}
.tag::before { content: "✓ "; color: var(--gold); }
.tag-top { top: 0; left: -16px; }
.tag-bottom { right: -12px; bottom: 26px; }
figcaption { margin-top: 12px; color: var(--muted); font-size: 12px; }

/* Secciones */
.section { padding: 84px 0; }
.section-title { max-width: 720px; font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; }
.eyebrow-plain, .eyebrow-light {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow-plain { color: var(--blue); }
.eyebrow-light { color: var(--gold-light); }

/* Antes y después */
.compare-section { padding-top: 0; }
.compare { display: grid; grid-template-columns: 1fr 1fr; margin-top: 32px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.compare > div { padding: 34px; }
.compare-before { background: var(--soft); }
.compare-before h3 { color: var(--muted); }
.compare-after { border-left: 1px solid var(--line); }
.compare-after h3 { color: var(--blue); }
.compare h3 { font-size: 21px; }
.compare ul { display: grid; gap: 13px; margin-top: 18px; }
.compare li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.compare-before li { color: var(--muted); }
.compare-before li::before { content: "✕"; color: var(--red); font-weight: 800; }
.compare-after li { color: var(--ink); font-weight: 600; }
.compare-after li::before { content: "✓"; color: var(--green); font-weight: 800; }

/* Funciones */
#funciones { background: var(--soft); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.features article { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.features h3 { font-size: 18px; font-weight: 700; }
.features p { margin-top: 7px; color: var(--muted); font-size: 15.5px; }

/* Portales */
.portals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 36px; }
.portals article { padding-top: 20px; border-top: 4px solid var(--blue); }
.portals h3 { font-size: 22px; }
.portal-intro { margin-top: 8px; }
.portals ul { display: grid; gap: 9px; margin-top: 16px; color: var(--ink); font-size: 15.5px; font-weight: 500; }
.portals li { display: grid; grid-template-columns: 20px 1fr; gap: 6px; }
.portals li::before { content: "✓"; color: var(--gold); font-weight: 800; }

/* Migración */
.migration { background: var(--blue); color: #dbe4f7; }
.migration-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.migration h2 { color: var(--white); font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; }
.migration-grid > div > p:not(.eyebrow-light) { margin: 18px 0 28px; font-size: 18px; }
.steps { display: grid; gap: 14px; counter-reset: step; }
.steps li {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 20px 22px 20px 72px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .09);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 20px;
  left: 22px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold-light);
  color: var(--ink);
  font-weight: 800;
}
.steps b { color: var(--white); font-size: 17px; }
.steps span { font-size: 15.5px; }

/* Preguntas */
.faq-wrap { max-width: 800px; }
.faq-wrap .section-title { margin-bottom: 28px; }
details { border-bottom: 1px solid var(--line); }
summary { padding: 18px 32px 18px 0; position: relative; color: var(--ink); font-weight: 600; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; top: 14px; right: 4px; color: var(--blue); font-size: 24px; font-weight: 500; }
details[open] summary::after { content: "–"; }
details p { padding: 0 32px 20px 0; }

/* Cierre */
.final-cta { padding: 64px 0; background: var(--ink); color: #cbd5e1; }
.final-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.final-cta h2 { color: var(--white); font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.final-cta p { margin-top: 8px; font-size: 18px; }
.final-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.final-actions .contact-note { margin-top: 10px; font-size: 15px; }
.final-actions .email { color: var(--gold-light); }

/* Pie */
.footer { padding: 28px 0; border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; }
.footer .email { font-weight: 600; }
.footer small { color: var(--muted); font-size: 13px; }

@media (max-width: 960px) {
  .nav-row { flex-wrap: wrap; height: auto; padding-top: 12px; gap: 8px 16px; }
  .nav-actions { margin-left: auto; }
  /* Las secciones pasan a una segunda fila desplazable */
  .nav-links { order: 3; width: 100%; margin: 0; padding-bottom: 10px; gap: 22px; overflow-x: auto; white-space: nowrap; }
  .hero { padding: 48px 0 64px; }
  .hero-grid, .migration-grid { grid-template-columns: 1fr; gap: 44px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .tag-top { left: 0; }
  .tag-bottom { right: 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav-row { gap: 12px; }
  .nav-actions { gap: 12px; }
  .logo-mark { display: none; }
  .logo-text { font-size: 18px; }
  .section { padding: 60px 0; }
  .compare-section { padding-top: 0; }
  .compare, .features, .portals { grid-template-columns: 1fr; }
  .compare > div { padding: 24px; }
  .compare-after { border-top: 1px solid var(--line); border-left: 0; }
  .cta-row .btn, .final-actions, .final-actions .btn { width: 100%; }
  .window { padding: 14px; }
  .stats b { font-size: 15px; }
  .tag { font-size: 12px; padding: 5px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
