/*
 * Páginas públicas estáticas de Stados (/privacidad y /conector-claude).
 *
 * Son HTML plano y no pasan por la app, para que el texto completo esté en la
 * respuesta del servidor. Por eso no usan Tailwind: esta hoja repite a mano
 * los tokens de "Tinta y Papel" que define src/index.css. Si cambian allá,
 * cambian acá.
 */

:root {
  --papel: hsl(240 5% 97%);
  --tinta: hsl(212 20% 7%);
  --tarjeta: hsl(0 0% 100%);
  --apagado: hsl(220 7% 40%);
  --linea: hsl(240 5% 89%);
  --relleno: hsl(240 5% 94%);
  --acento: hsl(188 63% 34%);
  --acento-suave: hsl(186 24% 93%);
  --acento-tinta: hsl(191 45% 18%);
  --sombra: 0 1px 2px hsl(212 20% 7% / 0.04), 0 1px 3px hsl(212 20% 7% / 0.03);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---- Idioma: un selector que funciona sin JavaScript ----
   Los dos idiomas están en el HTML. Dos radios ocultos, hermanos de todo el
   contenido, deciden cuál se muestra. */

.idioma {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

#idioma-es:checked ~ * .en,
#idioma-en:checked ~ * .es {
  display: none;
}

.cabecera {
  border-bottom: 1px solid var(--linea);
  background: var(--papel);
}

.cabecera-fila {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.marca {
  display: inline-flex;
  align-items: center;
}

.marca img {
  display: block;
  height: 26px;
  width: auto;
}

.selector {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: var(--relleno);
  border: 1px solid var(--linea);
  border-radius: 8px;
}

.selector label {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--apagado);
  cursor: pointer;
  user-select: none;
}

.selector label:hover {
  color: var(--tinta);
}

#idioma-es:checked ~ .cabecera label[for='idioma-es'],
#idioma-en:checked ~ .cabecera label[for='idioma-en'] {
  background: var(--tarjeta);
  color: var(--tinta);
  box-shadow: var(--sombra);
}

#idioma-es:focus-visible ~ .cabecera label[for='idioma-es'],
#idioma-en:focus-visible ~ .cabecera label[for='idioma-en'] {
  outline: 2px solid var(--acento);
  outline-offset: 2px;
}

/* ---- Contenido ---- */

.contenido {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 24px;
}

.hoja {
  background: var(--tarjeta);
  border: 1px solid var(--linea);
  border-radius: 12px;
  box-shadow: var(--sombra);
  padding: 40px;
}

h1,
h2,
h3 {
  font-family: 'Outfit', 'Figtree', system-ui, sans-serif;
  color: var(--tinta);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

h1 {
  font-size: 30px;
  font-weight: 600;
  margin: 0 0 8px;
}

h2 {
  font-size: 19px;
  font-weight: 600;
  margin: 40px 0 12px;
  padding-top: 28px;
  border-top: 1px solid var(--linea);
}

h3 {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 24px 0 8px;
}

p {
  margin: 0 0 14px;
}

ul,
ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

li > ul {
  margin-top: 6px;
}

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

a:hover {
  color: var(--acento-tinta);
}

strong {
  font-weight: 600;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--relleno);
  border: 1px solid var(--linea);
  border-radius: 6px;
  padding: 1px 6px;
  word-break: break-word;
}

.fecha {
  color: var(--apagado);
  font-size: 13px;
  margin-bottom: 24px;
}

.entrada {
  font-size: 16px;
  color: var(--tinta);
}

.direccion {
  display: block;
  margin: 0 0 14px;
  padding: 12px 14px;
  font-size: 14px;
  background: var(--papel);
  border: 1px solid var(--linea);
  border-radius: 8px;
}

.aviso {
  margin: 0 0 14px;
  padding: 14px 16px;
  background: var(--acento-suave);
  color: var(--acento-tinta);
  border-radius: 8px;
}

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

.indice {
  margin: 0 0 8px;
  padding: 16px 18px 10px;
  background: var(--papel);
  border: 1px solid var(--linea);
  border-radius: 8px;
  font-size: 14px;
}

.indice ol {
  margin: 0;
}

/* Tablas de herramientas */

.tabla {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 14px;
  font-size: 14px;
}

.tabla th,
.tabla td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--linea);
}

.tabla th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--apagado);
}

.tabla td:first-child {
  white-space: nowrap;
}

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

.ejemplos {
  list-style: none;
  padding: 0;
}

.ejemplos li {
  margin-bottom: 8px;
  padding: 10px 14px;
  background: var(--papel);
  border: 1px solid var(--linea);
  border-radius: 8px;
}

.pie {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 24px 48px;
  color: var(--apagado);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.pie a {
  color: var(--apagado);
}

.pie a:hover {
  color: var(--tinta);
}

@media (max-width: 640px) {
  .contenido {
    padding: 20px 12px 16px;
  }

  .hoja {
    padding: 24px 18px;
  }

  h1 {
    font-size: 25px;
  }

  /* En angosto la tabla se apila: el nombre de la herramienta arriba y su
     explicación abajo, así el nombre no se corta al medio. */
  .tabla thead {
    display: none;
  }

  .tabla tr {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--linea);
  }

  .tabla tr:last-child {
    border-bottom: 0;
  }

  .tabla td {
    display: block;
    padding: 0;
    border: 0;
  }

  .tabla td:first-child {
    margin-bottom: 4px;
  }
}

@media print {
  .selector {
    display: none;
  }

  .hoja {
    border: 0;
    box-shadow: none;
    padding: 0;
  }
}
