/* ----------------------------------------------------------
   Galería de Boda — estilos
   Mobile-first. Tipografía servir + sans, paleta cálida.
---------------------------------------------------------- */

:root {
  --bg: #faf7f2;
  --ink: #1c1917;
  --ink-soft: #57534e;
  --muted: #a8a29e;
  --line: #e7e5e4;
  --accent: #c2410c;        /* terracota cálido */
  --accent-soft: #fed7aa;
  --gold: #b08968;
  --card: #ffffff;
  --shadow: 0 10px 30px -12px rgba(28, 25, 23, 0.18);
  --shadow-sm: 0 4px 12px -6px rgba(28, 25, 23, 0.18);
  --radius: 18px;
  --radius-lg: 28px;
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* El atributo HTML [hidden] debe ganar siempre, incluso si el elemento
   tiene un display: grid/flex en sus propias reglas. */
[hidden] { display: none !important; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* =========================================================
   NAV SUPERIOR (compartido home + galería)
========================================================= */

.topnav {
  position: fixed;
  top: max(env(safe-area-inset-top), 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 999px;
  padding: 4px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(231, 229, 228, 0.7);
}
.topnav-link {
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
  transition: background 150ms ease, color 150ms ease;
  white-space: nowrap;
}
.topnav-link:hover { color: var(--ink); }
.topnav-link.active {
  background: var(--ink);
  color: #fff;
}
.page-gallery:fullscreen .topnav { display: none; }

/* =========================================================
   PÁGINA: SUBIDA
========================================================= */

.page-upload {
  min-height: 100svh;
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  /* padding-top extra para dejar sitio al .topnav fijo */
  padding: calc(max(env(safe-area-inset-top), 12px) + 60px) 20px max(env(safe-area-inset-bottom), 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(254, 215, 170, 0.55), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(176, 137, 104, 0.25), transparent 50%),
    linear-gradient(180deg, #fefaf3 0%, #f4ece1 100%);
  z-index: -1;
}

.hero-header {
  text-align: center;
  padding-top: 24px;
}
.kicker {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin: 0 0 6px;
  font-size: 16px;
}
.couple {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 12vw, 72px);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}
.date {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  margin: 8px 0 0;
  font-size: 18px;
}

.upload-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  text-align: center;
}
.lead {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  margin: 0 0 6px;
}
.sub {
  color: var(--ink-soft);
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.5;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  user-select: none;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--ink);
  color: #fff;
  width: 100%;
  padding: 18px 24px;
  font-size: 18px;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: #000; }
.btn-icon { font-size: 22px; }

.btn-secondary {
  background: var(--accent);
  color: #fff;
  width: 100%;
  padding: 18px 24px;
  font-size: 18px;
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { background: #9a330a; }

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

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.dropzone-hint {
  color: var(--muted);
  font-size: 13px;
  margin: 14px 0 0;
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .dropzone-hint { display: block; }
}

.link {
  display: inline-block;
  margin-top: 22px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
}
.link:hover { text-decoration: underline; }

/* Cola de subida */
.queue {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.q-item {
  background: var(--card);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  animation: slide-in 240ms ease;
}
.q-thumb {
  width: 48px; height: 48px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--line);
  flex: none;
}
.q-body { flex: 1; min-width: 0; }
.q-name {
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  color: var(--ink);
}
.q-bar {
  height: 4px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
}
.q-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 200ms ease;
}
/* Mientras el servidor procesa la imagen (Sharp + escritura) la barra está
   al 100% pero animamos un shimmer para indicar que sigue trabajando. */
.q-bar-fill.processing {
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent-soft) 50%,
    var(--accent) 100%
  );
  background-size: 200% 100%;
  animation: q-shimmer 1.1s linear infinite;
}
@keyframes q-shimmer {
  from { background-position: 200% 0; }
  to { background-position: 0 0; }
}
.q-status {
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.q-item.success .q-bar-fill { background: #16a34a; animation: none; }
.q-item.error .q-bar-fill { background: #dc2626; animation: none; }
.q-item.error .q-status { color: #dc2626; }

.q-undo {
  flex: none;
  align-self: center;
  margin-left: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.q-undo:hover { background: #000; }
.q-undo:disabled { opacity: 0.6; cursor: default; }

/* Drop zone overlay */
.dropzone-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.6);
  display: grid;
  place-items: center;
  z-index: 1000;
}
.dropzone-inner {
  background: #fff;
  color: var(--ink);
  border: 2px dashed var(--accent);
  border-radius: var(--radius-lg);
  padding: 40px 60px;
  font-family: var(--serif);
  font-size: 28px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: max(env(safe-area-inset-bottom), 24px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 1100;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes slide-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   PÁGINA: GALERÍA
========================================================= */

.page-gallery {
  background: linear-gradient(180deg, #fefaf3 0%, #f4ece1 100%);
  min-height: 100svh;
}
.page-gallery:fullscreen { background: #0c0a09; color: #fff; }

.gallery-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  /* padding-top extra para que el .topnav flotante no tape el título */
  padding: calc(max(env(safe-area-inset-top), 12px) + 56px) 24px 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.page-gallery:fullscreen .gallery-header {
  background: rgba(12, 10, 9, 0.7);
  border-color: rgba(255,255,255,0.1);
}
.gh-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 4vw, 32px);
  margin: 0;
  letter-spacing: -0.01em;
}
.gh-date {
  margin: 2px 0 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 14px;
}
.page-gallery:fullscreen .gh-date { color: rgba(255,255,255,0.7); }

.gh-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.counter {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
}
.counter span:first-child {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
}
.counter small {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-top: 2px;
}
.ghost-btn {
  background: transparent;
  border: 1px solid var(--line);
  width: 40px; height: 40px;
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
}

/* Masonry con CSS columns — ligero y suave */
.masonry {
  column-count: 2;
  column-gap: 8px;
  padding: 8px;
}
@media (min-width: 600px) { .masonry { column-count: 3; column-gap: 12px; padding: 12px; } }
@media (min-width: 900px) { .masonry { column-count: 4; } }
@media (min-width: 1280px) { .masonry { column-count: 5; } }
@media (min-width: 1700px) { .masonry { column-count: 6; } }

.tile {
  break-inside: avoid;
  margin: 0 0 8px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--line);
  cursor: zoom-in;
  position: relative;
  box-shadow: var(--shadow-sm);
  animation: tile-in 480ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media (min-width: 600px) { .tile { margin-bottom: 12px; } }
.tile img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 600ms ease;
}
.tile:hover img { transform: scale(1.03); }

@keyframes tile-in {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.tile.fly-in {
  animation: fly-in 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Indicador "play" sobre vídeos: válido tanto en .tile (galería) como en
   .admin-card. Botón circular discreto en el centro. */
.tile-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-radius: 999px;
  font-size: 22px;
  padding-left: 4px; /* compensa el desbalance visual del triángulo */
  pointer-events: none;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
}
.tile.tile-video img { object-fit: cover; }

/* Thumb de la cola cuando es vídeo (preview en <video> en lugar de <img>). */
.q-thumb-video { object-fit: cover; }
/* Fallback cuando el navegador no decodifica HEIC en el preview local. */
.q-thumb-fallback {
  background: linear-gradient(135deg, var(--accent-soft), var(--gold));
}

/* Vídeo dentro del lightbox. */
.lb-video {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  background: #000;
}
@keyframes fly-in {
  0% { opacity: 0; transform: translateY(-40px) scale(0.85); }
  60% { opacity: 1; transform: translateY(4px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--ink-soft);
}
.empty-icon { font-size: 64px; margin-bottom: 12px; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(12, 10, 9, 0.94);
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 32px;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: pop 220ms ease;
}
.lb-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 0;
  font-size: 24px;
  cursor: pointer;
}
.lb-close:hover { background: rgba(255, 255, 255, 0.2); }

@keyframes pop {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

/* =========================================================
   SLIDESHOW (modo proyector)
   Dos capas <img> apiladas: una activa, una preparándose.
   Crossfade entre ellas + Ken Burns sobre la activa.
========================================================= */

.slideshow {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: #0c0a09;
  overflow: hidden;
  cursor: none;
}
.ss-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 1100ms ease;
}
.ss-layer.active { opacity: 1; }
.ss-layer img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* Ken Burns lo aplicamos solo cuando la capa está activa,
     reiniciando la animación cada vez. */
  will-change: transform;
}
.ss-layer.active img { animation: ken-burns 6500ms ease-out forwards; }
@keyframes ken-burns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.08) translate(-1.2%, -0.8%); }
}

.ss-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: max(env(safe-area-inset-top), 24px) 32px 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.45), transparent 22%, transparent 78%, rgba(0,0,0,0.45));
}
.ss-couple {
  color: #fff;
  font-family: var(--serif);
  text-shadow: 0 2px 14px rgba(0,0,0,0.5);
}
.ss-couple span {
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.ss-couple small {
  display: block;
  font-style: italic;
  font-size: clamp(13px, 1.3vw, 16px);
  color: rgba(255,255,255,0.85);
  margin-top: 2px;
}
.ss-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  pointer-events: auto;
  color: rgba(255,255,255,0.9);
  font-family: var(--serif);
}
.ss-counter {
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  background: rgba(0,0,0,0.35);
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.ss-new-badge {
  font-size: 13px;
  font-style: italic;
  color: #fff;
  background: var(--accent);
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(194, 65, 12, 0.45);
  animation: pop 260ms ease;
}
.ss-close {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: #fff;
  border: 0;
  font-size: 22px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.ss-close:hover { background: rgba(255,255,255,0.24); }

/* En slideshow, ocultamos top nav y cabecera para no contaminar
   la vista del proyector. */
body.ss-active .topnav,
body.ss-active .gallery-header { display: none; }

/* =========================================================
   PÁGINA: QR (cartelito imprimible)
========================================================= */

.page-qr {
  min-height: 100svh;
  background:
    radial-gradient(circle at 20% 0%, rgba(254, 215, 170, 0.55), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(176, 137, 104, 0.25), transparent 50%),
    linear-gradient(180deg, #fefaf3 0%, #f4ece1 100%);
  display: grid;
  place-items: center;
  padding: 32px 20px;
  color: var(--ink);
}
.qr-card {
  width: 100%;
  max-width: 480px;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 36px 32px 28px;
  box-shadow: var(--shadow);
  text-align: center;
}
.qr-kicker {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  font-size: 16px;
}
.qr-couple {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 8vw, 56px);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}
.qr-date {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  margin: 6px 0 24px;
  font-size: 18px;
}
.qr-code {
  width: 100%;
  max-width: 360px;
  margin: 8px auto 18px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
.qr-code svg { width: 100%; height: auto; display: block; }
.qr-instructions {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 0 6px;
}
.qr-url {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-size: 18px;
  margin: 0 0 20px;
  word-break: break-all;
}
.qr-print {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 12px 22px;
  font-size: 14px;
}

@media print {
  .page-qr {
    background: #fff !important;
    padding: 0;
  }
  .qr-card {
    box-shadow: none;
    border-radius: 0;
    max-width: 100%;
    padding: 24px;
  }
  .qr-print { display: none; }
}

/* =========================================================
   PÁGINA: ADMIN
========================================================= */
.page-admin {
  background: #f5f5f4;
  min-height: 100vh;
}

/* Login screen — ocupa toda la viewport hasta que la sesión se valida.
   Usa el mismo lenguaje visual que el home (gradiente cálido + serif)
   para que se sienta parte de la app, no un formulario de admin frío. */
.login-screen {
  min-height: 100svh;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background:
    radial-gradient(circle at 20% 0%, rgba(254, 215, 170, 0.55), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(176, 137, 104, 0.25), transparent 50%),
    linear-gradient(180deg, #fefaf3 0%, #f4ece1 100%);
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.login-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  margin: 0;
  letter-spacing: -0.01em;
}
.login-sub {
  margin: -10px 0 6px;
  color: var(--ink-soft);
  font-size: 14px;
}
.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.login-field span {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.login-field input {
  font-family: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.login-field input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(28, 25, 23, 0.08);
}
.login-error {
  margin: -4px 0 0;
  color: #dc2626;
  font-size: 13px;
  font-weight: 500;
}
.login-card .btn-primary {
  margin-top: 6px;
  padding: 14px 20px;
  font-size: 16px;
}
.admin-header {
  background: #fff;
  padding: 24px 32px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.admin-header h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  margin: 0;
}
.admin-stats {
  display: flex;
  gap: 32px;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-top: 4px;
}
.admin-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.admin-actions .btn { padding: 12px 18px; font-size: 14px; }

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  padding: 24px;
}
.admin-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 1 / 1;
}
.admin-card img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.admin-del {
  position: absolute;
  top: 8px; right: 8px;
  width: 32px; height: 32px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.92);
  color: #fff;
  border: 0;
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.admin-del:hover { background: rgba(185, 28, 28, 1); }

/* Foto en papelera (soft-deleted): atenuada con badge claro arriba a la
   izquierda y botón "Restaurar" arriba para devolverla a la galería. */
.admin-card.is-hidden img {
  filter: grayscale(0.85) brightness(0.7);
}
.admin-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
}
.admin-restore {
  position: absolute;
  bottom: 8px; left: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.admin-restore:hover { background: #fff; }
