/* =========================================================
   NEXO LICITA — estilos
   Paleta: azul institucional + celestes suaves sobre blanco
   ========================================================= */

:root {
  /* Color */
  --navy-900: #0b2545;
  --navy-800: #13315c;
  --blue-700: #0f4c9c;
  --blue-600: #1d63d1;   /* acento / CTA (contraste 5.3:1 sobre blanco) */
  --blue-500: #2f7be6;
  --sky-400: #5fb3f0;
  --sky-300: #8fd0ff;
  --sky-200: #bfe0fa;
  --sky-100: #e3f1fd;
  --sky-50:  #f3f9ff;
  --ink:     #0f1e33;
  --text:    #33445a;
  --muted:   #546378;    /* 6.1:1 sobre blanco */
  --border:  #dde7f2;
  --white:   #ffffff;
  --warn:    #b45309;
  --warn-bg: #fff6e6;
  --ok:      #15803d;
  --ok-bg:   #eafaf0;

  /* Tipografía */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Espaciado / forma */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 37, 69, .05);
  --shadow: 0 1px 2px rgba(11, 37, 69, .04), 0 8px 24px -8px rgba(11, 37, 69, .10);
  --shadow-lg: 0 2px 4px rgba(11, 37, 69, .04), 0 24px 48px -16px rgba(11, 37, 69, .20);
  --header-h: 72px;

  /* Movimiento */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: 180ms;
  --t: 260ms;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-700); }
h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.15; }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; font-variation-settings: "opsz" 120; }
h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.005em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
strong { color: var(--ink); font-weight: 700; }

:focus-visible { outline: 3px solid var(--sky-400); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }

.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-sm { width: 16px; height: 16px; }

/* ---------- Barra de progreso de lectura ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--sky-400), var(--blue-600));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  font: 600 .9375rem/1.2 var(--font-body);
  border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t), transform var(--t-fast);
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .875rem; }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 6px 16px -6px rgba(29, 99, 209, .55); }
.btn-primary:hover { background: var(--blue-700); color: #fff; box-shadow: 0 10px 22px -8px rgba(29, 99, 209, .6); }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--navy-900); border-color: var(--border); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #fff; color: var(--blue-700); border-color: var(--sky-200); }
.btn-ghost .ic { transition: transform var(--t); }
.btn-ghost:hover .ic { transform: translateX(3px); }
.btn-outline { background: #fff; color: var(--blue-600); border-color: var(--sky-200); }
.btn-outline:hover { background: var(--sky-50); border-color: var(--blue-600); color: var(--blue-700); }
.btn-white { background: #fff; color: var(--blue-700); }
.btn-white:hover { background: var(--sky-50); color: var(--navy-900); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t), background-color var(--t);
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 20px -12px rgba(11, 37, 69, .18); background: rgba(255,255,255,.92); }
.nav { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; }
.brand-word { display: inline-flex; gap: 6px; font-size: 1.0625rem; letter-spacing: .03em; }
.brand-word strong { font-weight: 800; color: var(--navy-900); }
.brand-word span { font-weight: 500; color: var(--blue-600); letter-spacing: .14em; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 14px; min-height: 44px;
  color: var(--ink); font-weight: 500; font-size: .9375rem; text-decoration: none;
  transition: color var(--t-fast);
}
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px;
  background: var(--blue-600); transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease-out);
}
.nav-link:hover { color: var(--blue-600); }
.nav-link.is-active { color: var(--blue-600); }
.nav-link.is-active::after { transform: scaleX(1); }
.nav-drop:has(.drop-menu) .nav-link::after { right: 34px; }

.nav-drop { position: relative; }
.drop-menu {
  position: absolute; top: calc(100% + 4px); left: 0; min-width: 270px;
  padding: 8px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--t-fast), transform var(--t) var(--ease-out), visibility var(--t-fast);
}
.nav-drop:hover .drop-menu, .nav-drop:focus-within .drop-menu { opacity: 1; visibility: visible; transform: none; }
.drop-menu a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; }
.drop-menu a:hover { background: var(--sky-50); }
.drop-menu strong { display: block; font-size: .9375rem; }
.drop-menu span { font-size: .8125rem; color: var(--muted); }

.nav-toggle { display: none; }
.nav-cta-mobile { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; isolation: isolate; }
.hero-sky {
  position: absolute; inset: -20% 0 0 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 85% 10%, rgba(143, 208, 255, .55), transparent 70%),
    radial-gradient(45% 45% at 10% 0%, rgba(191, 224, 250, .7), transparent 70%),
    linear-gradient(180deg, var(--sky-50), #fff 85%);
  will-change: transform;
}
.hero-sky::after {
  /* retícula sutil, como papel cuadriculado de bases */
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(29, 99, 209, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(29, 99, 209, .06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 80%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; margin-bottom: 16px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-600);
}
.hero h1 { font-size: clamp(2.25rem, 4.6vw, 3.6rem); max-width: 15ch; }
.hero h1 em { font-style: italic; color: var(--blue-600); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .18em; z-index: -1;
  background: var(--sky-200); border-radius: 4px;
}
.lead { margin-top: 20px; font-size: 1.125rem; max-width: 52ch; color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; font-size: .875rem; color: var(--muted); }
.hero-trust li { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .ic { color: var(--blue-600); }

.hero-visual { position: relative; }
.report {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 24px;
}
.report-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding-bottom: 16px; border-bottom: 1px dashed var(--border); }
.report-kicker { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.report-title { white-space: nowrap; margin-top: 4px; font-family: var(--font-body); font-size: 1.0625rem; font-weight: 700; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.report-list { list-style: none; display: grid; gap: 4px; padding: 12px 0; }
.report-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 12px; font-size: .9375rem; }
.report-list li .ic { margin-top: 2px; }
.report-list .ok .ic { color: var(--ok); }
.report-list .warn { background: var(--warn-bg); }
.report-list .warn .ic { color: var(--warn); }
.report-list .todo .ic { color: var(--blue-600); }
.report-score { padding: 16px; background: var(--sky-50); border-radius: 14px; }
.score-row { display: flex; justify-content: space-between; font-size: .875rem; }
.score-row strong { color: var(--blue-700); }
.score-bar { height: 8px; margin: 10px 0 8px; border-radius: 999px; background: var(--sky-100); overflow: hidden; }
.score-bar span { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--sky-400), var(--blue-600)); transform-origin: left; }
.report-score small { color: var(--muted); font-size: .8125rem; }

.float-chip {
  position: absolute; left: -28px; bottom: -28px;
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: linear-gradient(135deg, var(--blue-600), var(--navy-900)); color: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: .875rem; line-height: 1.35;
}
.float-chip strong { color: #fff; }
.float-chip .ic { color: var(--sky-300); width: 24px; height: 24px; }

/* ---------- Secciones ---------- */
.section { padding: 104px 0; }
.section-tint { background: linear-gradient(180deg, #fafcff, var(--sky-50)); border-block: 1px solid #eef4fb; }
.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; max-width: 680px; margin-inline: auto; }
.section-head h2 { font-size: clamp(1.875rem, 3.4vw, 2.625rem); }
.section-head.center p:not(.eyebrow) { margin-top: 14px; font-size: 1.0625rem; }
.section-head.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; }
.section-head.split > p { color: var(--muted); font-size: 1.0625rem; }

/* Tarjetas */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; min-height: 260px; box-shadow: var(--shadow-sm);
  transition: transform var(--t) var(--ease-out), box-shadow var(--t), border-color var(--t);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sky-200); }
.card h3 { margin: 22px 0 10px; }
.card p { font-size: .9375rem; color: var(--text); }
.icon-box {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: var(--sky-100); color: var(--blue-600);
  transition: background-color var(--t), color var(--t), transform var(--t) var(--ease-out);
}
.card:hover .icon-box, .step:hover .icon-box { background: var(--blue-600); color: #fff; transform: rotate(-4deg); }
.icon-box-light { background: rgba(255,255,255,.16); color: #fff; }

/* Pasos */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; counter-reset: s; }
.steps::before {
  /* línea conectora: se dibuja al entrar en pantalla */
  content: ""; position: absolute; top: 46px; left: 12%; right: 12%; height: 2px; z-index: 0;
  background: linear-gradient(90deg, var(--sky-200), var(--sky-400), var(--sky-200));
  transform: scaleX(var(--line, 0)); transform-origin: left;
  transition: transform 1.2s var(--ease-out) .2s;
}
.steps.is-visible { --line: 1; }
.step {
  position: relative; z-index: 1; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-sm);
  transition: transform var(--t) var(--ease-out), box-shadow var(--t), border-color var(--t);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sky-200); }
.step-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.step-num { font-family: var(--font-display); font-weight: 700; font-size: 2.25rem; line-height: 1; color: var(--blue-500); font-variant-numeric: lining-nums; }
.step h3 { font-size: 1rem; margin-bottom: 8px; overflow-wrap: anywhere; }
.step p { font-size: .875rem; color: var(--text); }

/* Planes */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow);
}
.plan h3 { margin-top: 20px; font-size: 1.375rem; font-family: var(--font-body); }
.plan h3 span { font-weight: 500; color: var(--muted); font-size: 1rem; }
.price { margin: 18px 0 10px; display: flex; align-items: baseline; gap: 8px; }
.price strong { font-family: var(--font-display); font-size: 2.75rem; line-height: 1; font-weight: 700; color: var(--navy-900); font-variant-numeric: lining-nums tabular-nums; }
.price span { color: var(--muted); font-weight: 600; }
.plan-desc { color: var(--text); margin-bottom: 20px; }
.checks { list-style: none; display: grid; gap: 10px; margin-bottom: 28px; flex: 1; }
.checks li { position: relative; padding-left: 30px; font-size: .9375rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--sky-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d63d1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.plan-featured {
  background: linear-gradient(160deg, var(--blue-500) 0%, var(--blue-600) 45%, var(--blue-700) 100%);
  border-color: transparent; color: #e8f2ff; box-shadow: 0 30px 60px -24px rgba(29, 99, 209, .55);
}
.plan-featured::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(60% 50% at 90% 0%, rgba(143, 208, 255, .35), transparent 70%);
}
.plan-featured h3, .plan-featured strong, .plan-featured .price strong { color: #fff; }
.plan-featured .price span, .plan-featured .plan-desc { color: #dbeafe; }
.plan-featured .checks li { color: #f0f6ff; }
.plan-featured .checks li::before {
  background-color: rgba(255,255,255,.18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.badge {
  position: absolute; top: 24px; right: 24px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.2); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .02em;
}

.topics { margin-top: 40px; padding: 28px 32px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--sky-50); }
.topics h3 { margin-bottom: 16px; }
.topic-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.topic-list li {
  padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--sky-200);
  font-size: .875rem; font-weight: 600; color: var(--navy-800);
}

/* Nosotros */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: stretch; }
.about-copy { display: flex; flex-direction: column; }
.about-copy h2 { font-size: clamp(1.875rem, 3.4vw, 2.5rem); margin-bottom: 20px; }
.about-copy p + p { margin-top: 16px; }
.about-side { display: flex; flex-direction: column; gap: 20px; }
.about-side .not-covered { flex: 1; }
.years {
  display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 4px 6px;
  padding: 24px 28px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy-900), var(--blue-700)); color: #dbeafe;
}
.years-num, .years-plus { font-family: var(--font-display); font-size: 4rem; line-height: 1; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.years-plus { color: var(--sky-300); }
.years p { padding-left: 16px; font-size: 1.0625rem; max-width: 22ch; }
.audit, .not-covered { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 28px; box-shadow: var(--shadow-sm); }
.audit h3, .not-covered h3 { margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.audit-list { list-style: none; counter-reset: a; display: grid; gap: 12px; }
.audit-list li { counter-increment: a; position: relative; padding-left: 40px; font-size: .9375rem; }
.audit-list li::before {
  content: counter(a); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center; background: var(--sky-100); color: var(--blue-700); font-weight: 700; font-size: .8125rem;
}
.not-covered h3 .ic { color: var(--muted); }
.not-covered ul { list-style: none; display: grid; gap: 8px; }
.not-covered li { position: relative; padding-left: 18px; font-size: .9375rem; color: var(--text); }
.not-covered li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 2px; background: var(--muted); }

/* Esquema "De las bases a la postulación segura" */
.flow {
  position: relative; margin: 28px 0 0; padding: 22px 26px 22px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  overflow: hidden;
}
.flow::before {
  /* retícula suave en la esquina, como en la portada */
  content: ""; position: absolute; inset: 0 0 auto auto; width: 60%; height: 140px; pointer-events: none;
  background-image: linear-gradient(rgba(29, 99, 209, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(29, 99, 209, .07) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: radial-gradient(80% 100% at 100% 0%, #000, transparent 75%);
}
.flow-head { position: relative; margin-bottom: 20px; }
.flow-kicker { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-600); }
.flow-head h3 { margin-top: 4px; font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; }

.flow-steps { list-style: none; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.flow-steps::before, .flow-steps::after {
  /* línea conectora entre los centros de los nodos */
  content: ""; position: absolute; top: 23px; left: calc(100% / 6); right: calc(100% / 6); height: 2px; border-radius: 2px;
}
.flow-steps::before { background: var(--sky-100); }
.flow-steps::after {
  background: linear-gradient(90deg, var(--sky-400), var(--blue-600));
  transform: scaleX(var(--flow, 1)); transform-origin: left;
  transition: transform 1.1s var(--ease-out) .35s;
}
.flow-node { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.flow-dot {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 8px; border-radius: 50%;
  background: var(--blue-600); color: #fff; border: 4px solid #fff;
  box-shadow: 0 0 0 1px var(--sky-200), 0 8px 18px -8px rgba(29, 99, 209, .6);
  transition: background-color .4s, color .4s, transform .5s var(--ease-out);
  transition-delay: calc(.35s + var(--i) * .35s);
}
.flow-node:last-child .flow-dot { background: var(--navy-900); color: var(--sky-300); }
.flow-n { font-family: var(--font-display); font-weight: 700; font-size: .875rem; color: var(--blue-500); font-variant-numeric: lining-nums; }
.flow-node strong { font-size: .9375rem; line-height: 1.3; }
.flow-node small { font-size: .8125rem; line-height: 1.4; color: var(--muted); max-width: 18ch; }

.flow-check { margin-top: 20px; padding: 14px 18px; border-radius: 14px; background: var(--sky-50); border: 1px dashed var(--sky-200); }
.flow-check-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; font-size: .8125rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--navy-800); }
.flow-check-head > span:first-child { white-space: nowrap; }
.pill-ok { background: var(--ok-bg); color: var(--ok); text-transform: none; letter-spacing: 0; }
.flow-check ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.flow-check li {
  position: relative; padding-left: 26px; font-size: .875rem; color: var(--ink);
  transition: opacity .4s, transform .4s var(--ease-out); transition-delay: calc(1.3s + var(--i) * .12s);
}
.flow-check li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Estado inicial animado (sólo con JS y si la figura aún no entra en pantalla) */
.js .flow:not(.is-visible) { --flow: 0; }
.js .flow:not(.is-visible) .flow-dot { background: #fff; color: var(--sky-400); transform: scale(.85); }
.js .flow:not(.is-visible) .flow-check li { opacity: 0; transform: translateX(-6px); }

/* Blog / mercado */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
  display: flex; flex-direction: column; min-height: 200px;
  padding: 24px 22px 20px; border-radius: var(--radius-lg); background: var(--sky-50); border: 1px solid var(--sky-100);
}
.stat-value { white-space: nowrap; font-family: var(--font-display); font-size: clamp(1.625rem, 2.3vw, 2.125rem); font-weight: 700; color: var(--navy-900); line-height: 1.05; font-variant-numeric: lining-nums tabular-nums; }
.stat-label { margin: 10px 0 16px; font-size: .9375rem; line-height: 1.5; color: var(--text); }
.stat-source {
  /* empujada al fondo: las 4 tarjetas quedan alineadas abajo */
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--sky-100);
  font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stats-note { margin-top: 14px; font-size: .8125rem; color: var(--muted); }

/* Causales */
.causes { margin-top: 40px; padding: 30px 32px 32px; border-radius: var(--radius-lg); border: 1px solid var(--sky-100); background: linear-gradient(180deg, var(--sky-50), #fff 70%); }
.causes-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.causes-head h3 { font-size: 1.125rem; }
.causes-head p { margin-top: 4px; font-size: .9375rem; color: var(--muted); }
.causes-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--blue-600); color: #fff; }
.causes-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.causes-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--border);
  transition: border-color var(--t), box-shadow var(--t), transform var(--t) var(--ease-out);
}
.causes-list li:hover { border-color: var(--sky-200); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.cause-num {
  display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px;
  background: var(--sky-100); color: var(--blue-700);
  font: 700 .8125rem/1 var(--font-body); font-variant-numeric: tabular-nums;
}
.causes-list strong { display: block; font-size: .9375rem; line-height: 1.35; color: var(--ink); }
.causes-list p { margin-top: 3px; font-size: .875rem; line-height: 1.5; color: var(--text); }

/* Sub-encabezado de guías */
.guides-head {
  display: flex; gap: 14px; align-items: center;
  margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--border);
}
.guides-head h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.guides-head p { margin-top: 2px; font-size: .9375rem; color: var(--muted); }
.guides-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--sky-100); color: var(--blue-600); }

.articles { margin-top: 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.article {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--t) var(--ease-out), box-shadow var(--t), border-color var(--t);
}
.article:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sky-200); }
.article-cover {
  position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--sky-100), var(--sky-50));
  color: var(--blue-600); overflow: hidden;
}
.article-cover::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(29, 99, 209, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(29, 99, 209, .08) 1px, transparent 1px);
  background-size: 22px 22px;
}
.article-cover .ic { position: relative; width: 44px; height: 44px; stroke-width: 1.5; transition: transform var(--t) var(--ease-out); }
.article:hover .article-cover .ic { transform: scale(1.08) rotate(-3deg); }
.article[data-tone="navy"] .article-cover { background: linear-gradient(135deg, var(--navy-900), var(--blue-700)); color: var(--sky-300); }
.article[data-tone="blue"] .article-cover { background: linear-gradient(135deg, var(--blue-600), var(--sky-400)); color: #fff; }
.article-body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.article-meta { display: flex; align-items: center; gap: 6px; font-size: .8125rem; color: var(--muted); }
.article h3 { margin: 10px 0 8px; font-size: 1.0625rem; }
.article p { font-size: .875rem; flex: 1; }
.article-link {
  margin-top: 16px; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0; background: none; border: 0; cursor: pointer;
  font: 700 .875rem var(--font-body); color: var(--blue-600);
}
.article-link:hover { color: var(--blue-700); }
.article-link .ic { transition: transform var(--t); }
.article-link:hover .ic { transform: translateX(3px); }

/* Contacto */
.section-contact {
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(95, 179, 240, .35), transparent 70%),
    linear-gradient(135deg, var(--navy-900), var(--navy-800) 55%, var(--blue-700));
  color: #d6e6fb;
}
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.contact h2 { color: #fff; font-size: clamp(1.875rem, 3.4vw, 2.75rem); margin-bottom: 16px; }
.eyebrow-light { color: var(--sky-300); }
.email-box {
  margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 12px 12px 12px 20px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
}
.email-box > .ic { color: var(--sky-300); }
.email-link { color: #fff; font-weight: 700; font-size: 1.125rem; text-decoration: none; margin-right: auto; }
.email-link:hover { color: var(--sky-200); text-decoration: underline; }
.btn-copy { background: #fff; color: var(--blue-700); min-height: 44px; }
.btn-copy:hover { background: var(--sky-100); color: var(--navy-900); }
.btn-copy.is-copied { background: #dcfce7; color: var(--ok); }
.contact-only { margin-top: 14px; font-size: .875rem; color: #a9c3e6; }

.contact-form { background: #fff; color: var(--text); border-radius: var(--radius-lg); padding: 32px; box-shadow: 0 30px 60px -24px rgba(0,0,0,.45); }
.contact-form h3 { font-size: 1.25rem; }
.form-help { margin: 6px 0 22px; font-size: .875rem; color: var(--muted); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }
label { font-size: .875rem; font-weight: 600; color: var(--ink); }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; min-height: 46px; padding: 11px 14px;
  font: 400 1rem/1.4 var(--font-body); color: var(--ink);
  background: #fff; border: 1px solid #c9d6e6; border-radius: 12px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
textarea { resize: vertical; min-height: 110px; }
input::placeholder, textarea::placeholder { color: #8090a5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(29, 99, 209, .15); }
.field.has-error input, .field.has-error textarea { border-color: #dc2626; }
.field-error { min-height: 0; font-size: .8125rem; color: #b91c1c; }

/* Footer */
.site-footer { background: #fff; padding: 56px 0 28px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.4fr auto; gap: 32px; align-items: start; }
.footer-tag { margin-top: 12px; font-size: .9375rem; color: var(--muted); max-width: 34ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-nav a, .footer-contact a { color: var(--ink); text-decoration: none; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--blue-600); }
.footer-contact { justify-self: end; }
.footer-legal {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 24px; font-size: .8125rem; color: var(--muted);
}
.footer-legal p:first-child { display: flex; gap: 8px; align-items: flex-start; max-width: 80ch; }
.footer-legal .ic { margin-top: 2px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 300;
  padding: 12px 18px; border-radius: 999px; background: var(--navy-900); color: #fff; font-weight: 600; font-size: .9375rem;
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translate(-50%, 12px); pointer-events: none;
  transition: opacity var(--t), transform var(--t) var(--ease-out);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Diálogo de artículo */
.article-dialog {
  width: min(720px, 100% - 32px); max-height: min(86vh, 900px);
  padding: 0; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); color: var(--text);
}
.article-dialog::backdrop { background: rgba(11, 37, 69, .5); backdrop-filter: blur(3px); }
.article-dialog[open] { animation: dlg-in var(--t) var(--ease-out); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.dlg-inner { position: relative; padding: 40px; }
.dlg-inner h2 { font-size: clamp(1.5rem, 3vw, 2rem); padding-right: 40px; }
.dlg-meta { margin: 10px 0 24px; font-size: .875rem; color: var(--muted); }
.dlg-body { display: grid; gap: 14px; margin-bottom: 28px; }
.dlg-body h3 { margin-top: 8px; }
.dlg-body ul { padding-left: 20px; display: grid; gap: 6px; }
.dlg-close {
  position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer;
}
.dlg-close:hover { background: var(--sky-50); }

/* =========================================================
   Animaciones de scroll
   Sólo se ocultan los elementos si hay JS (clase .js en <html>)
   ========================================================= */
.js .reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .score-bar span { transform: scaleX(0); transition: transform 1.2s var(--ease-out) .6s; }
.js .hero-visual.is-visible .score-bar span { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .score-bar span { transform: none; }
  .steps::before { transform: none; }
  .hero-sky { transform: none !important; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .articles { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .hero { padding: 48px 0 88px; }
  .hero-grid, .about, .contact, .plans, .section-head.split { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin-left: 28px; }
  .grid-3 { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .about-copy { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-contact { justify-self: start; }

  /* Menú móvil */
  .nav-toggle {
    display: grid; place-items: center; margin-left: auto;
    width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: #fff; color: var(--ink); cursor: pointer;
  }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    padding: 12px 20px 24px; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity var(--t-fast), transform var(--t) var(--ease-out), visibility var(--t-fast);
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-link { padding: 14px 4px; border-bottom: 1px solid #eef3f9; }
  .nav-link::after { display: none; }
  .nav-drop .ic { display: none; }
  .drop-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 8px 12px; min-width: 0; }
  .nav-cta-mobile { display: inline-flex; margin-top: 16px; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .steps, .stats, .articles, .causes ul, .field-row, .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; white-space: normal; }
  .hero-visual { margin-left: 0; }
  .float-chip { left: 12px; bottom: -24px; }
  .report { padding: 18px; }
  .report-head { flex-direction: column; }
  .plan, .contact-form, .topics, .causes { padding: 24px; }
  .causes { padding: 22px 18px; }
  .stat { min-height: 0; }
  .guides-head { margin-top: 48px; align-items: flex-start; }
  .price strong { font-size: 2.25rem; }
  .email-box { border-radius: var(--radius); padding: 16px; }
  .email-link { font-size: 1rem; width: 100%; }
  .btn-copy { width: 100%; }
  .footer-legal { flex-direction: column; }
  .dlg-inner { padding: 28px 22px; }
  .years { grid-template-columns: auto auto; }
  .years p { grid-column: 1 / -1; padding-left: 0; margin-top: 6px; }

  /* Esquema en vertical */
  .flow { padding: 22px 20px; }
  .flow-steps { grid-template-columns: 1fr; gap: 18px; }
  .flow-steps::before, .flow-steps::after { top: 24px; bottom: 24px; left: 23px; right: auto; width: 2px; height: auto; }
  .flow-steps::after { background: linear-gradient(180deg, var(--sky-400), var(--blue-600)); transform: scaleY(var(--flow, 1)); transform-origin: top; }
  .flow-node { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; row-gap: 0; text-align: left; align-items: start; }
  .flow-dot { grid-row: 1 / span 3; margin-bottom: 0; }
  .flow-node small { max-width: none; }
  .flow-check ul { grid-template-columns: 1fr; }
}
