/* Carrusel de fotos de la fiesta y moderación */
.fotos-shell { height: 100dvh; display: flex; flex-direction: column; background: var(--noche); color: var(--crema); }
.carrusel { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--noche); }

.escena-foto {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--noche-2);
}
#foto-grande { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.foto-vacia { margin: 0; max-width: 16ch; padding: 1rem; text-align: center; font-family: var(--display); font-weight: 800; font-size: clamp(1.75rem, 6vw, 3.5rem); line-height: 1.1; color: rgba(255, 248, 234, 0.75); text-wrap: balance; }
.foto-vacia[hidden], #foto-grande[hidden], .pie-foto[hidden], .flecha[hidden] { display: none; }

.flecha {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 3.25rem; height: 3.25rem; padding: 0 0 0.25rem; border: 0; border-radius: 50%;
  font-size: 2.25rem; line-height: 1; color: #fff; background: rgba(13, 13, 11, 0.7); cursor: pointer;
  transition: background 0.2s;
}
.flecha:hover { background: rgba(20, 17, 46, 0.9); }
.flecha:focus-visible, .mini:focus-visible { outline: 3px solid var(--foco); outline-offset: 2px; }
.flecha.izq { left: 0.75rem; }
.flecha.der { right: 0.75rem; }

.pie-foto {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 2.5rem 1rem 0.75rem; font-weight: 600;
  background: linear-gradient(180deg, transparent, rgba(13, 13, 11, 0.88));
  pointer-events: none;
}
#contador { font-variant-numeric: tabular-nums; color: #d6d1c4; }

.barra-inferior {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; padding: 0.75rem 1rem;
  background: var(--noche-2); border-top: 1px solid rgba(255, 248, 234, 0.12);
}
.btn-subir { width: auto; margin: 0; min-height: 3rem; padding-inline: 1.5rem; box-shadow: none; }
.barra-inferior .btn-sec { color: var(--crema); background: transparent; border-color: rgba(255, 248, 234, 0.55); }
.barra-inferior .btn-sec:hover { background: rgba(255, 248, 234, 0.12); }
.barra-inferior .btn-sec[hidden] { display: none; }
.barra-inferior .peligro { color: #ffb4ab; border-color: #ffb4ab; }
.estado-subida { margin: 0 0 0 auto; font-size: 0.95rem; color: #e4e0d3; }
.estado-subida:empty { display: none; }

.tira { display: flex; gap: 0.5rem; padding: 0.6rem 1rem 0.9rem; overflow-x: auto; background: var(--noche); scrollbar-color: #5b584f transparent; }
.mini {
  flex: none; width: 4.5rem; height: 4.5rem; padding: 0; overflow: hidden; cursor: pointer;
  background: #000; border: 2px solid transparent; border-radius: 10px; opacity: 0.65; transition: opacity 0.2s, border-color 0.2s;
}
.mini:hover { opacity: 1; }
.mini.activa { border-color: var(--oro); opacity: 1; }
.mini img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Pantalla completa (para proyectar): solo la foto y quién la subió */
#carrusel:fullscreen { background: #000; }
#carrusel:fullscreen .escena-foto { background: #000; }
#carrusel:fullscreen .barra-inferior, #carrusel:fullscreen .tira { display: none; }
#carrusel:fullscreen .pie-foto { padding: 4rem 2rem 1.5rem; font-size: 1.5rem; }
#carrusel:fullscreen .flecha { opacity: 0; }
#carrusel:fullscreen .flecha:hover, #carrusel:fullscreen .flecha:focus-visible { opacity: 1; }

@media (max-width: 47.99rem) {
  .estado-subida { flex-basis: 100%; margin: 0; }
  .btn-subir { flex: 1; }
  .flecha { width: 2.75rem; height: 2.75rem; font-size: 1.9rem; }
  .mini { width: 3.75rem; height: 3.75rem; }
}

/* ---------- Moderación (/moderacion) ---------- */
.mod-cabecera { display: grid; gap: 1rem; }
.mod-qr, .mod-estado { background: var(--superficie); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem; }
.mod-qr { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: center; }
.mod-qr img { display: block; width: 9.5rem; height: 9.5rem; background: #fff; border-radius: 8px; }
.mod-qr h2, .mod-estado h2 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.mod-qr p, .mod-estado p { margin: 0 0 0.6rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.mod-estado .resumen { margin: 0.75rem 0 0; }
.rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.9rem; }
.tarjeta-foto { display: grid; gap: 0.5rem; padding: 0.6rem; background: var(--superficie); border: 1px solid var(--line); border-radius: 12px; }
.tarjeta-foto.oculta { background: #ece8dd; }
.tarjeta-foto.oculta img { opacity: 0.45; filter: grayscale(1); }
.tarjeta-foto img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #e6e1d4; border-radius: 8px; }
.tarjeta-foto b { display: block; font-size: 0.95rem; }
.tarjeta-foto small { color: var(--ink-soft); }
.tarjeta-foto .acciones { gap: 0.4rem; }
.tarjeta-foto .btn-tabla, .tarjeta-foto .btn-sec { flex: 1; min-height: 2.25rem; padding: 0.3rem 0.5rem; font-size: 0.875rem; }
.etiqueta-oculta { display: inline-block; padding: 0.1rem 0.5rem; font-size: 0.8rem; font-weight: 700; color: var(--ink); background: var(--oro); border-radius: 99px; }
@media (min-width: 60rem) { .mod-cabecera { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
