/**
 * LA CRÓNICA — Estilos del sistema de lectores
 * /assets/css/lectores.css
 *
 * Usado por: /lectores/registro.php, login.php, confirmar.php,
 *            pendiente-confirmacion.php, recuperar.php, nueva-password.php
 *
 * Los estilos inline en registro.php (para la primera carga sin este CSS)
 * son redundantes pero aseguran que el form nunca se vea roto.
 * Este archivo tiene prioridad por especificidad.
 */

/* ── Wrapper y card ─────────────────────────────────────────── */
.lectores-wrap {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1rem 4rem;
}

.lectores-card {
  width: 100%;
  max-width: 440px;
}

.lectores-card__header {
  margin-bottom: 2rem;
  text-align: center;
}

.lectores-card__logo {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--acento, #8b2e1f);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.lectores-card__titulo {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--tinta, #1a1612);
  margin: 0 0 0.4rem;
  line-height: 1.2;
}

.lectores-card__subtitulo {
  font-family: 'Spectral', serif;
  font-size: 0.95rem;
  color: var(--tinta-muted, #7a6f60);
  margin: 0;
}

/* ── Alertas ─────────────────────────────────────────────────── */
.lectores-alerta {
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.5rem;
  font-family: 'Spectral', serif;
  font-size: 0.92rem;
  line-height: 1.5;
  border-left: 3px solid;
}

.lectores-alerta--error {
  background: color-mix(in srgb, var(--acento, #8b2e1f) 8%, transparent);
  border-color: var(--acento, #8b2e1f);
  color: var(--tinta, #1a1612);
}

.lectores-alerta--exito {
  background: color-mix(in srgb, #2d7a4f 8%, transparent);
  border-color: #2d7a4f;
  color: var(--tinta, #1a1612);
}

.lectores-alerta--info {
  background: color-mix(in srgb, var(--highlight, #d4a94a) 12%, transparent);
  border-color: var(--highlight, #d4a94a);
  color: var(--tinta, #1a1612);
}

.lectores-alerta ul {
  margin: 0;
  padding-left: 1.2rem;
}

.lectores-alerta li + li {
  margin-top: 0.25rem;
}

.lectores-alerta a {
  color: var(--acento, #8b2e1f);
}

/* ── Campos ─────────────────────────────────────────────────── */
.lectores-campo {
  margin-bottom: 1.3rem;
}

.lectores-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tinta-suave, #403830);
  margin-bottom: 0.4rem;
}

.lectores-requerido {
  color: var(--acento, #8b2e1f);
}

.lectores-input-wrap {
  position: relative;
}

.lectores-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: var(--papel-profundo, #ebe5d4);
  border: 1px solid color-mix(in srgb, var(--tinta-muted, #7a6f60) 30%, transparent);
  color: var(--tinta, #1a1612);
  font-family: 'Spectral', serif;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.15s, outline 0.15s;
  box-sizing: border-box;
  appearance: none;
  border-radius: 0;
}

.lectores-input:focus {
  outline: 2px solid var(--acento, #8b2e1f);
  outline-offset: 1px;
  border-color: var(--acento, #8b2e1f);
}

.lectores-input::placeholder {
  color: var(--tinta-muted, #7a6f60);
  opacity: 0.7;
}

.lectores-input-wrap .lectores-input {
  padding-right: 2.8rem;
}

.lectores-input__ojo {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--tinta-muted, #7a6f60);
  padding: 0.2rem;
  display: flex;
  align-items: center;
  line-height: 1;
}

.lectores-input__ojo:hover {
  color: var(--tinta, #1a1612);
}

.lectores-ayuda {
  margin: 0.35rem 0 0;
  font-family: 'Spectral', serif;
  font-size: 0.82rem;
  color: var(--tinta-muted, #7a6f60);
  line-height: 1.4;
}

/* ── Checkbox ───────────────────────────────────────────────── */
.lectores-campo--checkbox {
  margin-top: 1.5rem;
}

.lectores-check-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-family: 'Spectral', serif;
  font-size: 0.95rem;
  color: var(--tinta-suave, #403830);
  line-height: 1.4;
}

.lectores-check-input {
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--acento, #8b2e1f);
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

/* ── Términos ───────────────────────────────────────────────── */
.lectores-campo--terminos {
  border-top: 1px solid color-mix(in srgb, var(--tinta-muted, #7a6f60) 20%, transparent);
  padding-top: 1.2rem;
  margin-top: 0.5rem;
}

.lectores-campo--terminos p {
  margin: 0;
  font-family: 'Spectral', serif;
  font-size: 0.83rem;
  color: var(--tinta-muted, #7a6f60);
  line-height: 1.5;
}

.lectores-campo--terminos a {
  color: var(--acento, #8b2e1f);
  text-underline-offset: 2px;
}

/* ── Botones ─────────────────────────────────────────────────── */
.lectores-btn {
  display: block;
  width: 100%;
  padding: 0.8rem 1rem;
  border: none;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-align: center;
  text-decoration: none;
  border-radius: 0;
  line-height: 1.4;
}

.lectores-btn--primario {
  background: var(--tinta, #1a1612);
  color: var(--papel, #f4f0e6);
  margin-top: 1.5rem;
  border: 1px solid var(--tinta, #1a1612);
}

.lectores-btn--primario:hover,
.lectores-btn--primario:focus-visible {
  background: var(--acento, #8b2e1f);
  border-color: var(--acento, #8b2e1f);
  color: var(--papel, #f4f0e6);
}

.lectores-btn--secundario {
  background: transparent;
  border: 1px solid var(--tinta-muted, #7a6f60);
  color: var(--tinta-suave, #403830);
  margin-top: 0.8rem;
}

.lectores-btn--secundario:hover,
.lectores-btn--secundario:focus-visible {
  border-color: var(--tinta, #1a1612);
  color: var(--tinta, #1a1612);
}

/* ── Footer de card ─────────────────────────────────────────── */
.lectores-card__footer {
  margin-top: 1.8rem;
  text-align: center;
  font-family: 'Spectral', serif;
  font-size: 0.9rem;
  color: var(--tinta-muted, #7a6f60);
  border-top: 1px solid color-mix(in srgb, var(--tinta-muted, #7a6f60) 20%, transparent);
  padding-top: 1.5rem;
}

.lectores-card__footer a {
  color: var(--acento, #8b2e1f);
  text-underline-offset: 2px;
}

/* ── Honeypot ───────────────────────────────────────────────── */
.lectores-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 480px) {
  .lectores-wrap {
    padding: 1.5rem 1rem 3rem;
  }

  .lectores-card__titulo {
    font-size: 1.4rem;
  }
}
