/* Rumbo UE — estilos de la landing */
:root {
  --ink: #13202e;
  --ink-2: #3e4a57;
  --muted: #525e6b;
  --line: #dfe3e8;
  --line-2: #d3d9e0;
  --field: #a3adb8;
  --bg: #f5f6f8;
  --panel: #e8edf3;
  --white: #ffffff;
  --brand: #1d4e89;
  --brand-dark: #163d6b;
  --brand-soft: #9cc3f0;
  --down: #a3441f;
  --dark-line: #33445a;
  --dark-text: #c3ccd6;
  --grey-line: #8a94a3;

  --display: "Bricolage Grotesque", "Helvetica Neue", sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", sans-serif;

  --gutter: 20px;
  --max: 1200px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
}

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--brand-soft); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Cabecera ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 17px; height: 21px; border-radius: 6px; background: var(--brand);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 3px; flex-shrink: 0;
}
.brand-mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-soft); }

.site-nav { display: flex; align-items: center; gap: 36px; font-size: 16px; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--brand); }
.site-nav .nav-link { display: none; }

.pill {
  display: inline-flex; align-items: center; min-height: 44px;
  background: var(--ink); color: var(--bg) !important; padding: 10px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.pill:hover { background: #22364b; }

/* ---------- Botones y formularios ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; border-radius: 12px; border: 0;
  font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
  text-align: center;
}
.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-dark); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: #22364b; color: var(--bg); }
.btn-outline { background: var(--white); color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline:hover { background: var(--bg); color: var(--ink); }
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }

.field-label { font-size: 14px; font-weight: 600; }
.input, .select {
  width: 100%; min-height: 52px; padding: 0 16px;
  border: 1.5px solid var(--field); border-radius: 12px; background: var(--white);
  font: inherit; font-size: 16px; color: var(--ink);
}
.select { padding: 0 14px; }
.input:focus, .select:focus { border-color: var(--brand); outline: 3px solid rgba(29, 78, 137, 0.2); outline-offset: 0; }
.input[aria-invalid="true"] { border-color: var(--down); }

.form-note { font-size: 13px; color: var(--muted); }
.form-note a { color: var(--muted); }
.form-status { font-size: 15px; font-weight: 500; min-height: 0; }
.form-status:empty { display: none; }
.form-status[data-kind="ok"] { color: #1b6b3a; }
.form-status[data-kind="error"] { color: var(--down); }

/* Campo trampa anti-spam */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.signup { display: flex; flex-direction: column; gap: 10px; }
.signup-row { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Hero ---------- */
.hero .wrap { padding-top: 36px; padding-bottom: 40px; display: grid; gap: 40px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; }
.eyebrow { font-size: 13px; color: var(--muted); font-weight: 500; }
.hero h1 { font-size: 38px; line-height: 1.04; letter-spacing: -0.025em; }
.lead { font-size: 17px; max-width: 34em; }

/* Tarjeta del mini informe */
.report-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px; display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 18px 40px -26px rgba(19, 32, 46, 0.35);
}
.report-head { display: flex; flex-direction: column; gap: 2px; }
.report-title { font-family: var(--display); font-weight: 700; font-size: 18px; }
.report-code { font-size: 13px; color: var(--muted); }

.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); margin: 0; }
.kpi { padding: 12px 0; border-bottom: 1px solid var(--line); }
.kpi:nth-child(1) { padding-right: 10px; }
.kpi:nth-child(2) { padding-left: 12px; border-left: 1px solid var(--line); }
.kpi:nth-child(3) { grid-column: span 2; }
.kpi dt { font-size: 12px; color: var(--muted); }
.kpi dd { margin: 0; }
.kpi-value { display: block; font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.15; }
.kpi-value.is-brand { color: var(--brand); }
.kpi-delta { display: block; font-size: 12px; color: var(--down); }
.kpi-delta.is-brand { color: var(--brand); }

.chart { display: flex; flex-direction: column; gap: 10px; }
.chart svg { width: 100%; height: auto; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 14px; height: 3px; background: var(--brand); display: inline-block; }
.swatch.is-grey { background: var(--grey-line); }

.report-foot { padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.report-foot span { color: var(--muted); }

/* ---------- Sección oscura: hallazgos ---------- */
.findings { background: var(--ink); color: #eef1f5; }
.findings .wrap { padding-top: 44px; padding-bottom: 44px; display: flex; flex-direction: column; gap: 28px; }
.findings h2 { font-size: 28px; line-height: 1.12; }
.findings-grid { display: grid; gap: 28px; }
.finding { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--dark-line); padding-top: 18px; }
.finding-num { font-family: var(--display); font-weight: 700; font-size: 36px; color: var(--brand-soft); line-height: 1; }
.finding-title { font-weight: 600; font-size: 17px; }
.finding p { color: var(--dark-text); }

/* ---------- Secciones generales ---------- */
.section .wrap { padding-top: 48px; padding-bottom: 48px; }
.section h2 { font-size: 28px; line-height: 1.1; }
.section-intro { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.section-intro p { color: var(--ink-2); }

/* Comparación de informes */
.plans { display: grid; gap: 16px; margin-top: 24px; }
.plan {
  background: var(--white); border: 1px solid var(--line-2); border-radius: 18px;
  padding: 22px; display: flex; flex-direction: column; gap: 14px;
}
.plan.is-featured { border: 2px solid var(--brand); }
.plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.plan-head h3 { font-size: 21px; letter-spacing: -0.01em; }
.plan-head span { font-weight: 600; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { flex-shrink: 0; margin-top: 3px; }

/* Cómo funciona */
.steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 22px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step-num {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: var(--brand); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 18px;
}
.step h3 { font-family: var(--body); font-weight: 600; font-size: 16px; letter-spacing: 0; }
.step p { color: var(--ink-2); }

/* Precio */
.pricing { background: var(--panel); border-radius: 22px; padding: 28px 18px; display: grid; gap: 20px; align-items: center; }
.pricing-intro { display: flex; flex-direction: column; gap: 14px; }
.pricing-intro h2 { font-size: 28px; line-height: 1.12; }
.pricing-intro p { color: var(--ink-2); }
.prices { display: grid; gap: 16px; }
.price-card { background: var(--white); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.price-card.is-featured { border: 2px solid var(--brand); }
.price-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price-name { font-weight: 600; font-size: 17px; }
.badge { background: var(--brand); color: var(--white); font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.price-amount { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-amount strong { font-family: var(--display); font-weight: 700; font-size: 36px; letter-spacing: -0.02em; line-height: 1; }
.price-amount span { color: var(--ink-2); }
.price-note { font-size: 14px; color: var(--muted); flex-grow: 1; }

/* Datos y FAQ */
.split { display: grid; gap: 14px; align-items: start; }
.split > p { color: var(--ink-2); }
.split-head { display: flex; flex-direction: column; gap: 14px; }
.split-head p { color: var(--ink-2); }

.faq { display: flex; flex-direction: column; }
.faq-item { padding: 16px 0; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 6px; }
.faq-item:last-child { border-bottom: 1px solid var(--line-2); }
.faq-item h3 { font-family: var(--body); font-weight: 600; font-size: 16px; letter-spacing: 0; }
.faq-item p { color: var(--ink-2); }
.faq-item a { font-weight: 600; }

/* Pie */
.site-footer { background: var(--ink); color: var(--white); margin-top: 48px; }
.site-footer .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 18px; font-size: 15px; }
.site-footer nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--brand-soft); }
.copy { font-family: var(--display); font-weight: 700; font-size: 17px; }
.legal-links { display: flex; gap: 20px; font-size: 14px; }
.legal-links a { color: var(--dark-text); }

/* ---------- Páginas secundarias ---------- */
.page-main { flex-grow: 1; }
.simple .wrap { padding-top: 48px; padding-bottom: 48px; display: grid; gap: 36px; align-items: start; }
.simple-copy { display: flex; flex-direction: column; gap: 18px; }
.simple-copy h1 { font-size: 36px; line-height: 1.06; letter-spacing: -0.025em; }
.simple-copy .lead { font-size: 18px; }
.simple-copy .muted { color: var(--muted); }
.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 24px;
  display: flex; flex-direction: column; gap: 20px;
  box-shadow: 0 24px 60px -30px rgba(19, 32, 46, 0.35);
}
.form-group { display: flex; flex-direction: column; gap: 8px; }

.prose { max-width: 720px; display: flex; flex-direction: column; gap: 16px; }
.prose h1 { font-size: 36px; line-height: 1.06; }
.prose h2 { font-size: 22px; margin-top: 12px; }
.prose p, .prose li { color: var(--ink-2); }
.placeholder { background: #fff4d6; color: #6b4a00; padding: 0 4px; border-radius: 4px; }

.page { min-height: 100vh; display: flex; flex-direction: column; }

/* ================= Tablet / escritorio ================= */
@media (min-width: 720px) {
  :root { --gutter: 40px; }
  body { font-size: 17px; line-height: 1.6; }
  .signup-row { flex-direction: row; }
  .signup-row .input { flex-grow: 1; }
  .findings-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .step { flex-direction: column; gap: 10px; }
  .step h3 { font-size: 19px; }
  .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi { border-bottom: 0; padding: 14px 14px 0 0; }
  .kpi:nth-child(2) { padding: 14px 14px 0; }
  .kpi:nth-child(3) { grid-column: auto; padding: 14px 0 0 14px; border-left: 1px solid var(--line); }
  .site-footer .wrap { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; }
  .site-footer nav { display: flex; gap: 32px; }
  .site-footer .legal-links { width: 100%; }
}

@media (min-width: 1024px) {
  :root { --gutter: 120px; }
  .site-header .wrap { height: 84px; }
  .brand { font-size: 22px; gap: 12px; }
  .brand-mark { width: 20px; height: 24px; padding-bottom: 4px; }
  .brand-mark::after { width: 9px; height: 10px; }
  .site-nav .nav-link { display: inline; }
  .pill { font-size: 16px; padding: 12px 20px; }

  .hero .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; padding-top: 88px; padding-bottom: 96px; }
  .hero-copy { gap: 28px; }
  .eyebrow { font-size: 15px; }
  .hero h1 { font-size: clamp(52px, 4.6vw, 66px); line-height: 1.02; letter-spacing: -0.028em; }
  .lead { font-size: 20px; }
  .field-label { font-size: 15px; }
  .input, .select, .btn { min-height: 56px; font-size: 17px; }
  .form-note { font-size: 14px; }

  .report-card { padding: 36px; gap: 24px; border-radius: 20px; box-shadow: 0 24px 60px -30px rgba(19, 32, 46, 0.35); }
  .report-head { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 12px; }
  .report-title { font-size: 20px; }
  .report-code { font-size: 14px; }
  .kpi dt, .kpi-delta { font-size: 13px; }
  .kpi-value { font-size: 28px; }
  .legend { font-size: 13px; gap: 20px; }
  .report-foot { font-size: 15px; padding-top: 18px; }

  .findings .wrap { padding-top: 80px; padding-bottom: 80px; gap: 44px; }
  .findings h2 { font-size: 40px; line-height: 1.1; }
  .findings-grid { gap: 48px; }
  .finding { gap: 10px; padding-top: 22px; }
  .finding-num { font-size: 44px; }
  .finding-title { font-size: 19px; }

  .section .wrap { padding-top: 96px; padding-bottom: 96px; }
  .section h2 { font-size: 40px; }
  #informe h2 { font-size: 44px; }
  .section-intro p { font-size: 19px; }
  .plans { margin-top: 48px; }
  .plan { padding: 36px; gap: 20px; border-radius: 20px; }
  .plan-head h3 { font-size: 26px; }
  .checks { gap: 14px; }
  .steps { margin-top: 40px; gap: 40px; }
  #como .wrap { padding-top: 0; }

  .pricing { grid-template-columns: 360px minmax(0, 1fr); gap: 56px; padding: 64px; border-radius: 28px; }
  .pricing-intro h2 { font-size: 40px; line-height: 1.1; }
  .pricing-intro p { font-size: 18px; }
  .price-card { padding: 32px; gap: 16px; border-radius: 20px; }
  .price-name { font-size: 18px; }
  .badge { font-size: 14px; }
  .price-amount strong { font-size: 44px; }
  .price-amount span { font-size: 17px; }
  .price-note { font-size: 15px; }

  .split { grid-template-columns: 400px minmax(0, 1fr); gap: 80px; }
  .split > p { font-size: 18px; }
  .split-head p { font-size: 18px; }
  #datos .wrap { padding-bottom: 0; }
  .faq-item { padding: 22px 0; }
  .faq-item h3 { font-size: 18px; }

  .site-footer { margin-top: 0; }
  .site-footer .wrap { padding-top: 40px; padding-bottom: 40px; }
  .copy { font-size: 18px; }

  .simple .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; padding-top: 96px; padding-bottom: 96px; }
  .simple-copy { gap: 22px; }
  .simple-copy h1 { font-size: 56px; line-height: 1.04; }
  .simple-copy .lead { font-size: 20px; }
  .form-card { padding: 40px; gap: 22px; }
  .prose h1 { font-size: 48px; }
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.chart { margin: 0; }
.signup-row .btn { flex-shrink: 0; white-space: nowrap; }
@media (min-width: 1024px) {
  .pricing { grid-template-columns: 300px minmax(0, 1fr); gap: 48px; }
  .price-card .btn { padding: 0 16px; }
}
