/* ── Tema del evento: cambia estos colores para personalizar ── */
:root {
  --bg: #f7f2ea;
  --paper: #fffdf9;
  --ink: #2c2724;
  --muted: #8a7f76;
  --line: #e6ddd1;
  --accent: #a8845a;      /* dorado suave */
  --accent-ink: #fff;
  --ok: #5f8a63;
  --err: #b0533f;
  --radius: 18px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.hidden { display: none !important; }

/* ── Encabezado del evento ── */
.hero { text-align: center; padding: 48px 24px 28px; }
.hero .eyebrow {
  font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted);
}
.hero h1 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 12vw, 72px);
  line-height: 1; margin: 14px 0 10px; letter-spacing: -.01em;
}
.hero .date { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--muted); }
.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--accent); margin: 18px 0 0; }
.ornament::before, .ornament::after { content: ''; width: 48px; height: 1px; background: currentColor; opacity: .6; }

.wrap { max-width: 560px; margin: 0 auto; padding: 0 20px 48px; }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 12px 32px -18px rgba(60,40,20,.25);
}
.lead { text-align: center; font-size: 17px; margin: 0 0 20px; }

label.field { display: block; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
label.field input {
  display: block; width: 100%; margin-top: 6px; padding: 14px 16px; font: inherit; font-size: 16px;
  color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; outline: none;
}
label.field input:focus { border-color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 999px; padding: 16px 26px; font-weight: 600; font-size: 16px;
  background: var(--ink); color: #fff; text-decoration: none; transition: transform .1s, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn.big { width: 100%; padding: 20px; font-size: 18px; }
.btn.accent { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.small { padding: 8px 14px; font-size: 13px; font-weight: 500; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.notice {
  margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; font-size: 14px;
  background: #fbf3e4; color: #7a5a2a; text-align: center;
}
.notice.ok { background: #eef5ee; color: #3e6a43; }

/* ── Lista de subidas ── */
.queue { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.qitem { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; }
.qthumb {
  width: 56px; height: 56px; border-radius: 10px; background: var(--line) center/cover no-repeat;
  display: grid; place-items: center; font-size: 22px; color: var(--muted); overflow: hidden;
}
.qmeta { min-width: 0; }
.qname { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qstatus { font-size: 12px; color: var(--muted); }
.qitem.done .qstatus { color: var(--ok); }
.qitem.error .qstatus { color: var(--err); }
.bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 6px 0 3px; }
.bar > i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.qitem.done .bar > i { background: var(--ok); }

.summary { text-align: center; font-size: 14px; color: var(--muted); margin-top: 16px; }
.links { display: flex; gap: 10px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.foot { text-align: center; font-size: 12px; color: var(--muted); margin-top: 28px; }

/* ── Galería (álbum y admin) ── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.tile {
  position: relative; aspect-ratio: 1; background: var(--line); border-radius: 8px; overflow: hidden;
  border: 0; padding: 0; display: block;
}
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; color: var(--muted); }
.tile .badge {
  position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px;
  padding: 3px 7px; border-radius: 99px;
}
.tile .play {
  position: absolute; right: 6px; top: 6px; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; font-size: 12px;
}

/* ── Visor ── */
.lightbox {
  position: fixed; inset: 0; background: rgba(15,12,10,.94); z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 12px 84px;
}
.lightbox img, .lightbox video { max-width: 100%; max-height: 100%; border-radius: 6px; }
.lightbox .lb-close {
  position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.12); color: #fff; border: 0;
  width: 42px; height: 42px; border-radius: 50%; font-size: 20px;
}
.lightbox .lb-bar {
  position: absolute; bottom: 18px; left: 0; right: 0; display: flex; gap: 10px; justify-content: center; align-items: center;
  color: #ddd; font-size: 14px;
}
.lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); color: #fff;
  border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 20px;
}
.lightbox .lb-prev { left: 10px; } .lightbox .lb-next { right: 10px; }
