/* Estilo base, funcional y sobrio. El diseño visual final se aplica después. */
:root {
  --bg: #0e0e10;
  --panel: #17171a;
  --line: #2a2a30;
  --text: #f1f1f3;
  --muted: #a0a0aa;
  --accent: #e8c547;
  --radius: 12px;
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
section, .topbar, footer { max-width: var(--max); margin: 0 auto; padding: 56px 24px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 16px; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: 1.6rem; }

.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px; padding-bottom: 20px; position: sticky; top: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); z-index: 10;
}
.topbar nav { display: flex; gap: 20px; }
.topbar nav a { text-decoration: none; color: var(--muted); }
.topbar nav a:hover { color: var(--text); }
.brand { font-weight: 700; text-decoration: none; }

.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.hero-photo { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); background: var(--panel); }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin: 0 0 12px; }
.lead { color: var(--muted); font-size: 1.15rem; max-width: 52ch; }

.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.social a, .btn {
  border: 1px solid var(--line); padding: 10px 16px; border-radius: 999px;
  text-decoration: none; background: var(--panel); transition: border-color .2s, transform .2s;
}
.social a:hover, .btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.btn { display: inline-block; background: var(--accent); color: #111; border-color: var(--accent); font-weight: 600; }

.player, .modal-player { position: relative; aspect-ratio: 16/9; background: #000; border-radius: var(--radius); overflow: hidden; }
.player iframe, .player video, .modal-player iframe, .modal-player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button {
  background: transparent; color: var(--muted); border: 1px solid var(--line);
  padding: 8px 16px; border-radius: 999px; cursor: pointer; font: inherit;
}
.filters button.active, .filters button:hover { color: #111; background: var(--accent); border-color: var(--accent); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; text-align: left; padding: 0; color: inherit; font: inherit; transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card-cover { aspect-ratio: 16/10; background: #222; object-fit: cover; width: 100%; position: relative; }
.card-body { padding: 16px; }
.card-body h3 { font-size: 1.05rem; margin-bottom: 4px; }
.card-meta { color: var(--muted); font-size: .85rem; }
.badge-play { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.7); border-radius: 999px; padding: 4px 10px; font-size: .75rem; }
.cover-wrap { position: relative; }
.empty { color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { font-size: .75rem; color: var(--muted); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }

.about p { max-width: 62ch; color: var(--muted); }
.about ul { color: var(--muted); padding-left: 18px; }
.contact p { color: var(--muted); }

footer { color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); }

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.75); }
.modal-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); max-width: 960px; width: 100%; max-height: 92vh; overflow: auto; padding: 24px; }
.modal-close { position: absolute; top: 10px; right: 14px; background: none; border: 0; color: var(--text); font-size: 2rem; cursor: pointer; line-height: 1; }
.modal-info { margin-top: 18px; }
.modal-info dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; color: var(--muted); font-size: .9rem; margin: 12px 0; }
.modal-info dt { color: var(--text); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }
.gallery img { border-radius: 8px; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { max-width: 320px; }
  .topbar nav { gap: 12px; font-size: .9rem; }
}

/* ---------- Reel curvo 3D ---------- */
.showcase {
  position: relative; max-width: none; margin: 0; padding: 0;
  height: 100vh; height: 100svh; min-height: 520px; overflow: hidden;
  background:
    radial-gradient(62% 56% at 50% 46%, rgba(255,255,255,.075), transparent 72%),
    radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1.4px) 0 0 / 6px 6px,
    var(--bg);
}
.showcase[hidden] { display: none; }
.showcase-title {
  position: absolute; inset: 0; margin: 0; display: grid; place-content: center; text-align: center;
  font-size: clamp(2.6rem, 9.2vw, 9rem); font-weight: 800; letter-spacing: -.055em; line-height: .92;
  color: var(--text); z-index: 1; pointer-events: none; user-select: none;
}
.showcase canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2;
  touch-action: pan-y; cursor: grab; outline: none;
}
.showcase canvas:active { cursor: grabbing; }
.showcase canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.showcase canvas[hidden] { display: none; }
.showcase-hint {
  position: absolute; left: 0; right: 0; bottom: 22px; margin: 0; text-align: center; z-index: 3;
  color: var(--muted); font-size: .8rem; letter-spacing: .08em; pointer-events: none;
}
.showcase-hint[hidden] { display: none; }
.showcase-fallback {
  list-style: none; margin: 0; padding: 0 24px 72px; position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px;
  max-width: var(--max); margin-inline: auto;
}
.showcase-fallback[hidden] { display: none; }
.showcase-fallback img { width: 100%; aspect-ratio: 1.509; object-fit: cover; border-radius: 12px; }
.showcase.is-fallback { height: auto; min-height: 0; padding: 88px 0 0; }
.showcase.is-fallback .showcase-title { position: relative; inset: auto; margin-bottom: 40px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (max-width: 640px) {
  .showcase-title { font-size: 17.5vw; padding: 0 12px; text-wrap: balance; line-height: .9; }
  .topbar { padding-left: 16px; padding-right: 16px; }
  .topbar nav { gap: 12px; font-size: .82rem; }
  .topbar nav a, .brand { white-space: nowrap; }
  .brand { font-size: .9rem; }
}
