/* Solo Cifras · Kit IA para pymes
   Identidad alineada con los documentos del kit:
   navy #1B2A4A, acento #C45C26, papel #F7F3EE.
   Sin cookies, sin rastreadores, sin dependencias externas. */

@font-face {
  font-family: "Newsreader";
  src: url("fuentes/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  font-optical-sizing: auto;
}
@font-face {
  font-family: "Newsreader";
  src: url("fuentes/newsreader-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
  font-optical-sizing: auto;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fuentes/source-sans.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fuentes/source-sans-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy: #1B2A4A;
  --accent: #C45C26;
  --accent-deep: #A44A1C;
  --slate: #333A45;
  --muted: #5C6570;
  --paper: #F7F3EE;
  --paper-deep: #EDE6DC;
  --cream: #F4EDE4;
  --cool: #EEF2F7;
  --white: #FFFFFF;
  --line: #D0D4DA;
  --line-warm: #E6E0D6;
  --mark: #F6E2A8;
  --danger: #8B2E1F;
  --shadow: 0 12px 32px rgba(27, 42, 74, 0.12);
  --shadow-sm: 0 4px 14px rgba(27, 42, 74, 0.10);
  --radius: 6px;
  --measure: 68ch;
  --wrap: 1120px;
  --header-h: 4.25rem;
  --font-serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--slate);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible, summary:focus-visible, .boton:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.saltar {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 100;
  border-radius: var(--radius);
}
.saltar:focus { top: 1rem; color: var(--white); }

.envoltorio {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.cabecera {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, white);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-warm);
}
.cabecera-interior {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.marca {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--navy);
  flex-shrink: 0;
}
.marca-nombre {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 550;
  line-height: 1;
  letter-spacing: -0.01em;
}
.marca-nombre::after {
  content: "";
  display: block;
  width: 2.4rem;
  height: 2.5px;
  background: var(--accent);
  margin-top: 0.35rem;
}
.marca-tag {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.28rem;
  font-weight: 600;
}
.nav-toggle, .nav-check { display: none; }
.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.95rem;
}
.nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); }
.nav a.boton { color: var(--white); }
.nav a.boton:hover { color: var(--white); background: var(--accent); border-color: var(--accent); }

/* ---------- Buttons ---------- */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-weight: 650;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius);
  border: 2px solid var(--navy);
  line-height: 1.2;
  white-space: nowrap;
}
.boton:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.boton-ghost {
  background: transparent;
  color: var(--navy);
}
.boton-ghost:hover { background: var(--navy); color: var(--white); }
.boton-grande { padding: 0.95rem 1.5rem; font-size: 1.05rem; }

/* ---------- Eyebrows, typography ---------- */
.kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.7rem;
}
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy);
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0 0 0.7em;
}
h1 { font-size: clamp(2.05rem, 4.6vw, 3.35rem); font-weight: 580; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
.entradilla {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--slate);
  max-width: 48rem;
}
.muted { color: var(--muted); }
.precio {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  color: var(--navy);
  font-weight: 550;
  letter-spacing: -0.03em;
  line-height: 1;
}
.precio small {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
  display: block;
  margin-top: 0.4rem;
}

/* ---------- Hero ---------- */
.heroe {
  padding: 3.2rem 0 3.5rem;
  border-bottom: 1px solid var(--line-warm);
}
.heroe-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: start;
}
.heroe .entradilla { margin: 1.1rem 0 1.5rem; }
.aplica {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0 1.5rem;
}
.aplica article {
  background: var(--white);
  border: 1px solid var(--line-warm);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.05rem;
}
.aplica h2 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 0.6rem;
}
.aplica .si h2 { color: #2C4A3A; }
.aplica .no h2 { color: var(--danger); }
.aplica ul { margin: 0; padding-left: 1.1rem; }
.aplica li { margin: 0.25rem 0; font-size: 0.95rem; }
.aviso-previo {
  background: var(--cream);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  margin: 0 0 1.2rem;
  color: var(--slate);
}
.aviso-previo strong { color: var(--navy); }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 0.2rem;
}
.cta-nota { font-size: 0.88rem; color: var(--muted); }

/* Document collage */
.collage {
  position: relative;
  height: 34rem;
  margin-top: 0.5rem;
}
.collage img {
  position: absolute;
  width: 62%;
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow);
  background: var(--white);
}
.collage img:nth-child(1) { left: 0; top: 0; z-index: 1; }
.collage img:nth-child(2) { right: 0; top: 4.5rem; width: 58%; z-index: 2; }
.collage img:nth-child(3) { left: 16%; bottom: 0; width: 56%; z-index: 3; }

/* ---------- Sections ---------- */
.seccion { padding: 3.6rem 0; }
.seccion + .seccion, .banda + .seccion { border-top: 1px solid var(--line-warm); }
.banda { background: var(--white); border-top: 1px solid var(--line-warm); border-bottom: 1px solid var(--line-warm); }
.intro-seccion { max-width: 44rem; margin-bottom: 2rem; }
.intro-seccion p { margin-top: 0.6rem; }

/* ---------- Docs grid ---------- */
.docs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.tarjeta-doc {
  background: var(--white);
  border: 1px solid var(--line-warm);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.tarjeta-doc a.portada {
  display: block;
  background: var(--cool);
  border-bottom: 1px solid var(--line-warm);
  text-decoration: none;
}
.tarjeta-doc .portada img {
  width: 100%;
  aspect-ratio: 1 / 0.95;
  object-fit: cover;
  object-position: top center;
}
.tarjeta-doc .cuerpo { padding: 0.95rem 1rem 1.1rem; flex: 1; display: flex; flex-direction: column; }
.tarjeta-doc h3 { font-size: 1.12rem; margin-bottom: 0.35rem; }
.tarjeta-doc p { margin: 0 0 0.7rem; font-size: 0.92rem; color: var(--muted); flex: 1; }
.chip {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--cool);
  border: 1px solid var(--line);
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
}

/* ---------- Steps ---------- */
.pasos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  counter-reset: paso;
}
.paso {
  background: var(--white);
  border: 1px solid var(--line-warm);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem 1.35rem;
  position: relative;
}
.paso::before {
  counter-increment: paso;
  content: counter(paso, decimal-leading-zero);
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 0.7rem;
  font-weight: 550;
}
.paso h3 { margin-bottom: 0.45rem; }
.paso p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ---------- Price block ---------- */
.bloque-precio {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--navy);
  color: #E8EDF5;
  border-radius: 10px;
  padding: 2.4rem 2.5rem;
}
.bloque-precio h2, .bloque-precio .precio { color: var(--white); }
.bloque-precio .precio small { color: #C5CDDA; }
.bloque-precio p { margin: 0.6rem 0 0; }
.bloque-precio .boton { background: var(--accent); border-color: var(--accent); }
.bloque-precio .boton:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.bloque-precio .aviso-previo {
  background: rgba(244, 237, 228, 0.1);
  border-color: #E0A57A;
  color: #E8EDF5;
  margin-top: 1.1rem;
  margin-bottom: 0;
}
.bloque-precio .aviso-previo strong { color: var(--white); }

/* ---------- FAQ ---------- */
.faq { max-width: 48rem; }
.faq details {
  border-top: 1px solid var(--line-warm);
  background: transparent;
}
.faq details:last-child { border-bottom: 1px solid var(--line-warm); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 2rem 1.05rem 0;
  font-weight: 650;
  color: var(--navy);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 1.05rem;
  font-size: 1.35rem;
  color: var(--accent);
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p, .faq details ul { margin: 0 0 1.15rem; max-width: 46rem; }
.faq a { color: var(--accent-deep); }

/* ---------- Trust / sources ---------- */
.fuentes-oficiales {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.fuente {
  background: var(--white);
  border: 1px solid var(--line-warm);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  text-decoration: none;
  color: inherit;
  display: block;
}
.fuente:hover { border-color: var(--accent); color: inherit; }
.fuente strong { display: block; color: var(--navy); font-family: var(--font-serif); font-size: 1.1rem; font-weight: 550; margin-bottom: 0.3rem; }
.fuente span { font-size: 0.88rem; color: var(--muted); }

/* ---------- Articles teaser ---------- */
.articulos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.tarjeta-art {
  background: var(--white);
  border: 1px solid var(--line-warm);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.3rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
}
.tarjeta-art:hover { border-color: var(--accent); color: inherit; }
.tarjeta-art h3 { font-size: 1.3rem; margin: 0.3rem 0 0.6rem; }
.tarjeta-art p { margin: 0 0 1rem; color: var(--muted); font-size: 0.95rem; flex: 1; }
.tarjeta-art .leer { font-weight: 700; color: var(--accent); font-size: 0.92rem; }

/* ---------- Footer ---------- */
.pie {
  background: var(--navy);
  color: #C5CDDA;
  padding: 2.6rem 0 2.2rem;
  font-size: 0.92rem;
  margin-top: 0;
}
.pie a { color: #F4EDE4; text-decoration: none; }
.pie a:hover { color: var(--white); text-decoration: underline; }
.pie-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.pie .marca-nombre { color: var(--white); }
.pie .marca-nombre::after { background: var(--accent); }
.pie .marca-tag { color: #9AA6B8; }
.pie h2 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9AA6B8;
  margin: 0 0 0.7rem;
  font-weight: 700;
}
.pie ul { list-style: none; margin: 0; padding: 0; }
.pie li { margin: 0.3rem 0; }
.pie-legal {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.3rem;
  font-size: 0.85rem;
  color: #9AA6B8;
}
.pie-aviso { margin-top: 1rem; font-size: 0.82rem; color: #9AA6B8; max-width: 58rem; }

/* ---------- Sticky mobile CTA ---------- */
.barra-compra {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 35;
  background: var(--navy);
  color: var(--white);
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 20px rgba(27,42,74,0.25);
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.barra-compra .importe { font-family: var(--font-serif); font-size: 1.25rem; }
.barra-compra .boton { background: var(--accent); border-color: var(--accent); padding: 0.7rem 1rem; }

/* ---------- Legal / article pages ---------- */
.cuerpo-pagina { padding: 2.4rem 0 4rem; }
.miga { font-size: 0.88rem; color: var(--muted); margin-bottom: 1.4rem; }
.miga a { color: var(--muted); text-decoration: none; }
.miga a:hover { color: var(--accent); }
.prosa {
  max-width: var(--measure);
}
.prosa h1 { margin-bottom: 0.5rem; }
.prosa .meta { color: var(--muted); font-size: 0.92rem; margin: 0 0 1.6rem; }
.prosa h2 { margin-top: 2.1rem; }
.prosa h3 { margin-top: 1.5rem; font-size: 1.15rem; }
.prosa p, .prosa li { font-size: 1.0625rem; }
.prosa ul, .prosa ol { padding-left: 1.2rem; }
.prosa li { margin: 0.3rem 0; }
.prosa table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1.2rem 0 1.5rem;
  background: var(--white);
}
.prosa th, .prosa td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}
.prosa th { background: var(--cool); color: var(--navy); font-weight: 700; }
.prosa blockquote {
  margin: 1.3rem 0;
  padding: 0.2rem 0 0.2rem 1.1rem;
  border-left: 3px solid var(--accent);
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.45;
}
.caja-final {
  background: var(--white);
  border: 1px solid var(--line-warm);
  border-radius: var(--radius);
  padding: 1.3rem 1.3rem 1.2rem;
  margin-top: 2.4rem;
}
.aviso-legal-caja {
  background: var(--cream);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  margin: 1.5rem 0;
}
.dato-pendiente {
  background: var(--mark);
  color: var(--navy);
  padding: 0.05em 0.28em;
  border-radius: 2px;
  font-weight: 700;
  font-style: normal;
  box-decoration-break: clone;
}
.aviso-marcadores {
  background: var(--mark);
  border: 1px solid #D1B056;
  color: var(--navy);
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  margin: 0 0 1.6rem;
}
.otros-arts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .heroe-grid, .bloque-precio, .pie-grid { grid-template-columns: 1fr; }
  .collage { height: 22rem; max-width: 26rem; margin: 0 auto; }
  .docs, .articulos, .fuentes-oficiales, .pasos { grid-template-columns: 1fr 1fr; }
  .heroe { padding-top: 2.2rem; }
}
@media (max-width: 720px) {
  .envoltorio { width: min(var(--wrap), calc(100% - 1.6rem)); }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    cursor: pointer;
    position: relative;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block;
    width: 1.1rem;
    height: 2px;
    background: var(--navy);
    position: absolute;
    left: 50%;
    margin-left: -0.55rem;
  }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; }
  .nav-toggle span { top: 50%; margin-top: -1px; }
  .nav-toggle span::before { top: -6px; }
  .nav-toggle span::after { top: 6px; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line-warm);
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem 1.1rem 1rem;
    gap: 0;
  }
  .nav a, .nav .boton { padding: 0.7rem 0.2rem; }
  .nav .boton { margin-top: 0.4rem; white-space: normal; }
  .nav-check:checked ~ .nav { display: flex; }
  .aplica, .docs, .articulos, .fuentes-oficiales, .pasos, .otros-arts, .pie-grid {
    grid-template-columns: 1fr;
  }
  .collage { display: none; } /* previews appear in the docs section */
  .bloque-precio { padding: 1.6rem 1.2rem; }
  .barra-compra { display: flex; }
  body.inicio { padding-bottom: 5.2rem; }
  .pie-legal { flex-direction: column; }
  h1 { font-size: 2rem; }
}
@media print {
  .cabecera, .barra-compra, .boton, .pie { display: none !important; }
  body { background: white; color: black; }
  a { color: black; }
}

/* ---------- Waitlist form ---------- */
.form-espera { background: var(--white); color: var(--slate); border-radius: 8px; padding: 1.5rem; display: grid; gap: 0.8rem; box-shadow: var(--shadow); }
.form-espera > label { font-weight: 650; color: var(--navy); }
.form-espera input[type=email] { font: inherit; padding: 0.8rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius); width: 100%; }
.form-espera input[type=email]:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.form-espera .consentimiento { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; font-weight: 400; color: var(--slate); }
.form-espera .consentimiento input { margin-top: 0.3rem; width: 1.1rem; height: 1.1rem; flex: none; }
.form-espera .boton { width: 100%; white-space: normal; cursor: pointer; font-family: inherit; }
.form-espera .boton[disabled] { opacity: 0.6; cursor: wait; }
.form-espera a { color: var(--navy); }
.campo-trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-mensaje { margin: 0; min-height: 1.2em; font-size: 0.92rem; }
.form-mensaje.error { color: var(--danger); font-weight: 600; }
.form-rgpd { margin: 0; font-size: 0.78rem; color: var(--muted); line-height: 1.5; }
.form-gracias { margin: 0; color: var(--navy); font-size: 1.02rem; }
.bloque-precio .form-espera p { margin: 0; }
