/* Podría haber sido un mail · estilos de las páginas web.
   Los valores salen del manual de marca (marca/tokens.json). Si cambia un color o un tamaño, cambia allá primero. */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('/estatico/fuentes/bricolage-grotesque-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url('/estatico/fuentes/bricolage-grotesque-latin-800-normal.woff2') format('woff2');
}
@font-face {
  font-family: Inter;
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('/estatico/fuentes/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: Inter;
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('/estatico/fuentes/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: Inter;
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('/estatico/fuentes/inter-latin-600-normal.woff2') format('woff2');
}

:root {
  color-scheme: light dark;
  --papel: #ffffff;
  --tinta: #0b0b0c;
  --sobre-tinta: #ffffff;
  --marcador: #ffe500;
  --sobre-marcador: #0b0b0c;
  --peligro: #b3140e;
  --texto-cuerpo: #2a2a2e;
  --texto-secundario: #55555a;
  --fondo-suave: #f2f2f0;
  --linea-suave: #c9c9c6;
  --placa-fondo: #0b0b0c;
  --placa-texto: #ffffff;
  --placa-apoyo: #d6d6d2;
  --placa-borde: #0b0b0c;
  --titulos: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --texto: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radio-secundario: 16px;
  --radio-boton: 18px;
  --radio-placa: 22px;
  --linea: 1.5px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --papel: #0b0b0c;
    --tinta: #ffffff;
    --sobre-tinta: #0b0b0c;
    --peligro: #ff8a80;
    --texto-cuerpo: #e4e4e1;
    --texto-secundario: #d6d6d2;
    --fondo-suave: #1c1c1e;
    --linea-suave: #3a3a3d;
    /* La placa es oscura en los dos temas: sobre papel oscuro necesita un borde para verse. */
    --placa-borde: #3a3a3d;
  }
}

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

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

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--tinta);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ───────── Estructura ───────── */

.pagina {
  width: 100%;
  max-width: 560px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 56px 24px 34px;
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bloque {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reunion {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.acciones,
.llamada {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.centrado {
  text-align: center;
}

/* ───────── Tipografía ───────── */

h1,
h2,
p,
ul,
ol {
  margin: 0;
}

.etiqueta {
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--texto-secundario);
}

.marca,
.titular,
.titulo-grande,
.titulo,
.titulo-reunion,
.titulo-seccion,
.subtitulo,
.nombre,
.tarjeta-titulo,
.placa-titulo,
.boton {
  font-family: var(--titulos);
}

.titular {
  font-size: 58px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -2px;
}

.titulo-grande {
  font-size: 50px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -1.8px;
}

.titulo,
.marca {
  font-size: 44px;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -1.4px;
}

/* El logotipo arriba de un título propio va más chico: el título de la página manda. */
.marca + .titulo,
.marca + .reunion,
.marca:has(+ .titulo),
.marca:has(+ .reunion) {
  margin-top: 0;
}

.marca:has(+ .titulo) {
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.titulo-reunion {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.titulo-seccion {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  margin-top: 8px;
}

.subtitulo {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
}

.nombre {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
}

.cuerpo {
  font-size: 16px;
  line-height: 1.5;
  color: var(--texto-cuerpo);
}

.cuerpo + .cuerpo {
  margin-top: 10px;
}

.cuerpo-chico {
  font-size: 15px;
  line-height: 1.45;
  color: var(--texto-cuerpo);
}

.apoyo {
  font-size: 13px;
  line-height: 1.4;
  color: var(--texto-secundario);
}

/* El resaltado: siempre recto, nunca redondeado, y no se parte en dos renglones. */
.resaltado {
  background: var(--marcador);
  color: var(--sobre-marcador);
  padding: 0 0.12em;
  white-space: nowrap;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ───────── Listas ───────── */

.lista {
  list-style: none;
  padding: 0;
  border-top: var(--linea) solid var(--tinta);
  border-bottom: var(--linea) solid var(--tinta);
}

.fila {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 12px 0;
}

.fila + .fila {
  border-top: 1px solid var(--linea-suave);
}

.fila-contenido {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fila-texto {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.fila-fuerte {
  font-weight: 600;
}

/* ───────── Tareas ───────── */

.casilla-form {
  margin: 0;
  display: flex;
  flex-shrink: 0;
}

.casilla {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border: var(--linea) solid var(--tinta);
  border-radius: 8px;
  background: transparent;
  color: var(--sobre-tinta);
  display: flex;
  align-items: center;
  justify-content: center;
}

button.casilla {
  cursor: pointer;
  /* El dibujo mide 28 px; el área que se toca, 44. */
  position: relative;
}

button.casilla::after {
  content: '';
  position: absolute;
  inset: -9px;
}

.casilla-hecha {
  background: var(--tinta);
  border-radius: 50%;
}

.casilla-fija:not(.casilla-hecha) {
  border-color: var(--linea-suave);
}

.tarea-hecha .fila-texto {
  color: var(--texto-secundario);
  text-decoration: line-through;
}

/* ───────── Botones y opciones ───────── */

.boton {
  min-height: 60px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radio-boton);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}

.boton-tinta {
  background: var(--tinta);
  color: var(--sobre-tinta);
}

.boton-marcador {
  background: var(--marcador);
  color: var(--sobre-marcador);
}

.enlace-secundario {
  align-self: center;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--texto-secundario);
  text-decoration: none;
}

.opciones {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.opcion {
  min-height: 64px;
  padding: 0 18px;
  border: var(--linea) solid var(--tinta);
  border-radius: var(--radio-boton);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ───────── Tarjetas ───────── */

.tarjeta-suave {
  padding: 16px;
  border-radius: var(--radio-secundario);
  background: var(--fondo-suave);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tarjeta-suave .cuerpo + .cuerpo {
  margin-top: 0;
}

.tarjeta-titulo {
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
}

.placa {
  padding: 16px;
  border: var(--linea) solid var(--placa-borde);
  border-radius: var(--radio-placa);
  background: var(--placa-fondo);
  color: var(--placa-texto);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.placa-encabezado {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.placa-apoyo {
  color: var(--placa-apoyo);
}

.placa-titulo {
  font-size: 22px;
  line-height: 1.05;
  font-weight: 800;
}

.placa-video {
  width: 100%;
  max-height: 70vh;
  border-radius: 12px;
  background: #000000;
  display: block;
}

/* ───────── Momentos ───────── */

.audio {
  width: 100%;
  margin-bottom: 6px;
}

.momento {
  align-items: flex-start;
}

.momento-tiempo {
  flex-shrink: 0;
  min-width: 58px;
  min-height: 32px;
  padding: 0 10px;
  border: var(--linea) solid var(--tinta);
  border-radius: 999px;
  background: transparent;
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button.momento-tiempo {
  cursor: pointer;
}

.momento-fijo {
  border-color: var(--linea-suave);
  color: var(--texto-secundario);
}

.momento-activo .momento-tiempo {
  background: var(--tinta);
  color: var(--sobre-tinta);
}

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

.pie {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.pie a {
  text-decoration: none;
}

.pie a:hover {
  text-decoration: underline;
}

/* ───────── Pantallas angostas ───────── */

@media (max-width: 380px) {
  .titular {
    font-size: 48px;
    letter-spacing: -1.6px;
  }
  .titulo-grande {
    font-size: 42px;
    letter-spacing: -1.4px;
  }
  .titulo,
  .marca {
    font-size: 38px;
    letter-spacing: -1.2px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .boton,
  .opcion,
  .casilla,
  .momento-tiempo {
    transition:
      transform 120ms ease,
      background-color 120ms ease;
  }
  .boton:active,
  .opcion:active {
    transform: scale(0.98);
  }
}
