/*
  Estilos del sitio legal de Subs (https://subs.wiggi.mx/). Lo comparten todas las páginas.
  Las tipografías se sirven desde este mismo sitio (fuentes/), sin pedir nada a otro dominio: Geist y Righteous son
  OFL 1.1 y van sin modificar, cada una junto a su licencia (fuentes/OFL-*.txt).
  Contraste: todo el texto pasa 4.5:1 en los dos modos (verde #1a7a42 y naranja #a84e0b en claro, los tokens de éxito
  y atención de la app).
*/
@font-face {
  font-family: "Geist";
  src: url("fuentes/Geist-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Righteous";
  src: url("fuentes/Righteous-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --lienzo: #f2f2f7;
  --superficie: #ffffff;
  --hundido: rgba(0, 0, 0, 0.045);
  --texto: #141414;
  --secundario: #5f5f64;
  --linea: rgba(0, 0, 0, 0.08);
  --acento: #141414;
  --verde: #1a7a42;
  --naranja: #a84e0b;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --lienzo: #0d0d0f;
    --superficie: #1c1c1e;
    --hundido: rgba(0, 0, 0, 0.38);
    --texto: #f5f5f7;
    --secundario: #a1a1a7;
    --linea: rgba(255, 255, 255, 0.09);
    --acento: #ffffff;
    --verde: #34c77b;
    --naranja: #ff9f2e;
  }
}
:root[data-theme="dark"] {
  --lienzo: #0d0d0f;
  --superficie: #1c1c1e;
  --hundido: rgba(0, 0, 0, 0.38);
  --texto: #f5f5f7;
  --secundario: #a1a1a7;
  --linea: rgba(255, 255, 255, 0.09);
  --acento: #ffffff;
  --verde: #34c77b;
  --naranja: #ff9f2e;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--lienzo);
  color: var(--texto);
  font: 400 16px/1.55 "Geist", -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.pagina { max-width: 720px; margin: 0 auto; padding: 32px 16px 72px; }

/* Teclado: salto al contenido y foco siempre visible. */
.saltar {
  position: absolute; left: 16px; top: -100px;
  background: var(--superficie); color: var(--texto);
  padding: 10px 16px; border-radius: 12px; z-index: 10;
}
.saltar:focus { top: 16px; }
a:focus-visible, summary:focus-visible, .saltar:focus-visible {
  outline: 3px solid var(--acento);
  outline-offset: 3px;
  border-radius: 4px;
}
main:focus { outline: none; }

/* Encabezado: el ícono de la app, el nombre y el título. */
header { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
header > div:last-child { min-width: 0; }
.icono {
  width: 64px; height: 64px; flex: none;
  border-radius: 22%;
  background: linear-gradient(to top, #081c3f, #04112a);
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(4, 17, 42, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.icono img { width: 70%; height: auto; display: block; }
.marca { font: 400 15px/1 "Righteous", sans-serif; color: var(--secundario); letter-spacing: 0.02em; }
a.marca { text-decoration: none; }
h1 { font: 400 clamp(26px, 7vw, 40px)/1.1 "Righteous", sans-serif; margin: 6px 0 0; overflow-wrap: anywhere; }
.fecha { color: var(--secundario); font-size: 14px; margin: 14px 0 28px; }
.intro { font-size: 17px; margin: 0 0 28px; }

/* Lo esencial, en tarjetas. */
.resumen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; margin: 0 0 40px; padding: 0; list-style: none; }
.dato {
  background: var(--superficie); border-radius: 22px; padding: 18px;
  box-shadow: 0 1px 0 var(--linea);
}
.dato .circulo {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--hundido); display: grid; place-items: center; margin-bottom: 12px;
}
.dato .circulo svg { width: 18px; height: 18px; stroke: var(--texto); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dato strong { display: block; font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.dato span { color: var(--secundario); font-size: 14px; line-height: 1.45; }

/* Secciones: título fuera y contenido en una superficie, como las de la app. */
section { margin-bottom: 32px; }
h2 { font: 600 19px/1.3 "Geist", sans-serif; margin: 0 0 10px 4px; }
h3 { font: 600 16px/1.35 "Geist", sans-serif; margin: 18px 0 4px; }
.grupo { background: var(--superficie); border-radius: 22px; padding: 6px 20px; overflow-wrap: anywhere; }
.grupo p { margin: 14px 0; }
.grupo ul { list-style: none; margin: 0; padding: 0; }
.grupo ol { margin: 10px 0; padding-left: 22px; }
.grupo ol li { padding: 4px 0; }
.grupo ul > li { padding: 13px 0; border-bottom: 1px solid var(--linea); }
.grupo ul > li:last-child { border-bottom: 0; }
.grupo b { font-weight: 600; }
.hundido { background: var(--hundido); border-radius: 16px; padding: 14px 16px; margin: 14px 0; font-size: 15px; }
.no { color: var(--secundario); }
.pastilla {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid currentColor; border-radius: 999px; padding: 1px 10px;
  font-size: 13px; font-weight: 500; vertical-align: 1px;
}
.pastilla::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.verde { color: var(--verde); }
.naranja { color: var(--naranja); }
a { color: var(--acento); text-underline-offset: 3px; }

/* Tablas de proveedores: en pantallas angostas cada fila se vuelve un bloque. */
table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px 10px 0; border-bottom: 1px solid var(--linea); }
tr:last-child td { border-bottom: 0; }
th { font-weight: 600; font-size: 14px; color: var(--secundario); }
@media (max-width: 560px) {
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table, tbody, tr, td { display: block; width: 100%; }
  tr { padding: 10px 0; border-bottom: 1px solid var(--linea); }
  tr:last-child { border-bottom: 0; }
  td { border: 0; padding: 2px 0; }
  td:first-child { font-weight: 600; }
}

/* Textos de licencias. */
details { border-bottom: 1px solid var(--linea); padding: 12px 0; }
details:last-child { border-bottom: 0; }
summary { cursor: pointer; font-weight: 600; }
summary span { font-weight: 400; color: var(--secundario); }
pre {
  white-space: pre-wrap; overflow-wrap: anywhere;
  font: 400 12.5px/1.5 ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--hundido); border-radius: 12px; padding: 12px 14px; margin: 10px 0 4px;
}

footer { color: var(--secundario); font-size: 14px; text-align: center; margin-top: 48px; }
footer .marca { display: block; margin-bottom: 10px; font-size: 18px; color: var(--texto); }
footer nav ul { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
footer nav a { display: inline-block; padding: 6px 2px; }
footer nav a[aria-current="page"] { font-weight: 600; text-decoration: none; }
footer p { margin: 4px 0; }
