/* =========================================================
   KINEMA VR — Design System v2 (Gold / Ivory)
   Paleta oficial (doc PALETAS DE COLOR EN DORADOS):
   70% fondos claros cálidos · 20% bloques oscuros · 10% dorado
   ========================================================= */

:root {
  --gold:        #C9902A;   /* dorado marca */
  --gold-dark:   #9A681C;   /* bronce / hover */
  --gold-light:  #E4C681;   /* champagne */
  --ivory:       #FAF7F0;   /* fondo principal */
  --stone:       #EFE8DC;   /* fondo alterno */
  --greige:      #C8BA9D;   /* arena cálida */
  --charcoal:    #1E1F22;   /* texto principal */
  --gray:        #7F7F7F;   /* texto secundario */
  --petrol:      #183E4A;   /* acento inmersivo */
  --night:       #101820;   /* fondo cine/hero/footer */
  --line:        #DED4C3;   /* borde suave */
  --line-dark:   rgba(250,247,240,0.14);
  --white:       #ffffff;

  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif; /* marquesina cinematográfica */
  --serif: 'Fraunces', Georgia, serif;                            /* serif editorial de acento */
  --sans:  'Instrument Sans', system-ui, sans-serif;              /* cuerpo */
  --mono:  'Space Mono', 'Courier New', monospace;                /* datos / etiquetas */

  --wrap: 1240px;
  --ease: cubic-bezier(.16,1,.3,1);
  --radius: 6px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ivory); color: var(--charcoal);
  font-family: var(--sans); font-weight: 400; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4 { margin: 0; }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 48px, 860px); margin-inline: auto; }

/* subtle paper grain over the whole site */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
main { position: relative; z-index: 2; }

/* ---------- Typography helpers ---------- */
.kicker {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .26em;
  text-transform: uppercase; color: var(--gold-dark); margin: 0 0 1.1rem;
  display: inline-flex; align-items: center; gap: .6rem;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.h-display { font-family: var(--display); font-weight: 700; line-height: .92; letter-spacing: .005em; text-transform: uppercase; }
.section-title { font-family: var(--display); font-weight: 600; font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: .94; letter-spacing: .006em; text-transform: uppercase; }
.section-desc { color: var(--gray); max-width: 52ch; margin: 0; font-size: 1.05rem; }
.lead { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.4rem,2.7vw,2.15rem); line-height: 1.42; letter-spacing: -.01em; }
.micro { font-size: .78rem; color: var(--gray); }
.draft { font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; color: var(--greige); text-transform: uppercase; }
.text-gold { color: var(--gold-dark); }
em { color: var(--gold-dark); font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  --pad: .95rem 1.7rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: var(--pad); border: 1.5px solid transparent; border-radius: 3px;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  transition: all .35s var(--ease); background: none; color: var(--charcoal); white-space: nowrap;
}
.btn-sm { --pad: .6rem 1.1rem; font-size: .7rem; }
.btn .ico { width: 16px; height: 16px; }
.btn-primary { background: var(--gold); color: var(--charcoal); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px -14px var(--gold-dark); }
.btn-outline { border-color: var(--charcoal); color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: var(--ivory); }
.btn-ghost { color: var(--gray); }
.btn-ghost:hover { color: var(--charcoal); }
/* on dark backgrounds */
.on-dark .btn-outline { border-color: var(--gold); color: var(--gold-light); }
.on-dark .btn-outline:hover { background: var(--gold); color: var(--night); }

/* =========================================================
   HEADER (injected)
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(250,247,240,.86); backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .4s var(--ease), height .4s var(--ease);
}
.site-header.scrolled { box-shadow: 0 8px 28px -20px rgba(30,31,34,.55); height: 64px; }
/* clúster centrado: [links] · LOGO · [links] · acciones — todo agrupado en el centro */
.header-inner { display: flex; align-items: center; width: 100%; position: relative; }
/* flancos flex iguales → logo al centro exacto, grupos pegados al logo (no a los márgenes) */
.nav-cluster { display: flex; align-items: center; width: 100%; }
.nav-group { display: flex; align-items: center; gap: 1.6rem; }
.nav-group--left { flex: 1; justify-content: flex-end; }
.nav-side { flex: 1; display: flex; align-items: center; justify-content: flex-start; gap: 1.6rem; }
.nav-cluster .brand { flex: 0 0 auto; margin: 0 1.8rem; }
.nav-divider { width: 1px; height: 20px; background: var(--line); flex: 0 0 auto; }
.brand-logo { display: block; height: 66px; transition: height .4s; }
.site-header.scrolled .brand-logo { height: 54px; }
.nav-group a {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase;
  color: var(--charcoal); position: relative; padding: .3rem 0; opacity: .72; white-space: nowrap;
}
.nav-group a::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 0; height: 1.5px; background: var(--gold); transition: width .35s var(--ease); }
.nav-group a:hover, .nav-group a.active { opacity: 1; }
.nav-group a:hover::after, .nav-group a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 1.3rem; }
.brand--bar { display: none; }
.account-slot { display: flex; align-items: center; gap: .7rem; justify-content: flex-end; }
.account-name { font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: var(--charcoal); text-transform: uppercase; }
.account-name b { color: var(--gold-dark); }
.lang-toggle { display: flex; align-items: center; gap: .35rem; font-family: var(--mono); font-size: .74rem; color: var(--gray); }
.lang-toggle button { background: none; border: none; color: var(--gray); padding: .2rem; letter-spacing: .08em; }
.lang-toggle button.is-active { color: var(--gold-dark); font-weight: 600; }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; }
.nav-burger span { width: 24px; height: 2px; background: var(--charcoal); transition: .3s var(--ease); }
.nav-burger[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.nav-burger[aria-expanded="true"] span:nth-child(2){opacity:0;}
.nav-burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

/* =========================================================
   ICONS
   ========================================================= */
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: middle; }
.ico-accent { color: var(--gold-dark); }
.icon-badge { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--stone); color: var(--gold-dark); flex-shrink: 0; border: 1px solid var(--line); }
.icon-badge .ico { width: 26px; height: 26px; }

/* =========================================================
   PAGE HERO — cinematic header with video background
   (layers injected by site.js: __video, __fx, __overlay, __strip)
   ========================================================= */
.page-hero {
  position: relative; z-index: 2; overflow: hidden;
  min-height: 74vh; display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 5.5rem) 0 4.5rem;
  background: radial-gradient(120% 100% at 50% 0%, #182430 0%, var(--night) 60%); color: var(--ivory);
}
/* imagen/vídeo real de cabecera */
.page-hero__media { position: absolute; inset: 0; z-index: 0; }
.page-hero__img, .page-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero__video { z-index: 1; }
/* oscurecido para legibilidad del texto (izquierda y base) */
.page-hero__overlay { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(16,24,32,.35) 0%, rgba(16,24,32,.12) 42%, rgba(16,24,32,.95) 100%),
    linear-gradient(96deg, rgba(16,24,32,.9) 0%, rgba(16,24,32,.5) 48%, rgba(16,24,32,.05) 82%); }
/* tira de perforación de celuloide en el borde inferior */
.page-hero__strip { position: absolute; left: 0; right: 0; bottom: 0; height: 20px; z-index: 4;
  background: repeating-linear-gradient(90deg, transparent 0 14px, rgba(228,198,129,.28) 14px 20px, transparent 20px 34px);
  border-top: 1px solid rgba(228,198,129,.22); }
.page-hero .wrap { position: relative; z-index: 6; }
.page-hero .kicker { color: var(--gold-light); }
.page-hero .kicker::before { background: var(--gold-light); }
.page-hero h1 { font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(3.4rem, 9.5vw, 7.4rem); line-height: .84; letter-spacing: .004em;
  text-shadow: 0 2px 50px rgba(0,0,0,.5); }
.page-hero h1 .it { font-family: var(--serif); font-style: italic; text-transform: none; font-weight: 400; color: var(--gold-light); }
.page-hero p { color: var(--greige); max-width: 60ch; margin: 1.5rem 0 0; font-size: 1.18rem; }
.breadcrumb { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(240,237,232,.55); margin-bottom: 1.6rem; }
.breadcrumb a:hover { color: var(--gold-light); }

@keyframes beam { 0%,100% { opacity:.85; transform: translateX(-50%) rotate(-1.2deg); } 50% { opacity:.62; transform: translateX(-50%) rotate(1.2deg); } }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-40px); } }

.section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; z-index: 2; }
/* trama sutil que rompe la monotonía de los fondos claros */
.section:not(.dark) { background-image: radial-gradient(rgba(30,31,34,.03) 0.9px, transparent 1.5px); background-size: 22px 22px; background-position: center; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 3.4rem; flex-wrap: wrap; }
.section.alt { background-color: var(--stone); }
.section.dark { background: var(--night); color: var(--ivory); }
.section.dark .section-title, .section.dark h2, .section.dark h3 { color: var(--ivory); }
.section.dark .section-desc { color: var(--greige); }
.section.dark .kicker { color: var(--gold-light); }

/* =========================================================
   HOME — HERO
   ========================================================= */
/* full-bleed immersive hero */
.home-hero { position: relative; overflow: hidden; min-height: 100svh; display: flex; flex-direction: column;
  padding-top: var(--header-h); color: var(--ivory);
  background: radial-gradient(135% 110% at 72% 34%, #16232f 0%, var(--night) 62%, #0a0f15 100%); }
.home-hero__bg { position: absolute; inset: 0; z-index: 0; }
.home-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.home-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-hero__stars { position: absolute; inset: 0; background-image:
  radial-gradient(1.6px 1.6px at 20% 30%, rgba(255,255,255,.5), transparent),
  radial-gradient(1.5px 1.5px at 75% 25%, rgba(255,255,255,.4), transparent),
  radial-gradient(1px 1px at 55% 65%, rgba(255,255,255,.4), transparent),
  radial-gradient(1px 1px at 85% 70%, rgba(255,255,255,.32), transparent),
  radial-gradient(1px 1px at 35% 82%, rgba(255,255,255,.3), transparent),
  radial-gradient(1px 1px at 62% 45%, rgba(255,255,255,.28), transparent);
  animation: drift 30s linear infinite; }
.home-hero__portal { position: absolute; top: 46%; right: 4%; transform: translateY(-50%); width: min(52vw, 680px); aspect-ratio: 1; display: grid; place-items: center; }
.home-hero__portal .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold);
  box-shadow: 0 0 120px -10px var(--gold), inset 0 0 90px -14px var(--gold-light); opacity: .92; animation: pulse-ring 7s ease-in-out infinite; }
.home-hero__portal .ring2 { inset: 13%; border-color: rgba(228,198,129,.34); box-shadow: none; }
.home-hero__portal .ring3 { inset: 26%; border-color: rgba(228,198,129,.18); box-shadow: none; }
.home-hero__portal .figure { width: 7%; height: 30%; background: linear-gradient(var(--night), #000); border-radius: 42% 42% 0 0; position: relative; bottom: -14%; z-index: 2; }
.home-hero__portal .glow { position: absolute; bottom: 10%; width: 78%; height: 34px; background: radial-gradient(ellipse, rgba(228,198,129,.55), transparent 70%); filter: blur(7px); }
@keyframes pulse-ring { 0%,100% { box-shadow: 0 0 120px -10px var(--gold), inset 0 0 90px -14px var(--gold-light); } 50% { box-shadow: 0 0 160px -6px var(--gold), inset 0 0 110px -10px var(--gold-light); } }
.home-hero__overlay { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(92deg, rgba(16,24,32,.94) 0%, rgba(16,24,32,.6) 42%, rgba(16,24,32,.18) 72%, transparent 100%),
              linear-gradient(180deg, rgba(16,24,32,.4) 0%, transparent 30%, transparent 62%, rgba(16,24,32,.9) 100%); }
.home-hero__inner { position: relative; z-index: 3; flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; padding: 3rem 0 1rem; }
.home-hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(3.4rem, 9vw, 8rem); line-height: .82; letter-spacing: .004em; margin: 1rem 0 1.6rem; text-transform: uppercase; text-shadow: 0 2px 60px rgba(0,0,0,.5); }
.home-hero h1 .it { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: .82em; text-transform: none; color: var(--gold-light); letter-spacing: -.01em; display: inline-block; padding-bottom: .18em; }
.home-hero .sub { color: var(--greige); font-size: 1.24rem; max-width: 50ch; margin-bottom: 2.2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.home-hero__stats { position: relative; z-index: 3; padding-bottom: 3rem; }
.home-hero .page-hero__note { position: absolute; left: 40px; bottom: 30px; z-index: 3; color: rgba(228,198,129,.4); }

.eyebrow-inline { font-family: var(--mono); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); }
.eyebrow-inline b { color: var(--gold-light); font-weight: 600; }

/* stats strip */
.hero-stats { display: flex; gap: 3rem; flex-wrap: wrap; border-top: 1px solid rgba(228,198,129,.2); padding-top: 1.6rem; }
.hero-stats li { list-style: none; }
.hero-stats strong { font-family: var(--display); font-weight: 800; font-size: 3rem; display: block; line-height: 1; color: var(--ivory); }
.hero-stats span { font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--greige); }

/* =========================================================
   FEATURE ROW (home)
   ========================================================= */
.features { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.feature { padding: 2rem 1.6rem; border-right: 1px solid var(--line); transition: background .3s; }
.feature:last-child { border-right: none; }
.feature:hover { background: var(--ivory); }
.feature .icon-badge { margin-bottom: 1.1rem; }
.feature h3 { font-family: var(--serif); font-size: 1.3rem; margin-bottom: .5rem; }
.feature p { color: var(--gray); font-size: .92rem; margin: 0 0 1rem; }
.feature .link { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); display: inline-flex; align-items: center; gap: .4rem; }
.feature .link .ico { width: 14px; height: 14px; transition: transform .3s; }
.feature:hover .link .ico { transform: translateX(4px); }

/* =========================================================
   SALAS
   ========================================================= */
.salas-track-wrap { overflow: hidden; }
.salas-track { display: flex; gap: 1.4rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 1rem; }
.salas-track::-webkit-scrollbar { display: none; }
.salas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 1.6rem; }

.sala-card { scroll-snap-align: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s; }
.salas-track .sala-card { flex: 0 0 clamp(300px, 40vw, 400px); }
.sala-card:hover { transform: translateY(-6px); box-shadow: 0 22px 45px -28px rgba(30,31,34,.5); }
.sala-visual { position: relative; aspect-ratio: 16/10; background: var(--sala-bg, linear-gradient(150deg,#20303a,var(--night))); display: grid; place-items: center; overflow: hidden; }
.sala-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .6s var(--ease); }
.sala-card:hover .sala-img { transform: scale(1.05); }
.sala-visual .num { position: relative; z-index: 1; }
.sala-visual .ratio, .sala-visual .ph { z-index: 1; }
.sala-visual .num { font-family: var(--serif); font-style: italic; font-size: 3.6rem; color: var(--gold-light); opacity: .9; }
.sala-visual .ratio { position: absolute; top: 12px; right: 12px; font-family: var(--mono); font-size: .58rem; letter-spacing: .14em; color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.3); padding: .28rem .5rem; border-radius: 2px; }
.sala-visual .ph { position: absolute; left: 10px; bottom: 8px; font-family: var(--mono); font-size: .54rem; letter-spacing: .06em; color: rgba(255,255,255,.45); text-transform: uppercase; }
.sala-body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.sala-era { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; color: var(--gold-dark); }
.sala-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.sala-desc { color: var(--gray); font-size: .92rem; margin: 0; flex: 1; }
.sala-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .3rem; }
.tag { font-family: var(--mono); font-size: .6rem; letter-spacing: .05em; padding: .3rem .55rem; border: 1px solid var(--line); border-radius: 2px; color: var(--gray); }
.sala-card .more { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); display: inline-flex; align-items: center; gap: .4rem; margin-top: .4rem; }
.sala-card .more .ico { width: 14px; height: 14px; transition: transform .3s; }
.sala-card:hover .more .ico { transform: translateX(4px); }

.salas-controls { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; }
.progress-bar { flex: 1; height: 2px; background: var(--line); max-width: 320px; position: relative; }
.progress-bar span { position: absolute; left: 0; top: 0; height: 100%; background: var(--gold); width: 14%; transition: .3s var(--ease); }
.round-btns { display: flex; gap: .6rem; }
.round-btn { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: none; color: var(--charcoal); display: grid; place-items: center; transition: all .3s var(--ease); }
.round-btn:hover { border-color: var(--gold); color: var(--gold-dark); }
.round-btn .ico { width: 18px; height: 18px; }

/* sala detail sections */
.sala-detail { scroll-margin-top: 90px; }
.sala-detail-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.sala-detail-grid.reverse .sala-detail-media { order: 2; }
.sala-detail-media { display: grid; gap: .85rem; }
.sala-detail-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); cursor: zoom-in; display: block; transition: transform .5s var(--ease), box-shadow .4s; }
.sala-detail-img:hover { transform: scale(1.012); box-shadow: 0 20px 44px -26px rgba(30,31,34,.55); }
.sala-mech { border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: .4rem; }
.sala-mech .mech-title { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); display: block; margin-bottom: .5rem; }
@media (max-width: 860px){ .sala-detail-grid { grid-template-columns: 1fr; gap: 1.6rem; } .sala-detail-grid.reverse .sala-detail-media { order: -1; } }

/* =========================================================
   FEATURED BAND (dark)
   ========================================================= */
.featured-band { background: linear-gradient(120deg, var(--night), var(--petrol)); border-radius: var(--radius); overflow: hidden; position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; color: var(--ivory); }
.featured-band .fb-copy { padding: 3rem; }
.featured-band .kicker { color: var(--gold-light); }
.featured-band h2 { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .006em; line-height: .96; font-size: clamp(2rem,3.8vw,3.1rem); margin: .5rem 0 1rem; }
.featured-band p { color: var(--greige); margin: 0 0 1.6rem; max-width: 42ch; }
.featured-band .fb-visual { position: relative; align-self: stretch; min-height: 320px; background: radial-gradient(circle at 70% 40%, #2a3947, var(--night)); display: grid; place-items: center; }
.fb-play { width: 74px; height: 74px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold-light); display: grid; place-items: center; background: rgba(16,24,32,.4); transition: all .3s; }
.fb-play:hover { background: var(--gold); color: var(--night); transform: scale(1.06); }
.fb-play .ico { width: 26px; height: 26px; margin-left: 3px; }

/* =========================================================
   PLATFORMS
   ========================================================= */
.platforms { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.platform-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem 1.8rem; background: var(--white); display: flex; flex-direction: column; gap: .7rem; transition: all .4s var(--ease); }
.platform-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 22px 45px -30px rgba(30,31,34,.45); }
.platform-card.featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold-light) inset; }
.platform-card .icon-badge { margin-bottom: .4rem; }
.platform-tag { font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); }
.platform-card h3 { font-family: var(--serif); font-size: 1.6rem; }
.platform-card p { color: var(--gray); font-size: .92rem; margin: 0 0 1rem; flex: 1; }

/* =========================================================
   FILMS grid
   ========================================================= */
.films-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.3rem; }
.film-card { position: relative; aspect-ratio: 2/3; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: var(--night); cursor: pointer; display: flex; flex-direction: column; justify-content: flex-end; transition: transform .4s var(--ease), box-shadow .4s; }
.film-card:hover { transform: translateY(-6px); box-shadow: 0 22px 46px -24px rgba(30,31,34,.7); }
.film-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .6s var(--ease); }
.film-card:hover .film-poster { transform: scale(1.05); }
.film-lock { position: absolute; top: 10px; right: 10px; color: var(--gold-light); z-index: 3; }
.film-lock .ico { width: 16px; height: 16px; }
.film-meta { position: relative; z-index: 2; padding: .8rem; background: linear-gradient(transparent, rgba(8,12,16,.9)); }
.film-era { font-family: var(--mono); font-size: .56rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-light); }
.film-title { font-family: var(--serif); font-size: .95rem; color: var(--ivory); line-height: 1.15; }
.film-play { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .3s; z-index: 3; }
.film-card:hover .film-play { opacity: 1; }
.film-play span { width: 46px; height: 46px; border-radius: 50%; background: rgba(201,144,42,.9); color: var(--night); display: grid; place-items: center; }

/* =========================================================
   GALERÍA + LIGHTBOX
   ========================================================= */
.gallery-grid { columns: 3 340px; column-gap: 1.1rem; }
.gallery-item { break-inside: avoid; margin: 0 0 1.1rem; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--night); cursor: zoom-in; position: relative; }
.gallery-item img { width: 100%; display: block; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .gallery-zoom { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; background: rgba(16,24,32,.65); color: var(--gold-light); display: grid; place-items: center; opacity: 0; transition: opacity .3s; }
.gallery-item:hover .gallery-zoom { opacity: 1; }
.gallery-item .gallery-zoom .ico { width: 16px; height: 16px; }
.gallery-empty { text-align: center; padding: 3rem; border: 1px dashed var(--greige); border-radius: var(--radius); }
.gallery-empty code { font-family: var(--mono); color: var(--gold-dark); }

.lightbox { position: fixed; inset: 0; z-index: 1300; background: rgba(8,10,14,.95); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 3vh 2vw; animation: fade .3s var(--ease); }
.lightbox[hidden] { display: none; }
.lb-stage { margin: 0; display: grid; place-items: center; min-width: 0; }
.lb-img { max-width: 100%; max-height: 90vh; border-radius: 4px; box-shadow: 0 30px 80px -30px #000; }
.lb-close { position: absolute; top: 16px; right: 26px; background: none; border: none; color: var(--ivory); font-size: 2.4rem; line-height: 1; cursor: pointer; opacity: .85; z-index: 2; }
.lb-close:hover { opacity: 1; }
.lb-nav { width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: var(--ivory); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; transition: all .3s; }
.lb-nav:hover { background: var(--gold); color: var(--night); border-color: var(--gold); }
.lb-nav .ico { width: 22px; height: 22px; }
.lb-counter { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; color: var(--greige); }
@media (max-width: 720px){ .gallery-grid { columns: 1 100%; } .lightbox { grid-template-columns: 1fr; padding: 2vh 4vw; } .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); } .lb-prev { left: 10px; } .lb-next { right: 10px; } }

/* =========================================================
   TECH timeline
   ========================================================= */
.tech-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.6rem; }
.tech-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.5rem; transition: all .4s var(--ease); }
.tech-card:hover { transform: translateY(-5px); border-color: var(--gold); }
.tech-card .icon-badge { margin-bottom: 1rem; }
.tech-num { font-family: var(--mono); font-size: .74rem; color: var(--gold-dark); letter-spacing: .1em; }
.tech-card h3 { font-family: var(--serif); font-size: 1.3rem; margin: .5rem 0; }
.tech-card p { color: var(--gray); font-size: .9rem; margin: 0; }

.steps { display: grid; gap: 1.5rem; counter-reset: s; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: start; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: none; }
.step-num { counter-increment: s; font-family: var(--serif); font-size: 2.4rem; color: var(--gold); line-height: 1; width: 3rem; }
.step-num::before { content: "0" counter(s); }
.step h3 { font-family: var(--serif); font-size: 1.4rem; margin-bottom: .4rem; }
.step p { color: var(--gray); margin: 0; }

/* =========================================================
   PROSE (project, tech, legal, empresa)
   ========================================================= */
.prose { max-width: 760px; }
.prose p { color: #45464a; margin: 0 0 1.3rem; font-size: 1.06rem; }
.prose h2 { font-family: var(--serif); font-size: 1.9rem; margin: 2.6rem 0 1rem; }
.prose h3 { font-family: var(--serif); font-size: 1.35rem; margin: 2rem 0 .7rem; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.4rem; }
.prose li { margin-bottom: .5rem; color: #45464a; }
.prose li::marker { color: var(--gold); }
.pull { font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1.4; color: var(--charcoal); border-left: 3px solid var(--gold); padding-left: 1.4rem; margin: 2.2rem 0; }
.prose-figure { margin: 2.4rem 0; }
.prose-figure img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); display: block; cursor: zoom-in; transition: box-shadow .4s; }
.prose-figure img:hover { box-shadow: 0 20px 44px -26px rgba(30,31,34,.5); }

/* two-col info */
.info-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.info-card .icon-badge { margin-bottom: 1rem; }
.info-card h3 { font-family: var(--serif); font-size: 1.25rem; margin-bottom: .5rem; }
.info-card p { color: var(--gray); font-size: .92rem; margin: 0; }

/* embed VR placeholder */
.embed-frame { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg,#16202b,var(--night)); aspect-ratio: 16/9; display: grid; place-items: center; position: relative; overflow: hidden; background-size: cover; background-position: center; }
.embed-frame--img::after { content:""; position:absolute; inset:0; background: radial-gradient(60% 80% at 50% 55%, rgba(16,24,32,.35), rgba(16,24,32,.75)); }
.embed-inner { position: relative; z-index: 2; text-align: center; display: grid; place-items: center; gap: 1.1rem; color: var(--ivory); }
.embed-frame--img .icon-badge { background: rgba(16,24,32,.5); border-color: rgba(228,198,129,.4); color: var(--gold-light); }

/* gate block / films page */
.gate-block { max-width: 640px; margin: 0 auto; }

/* =========================================================
   MINISTERIO band
   ========================================================= */
.ministerio-band { display: flex; align-items: center; gap: 2.5rem; border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem 2.4rem; background: var(--white); flex-wrap: wrap; }
.ministerio-band .mini-logo { flex-shrink: 0; width: 240px; height: auto; border-radius: 4px; box-shadow: 0 2px 12px -6px rgba(30,31,34,.3); }
/* marco blanco para el logo oficial (JPG amarillo) sobre fondos oscuros */
.mini-logo-frame { display: inline-block; background: #fff; padding: .55rem .7rem; border-radius: 5px; }
.footer-min .mini-logo-frame { max-width: 230px; }
.footer-min .mini-logo { width: 100%; height: auto; display: block; }
.ministerio-band p { color: var(--gray); margin: 0; max-width: 58ch; font-size: .98rem; }

/* =========================================================
   FORMS
   ========================================================= */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field-full { grid-column: 1/-1; }
.field label { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); }
.field input, .field select, .field textarea { background: var(--white); border: 1px solid var(--line); border-radius: 3px; padding: .8rem .9rem; color: var(--charcoal); font-family: var(--sans); font-size: .95rem; transition: border-color .3s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,144,42,.12); }
.checkbox { display: flex; gap: .6rem; align-items: flex-start; grid-column: 1/-1; }
.checkbox input { margin-top: 3px; accent-color: var(--gold); }
.checkbox span { font-size: .85rem; color: var(--gray); }
.form-feedback { grid-column: 1/-1; font-family: var(--mono); font-size: .76rem; color: var(--gold-dark); margin: 0; min-height: 1em; }

/* =========================================================
   FOOTER (injected)
   ========================================================= */
.site-footer { background: var(--night); color: var(--greige); padding: 4rem 0 2rem; position: relative; z-index: 2; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: 0; background: url("../img/footer.png") center/cover no-repeat; opacity: .45; }
.site-footer::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(16,24,32,.72) 0%, rgba(16,24,32,.9) 100%); }
.site-footer .wrap { position: relative; z-index: 1; }
.footer-top { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.5fr; gap: 2.5rem; }
.footer-logo { height: 46px; margin-bottom: 1rem; }
.footer-tag { color: var(--greige); font-size: .92rem; max-width: 30ch; margin: 0 0 1rem; }
.footer-by { font-size: .85rem; color: var(--gray); }
.footer-by a { color: var(--gold-light); }
.footer-col h4 { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1.1rem; }
.footer-col a { display: block; color: var(--greige); font-size: .9rem; padding: .28rem 0; transition: color .3s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-min .mini-logo { color: var(--greige); width: 100%; max-width: 240px; margin-bottom: .8rem; }
.footer-grant { font-size: .74rem; color: var(--gray); max-width: 34ch; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line-dark); font-size: .78rem; color: var(--gray); flex-wrap: wrap; gap: 1rem; }
.footer-socials { display: flex; gap: 1rem; }
.footer-socials a { width: 34px; height: 34px; border: 1px solid var(--line-dark); border-radius: 50%; display: grid; place-items: center; color: var(--greige); transition: all .3s; }
.footer-socials a:hover { border-color: var(--gold); color: var(--gold-light); }
.footer-socials .ico { width: 16px; height: 16px; }

/* CTA strip */
.cta-strip { text-align: center; }
.cta-strip h2 { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .006em; line-height: .95; font-size: clamp(2.2rem,4.4vw,3.6rem); margin-bottom: 1rem; }
.cta-strip p { color: var(--greige); max-width: 48ch; margin: 0 auto 2rem; }

/* =========================================================
   MODAL + COOKIES
   ========================================================= */
.modal-backdrop { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: rgba(16,24,32,.72); backdrop-filter: blur(6px); padding: 24px; animation: fade .3s var(--ease); }
.modal-backdrop[hidden] { display: none; }
@keyframes fade { from{opacity:0} to{opacity:1} }
.modal { position: relative; width: min(100%,460px); background: var(--ivory); border-radius: var(--radius); padding: 2.6rem 2.2rem 2.2rem; animation: up .4s var(--ease); border: 1px solid var(--line); }
@keyframes up { from{opacity:0; transform:translateY(18px)} to{opacity:1; transform:none} }
.modal-close { position: absolute; top: 1rem; right: 1.1rem; background: none; border: none; color: var(--gray); font-size: 1.6rem; line-height: 1; }
.modal-close:hover { color: var(--charcoal); }
.modal h3 { font-family: var(--serif); font-size: 1.9rem; margin-bottom: .5rem; }
.modal-sub { color: var(--gray); font-size: .92rem; margin: 0 0 1.5rem; }
.modal form { display: grid; gap: 1rem; }
.auth-form[hidden] { display: none; }
/* password field + toggle */
.pw-wrap { position: relative; display: flex; }
.pw-wrap input { flex: 1; padding-right: 3.4rem; }
.pw-toggle { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); background: none; border: none;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-dark); padding: .3rem; }
/* strength meter */
.pw-meter { height: 4px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: .5rem; }
.pw-meter span { display: block; height: 100%; width: 0; background: #c0392b; transition: width .3s var(--ease), background .3s; }
.pw-meter span[data-level="3"] { background: var(--gold); }
.pw-meter span[data-level="4"] { background: var(--gold); }
.pw-meter span[data-level="5"] { background: #3a9d5d; }
.pw-rules { list-style: none; padding: 0; margin: .6rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem .8rem; }
.pw-rules li { font-family: var(--mono); font-size: .62rem; letter-spacing: .03em; color: var(--gray); display: flex; align-items: center; gap: .3rem; }
.pw-rules li::before { content: "○"; color: var(--gray); }
.pw-rules li.ok { color: #3a9d5d; }
.pw-rules li.ok::before { content: "●"; color: #3a9d5d; }
/* feedback + switch */
.form-feedback.fb-err { color: #c0392b; }
.form-feedback.fb-warn { color: var(--gold-dark); }
.form-feedback.fb-ok { color: #3a9d5d; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: -.2rem; }
.remember { display: flex; align-items: center; gap: .45rem; cursor: pointer; }
.remember input { accent-color: var(--gold); }
.remember span { font-family: var(--mono); font-size: .66rem; letter-spacing: .04em; text-transform: uppercase; color: var(--gray); }
.auth-row .linkbtn { font-family: var(--sans); font-size: .8rem; }
.auth-switch { font-size: .85rem; color: var(--gray); margin: .2rem 0 0; text-align: center; }
.linkbtn { background: none; border: none; color: var(--gold-dark); font-weight: 600; font-family: var(--sans); font-size: .85rem; cursor: pointer; padding: 0; text-decoration: underline; }
.dev-link { font-size: .78rem; margin: .3rem 0 0; padding: .6rem .8rem; background: var(--stone); border-radius: 4px; }
.dev-link a { color: var(--gold-dark); font-weight: 600; }
.dev-link .draft { display: block; margin-bottom: .2rem; }
/* toast */
.kv-toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 1200; background: var(--charcoal); color: var(--ivory);
  font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; padding: .7rem 1.1rem; border-radius: 4px; box-shadow: 0 12px 30px -14px rgba(0,0,0,.5); animation: up .4s var(--ease); }

.aperture { width: 52px; height: 52px; margin-bottom: 1.2rem; position: relative; animation: spin 26s linear infinite; }
.aperture span { position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-left: 26px solid transparent; border-right: 26px solid transparent; border-bottom: 26px solid var(--gold); opacity: .55; transform-origin: 50% 100%; }
.aperture span:nth-child(1){transform:rotate(0)} .aperture span:nth-child(2){transform:rotate(60deg)} .aperture span:nth-child(3){transform:rotate(120deg)} .aperture span:nth-child(4){transform:rotate(180deg)} .aperture span:nth-child(5){transform:rotate(240deg)} .aperture span:nth-child(6){transform:rotate(300deg)}
@keyframes spin { to { transform: rotate(360deg) } }

.cookie-banner { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 950; width: min(100% - 36px, 720px); background: var(--charcoal); color: var(--ivory); border-radius: var(--radius); padding: 1.1rem 1.3rem; display: flex; align-items: center; gap: 1.4rem; box-shadow: 0 20px 50px -20px rgba(0,0,0,.5); animation: up .5s var(--ease); }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: .82rem; color: var(--greige); flex: 1; }
.cookie-actions { display: flex; gap: .6rem; flex-shrink: 0; }
.cookie-banner .btn-ghost { color: var(--greige); }
.cookie-banner .btn-ghost:hover { color: #fff; }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1000px) {
  .home-hero__portal { width: min(80vw, 460px); right: -8%; opacity: .8; }
  .features { grid-template-columns: repeat(2,1fr); }
  .feature:nth-child(2){ border-right: none; }
  .feature { border-bottom: 1px solid var(--line); }
  .platforms, .tech-grid, .info-grid { grid-template-columns: repeat(2,1fr); }
  .films-grid { grid-template-columns: repeat(4,1fr); }
  .featured-band { grid-template-columns: 1fr; }
  .featured-band .fb-visual { min-height: 220px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
/* HEADER: clúster centrado en desktop → hamburguesa en pantallas medias/pequeñas */
@media (max-width: 1024px) {
  .header-inner { justify-content: space-between; }
  .nav-burger { display: flex; order: 0; }
  .brand--bar { display: block; position: absolute; left: 50%; transform: translateX(-50%); }
  .brand-logo, .site-header.scrolled .brand-logo { height: 50px; }
  .nav-cluster { position: fixed; inset: var(--header-h) 0 auto; display: none; grid-template-columns: 1fr; flex-direction: column; align-items: flex-start;
    gap: 1.1rem; background: var(--ivory); padding: 1.6rem 24px 2rem; border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 40px -24px rgba(0,0,0,.35); }
  .nav-cluster.open { display: flex; }
  .nav-cluster .brand { display: none; }
  .nav-group, .nav-group--left { flex-direction: column; align-items: flex-start; gap: 1.1rem; justify-self: start; }
  .nav-side { flex-direction: column; align-items: flex-start; gap: 1.1rem; justify-self: start; width: 100%; }
  .nav-divider { display: none; }
  .nav-actions { flex-direction: column; align-items: flex-start; gap: 1.1rem; border-left: none; padding-left: 0; margin-left: 0; border-top: 1px solid var(--line); padding-top: 1.1rem; width: 100%; }
  .header-actions-mobile { display: none; }
}
@media (max-width: 720px) {
  :root { --header-h: 68px; }
  .films-grid { grid-template-columns: repeat(3,1fr); }
  .form { grid-template-columns: 1fr; }
  .featured-band .fb-copy { padding: 2rem; }
  .footer-top { grid-template-columns: 1fr; }
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 460px) { .platforms, .tech-grid, .info-grid, .features { grid-template-columns: 1fr; } .films-grid { grid-template-columns: repeat(2,1fr); } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration:.001ms!important; animation-iteration-count:1!important } html{scroll-behavior:auto} }
