/* Hoja compartida por las páginas legales. El sitio no tiene build: se copia
   con <link> desde cada documento y se sube junto con ellos.

   Van en CLARO a propósito. El verde Cazador es la cara de la marca, pero un
   aviso de privacidad se lee de corrido durante minutos y el texto largo sobre
   fondo oscuro cansa. La marca aparece donde manda —encabezado, acentos,
   enlaces— y el cuerpo se queda en crema. */

:root {
  --brand: #24402e;
  --brand-d: #1a3123;
  --accent: #c2ed12;
  --cream: #f2f1ec;
  --paper: #fbfaf7;
  --ink: #1c2620;
  --muted: #5c6b62;
  --line: #dfded7;
  --measure: 68ch;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Encabezado ───────────────────────────────────────────────────────── */

.tapa {
  background: var(--brand);
  color: var(--cream);
  padding: 1.75rem 0 2.5rem;
}

.contenedor {
  width: min(var(--measure), 100% - 2.5rem);
  margin-inline: auto;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.marca svg {
  width: 30px;
  height: 30px;
}

.tapa h1 {
  margin: 1.75rem 0 0;
  font-size: clamp(1.75rem, 5.5vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: balance;
}

.vigencia {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: rgba(242, 241, 236, 0.66);
}

/* ── Cuerpo ───────────────────────────────────────────────────────────── */

main {
  padding: 2.5rem 0 calc(4rem + env(safe-area-inset-bottom));
}

h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
  scroll-margin-top: 1.5rem;
}

h2:first-child {
  margin-top: 0;
}

h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p,
li {
  text-wrap: pretty;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

li {
  margin-bottom: 0.4rem;
}

strong {
  font-weight: 700;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

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

/* Índice de secciones. */
.indice {
  margin: 0 0 2.5rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.indice p {
  margin: 0 0 0.6rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.indice ol {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.9375rem;
  columns: 2;
  column-gap: 2rem;
}

@media (max-width: 34rem) {
  .indice ol {
    columns: 1;
  }
}

/* Bloque para lo que el lector NO debe pasar por alto: quién cobra, quién
   reembolsa, qué no cubrimos. Es donde se pierde el dinero de la gente. */
.ojo {
  margin: 1.5rem 0;
  padding: 1.1rem 1.35rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: #fff;
}

.ojo p:last-child {
  margin-bottom: 0;
}

/* Tabla de datos / finalidades. */
.tabla-envoltura {
  overflow-x: auto;
  margin: 1.25rem 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

th,
td {
  padding: 0.7rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

/* ── Pie ──────────────────────────────────────────────────────────────── */

.pie {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.pie a {
  margin-right: 1.1rem;
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
}

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

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

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
