/* ============================================================
   Manolo Solvy · In memoriam
   Paleta Marcelo Design X (60-30-10) + movimiento premium
   ============================================================ */

:root {
  /* 60% dominante */
  --bg:        #F0F4F8;   /* azul hielo */
  --surface:   #D9E2EC;   /* azul claro (tarjetas) */
  --surface-2: #FFFFFF;   /* blanco para profundidad */
  /* 30% estructura / texto */
  --ink:       #102A43;   /* azul profundo (titulos) */
  --body:      #334E68;   /* azul oscuro grisaceo (parrafos) */
  --muted:     #627D98;   /* texto terciario */
  /* 10% acento */
  --accent:    #0066CC;   /* azul electrico */
  --accent-d:  #0052a6;
  --accent-l:  #3a8ee6;
  --on-accent: #FFFFFF;

  --line:      #C5D3E0;
  --radius:    12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(16,42,67,.04), 0 2px 8px rgba(16,42,67,.05);
  --shadow:    0 4px 12px rgba(16,42,67,.06), 0 12px 32px rgba(16,42,67,.08);
  --shadow-lg: 0 12px 28px rgba(16,42,67,.10), 0 28px 60px rgba(16,42,67,.12);
  --glow:      0 0 0 1px rgba(0,102,204,.12), 0 18px 50px rgba(0,102,204,.18);

  --maxw: 1160px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --font: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0; font-weight: 800; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(72px, 11vw, 140px) 0; position: relative; }
.section--tight { padding: clamp(48px, 7vw, 90px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
  background: rgba(0,102,204,.08);
  border: 1px solid rgba(0,102,204,.18);
  padding: .4em .9em; border-radius: 100px;
}
.eyebrow::before { content:""; width:6px; height:6px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 4px rgba(0,102,204,.15); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin: 20px 0 14px; }
.section-head p { font-size: 1.12rem; color: var(--muted); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: inherit; font-weight: 600; font-size: 1rem;
  padding: .85em 1.5em; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, color .25s;
  position: relative; overflow: hidden;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 20px rgba(0,102,204,.25); }
.btn--primary::after {
  content:""; position:absolute; inset:0; background:linear-gradient(120deg,transparent 30%,rgba(255,255,255,.35),transparent 70%);
  transform: translateX(-120%); transition: transform .6s var(--ease);
}
.btn--primary:hover { background: var(--accent-d); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,102,204,.32); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost { background: var(--surface-2); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--accent); color: var(--accent); }

/* ============================================================
   NAV  +  MEGA-MENU
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s;
}
.nav.scrolled {
  background: rgba(240,244,248,.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(16,42,67,.06);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .7em; font-weight: 800; color: var(--ink); letter-spacing: -.02em; font-size: 1.12rem; }
.brand__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(0,102,204,.18); animation: pulse 3s var(--ease) infinite; }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 4px rgba(0,102,204,.18)} 50%{box-shadow:0 0 0 8px rgba(0,102,204,.05)} }

.nav__menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .6em .9em; border-radius: 8px; color: var(--body); font-weight: 600; font-size: .96rem;
  transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--accent); background: rgba(0,102,204,.06); }
.nav__link .chev { width: 14px; height: 14px; transition: transform .3s var(--ease); }

/* mega menu */
.has-mega { position: relative; }
.mega {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: min(620px, 86vw);
  background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 18px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.has-mega:hover .nav__link .chev { transform: rotate(180deg); }
.mega__item { display: flex; gap: 12px; padding: 12px; border-radius: 12px; transition: background .2s, transform .2s; }
.mega__item:hover { background: var(--bg); transform: translateX(2px); }
.mega__ico { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(0,102,204,.1); color: var(--accent); }
.mega__ico svg { width: 20px; height: 20px; }
.mega__t { color: var(--ink); font-weight: 700; font-size: .98rem; }
.mega__d { color: var(--muted); font-size: .85rem; line-height: 1.45; }

.nav__cta { margin-left: 8px; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--ink); }
.nav__toggle svg { width: 26px; height: 26px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 160px 0 clamp(70px,10vw,120px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.aurora {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform;
}
.aurora.a1 { width: 60vw; height: 60vw; left: -15vw; top: -25vw; background: radial-gradient(circle, #bcd4f0, transparent 65%); animation: drift1 22s var(--ease) infinite alternate; }
.aurora.a2 { width: 48vw; height: 48vw; right: -12vw; top: -8vw; background: radial-gradient(circle, #cfe0f4, transparent 65%); animation: drift2 26s var(--ease) infinite alternate; }
.aurora.a3 { width: 40vw; height: 40vw; left: 30vw; bottom: -20vw; background: radial-gradient(circle, rgba(0,102,204,.18), transparent 65%); animation: drift3 30s var(--ease) infinite alternate; }
@keyframes drift1 { to { transform: translate(8vw, 6vw) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-7vw, 5vw) scale(1.08); } }
@keyframes drift3 { to { transform: translate(5vw, -6vw) scale(1.12); } }
#particles { position: absolute; inset: 0; z-index: -1; }
.hero__grid-overlay {
  position:absolute; inset:0; z-index:-1; opacity:.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}

.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px,5vw,72px); align-items: center; }
.hero__memoriam { font-weight: 700; letter-spacing: .22em; text-transform: uppercase; font-size: .76rem; color: var(--accent); }
.hero h1 { font-size: clamp(3rem, 8vw, 5.6rem); margin: 18px 0 6px; font-weight: 800; }
.hero__roles { font-size: clamp(1.05rem,2.2vw,1.4rem); color: var(--ink); font-weight: 600; margin-bottom: 10px; }
.hero__roles span { color: var(--accent); }
.hero__dates { display:inline-flex; align-items:center; gap:.6em; color: var(--muted); font-weight: 600; letter-spacing:.04em; margin-bottom: 24px; }
.hero__dates .sep { width: 24px; height: 1px; background: var(--line); }
.hero__lead { font-size: 1.15rem; max-width: 46ch; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__media { position: relative; }
.hero__frame { position: relative; }
.hero__portrait {
  position: relative; border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/4.4; background: var(--surface);
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  transition: transform .6s var(--ease);
}
.hero__portrait::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 45%, rgba(16,42,67,.35)); }
.hero__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero__media:hover .hero__portrait { transform: perspective(1000px) rotateY(0) rotateX(0); }
.hero__badge {
  position: absolute; left: -22px; bottom: 26px; z-index: 2;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 18px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px;
  animation: floaty 6s var(--ease) infinite;
}
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.hero__badge .n { font-size: 1.5rem; font-weight: 800; color: var(--ink); line-height: 1; }
.hero__badge .l { font-size: .78rem; color: var(--muted); }

.scroll-hint { display:flex; justify-content:center; margin-top: clamp(40px,6vw,72px); }
.scroll-hint span { width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 14px; position: relative; }
.scroll-hint span::after { content:""; position:absolute; left:50%; top:8px; width:4px; height:8px; background:var(--accent); border-radius:2px; transform:translateX(-50%); animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { 0%{opacity:0;transform:translate(-50%,0)} 30%{opacity:1} 100%{opacity:0;transform:translate(-50%,14px)} }

/* ============================================================
   STATS
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat .num { font-size: clamp(2rem,4vw,2.8rem); font-weight: 800; color: var(--accent); line-height: 1; }
.stat .lbl { color: var(--body); font-weight: 600; margin-top: 8px; }

/* ============================================================
   BIO / TIMELINE
   ============================================================ */
.bio { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px,5vw,64px); align-items: start; }
.bio__media { position: sticky; top: 100px; }
.bio__photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 6px solid var(--surface-2); }
.bio__photo img { width: 100%; }
.bio__lead { font-size: 1.18rem; color: var(--ink); font-weight: 600; }

.timeline { position: relative; margin-top: 36px; padding-left: 30px; }
.timeline::before { content:""; position:absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--accent), var(--line)); }
.tl-item { position: relative; padding-bottom: 30px; }
.tl-item::before { content:""; position:absolute; left:-30px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface-2); border: 3px solid var(--accent); box-shadow: 0 0 0 4px rgba(0,102,204,.12); }
.tl-year { font-weight: 800; color: var(--accent); font-size: .95rem; letter-spacing: .04em; }
.tl-item h3 { font-size: 1.18rem; margin: 4px 0 6px; }
.tl-item p { color: var(--body); margin: 0; font-size: 1rem; }

/* ============================================================
   MÚSICA / PLAYER
   ============================================================ */
.music-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.music-tab {
  font-family: inherit; font-weight: 600; font-size: .95rem;
  padding: .6em 1.1em; border-radius: 100px; cursor: pointer;
  background: var(--surface-2); color: var(--body); border: 1px solid var(--line);
  transition: all .25s var(--ease);
}
.music-tab:hover { border-color: var(--accent); color: var(--accent); }
.music-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 8px 18px rgba(0,102,204,.25); }

.collection { display: none; }
.collection.active { display: block; animation: fadeUp .5s var(--ease) both; }
.collection__desc { color: var(--muted); max-width: 60ch; margin: -8px 0 24px; }

.tracklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px,1fr)); gap: 12px; }
.podcast-more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  color: var(--accent); font-weight: 700; text-decoration: none;
  transition: gap .25s var(--ease);
}
.podcast-more:hover { gap: 14px; }
.podcast-more svg { width: 20px; height: 20px; }
.track {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; cursor: pointer; text-align: left; width: 100%; font-family: inherit;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.track:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: rgba(0,102,204,.35); }
.track.playing { border-color: var(--accent); box-shadow: var(--glow); }
.track__btn { flex: none; width: 42px; height: 42px; border-radius: 50%; background: rgba(0,102,204,.1); color: var(--accent); display: grid; place-items: center; transition: background .25s, color .25s; }
.track:hover .track__btn, .track.playing .track__btn { background: var(--accent); color: #fff; }
.track__btn svg { width: 18px; height: 18px; }
.track__meta { min-width: 0; display: flex; flex-direction: column; }
.track__title { display: block; color: var(--ink); font-weight: 700; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track__artist { display: block; color: var(--muted); font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track__eq { flex: none; margin-left: auto; display: none; gap: 2px; align-items: flex-end; height: 16px; }
.track.playing .track__eq { display: flex; }
.track__eq i { width: 3px; background: var(--accent); border-radius: 2px; animation: eq 1s var(--ease) infinite; }
.track__eq i:nth-child(2){ animation-delay:.2s } .track__eq i:nth-child(3){ animation-delay:.4s }
@keyframes eq { 0%,100%{height:4px} 50%{height:16px} }

.note {
  margin-top: 26px; padding: 16px 20px; border-radius: var(--radius-sm);
  background: rgba(0,102,204,.05); border: 1px solid rgba(0,102,204,.15);
  color: var(--body); font-size: .95rem; display: flex; gap: 12px;
}
.note svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.note[hidden] { display: none; }

/* mini-player */
.player {
  position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 130%);
  width: min(680px, calc(100% - 32px)); z-index: 60;
  background: rgba(255,255,255,.82); backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 12px 16px; transition: transform .5s var(--ease);
}
.player.show { transform: translate(-50%, 0); }
.player__row { display: flex; align-items: center; gap: 14px; }
.player__play { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 18px rgba(0,102,204,.3); transition: transform .2s; }
.player__play:hover { transform: scale(1.06); }
.player__play svg { width: 20px; height: 20px; }
.player__nav { flex:none; background:none; border:0; cursor:pointer; color:var(--body); padding:6px; border-radius:8px; transition:color .2s,background .2s; }
.player__nav:hover { color: var(--accent); background: rgba(0,102,204,.08); }
.player__nav svg { width: 18px; height: 18px; }
.player__meta { min-width: 0; flex: 1; }
.player__title { color: var(--ink); font-weight: 700; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__artist { color: var(--muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .8rem; flex: none; }
.player__bar { margin-top: 10px; height: 6px; background: var(--surface); border-radius: 4px; cursor: pointer; position: relative; overflow: hidden; }
.player__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, var(--accent-l), var(--accent)); border-radius: 4px; }
.player__close { flex:none; background:none;border:0;cursor:pointer;color:var(--muted);padding:6px;border-radius:8px; }
.player__close:hover { color: var(--ink); }
.player__close svg { width: 18px; height: 18px; }

/* ============================================================
   CARDS (podcast / video)
   ============================================================ */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.feature {
  position: relative; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 16px; padding: 32px; box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.feature::before { content:""; position:absolute; inset:0; border-radius:16px; padding:1px; background:linear-gradient(120deg, rgba(0,102,204,.4), transparent 40%); -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask-composite:exclude; opacity:0; transition:opacity .4s; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature:hover::before { opacity: 1; }
.feature__ico { width: 54px; height: 54px; border-radius: 14px; display:grid; place-items:center; background: rgba(0,102,204,.1); color: var(--accent); margin-bottom: 18px; }
.feature__ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.4rem; margin-bottom: 10px; }
.feature p { color: var(--body); }
.feature__media { aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; margin-bottom: 18px; background: var(--ink); border: 1px solid var(--line); }
.feature__media iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ============================================================
   GALERÍA
   ============================================================ */
.gallery { columns: 4 220px; column-gap: 14px; }
.gallery figure { margin: 0 0 14px; break-inside: avoid; position: relative; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); cursor: zoom-in; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.gallery figure:hover { transform: translateY(-3px) scale(1.01); box-shadow: var(--shadow); }
.gallery img { width: 100%; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 12px; color: #fff; font-size: .85rem; font-weight: 600; background: linear-gradient(transparent, rgba(16,42,67,.85)); opacity: 0; transform: translateY(8px); transition: all .35s var(--ease); }
.gallery figure:hover figcaption { opacity: 1; transform: translateY(0); }

.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(16,42,67,.92); backdrop-filter: blur(6px); display: none; place-items: center; padding: 30px; }
.lightbox.open { display: grid; animation: fade .3s ease both; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox__close { position: absolute; top: 22px; right: 26px; background: none; border: 0; color: #fff; cursor: pointer; }
.lightbox__close svg { width: 30px; height: 30px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: #c9d8e8; padding: 70px 0 36px; position: relative; overflow: hidden; }
.footer::before { content:""; position:absolute; top:-40%; left:50%; transform:translateX(-50%); width:80vw; height:60vh; background:radial-gradient(circle, rgba(0,102,204,.25), transparent 60%); filter: blur(40px); }
.footer__inner { position: relative; text-align: center; }
.footer h2 { color: #fff; font-size: clamp(1.6rem,3.5vw,2.4rem); margin-bottom: 10px; }
.footer__dates { color: var(--accent-l); font-weight: 700; letter-spacing: .1em; margin-bottom: 22px; }
.footer__quote { max-width: 50ch; margin: 0 auto 30px; color: #aebfd2; font-style: italic; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; margin-bottom: 30px; }
.footer__nav a { color: #c9d8e8; font-weight: 600; font-size: .92rem; }
.footer__nav a:hover { color: #fff; }
.footer__base { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; font-size: .82rem; color: #8aa0b8; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
/* El contenido es visible por defecto. Solo lo ocultamos para animarlo
   cuando hemos confirmado que JS está activo (html.js). Así, si el JS
   falla o llega obsoleto, la página NUNCA se queda en blanco. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"]{ transition-delay:.08s } .reveal[data-delay="2"]{ transition-delay:.16s }
.reveal[data-delay="3"]{ transition-delay:.24s } .reveal[data-delay="4"]{ transition-delay:.32s }
@keyframes fadeUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:none} }
@keyframes fade { from{opacity:0} to{opacity:1} }

/* ============================================================
   VOICE · reproductor de la grabación «Cementerio» (hero)
   ============================================================ */
.voice {
  display: flex; align-items: center; gap: 16px; margin-top: 22px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 15px 18px 15px 16px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.voice::before { content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background: linear-gradient(var(--accent-l), var(--accent)); }
.voice__play {
  flex: none; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color:#fff; display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(0,102,204,.3); transition: transform .2s var(--ease), box-shadow .2s;
}
.voice__play:hover { transform: scale(1.06); box-shadow: 0 12px 26px rgba(0,102,204,.4); }
.voice__play .voice__ic { width: 22px; height: 22px; grid-area: 1/1; }
.voice__ic--pause { display: none; }
.voice.playing .voice__ic--play { display: none; }
.voice.playing .voice__ic--pause { display: block; }
.voice__body { min-width: 0; flex: 1; }
.voice__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.voice__eyebrow { font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.voice__time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .8rem; flex: none; }
.voice__title { color: var(--ink); font-weight: 800; font-size: 1.05rem; margin-top: 3px; }
.voice__sub { color: var(--body); font-size: .85rem; margin: 2px 0 11px; line-height: 1.4; }
.voice__bar { height: 6px; background: var(--surface); border-radius: 4px; position: relative; cursor: pointer; }
.voice__fill { position:absolute; left:0; top:0; bottom:0; width:0; border-radius:4px; background: linear-gradient(90deg, var(--accent-l), var(--accent)); }
.voice__head-dot { position:absolute; top:50%; left:0; width:13px; height:13px; border-radius:50%; background:#fff; border:2px solid var(--accent); transform: translate(-50%,-50%); box-shadow: var(--shadow-sm); opacity:0; transition: opacity .2s; }
.voice__bar:hover .voice__head-dot, .voice.playing .voice__head-dot { opacity:1; }
.voice__bar:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.voice.is-loading .voice__play { opacity:.7; }

/* ============================================================
   DISCOGRAFÍA
   ============================================================ */
.disco { columns: 3 240px; column-gap: 20px; }
.disco figure {
  margin: 0 0 20px; break-inside: avoid; position: relative;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); cursor: zoom-in;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.disco figure:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(0,102,204,.35); }
.disco .disco__img { position: relative; overflow: hidden; }
.disco img { width: 100%; display:block; transition: transform .6s var(--ease); }
.disco figure:hover img { transform: scale(1.04); }
.disco .disco__zoom {
  position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(16,42,67,.55); color:#fff; display:grid; place-items:center; backdrop-filter: blur(4px);
  opacity: 0; transform: scale(.85); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.disco .disco__zoom svg { width: 17px; height: 17px; }
.disco figure:hover .disco__zoom { opacity: 1; transform: scale(1); }
.disco figcaption { padding: 12px 15px 14px; color: var(--body); font-size: .85rem; font-weight: 600; line-height: 1.4; border-top: 1px solid var(--line); }

/* ============================================================
   VÍDEO destacado (TV · Manolo y Adrián)
   ============================================================ */
.video-feature { max-width: 900px; margin: 0 auto; }
.video-feature__frame {
  position: relative; aspect-ratio: 4/3; border-radius: 18px; overflow: hidden;
  background: #000; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.video-feature__frame video { position:absolute; inset:0; width:100%; height:100%; display:block; object-fit: contain; background:#000; }
.video-feature__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 84px; height: 84px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0,102,204,.92); color: #fff; display: grid; place-items: center; z-index: 3;
  box-shadow: 0 12px 40px rgba(0,0,0,.45); transition: transform .25s var(--ease), background .25s, opacity .35s;
}
.video-feature__play svg { width: 34px; height: 34px; margin-left: 4px; }
.video-feature__play::after { content:""; position:absolute; inset:-12px; border-radius:50%; border:2px solid rgba(255,255,255,.55); animation: vpulse 2.4s var(--ease) infinite; }
@keyframes vpulse { 0%{transform:scale(1);opacity:.6} 70%{transform:scale(1.4);opacity:0} 100%{opacity:0} }
.video-feature__play:hover { transform: translate(-50%,-50%) scale(1.08); background: var(--accent); }
.video-feature__tag {
  position: absolute; left: 16px; bottom: 16px; z-index:2; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(16,42,67,.72); color:#fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: 7px 13px; border-radius: 100px; font-size: .78rem; font-weight: 600; transition: opacity .3s;
}
.video-feature__tag svg { width: 15px; height: 15px; }
.video-feature.playing .video-feature__play { opacity: 0; pointer-events: none; }
.video-feature.playing .video-feature__tag { opacity: 0; }

/* Rejilla de vídeos del canal (autoalojados) */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.vcard {
  display: flex; flex-direction: column; background: var(--card, #fff);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s;
}
.vcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.vcard__frame { position: relative; aspect-ratio: 4/3; background: #000; overflow: hidden; }
.vcard__frame video { position:absolute; inset:0; width:100%; height:100%; display:block; object-fit: contain; background:#000; }
.vcard__poster { position:absolute; inset:0; width:100%; height:100%; object-fit: cover; transition: transform .5s var(--ease), opacity .3s; }
.vcard:hover .vcard__poster { transform: scale(1.05); }
.vcard__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0,102,204,.92); color:#fff; display: grid; place-items: center; z-index: 3;
  box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: transform .25s var(--ease), background .25s, opacity .3s;
}
.vcard__play svg { width: 26px; height: 26px; margin-left: 3px; }
.vcard__play:hover { transform: translate(-50%,-50%) scale(1.08); background: var(--accent); }
.vcard__dur {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  background: rgba(16,42,67,.82); color:#fff; padding: 4px 9px; border-radius: 100px;
  font-size: .74rem; font-weight: 600; letter-spacing: .02em;
}
.vcard.playing .vcard__poster,
.vcard.playing .vcard__play,
.vcard.playing .vcard__dur { opacity: 0; pointer-events: none; }
.vcard__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.vcard__title { font-size: 1.02rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.vcard__note { font-size: .86rem; color: var(--body); }
.vcard__date { font-size: .76rem; color: var(--muted, var(--body)); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__media { max-width: 420px; margin: 8px auto 0; order: -1; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__dates { justify-content: center; }
  .bio { grid-template-columns: 1fr; }
  .bio__media { position: static; max-width: 380px; }
  .feature-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 760px) {
  .nav__menu { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(240,244,248,.98); backdrop-filter: blur(14px); padding: 12px 18px 22px;
    box-shadow: 0 20px 40px rgba(16,42,67,.12); border-top: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .3s var(--ease); }
  .nav__menu.open { transform: none; opacity: 1; visibility: visible; }
  .nav__link { padding: .85em .6em; border-radius: 8px; }
  .mega { position: static; transform: none; width: 100%; opacity: 1; visibility: visible; pointer-events: auto;
    box-shadow: none; border: 0; grid-template-columns: 1fr; padding: 4px 0 8px; display: none; }
  .has-mega.open .mega { display: grid; }
  .nav__cta { margin: 12px 0 0; }
  .nav__cta .btn { width: 100%; justify-content: center; }
  .nav__toggle { display: inline-flex; }
  .gallery { columns: 2 140px; }
  .video-grid { grid-template-columns: 1fr; }
  .disco { columns: 2 150px; column-gap: 14px; }
  .disco figure { margin-bottom: 14px; }
  .stats { grid-template-columns: 1fr 1fr; }
  body { font-size: 16px; }
}

/* accesibilidad: reduce-motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .js .reveal { opacity: 1; transform: none; }
}
