/* Tresmeta — web pública. CSS a mano, sin build. */

/* Manrope AUTOALOJADA (subconjunto latino, variable 600-800). Se sirve desde
   nuestro dominio a propósito: la web pública no hace NINGUNA petición a un
   tercero, así que no hay transferencia de la IP del visitante a Google ni
   nada que declarar en la política de privacidad por esa vía. */
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url(/web-assets/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #22406b;
  --navy-dark: #162b48;
  --navy-soft: #eef3fa;
  --ink: #16202e;
  --ink-soft: #4a5768;
  --line: #dde3ec;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --radius: 10px;
  --wrap: 1080px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--navy); }

h1, h2, h3 {
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 { font-size: 2.6rem; font-weight: 800; }
h2 { font-size: 1.85rem; font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { margin: 0 0 1em; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- cabecera ---------- */

.site-head {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(140%) blur(6px);
  position: sticky; top: 0; z-index: 20;
}
.head-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-name {
  font-family: Manrope, sans-serif; font-weight: 700; font-size: 1.35rem;
  color: var(--ink); letter-spacing: -0.03em;
}
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a {
  text-decoration: none; color: var(--ink-soft); font-size: .95rem; font-weight: 500;
  padding: 4px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current] { color: var(--navy); border-bottom-color: var(--navy); }

/* ---------- botones ---------- */

.btn {
  display: inline-block; border: 1px solid transparent; border-radius: var(--radius);
  padding: 11px 20px; font-size: .97rem; font-weight: 600; cursor: pointer;
  text-decoration: none; font-family: inherit; line-height: 1.2;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-sm { padding: 8px 15px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; }

/* ---------- secciones ---------- */

section { padding: 68px 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.tight { padding: 48px 0; }

.hero { padding: 88px 0 76px; }
/* Páginas legales: el título y el texto van seguidos, sin el hueco del hero. */
.hero.tight { padding: 56px 0 4px; }
.hero.tight + section.tight { padding-top: 20px; }
.hero h1 { max-width: 19ch; }
.hero-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-split .hero-copy h1 { max-width: 15ch; }

/* Ilustración del hero: NO es una captura de pantalla, es un esquema dibujado
   con HTML. Se prefiere a una imagen falsa de la aplicación — si algún día hay
   capturas reales, esto se sustituye por ellas. */
.mock {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 14px 40px rgba(20,35,60,.10); overflow: hidden;
}
.mock-head {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px; border-bottom: 1px solid var(--line); background: var(--bg-alt);
}
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: #d7dee8; }
.mock-title {
  margin-left: 6px; font-size: .82rem; font-weight: 700; color: var(--ink-soft);
  letter-spacing: .02em;
}
.mock-body { padding: 16px 18px 18px; display: grid; gap: 12px; }
.mock-item { border: 1px solid var(--line); border-radius: 9px; padding: 13px 14px; }
.mock-kind {
  display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; color: var(--navy); background: var(--navy-soft);
  border-radius: 4px; padding: 3px 7px; margin-bottom: 8px;
}
.mock-text { font-size: .93rem; font-weight: 600; color: var(--ink); margin: 0 0 6px; line-height: 1.4; }
.mock-src { font-size: .78rem; color: var(--ink-soft); margin: 0; }
.mock-actions { display: flex; gap: 7px; margin-top: 11px; }
.mock-btn {
  font-size: .76rem; font-weight: 600; border-radius: 6px; padding: 5px 11px;
  border: 1px solid var(--line); color: var(--ink-soft); background: #fff;
}
.mock-btn.is-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.mock-foot {
  border-top: 1px solid var(--line); padding: 11px 18px;
  font-size: .78rem; color: var(--ink-soft); background: var(--bg-alt);
}
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  color: var(--navy); margin: 0 0 12px;
}
.section-head { max-width: 64ch; margin-bottom: 40px; }
.section-head p { color: var(--ink-soft); margin-bottom: 0; }

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px;
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-soft); font-size: .97rem; margin-bottom: 0; }
.card :last-child { margin-bottom: 0; }

.steps { counter-reset: step; display: grid; gap: 20px; }
.step { display: grid; grid-template-columns: 42px 1fr; gap: 18px; align-items: start; }
.step-n {
  counter-increment: step; width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy-soft); color: var(--navy);
  font-family: Manrope, sans-serif; font-weight: 800; font-size: 1.05rem;
  display: grid; place-items: center;
}
.step-n::before { content: counter(step); }
.step h3 { margin-bottom: .25em; }
.step p { color: var(--ink-soft); margin-bottom: 0; }

.feature { border-top: 1px solid var(--line); padding: 30px 0; }
.feature:first-of-type { border-top: 0; }
.feature h3 { margin-bottom: .3em; }
.feature p { color: var(--ink-soft); margin-bottom: 0; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.checks li { position: relative; padding-left: 28px; color: var(--ink-soft); }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: .58em;
  width: 9px; height: 9px; border-radius: 2px; background: var(--navy);
}
.checks strong { color: var(--ink); }

.quote {
  border-left: 3px solid var(--navy); padding: 4px 0 4px 20px;
  color: var(--ink-soft); font-size: 1.05rem;
}

.cta-band { background: var(--navy); color: #fff; }
.cta-band h2, .cta-band .lead { color: #fff; }
.cta-band .lead { opacity: .88; }
.cta-band .btn-ghost { background: #fff; color: var(--navy); border-color: #fff; }
/* Los enlaces de texto sobre la banda azul heredaban el azul marino de
   `a` y quedaban INVISIBLES sobre el propio azul marino (pasó con el
   correo de contacto). `:not(.btn)` para no despintar los botones, que
   también son <a>. */
.cta-band a:not(.btn) { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.legal { max-width: 74ch; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal .pending {
  background: #fff8e1; border: 1px solid #f0d68a; border-radius: 6px;
  padding: 2px 7px; color: #6b5300; font-size: .93rem; font-weight: 600;
}

.meta-note { font-size: .9rem; color: var(--ink-soft); }

/* ---------- pie ---------- */

.site-foot { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 34px 0; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.foot-brand { display: flex; align-items: center; gap: 11px; }
.foot-name { font-family: Manrope, sans-serif; font-weight: 700; font-size: 1.05rem; margin: 0; letter-spacing: -.03em; }
.foot-by { margin: 0; font-size: .88rem; color: var(--ink-soft); }
.foot-by strong { color: var(--ink); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-nav a { color: var(--ink-soft); text-decoration: none; font-size: .9rem; }
.foot-nav a:hover { color: var(--navy); text-decoration: underline; }

/* ---------- modal de acceso ---------- */

.modal-back {
  position: fixed; inset: 0; background: rgba(18,28,42,.55);
  display: grid; place-items: center; padding: 20px; z-index: 60;
}
.modal-back[hidden] { display: none; }
.modal {
  background: #fff; border-radius: 14px; padding: 30px 28px 24px;
  width: 100%; max-width: 400px; position: relative;
  box-shadow: 0 18px 50px rgba(16,28,45,.28);
}
.modal h2 { font-size: 1.35rem; margin-bottom: 18px; }
.modal-x {
  position: absolute; top: 10px; right: 12px; background: none; border: 0;
  font-size: 1.7rem; line-height: 1; color: var(--ink-soft); cursor: pointer; padding: 4px 8px;
}
.modal label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 5px; }
.modal input {
  width: 100%; padding: 11px 12px; margin-bottom: 15px;
  border: 1px solid var(--line); border-radius: 8px;
  font-size: 16px; font-family: inherit; color: var(--ink); background: #fff;
}
.modal input:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
.form-error {
  background: #fdecec; border: 1px solid #f3c2c2; color: #922;
  border-radius: 8px; padding: 9px 12px; font-size: .9rem; margin: 0 0 14px;
}
.form-error[hidden] { display: none; }
.modal-foot { font-size: .85rem; color: var(--ink-soft); margin: 16px 0 0; text-align: center; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  section { padding: 48px 0; }
  .hero { padding: 56px 0 48px; }
  .lead { font-size: 1.08rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero-split { grid-template-columns: 1fr; gap: 36px; }
  .hero-split .hero-copy h1 { max-width: none; }
  /* La cabecera pasa a dos filas: marca + Acceder arriba, navegación debajo.
     Ocultar el menú en móvil dejaría al visitante sin forma de recorrer la web. */
  .site-head { position: static; }
  .head-inner { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 10px; row-gap: 8px; }
  .brand { margin-right: auto; }
  .nav { order: 3; width: 100%; margin-left: 0; gap: 18px; font-size: .92rem; }
  .foot-inner { flex-direction: column; align-items: flex-start; }
}
