/* Biblia en lengua de signos — hoja de estilo única, sin dependencias externas.
   Pensada para móvil: alto contraste, texto grande, botones amplios. */

:root {
  --fondo: #0e1116;
  --fondo-tarjeta: #171c24;
  --borde: #2a323e;
  --texto: #f2f5f9;
  --texto-suave: #a8b3c2;
  --acento: #4da3ff;
  --acento-texto: #04121f;
  --radio: 14px;
  --ancho: 46rem;
}

@media (prefers-color-scheme: light) {
  :root {
    --fondo: #f4f6f9;
    --fondo-tarjeta: #ffffff;
    --borde: #d8dee7;
    --texto: #11161d;
    --texto-suave: #52606f;
    --acento: #0b63c5;
    --acento-texto: #ffffff;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0 0 3rem;
  background: var(--fondo);
  color: var(--texto);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

.contenedor {
  width: 100%;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Cabecera ---------- */

.cabecera {
  padding: 1.1rem 0 0.9rem;
  border-bottom: 1px solid var(--borde);
  margin-bottom: 1.25rem;
}

.cabecera a { color: inherit; text-decoration: none; }

.marca {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.marca__logo {
  width: auto;
  height: 46px;
  flex: none;
}

.marca__texto {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.marca__titulo {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.marca__sub {
  margin-top: 0.1rem;
  font-size: 0.85rem;
  color: var(--texto-suave);
}

/* ---------- Reproductor ---------- */

.reproductor {
  background: #000;
  border-radius: var(--radio);
  overflow: hidden;
  border: 1px solid var(--borde);
  line-height: 0;
}

.reproductor video,
.reproductor iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

/* ---------- Ficha del vídeo ---------- */

.ficha { margin-top: 1.25rem; }

.etiquetas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.6rem;
}

.insignia {
  display: inline-block;
  padding: 0.18em 0.6em;
  border-radius: 999px;
  border: 1px solid var(--borde);
  background: var(--fondo-tarjeta);
  color: var(--texto-suave);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ficha h1 {
  margin: 0 0 0.2rem;
  font-size: 1.6rem;
  line-height: 1.2;
  font-weight: 700;
}

/* Vídeo todavía no grabado: ocupa el sitio del reproductor */
.pendiente {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  aspect-ratio: 16 / 9;
  padding: 1.5rem;
  text-align: center;
  line-height: 1.5;
  background: var(--fondo-tarjeta);
}

.pendiente__titulo {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--texto);
}

.pendiente__nota {
  margin: 0;
  font-size: 0.92rem;
  color: var(--texto-suave);
}

.referencia {
  margin: 0 0 0.75rem;
  color: var(--texto-suave);
  font-size: 1rem;
}

.descripcion { margin: 0 0 1.25rem; }

/* ---------- Acciones ---------- */

.acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.15rem;
  border-radius: 10px;
  border: 1px solid var(--borde);
  background: var(--fondo-tarjeta);
  color: var(--texto);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.boton:focus-visible,
a:focus-visible {
  outline: 3px solid var(--acento);
  outline-offset: 2px;
}

.boton--principal {
  background: var(--acento);
  border-color: var(--acento);
  color: var(--acento-texto);
}

/* ---------- Índice ---------- */

.grupo {
  margin: 1.8rem 0 0.7rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.grupo:first-child { margin-top: 0; }

.lista {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.lista a {
  display: block;
  padding: 0.9rem 1rem;
  background: var(--fondo-tarjeta);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  color: var(--texto);
  text-decoration: none;
}

.lista strong {
  display: block;
  font-size: 1.1rem;
  line-height: 1.3;
}

.lista span {
  display: block;
  margin-top: 0.15rem;
  color: var(--texto-suave);
  font-size: 0.9rem;
}

.etiqueta-campo {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--texto-suave);
  font-size: 0.9rem;
  font-weight: 600;
}

.buscador {
  width: 100%;
  min-height: 48px;
  margin-bottom: 1.1rem;
  padding: 0 0.9rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--texto);
  background: var(--fondo-tarjeta);
  border: 1px solid var(--borde);
  border-radius: 10px;
}

.vacio {
  padding: 1rem;
  color: var(--texto-suave);
}

/* ---------- Pie ---------- */

.pie {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--borde);
  color: var(--texto-suave);
  font-size: 0.85rem;
}

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