:root {
  --bg: #0D0E0F; --surface: #15171A; --line: #2A2D30; --line2: #34383C;
  --ink: #F3F1EC; --ink2: #D6D4CE; --muted: #A3A39E;
  --accent: #6FD3CC; --gold: #F0B45A; --blue: #8FB4FF;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: Inter, system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; }
img { display: block; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 700px) { .wrap { padding: 0 18px; } }
.brand { font-size: 12px; font-weight: 600; letter-spacing: .32em; text-decoration: none; }
.serif { font-family: var(--serif); font-weight: 400; }
.muted { color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--ink2); color: var(--ink); }
.btn.solid { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 600; }
.btn.solid:hover { background: #fff; }
.btn.icon { width: 44px; padding: 0; }
.btn[disabled] { opacity: .5; cursor: default; }
.pill { height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--ink2); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.pill.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tag { display: inline-flex; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: rgba(13,14,15,.75); }
input.field { width: 100%; height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid #3A3E42; background: var(--bg); color: var(--ink); font: 400 16px var(--sans); outline: none; }
input.field:focus { border-color: var(--accent); }
label.lbl { display: block; font-size: 13px; font-weight: 500; color: var(--ink2); margin: 12px 0 6px; }
.err { color: #F28B82; font-size: 13px; min-height: 18px; margin-top: 8px; }

/* Inicio */
.top { border-bottom: 1px solid #24272A; }
.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.hero { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; padding: 56px 0 0; }
.hero h1 { margin: 0; font-size: clamp(64px, 9vw, 96px); line-height: .95; }
.hero p { margin: 18px 0 0; max-width: 560px; font-size: 16px; line-height: 1.55; color: var(--ink2); }
.codebox { flex: 0 1 440px; padding: 22px; border-radius: 16px; background: var(--surface); border: 1px solid #2E3134; }
.codebox .row { display: flex; gap: 8px; margin-top: 14px; }
.codebox input { letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
.filters { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 56px; }
.filters nav { display: flex; gap: 6px; flex-wrap: wrap; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px 20px; margin: 24px 0 80px; }
.card { display: block; text-decoration: none; color: var(--ink); }
.card .ph { position: relative; aspect-ratio: 3 / 2; border-radius: 6px; overflow: hidden; background: var(--surface); }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover img { transform: scale(1.03); }
.card .tag { position: absolute; top: 12px; left: 12px; }
.card h3 { margin: 14px 0 0; font-size: 28px; line-height: 1.1; }
.card .meta { margin-top: 6px; font-size: 13px; color: var(--muted); }
.empty { padding: 80px 0; text-align: center; color: var(--muted); }

/* Portada */
.cover { position: relative; height: 100vh; min-height: 560px; overflow: hidden; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,14,15,.55) 0%, rgba(13,14,15,0) 28%, rgba(13,14,15,0) 45%, rgba(13,14,15,.92) 100%); }
.cover header, .cover .bottom { position: absolute; left: 0; right: 0; z-index: 1; }
.cover header { top: 0; display: flex; justify-content: space-between; align-items: center; padding: 28px 48px; }
.cover .bottom { bottom: 0; padding: 0 48px 56px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; }
.cover .eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .28em; color: var(--accent); margin-bottom: 18px; text-transform: uppercase; }
.cover h1 { margin: 0; font-size: clamp(54px, 8vw, 116px); line-height: .95; max-width: 900px; }
.cover .facts { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 22px; font-size: 14px; color: var(--ink2); }
@media (max-width: 700px) { .cover header { padding: 22px 18px; } .cover .bottom { padding: 0 18px 36px; } }

/* Barra de galería */
.bar { position: sticky; top: 0; z-index: 5; background: rgba(13,14,15,.92); backdrop-filter: blur(8px); border-bottom: 1px solid #24272A; }
.bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.bar .title { font-size: 26px; text-decoration: none; }
.bar .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sets { display: flex; gap: 6px; overflow-x: auto; padding: 28px 0 24px; scrollbar-width: none; }
.sets::-webkit-scrollbar { display: none; }

/* Grilla tipo mosaico */
.grid { columns: 3 320px; column-gap: 10px; padding-bottom: 120px; }
.tile { position: relative; break-inside: avoid; margin: 0 0 10px; overflow: hidden; background: var(--surface); border-radius: 2px; cursor: zoom-in; }
.tile img { width: 100%; height: auto; transition: transform .6s ease, opacity .4s; opacity: 0; }
.tile img.ok { opacity: 1; }
.tile:hover img { transform: scale(1.02); }
.tile .heart { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 999px; border: 0; background: rgba(13,14,15,.55); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transition: opacity .2s; }
.tile:hover .heart, .tile .heart.on { opacity: 1; }
.tile .play { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 999px; background: rgba(13,14,15,.6); border: 1px solid rgba(243,241,236,.6); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.tile .dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 3px; background: rgba(0,0,0,.75); font-size: 12px; }
@media (hover: none) { .tile .heart { opacity: 1; } }
@media (max-width: 700px) { .grid { columns: 2; column-gap: 4px; } .tile { margin-bottom: 4px; } }

/* Marca de agua */
.wm { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; font: 600 clamp(12px, 2vw, 22px) var(--sans); letter-spacing: .4em; color: rgba(243,241,236,.35); transform: rotate(-18deg); text-shadow: 0 1px 2px rgba(0,0,0,.3); user-select: none; }

/* Selección flotante */
.selbar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 8; display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 22px; border-radius: 999px; background: var(--ink); color: var(--bg); box-shadow: 0 12px 40px rgba(0,0,0,.45); font-size: 14px; white-space: nowrap; }
.selbar .btn.solid { background: var(--bg); color: var(--ink); border-color: var(--bg); }

/* Visor */
.lb { position: fixed; inset: 0; z-index: 20; background: #070808; display: flex; flex-direction: column; }
.lb[hidden] { display: none; }
.lb .lbtop { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; font-size: 14px; }
.lb .lbtop .acts { display: flex; gap: 4px; }
.lb .stage { flex: 1; min-height: 0; display: flex; align-items: center; gap: 8px; padding: 0 12px 16px; }
.lb .media { position: relative; flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; justify-content: center; }
.lb .media img, .lb .media video { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb .nav { flex: none; width: 52px; height: 52px; border-radius: 999px; border: 1px solid var(--line); background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; }
@media (max-width: 700px) { .lb .nav { display: none; } }
.ibtn { width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); text-decoration: none; }
.ibtn:hover { background: rgba(255,255,255,.08); color: var(--ink); }

/* Acceso y modales */
.gate { position: relative; min-height: 100vh; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.gate img.bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(14px) brightness(.5); transform: scale(1.1); }
.gate .box { position: relative; width: 100%; max-width: 440px; padding: 48px 28px 56px; }
.gate h1 { margin: 14px 0 10px; font-size: 52px; line-height: 1; }
.modal { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal .sheet { width: 100%; max-width: 420px; padding: 26px; border-radius: 20px; background: var(--surface); border: 1px solid #2E3134; }
.modal h2 { margin: 6px 0 8px; font-size: 32px; line-height: 1; }
.check { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding-top: 10px; font-size: 13px; line-height: 1.45; color: var(--ink2); }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.toast { position: fixed; left: 50%; top: 20px; transform: translateX(-50%); z-index: 40; padding: 12px 18px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 500; }
.toast[hidden] { display: none; }
.foot { border-top: 1px solid #24272A; padding: 28px 0; text-align: center; font-size: 12px; letter-spacing: .2em; color: var(--muted); }
.spin { padding: 120px 0; text-align: center; color: var(--muted); }
