/* ============================================================
   Monitor de eventos — teespero.ar
   Misma identidad que la landing: marfil, dorado, Jost +
   Cormorant Garamond. Mobile-first (se mira desde el celular).
   ============================================================ */

:root {
  --marfil: #faf6ee;
  --papel: #fffdf8;
  --tinta: #26241f;
  --dorado: #a8862d;
  --dorado-texto: #87691f;
  --dorado-fondo: #8a6e24;
  --dorado-claro: #c9ab5e;
  --noche: #211f1a;
  --tinta-suave: #6d685c;
  --hairline: rgba(38, 36, 31, 0.16);
  --hairline-oro: rgba(168, 134, 45, 0.35);
  --ok: #4c6b46;
  --no: #8c5a4f;
}

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

body {
  font-family: "Jost", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--marfil);
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* El atributo hidden gana SIEMPRE, aunque el elemento tenga display propio */
[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--dorado-texto);
  outline-offset: 3px;
  border-radius: 2px;
}

.visualmente-oculto {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Encabezado ---------- */
.encabezado {
  text-align: center;
  padding: 1.4rem 1rem 1.1rem;
  background: var(--papel);
  border-bottom: 1px solid var(--hairline);
}

.encabezado img {
  width: min(170px, 45vw);
  margin-inline: auto;
}

.encabezado-rotulo {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dorado-texto);
}

/* ---------- Estados ---------- */
.estado {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--tinta-suave);
}

.estado h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 1.8rem;
  color: var(--tinta);
}

.estado p {
  max-width: 34ch;
}

.cargando-punto {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dorado-claro);
  animation: latido 1.1s ease-in-out infinite;
}

@keyframes latido {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.5); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .cargando-punto { animation: none; }
}

/* ---------- Panel ---------- */
main {
  flex: 1;
  padding-bottom: 2.5rem;
}

.contenedor {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  padding-inline: 1.1rem;
}

.aviso-demo {
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  background: rgba(201, 171, 94, 0.14);
  border: 1px solid var(--hairline-oro);
  border-radius: 8px;
  color: var(--tinta);
}

.evento-cabecera {
  text-align: center;
  padding: 1.6rem 0 1.2rem;
}

.evento-cabecera h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  line-height: 1.1;
}

.evento-cabecera p {
  margin-top: 0.3rem;
  color: var(--tinta-suave);
  font-weight: 300;
}

/* ---------- Tarjetas resumen ---------- */
.resumen {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}

.tarjeta {
  background: var(--papel);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 0.9rem 0.6rem;
  text-align: center;
}

.tarjeta-valor {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--dorado-texto);
}

.tarjeta-rotulo {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tinta-suave);
}

@media (min-width: 560px) {
  .resumen { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Pestañas ---------- */
.pestanias {
  display: flex;
  gap: 0.3rem;
  margin-top: 1.4rem;
  border-bottom: 1px solid var(--hairline);
}

.pestania {
  appearance: none;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--tinta-suave);
  padding: 0.7rem 0.9rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.pestania.activa {
  color: var(--dorado-texto);
  border-bottom-color: var(--dorado);
}

/* ---------- Búsqueda ---------- */
.busqueda {
  margin-top: 1rem;
}

.busqueda input {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--papel);
  color: var(--tinta);
}

.busqueda input:focus {
  outline: 2px solid var(--dorado-texto);
  outline-offset: 1px;
}

/* ---------- Listas ---------- */
.lista {
  list-style: none;
  margin-top: 0.9rem;
  display: grid;
  gap: 0.6rem;
}

.item {
  background: var(--papel);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.item-cab {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
}

.item-nombre {
  font-weight: 500;
}

.sello {
  flex: none;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.15rem 0.6rem;
  border-radius: 99px;
  border: 1px solid currentColor;
}

.sello-ok { color: var(--ok); }
.sello-no { color: var(--no); }
.sello-pendiente { color: var(--tinta-suave); }
.sello-oculto { color: var(--no); }
.sello-visible { color: var(--ok); }

.item-detalle {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: var(--tinta-suave);
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1rem;
}

.item-detalle strong {
  font-weight: 500;
  color: var(--tinta);
}

.item-mensaje {
  margin-top: 0.4rem;
  font-size: 0.92rem;
  font-style: italic;
  color: var(--tinta);
}

.lista-vacia {
  margin-top: 1.4rem;
  text-align: center;
  color: var(--tinta-suave);
}

/* ---------- Moderación ---------- */
.moderacion-ayuda {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--tinta-suave);
}

.item-oculto {
  opacity: 0.6;
  background: var(--marfil);
}

.item-pie {
  margin-top: 0.6rem;
  display: flex;
  justify-content: flex-end;
}

.boton-moderar {
  appearance: none;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.4rem 1.1rem;
  border-radius: 99px;
  border: 1px solid var(--dorado);
  color: var(--dorado-texto);
  background: transparent;
  cursor: pointer;
}

.boton-moderar:hover {
  background: rgba(168, 134, 45, 0.08);
}

.boton-moderar[disabled] {
  opacity: 0.5;
  cursor: wait;
}

/* ---------- Fotos del álbum QR ---------- */
.fotos-vence {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--dorado-texto);
}

.fotos-descarga {
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.descarga-estado {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--tinta-suave);
}

.boton-secundario {
  appearance: none;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--tinta-suave);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 0.4rem 0.2rem;
}

.boton-secundario:hover { color: var(--tinta); }

.fotos-grilla {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  margin-top: 0.9rem;
}

@media (min-width: 560px) {
  .fotos-grilla { grid-template-columns: repeat(3, 1fr); }
}

.foto-card {
  background: var(--papel);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  overflow: hidden;
}

.foto-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.foto-card.oculta img { opacity: 0.35; }

.foto-card .foto-info {
  padding: 0.5rem 0.6rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.foto-card .foto-subio {
  font-size: 0.78rem;
  color: var(--tinta-suave);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.foto-card .boton-moderar {
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  align-self: stretch;
}

/* ---------- Pie ---------- */
.pie {
  text-align: center;
  padding: 1.2rem;
  border-top: 1px solid var(--hairline);
  background: var(--papel);
}

.pie a {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--tinta-suave);
  text-decoration: none;
}

.pie strong {
  color: var(--dorado-texto);
  font-weight: 600;
}
