/*
 * Baluarte Seguridad · dirección "Suizo" — retícula estricta, tipografía grotesca, sin ornamentos
 *
 * Paleta (claro)   fondo #ffffff · texto #0a0a0a · texto-2 #545454 · línea #0a0a0a
 *                  línea-suave #e2e2e2 · acento azul eléctrico #0040ff (7,4:1 sobre blanco)
 * Paleta (oscuro)  fondo #0a0a0a · texto #f4f4f4 · texto-2 #a6a6a6 · línea #f4f4f4
 *                  línea-suave #262626 · acento #5b8cff
 * Fuentes          titulares/navegación: "Schibsted Grotesk" 500/700/800
 *                  texto: "Literata" 400 (sustituto libre de Lexicon)
 * Escala (rem)     0.8125 · 1 · 1.25 · 1.75 · 2.5 · clamp(3→6.5) · clamp(4→9) cifras
 * Espaciado (rem)  0.5 · 1 · 1.5 · 2 · 4 · 6 · 8   (múltiplos de 8 px)
 * Retícula         12 columnas, gutter 1.5rem; etiqueta en cols 1–3, contenido en 4–12
 */

/* Fuentes alojadas localmente (OFL), subconjunto latino: sin peticiones a terceros. */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/schibsted-grotesk-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/literata-latin.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --fg-2: #545454;
  --line: #0a0a0a;
  --line-soft: #e2e2e2;
  --blue: #0040ff;
  --on-blue: #ffffff;
  --grotesk: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Literata", Georgia, serif;
  --g: 1.5rem;
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s5: 4rem;
  --s6: 6rem;
  --s7: 8rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0a;
    --fg: #f4f4f4;
    --fg-2: #a6a6a6;
    --line: #f4f4f4;
    --line-soft: #262626;
    --blue: #5b8cff;
    --on-blue: #000000;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0a0a0a;
  --fg: #f4f4f4;
  --fg-2: #a6a6a6;
  --line: #f4f4f4;
  --line-soft: #262626;
  --blue: #5b8cff;
  --on-blue: #000000;
  color-scheme: dark;
}

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

html { scroll-padding-top: 4.5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2, h3 { font-family: var(--grotesk); margin: 0; line-height: 1; }
p { margin: 0 0 var(--s2); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--s2); top: -4rem; z-index: 100; padding: var(--s1) var(--s2); background: var(--blue); color: var(--on-blue); font-family: var(--grotesk); }
.skip:focus { top: var(--s2); }

.grid {
  width: min(1240px, 100% - 2rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--g);
}

.label {
  grid-column: 1 / 4;
  font-family: var(--grotesk);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--fg-2);
}

.content { grid-column: 4 / 13; }

/* Encabezado */
.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}
.top .grid { align-items: center; min-height: 4rem; }

.brand {
  grid-column: 1 / 4;
  font-family: var(--grotesk); font-weight: 700; font-size: 1.05rem;
  text-decoration: none; letter-spacing: -0.01em;
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; }
.brand-mark { width: 2.5rem; height: 2.5rem; flex: none; }
.brand-accent { color: var(--blue); }

.nav { grid-column: 4 / 12; }
.menu { display: flex; gap: var(--s4); list-style: none; margin: 0; padding: 0; font-family: var(--grotesk); font-size: 0.95rem; font-weight: 500; }
.menu a { text-decoration: none; }
.menu a:hover { color: var(--blue); }

.icon-btn {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem;
  background: transparent; color: var(--fg); border: 0; cursor: pointer; padding: 0;
}
.icon-btn svg { width: 1.25rem; height: 1.25rem; }
.theme-toggle { grid-column: 12 / 13; justify-self: end; }
.nav-toggle { display: none; }
.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: none; }
  :root:not([data-theme="light"]) .icon-moon { display: block; }
}

/* Hero */
.hero { padding: var(--s7) 0 var(--s6); }
.hero .label { align-self: start; padding-top: 0.6rem; }
.hero h1 {
  grid-column: 1 / 13;
  font-size: clamp(3rem, 8.4vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: var(--s4) 0 var(--s5);
}
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lead { grid-column: 4 / 10; font-size: 1.25rem; line-height: 1.5; }
.hero .actions { grid-column: 4 / 13; }

.actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.btn {
  display: inline-flex; align-items: center; min-height: 3rem; padding: 0 var(--s3);
  font-family: var(--grotesk); font-weight: 500; font-size: 1rem;
  text-decoration: none; background: var(--blue); color: var(--on-blue); border: 2px solid var(--blue);
}
.btn:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.btn-plain { background: transparent; color: var(--fg); border-color: var(--fg); }

/* Secciones */
.section { padding: var(--s6) 0; border-top: 2px solid var(--line); }
.section h2 {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: var(--s5);
  max-width: 16ch;
}

.rows { list-style: none; margin: 0; padding: 0; }
.rows > li {
  display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); column-gap: var(--g);
  padding: var(--s3) 0; border-top: 1px solid var(--line-soft);
}
.rows > li:last-child { border-bottom: 1px solid var(--line-soft); }
.rows .n { grid-column: 1 / 2; font-family: var(--grotesk); font-weight: 700; color: var(--blue); font-size: 1.25rem; line-height: 1.3; }
.rows h3 { grid-column: 2 / 5; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.rows p { grid-column: 5 / 10; color: var(--fg-2); margin: 0; }
.rows .meta { display: block; font-family: var(--grotesk); font-size: 0.8125rem; font-weight: 500; color: var(--fg-2); margin-top: var(--s1); letter-spacing: 0; }
.rows .out { display: block; margin-top: var(--s1); color: var(--fg); }

/* Ofertas */
.offers { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--g); }
.offer { border-top: 1px solid var(--line); padding-top: var(--s3); }
.offer .kicker { font-family: var(--grotesk); font-size: 0.8125rem; font-weight: 500; color: var(--fg-2); }
.offer h3 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; margin: var(--s1) 0 var(--s3); min-height: 2.2em; }
.figure { font-family: var(--grotesk); font-weight: 800; font-size: clamp(3rem, 6vw, 4.75rem); letter-spacing: -0.05em; line-height: 0.9; color: var(--blue); margin: 0; }
.figure small { font-size: 0.875rem; font-weight: 500; letter-spacing: 0; color: var(--fg-2); display: block; margin-top: var(--s1); }
.offer ul { list-style: none; padding: 0; margin: var(--s4) 0 var(--s3); }
.offer li { padding: var(--s1) 0; border-top: 1px solid var(--line-soft); }
.offer .fine { font-size: 0.95rem; color: var(--fg-2); }
.aside { margin-top: var(--s5); max-width: 44rem; color: var(--fg-2); }

/* Normativa */
.laws { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--g); row-gap: var(--s4); }
.law-num { font-family: var(--grotesk); font-weight: 800; font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.05em; line-height: 1; margin: 0 0 var(--s1); }
.laws h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: var(--s2); }
.laws p { color: var(--fg-2); }
.laws .law-num { color: var(--fg); }

/* FAQ */
details { border-top: 1px solid var(--line-soft); }
details:last-of-type { border-bottom: 1px solid var(--line-soft); }
summary {
  cursor: pointer; list-style: none; padding: var(--s3) 3rem var(--s3) 0; position: relative;
  font-family: var(--grotesk); font-weight: 500; font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.3;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: var(--s3); font-size: 1.5rem; line-height: 1; color: var(--blue); }
details[open] summary::after { content: "–"; }
details p { max-width: 42rem; color: var(--fg-2); padding-bottom: var(--s2); }

/* Contacto */
.contact h2 { max-width: none; }
.contact-line {
  font-family: var(--grotesk); font-weight: 700; font-size: clamp(1.5rem, 3.6vw, 2.75rem);
  letter-spacing: -0.03em; line-height: 1.15; margin: 0;
}
.contact-line a { text-decoration: none; overflow-wrap: anywhere; }
.contact-line a:hover { color: var(--blue); }

/* Formulario */
.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--g);
  row-gap: var(--s3);
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: 2px solid var(--line);
}
.form[hidden] { display: none; }
.form-title { grid-column: 1 / -1; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: var(--s1); }
.field { display: flex; flex-direction: column; gap: var(--s1); min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-family: var(--grotesk); font-weight: 500; font-size: 0.95rem; }
.req { color: var(--blue); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%;
  font: inherit;
  color: var(--fg);
  background: var(--bg);
  border: 0;
  border-bottom: 2px solid var(--fg);
  border-radius: 0;
  padding: 0.6rem 0;
}
.field textarea { resize: vertical; min-height: 8rem; border: 2px solid var(--fg); padding: 0.75rem; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 2px 0 0 var(--blue); }
.field [aria-invalid="true"] { border-color: #d0021b; }
.error { margin: 0; font-family: var(--grotesk); font-size: 0.875rem; font-weight: 500; color: #c4001a; }
.check { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); column-gap: var(--s1); align-items: start; }
.check input { width: 1.25rem; height: 1.25rem; margin: 0.2rem 0 0; accent-color: var(--blue); }
.check label { font-family: var(--serif); font-weight: 400; font-size: 0.95rem; color: var(--fg-2); }
.check .error { grid-column: 2; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { min-height: 65px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.form-status { margin: 0; font-family: var(--grotesk); font-weight: 500; }
.form-status.is-ok { color: var(--blue); }
.form-status.is-error { color: #c4001a; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .error, :root:not([data-theme="light"]) .form-status.is-error { color: #ff6b6b; }
}
:root[data-theme="dark"] .error, :root[data-theme="dark"] .form-status.is-error { color: #ff6b6b; }

@media (max-width: 760px) {
  .form { grid-template-columns: 1fr; }
}

.foot { padding: var(--s4) 0 var(--s5); border-top: 2px solid var(--line); font-family: var(--grotesk); font-size: 0.8125rem; color: var(--fg-2); }
.foot p { margin: 0; }
.foot .a { grid-column: 1 / 7; }
.foot .b { grid-column: 7 / 13; }

/* Responsive */
@media (max-width: 960px) {
  .label { grid-column: 1 / 13; margin-bottom: var(--s3); }
  .content, .hero .lead, .hero .actions { grid-column: 1 / 13; }
  .hero { padding: var(--s5) 0; }
  .section { padding: var(--s5) 0; }
  .rows > li { grid-template-columns: 3rem minmax(0, 1fr); row-gap: var(--s1); }
  .rows .n { grid-column: 1 / 2; grid-row: 1 / 3; }
  .rows h3, .rows p { grid-column: 2 / 3; }
}

@media (max-width: 760px) {
  .brand { grid-column: 1 / 9; }
  .nav { grid-column: 9 / 12; justify-self: end; }
  .nav-toggle { display: inline-grid; }
  .menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: var(--s1) 1rem var(--s2);
    background: var(--bg); border-bottom: 2px solid var(--line);
  }
  .menu.open { display: flex; }
  .menu a { display: block; padding: 0.75rem 0; font-size: 1.25rem; }
  .offers, .laws { grid-template-columns: 1fr; row-gap: var(--s5); }
  .offer h3 { min-height: 0; }
  .foot .a, .foot .b { grid-column: 1 / 13; }
}
