/* ===========================================================================
   LA CUEVA DEL DUENDE · estilos
   Paleta en :root. Fuentes alojadas en el sitio (Cinzel + Poppins).
   =========================================================================== */
@font-face { font-family: 'Cinzel'; font-weight: 400 900; font-style: normal; font-display: swap; src: url(../fonts/cinzel-latin.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/poppins-normal-400.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/poppins-normal-600.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/poppins-normal-700.woff2) format('woff2'); }

:root {
  --bg: #050806;
  --cave: #0a120d;
  --moss: #101d15;
  --line: rgba(239, 227, 194, .12);
  --bone: #efe3c2;
  --text: #d9d3bf;
  --muted: #9fa593;
  --green: #5dff9c;
  --green-dim: #2f9a5f;
  --amber: #ffb02e;
  --ember: #ff7a1a;
  --glow: 0 0 24px rgba(93, 255, 156, .35);
  --r: 18px;
  --head: 76px;
  --font-display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --font-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--head); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.65 var(--font-body); min-height: 100vh;
  overflow-x: hidden;
}
body.player-on { padding-bottom: 150px; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--green-dim); color: #fff; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--green); color: #031008; padding: 8px 14px; border-radius: 8px; z-index: 200; font-weight: 600; }
.skip-link:focus { left: 8px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(860px, 100% - 40px); }
.muted { color: var(--muted); }

.display { font-family: var(--font-display); font-weight: 800; color: var(--bone); letter-spacing: .02em; }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--green); margin: 0 0 .7em; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.5em; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; letter-spacing: .02em; line-height: 1.2;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: linear-gradient(180deg, var(--green), #2fd479); color: #03140a; box-shadow: 0 0 0 1px rgba(93,255,156,.5), var(--glow); }
.btn--primary:hover { box-shadow: 0 0 0 1px var(--green), 0 0 36px rgba(93,255,156,.55); }
.btn--ghost { background: rgba(255,255,255,.04); border-color: var(--line); color: var(--bone); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--green); color: var(--green); }

/* ---------- cabecera ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 60; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.header.is-solid { background: rgba(5, 8, 6, .86); backdrop-filter: blur(14px); border-color: var(--line); }
.header__bar { width: min(1240px, 100% - 32px); height: var(--head); margin-inline: auto; display: flex; align-items: center; gap: 22px; }
.brand img { height: 56px; width: auto; filter: drop-shadow(0 2px 10px #000); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--text); font-size: .88rem; font-weight: 600; padding: .5em .85em; border-radius: 999px; transition: color .2s, background .2s; }
.nav a:hover, .nav a.is-active { color: var(--green); background: rgba(93,255,156,.08); text-decoration: none; }
.header__cta { padding: .6em 1.2em; font-size: .85rem; }
.page-ep .header__bar { justify-content: space-between; }
.menu-btn { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: 12px; padding: 0; align-items: center; justify-content: center; }
.menu-btn svg { width: 24px; height: 24px; stroke: var(--bone); stroke-width: 2; fill: none; stroke-linecap: round; }

.mobile-menu { position: fixed; inset: 0; z-index: 100; background: rgba(3, 6, 4, .97); backdrop-filter: blur(10px); padding: 16px 24px 32px; display: none; flex-direction: column; }
.mobile-menu.is-open { display: flex; }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.mobile-menu__top img { height: 56px; width: auto; }
.mobile-menu nav { display: grid; gap: 4px; }
.mobile-menu nav a { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--bone); padding: .5em 0; border-bottom: 1px solid var(--line); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--head) + 24px) 0 90px; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; background: var(--bg); }
.hero__poster, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__poster { animation: kenburns 38s ease-in-out infinite alternate; }
.hero__video { opacity: 0; transition: opacity 1.2s; }
.hero__video.is-on { opacity: 1; }
.hero__shade { position: absolute; inset: 0; background:
  radial-gradient(ellipse 70% 60% at 72% 45%, transparent 0%, rgba(5,8,6,.55) 100%),
  linear-gradient(90deg, rgba(5,8,6,.92) 0%, rgba(5,8,6,.6) 45%, rgba(5,8,6,.25) 100%),
  linear-gradient(180deg, rgba(5,8,6,.6) 0%, transparent 25%, transparent 70%, var(--bg) 100%); }
.hero__fog { position: absolute; inset: -20% -10%; background:
  radial-gradient(ellipse 40% 30% at 20% 80%, rgba(93,255,156,.10), transparent 70%),
  radial-gradient(ellipse 35% 28% at 80% 30%, rgba(93,255,156,.08), transparent 70%);
  animation: fog 18s ease-in-out infinite alternate; mix-blend-mode: screen; pointer-events: none; }
@keyframes kenburns { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.16) translate3d(-1.5%, -1%, 0); } }
@keyframes fog { from { transform: translate3d(-3%, 0, 0); opacity: .7; } to { transform: translate3d(3%, -2%, 0); opacity: 1; } }

.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 24px; position: relative; }
.hero__title { margin: 0 0 .4em; }
.hero__title img { width: min(560px, 100%); height: auto; filter: drop-shadow(0 6px 30px rgba(0,0,0,.8)); margin-left: -4%; }
.hero__sub { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.2rem, 3vw, 1.9rem); letter-spacing: .12em; text-transform: uppercase; color: var(--green); text-shadow: 0 0 24px rgba(93,255,156,.6); margin-top: -.2em; }
.hero__quote { margin: 0 0 1.6em; max-width: 34em; font-size: 1.08rem; font-style: italic; color: var(--bone); border-left: 2px solid var(--green-dim); padding-left: 16px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 1.6em; }
.hero__figure { position: relative; justify-self: center; width: min(520px, 100%); aspect-ratio: .9; transition: transform .25s ease-out; will-change: transform; }
.hero__figure img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent 96%); mask-image: radial-gradient(closest-side, #000 45%, transparent 96%);
  animation: asoma 7s ease-in-out infinite alternate; filter: brightness(1.35) contrast(1.1); }
@keyframes asoma { from { transform: translateY(10px) scale(1); } to { transform: translateY(-6px) scale(1.035); } }
.hero__down { position: absolute; left: 50%; bottom: 26px; width: 28px; height: 46px; margin-left: -14px; border: 2px solid var(--line); border-radius: 16px; display: block; }
.hero__down i { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--green); animation: bajar 1.8s infinite; }
@keyframes bajar { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* tarjeta del último episodio en el hero + anillo de progreso */
.hero-disc { display: flex; align-items: center; gap: 16px; max-width: 460px; padding: 14px 18px 14px 14px; border-radius: var(--r); background: rgba(10, 18, 13, .72); border: 1px solid var(--line); backdrop-filter: blur(12px); }
.hero-disc__play { position: relative; flex: none; width: 60px; height: 60px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #03140a; background: radial-gradient(closest-side, var(--green) 0 80%, transparent 82%), conic-gradient(var(--amber) calc(var(--p) * 1%), rgba(255,255,255,.14) 0); }
.hero-disc.is-playing .hero-disc__play { box-shadow: 0 0 28px rgba(93,255,156,.6); }
.hero-disc__play svg { width: 26px; height: 26px; fill: currentColor; }
.hero-disc__tag { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.hero-disc__title { margin: .15em 0 .1em; font-weight: 600; color: var(--bone); line-height: 1.3; font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-disc__meta { margin: 0; font-size: .8rem; color: var(--muted); }

/* iconos play/pausa */
.i-pause { display: none; }
.is-playing > svg .i-play, .is-playing .i-play { display: none; }
.is-playing > svg .i-pause, .is-playing .i-pause { display: inline; }
.i-check { display: none; }
.is-queued .i-add { display: none; }
.is-queued .i-check { display: inline; }

/* ---------- secciones ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section__head { margin-bottom: clamp(28px, 4vw, 48px); }
.section__title { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.section__title::after { content: ''; display: block; width: 84px; height: 2px; margin-top: 16px; background: linear-gradient(90deg, var(--green), transparent); box-shadow: 0 0 14px var(--green); }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 110ms); }
.reveal--left { transform: translateX(-50px); }
.reveal--right { transform: translateX(50px); }
.reveal--scale { transform: scale(.94) translateY(20px); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* último episodio */
.last-ep { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; padding: clamp(18px, 3vw, 32px); border-radius: 28px; background: linear-gradient(160deg, var(--moss), var(--cave)); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.04); }
.last-ep__cover { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 20px 60px rgba(0,0,0,.6); }
.last-ep__cover img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.last-ep__play { position: absolute; right: 16px; bottom: 16px; width: 68px; height: 68px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--green); color: #03140a; box-shadow: var(--glow); transition: transform .2s; }
.last-ep__play:hover { transform: scale(1.08); }
.last-ep__play svg { width: 30px; height: 30px; fill: currentColor; }
.last-ep__body h3 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: .6em; }
.last-ep__body h4 { font-family: var(--font-display); color: var(--bone); font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; margin: 1.4em 0 .6em; }
.last-ep__list { margin: 0 0 1.6em; padding: 0; list-style: none; display: grid; gap: 6px; }
.last-ep__list li { position: relative; padding-left: 22px; font-size: .92rem; color: var(--text); }
.last-ep__list li::before { content: ''; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 8px var(--ember); }

/* episodios */
.ep-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.ep-card { display: flex; flex-direction: column; border-radius: var(--r); background: linear-gradient(170deg, var(--moss), var(--cave)); border: 1px solid var(--line); overflow: hidden; transition: transform .3s, border-color .3s, box-shadow .3s; }
.ep-card:hover { transform: translateY(-5px); border-color: rgba(93,255,156,.5); box-shadow: 0 18px 50px rgba(0,0,0,.6), 0 0 30px rgba(93,255,156,.12); }
.ep-card__link { display: block; flex: 1; padding: 22px 22px 8px; color: inherit; }
.ep-card__link:hover { text-decoration: none; }
.ep-card__num { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); margin-bottom: .7em; }
.ep-card h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; color: var(--bone); margin-bottom: .6em; }
.ep-card p { font-size: .9rem; color: var(--muted); margin: 0; }
.ep-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px 18px 22px; font-size: .8rem; color: var(--muted); }
.ep-acts { display: flex; gap: 8px; }
.ep-queue, .ep-play { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--bone); transition: background .2s, color .2s, border-color .2s; }
.ep-play { background: var(--green); color: #03140a; border-color: transparent; }
.ep-queue:hover { border-color: var(--green); color: var(--green); }
.ep-queue.is-queued { color: var(--green); border-color: var(--green); }
.ep-queue svg, .ep-play svg { width: 20px; height: 20px; fill: currentColor; }

/* el duende */
.duende { background: radial-gradient(ellipse 60% 70% at 25% 50%, rgba(47, 154, 95, .12), transparent 70%); }
.duende__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 6vw, 72px); align-items: center; }
.duende__img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 28px; border: 1px solid var(--line); box-shadow: 0 30px 90px rgba(0,0,0,.7), 0 0 60px rgba(93,255,156,.1); }
.duende p { color: var(--text); }
.duende__host { margin-top: 1.4em; color: var(--muted); }
.duende__host b { color: var(--bone); font-family: var(--font-display); font-size: 1.1rem; }
.pillars { list-style: none; padding: 0; margin: 1.4em 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pillars li { padding: .45em 1em; border-radius: 999px; border: 1px solid rgba(93,255,156,.35); color: var(--green); font-size: .82rem; font-weight: 600; background: rgba(93,255,156,.06); }

/* suscríbete */
.sub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; margin-bottom: 24px; }
.sub-card { display: block; padding: 22px 24px; border-radius: var(--r); background: linear-gradient(170deg, var(--moss), var(--cave)); border: 1px solid var(--line); color: var(--text); transition: transform .25s, border-color .25s; }
.sub-card:hover { text-decoration: none; transform: translateY(-4px); border-color: var(--green); }
.sub-card b { display: block; font-family: var(--font-display); font-size: 1.2rem; color: var(--bone); }
.sub-card span { font-size: .88rem; color: var(--muted); }
.panel { padding: clamp(20px, 3vw, 32px); border-radius: 24px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.panel h3 { font-size: 1.4rem; margin-bottom: .4em; }
.rss-copy { display: flex; gap: 10px; flex-wrap: wrap; }
.rss-copy input { flex: 1 1 280px; min-width: 0; padding: .8em 1.1em; border-radius: 999px; border: 1px solid var(--line); background: rgba(0,0,0,.4); color: var(--bone); font: inherit; font-size: .9rem; }

/* faq */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; color: var(--bone); padding: 1em 2em 1em 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: .55em; font-size: 1.6rem; color: var(--green); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1em; margin: 0; }
.faq .section__title { margin-bottom: 24px; }

/* pie */
.footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg), #020403); padding: 56px 0 40px; margin-top: 40px; }
.footer__grid { display: grid; gap: 18px; justify-items: center; text-align: center; }
.footer__logo { width: 220px; height: auto; }
.footer__tag { color: var(--muted); max-width: 32em; margin: 0; }
.footer__links, .listen-links { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; }
.footer__links a, .listen-links a { color: var(--text); font-size: .88rem; }
.footer small { color: var(--muted); }

/* ---------- página de episodio ---------- */
.ep-page { padding: calc(var(--head) + 28px) 0 40px; background: radial-gradient(ellipse 70% 40% at 50% 0, rgba(47,154,95,.14), transparent 70%); }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 28px; }
.crumbs a { color: var(--muted); }
.ep-head { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: center; margin-bottom: 40px; }
.ep-head__cover { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 40px rgba(93,255,156,.08); }
.ep-head h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: .6em; }
.ep-text { margin-bottom: 36px; }
.ep-text h2 { font-size: 1.4rem; margin-bottom: .7em; }
.caps { margin: 0; padding-left: 1.4em; display: grid; gap: 8px; }
.caps li::marker { color: var(--ember); font-weight: 700; }
.ep-en { border: 1px solid var(--line); border-radius: var(--r); padding: 4px 22px; margin-bottom: 36px; background: rgba(255,255,255,.02); }
.ep-en summary { cursor: pointer; font-weight: 600; color: var(--bone); padding: 14px 0; }
.ep-en p { color: var(--muted); }
.ep-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.ep-nav a { display: block; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r); color: var(--bone); background: var(--moss); font-weight: 600; }
.ep-nav a:hover { border-color: var(--green); text-decoration: none; }
.ep-nav a:last-child { text-align: right; }
.ep-nav span { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin-bottom: 4px; }

/* ---------- reproductor fijo ---------- */
.player-bar { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 90; width: min(980px, 100% - 20px);
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.2fr) auto auto; align-items: center; gap: 6px 16px;
  padding: 10px 44px 10px 12px; border-radius: 20px; background: rgba(8, 14, 10, .92); backdrop-filter: blur(18px);
  border: 1px solid rgba(93,255,156,.25); box-shadow: 0 20px 60px rgba(0,0,0,.8), 0 0 40px rgba(93,255,156,.08); }
.player-bar[hidden] { display: none; }
.player-bar__cover { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.player-bar__info { min-width: 0; display: flex; flex-direction: column; }
.player-bar__info b { font-size: .88rem; color: var(--bone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-bar__info span { font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-bar__seek { display: flex; align-items: center; gap: 10px; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.player-bar__row { display: contents; }
.player-bar__ctrl, .player-bar__tools { display: flex; align-items: center; gap: 4px; }
.player-bar button { background: none; border: 0; color: var(--text); min-width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 600; position: relative; }
.player-bar button:hover { color: var(--green); }
.player-bar button svg { width: 22px; height: 22px; fill: currentColor; }
.player-bar .play { background: var(--green); color: #03140a; width: 44px; height: 44px; box-shadow: var(--glow); }
.player-bar .play:hover { color: #03140a; filter: brightness(1.1); }
.player-bar .speed { border: 1px solid var(--line); border-radius: 999px; padding: 0 10px; }
#pb-count { position: absolute; top: 0; right: 0; min-width: 16px; height: 16px; border-radius: 8px; background: var(--ember); color: #fff; font-size: .65rem; line-height: 16px; text-align: center; }
.player-bar .close { position: absolute; top: 8px; right: 8px; font-size: 1.3rem; }
.player-bar input[type=range] { flex: 1; min-width: 0; accent-color: var(--green); height: 4px; }
.pb-panel { grid-column: 1 / -1; max-height: 240px; overflow: auto; border-top: 1px solid var(--line); padding-top: 10px; font-size: .88rem; }
.pb-panel__title { color: var(--muted); margin: 0 0 8px; }
.pb-panel__list { list-style: none; margin: 0 0 8px; padding: 0; }
.pb-panel__list li { display: flex; gap: 8px; align-items: center; }
.pb-panel .pb-panel__go { flex: 1; justify-content: start; text-align: left; border-radius: 8px; padding: 6px 8px; width: auto; display: block; height: auto; font-weight: 400; }
.pb-panel__foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); }
.pb-panel__clear { color: var(--amber) !important; width: auto !important; padding: 0 10px !important; }
.toast { position: fixed; left: 50%; bottom: 100px; transform: translate(-50%, 20px); background: var(--moss); border: 1px solid var(--green-dim); color: var(--bone); padding: .7em 1.3em; border-radius: 999px; font-size: .88rem; z-index: 120; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- adaptación ---------- */
@media (max-width: 980px) {
  .nav, .header__cta { display: none; }
  .menu-btn { display: inline-flex; margin-left: auto; }
  .hero { padding-bottom: 70px; align-items: flex-start; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__figure { position: absolute; right: -12%; top: 4%; width: 78%; opacity: .45; z-index: -1; }
  .hero__title img { margin-left: 0; }
  .last-ep, .duende__grid { grid-template-columns: 1fr; }
  .last-ep__cover { max-width: 420px; }
  .duende__img { max-width: 420px; }
  .page-ep .menu-btn { display: none; }
  .page-ep .nav { display: flex; }
  .page-ep .nav a:not(:first-child) { display: none; }
}
@media (max-width: 640px) {
  .hero-disc { max-width: none; }
  .ep-head { grid-template-columns: 1fr; }
  .ep-head__cover { max-width: 260px; }
  .ep-nav { grid-template-columns: 1fr; }
  .ep-nav a:last-child { text-align: left; }
  .player-bar { grid-template-columns: auto minmax(0, 1fr); padding: 10px 40px 10px 10px; bottom: 8px; border-radius: 18px; }
  .player-bar__seek { grid-column: 1 / -1; grid-row: 2; }
  .player-bar__row { display: flex; grid-column: 1 / -1; justify-content: space-between; }
  body.player-on { padding-bottom: 190px; }
  .toast { bottom: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================================
   ANIMACIONES Y SECCIONES NUEVAS
   ========================================================================= */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--s, 0)); background: linear-gradient(90deg, var(--green-dim), var(--green), var(--amber)); box-shadow: 0 0 12px var(--green); }

/* video de fondo (YouTube) */
.hero__yt { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 2s ease; pointer-events: none; }
.hero__yt.is-on { opacity: .7; }
.hero__yt iframe { position: absolute; top: 50%; left: 50%; width: max(100vw, 177.78vh); height: max(56.25vw, 100vh); transform: translate(-50%, -50%) scale(1.12); border: 0; pointer-events: none; }
.hero__embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
.hero__vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 55%, transparent 40%, rgba(0,0,0,.7) 100%); animation: tea 5s steps(1) infinite; pointer-events: none; }
@keyframes tea { 0%, 100% { opacity: 1; } 18% { opacity: .82; } 22% { opacity: 1; } 51% { opacity: .9; } 54% { opacity: 1; } 78% { opacity: .85; } 80% { opacity: 1; } }

/* entrada del hero */
.hero-in { opacity: 0; transform: translateY(26px); animation: entra 1s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0s); }
.hero-in--logo { transform: scale(.86); filter: blur(14px); animation-name: logo-in; }
@keyframes entra { to { opacity: 1; transform: none; } }
@keyframes logo-in { to { opacity: 1; transform: none; filter: blur(0) drop-shadow(0 6px 30px rgba(0,0,0,.8)); } }
.no-js .hero-in { opacity: 1; transform: none; animation: none; }
.hero__sub.hero-in { animation-name: entra, brilla; animation-duration: 1s, 4s; animation-delay: var(--d, 0s), 2s; animation-iteration-count: 1, infinite; animation-fill-mode: forwards, none; }
@keyframes brilla { 0%, 100% { text-shadow: 0 0 22px rgba(93,255,156,.55); } 50% { text-shadow: 0 0 40px rgba(93,255,156,.95), 0 0 6px rgba(93,255,156,.8); } }

/* ojos del Duende */
.eye { position: absolute; top: 31%; width: 9%; aspect-ratio: 1.6; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, #fff2c2 0, #ffb02e 30%, rgba(255,122,26,.55) 60%, transparent 100%); mix-blend-mode: screen; filter: blur(1.5px); animation: ojos 4.6s ease-in-out infinite; }
.eye--l { left: 37.2%; } .eye--r { left: 49.9%; }
@keyframes ojos { 0%, 100% { opacity: .65; transform: translate(-50%, -50%) scale(1); } 45% { opacity: 1; transform: translate(-50%, -50%) scale(1.25); } 50% { opacity: .1; transform: translate(-50%, -50%) scaleY(.1); } 55% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); } }
.duende__img { position: relative; }
.duende__eye { position: absolute; top: 34.6%; width: 8%; aspect-ratio: 1.6; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(255,230,160,.95), rgba(255,140,30,.55) 55%, transparent 100%); mix-blend-mode: screen; filter: blur(2px); animation: ojos 5.2s ease-in-out infinite; }
.duende__eye--l { left: 42.7%; } .duende__eye--r { left: 51.6%; animation-delay: .08s; }

/* botón con destello */
.btn--shine { position: relative; overflow: hidden; }
.btn--shine::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); animation: destello 3.6s ease-in-out infinite; }
@keyframes destello { 0%, 55% { left: -60%; } 100% { left: 140%; } }
.hero-disc.is-playing .hero-disc__play { animation: latido 1.6s ease-in-out infinite; }
@keyframes latido { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }

/* cifras + cinta */
.stats { position: relative; border-block: 1px solid var(--line); background: linear-gradient(180deg, rgba(10,18,13,.9), rgba(5,8,6,.9)); padding-top: 36px; overflow: hidden; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; padding-bottom: 30px; }
.stat b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 5vw, 3.4rem); color: var(--bone); line-height: 1.1; text-shadow: 0 0 30px rgba(93,255,156,.35); }
.stat b i { font-style: normal; }
.stat span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.ticker { border-top: 1px solid var(--line); overflow: hidden; padding: 14px 0; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker__track { display: inline-flex; animation: cinta 38s linear infinite; }
.ticker__track span { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; }
.ticker em { font-family: var(--font-display); font-style: normal; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; font-size: .95rem; color: var(--text); }
.ticker i { color: var(--ember); font-style: normal; }
@keyframes cinta { to { transform: translateX(-50%); } }

/* secciones */
.section--tight { padding: 20px 0 clamp(40px, 6vw, 80px); }
.section__lead { max-width: 40em; margin-top: 1em; }
.section__title::after { transform-origin: left; transform: scaleX(0); transition: transform 1s .3s cubic-bezier(.2,.7,.2,1); }
.is-in .section__title::after, .section__title.is-in::after { transform: scaleX(1); }
.no-js .section__title::after { transform: none; }
.ep-all { text-align: center; margin: 36px 0 0; }

/* tarjetas externas e inclinación */
.ep-card.is-tilt { transition: transform .12s ease-out, border-color .3s, box-shadow .3s; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); }
.ep-card--ext { background: linear-gradient(170deg, #0c1510, var(--cave)); border-style: dashed; }
.ep-card--ext .ep-card__num::after { content: ' · en Nueva Onda'; color: var(--muted); letter-spacing: .08em; }
.ep-ext { font-size: .82rem; font-weight: 600; color: var(--green); padding: .55em 1em; border: 1px solid rgba(93,255,156,.4); border-radius: 999px; white-space: nowrap; }
.ep-ext:hover { background: rgba(93,255,156,.1); text-decoration: none; }

/* qué encontrarás */
.feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; margin-top: clamp(40px, 6vw, 72px); }
.feat__card { padding: 26px 24px; border-radius: var(--r); background: linear-gradient(170deg, var(--moss), var(--cave)); border: 1px solid var(--line); }
.feat__card.is-in:hover { transform: translateY(-6px); border-color: rgba(255,176,46,.5); box-shadow: 0 16px 50px rgba(0,0,0,.5), 0 0 30px rgba(255,176,46,.08); transition-delay: 0s; transition-duration: .3s; }
.feat__ico { display: grid; place-items: center; width: 52px; height: 52px; font-size: 1.6rem; border-radius: 14px; background: rgba(93,255,156,.08); border: 1px solid rgba(93,255,156,.25); margin-bottom: 16px; animation: flota 5s ease-in-out infinite; }
.feat__card:nth-child(2) .feat__ico { animation-delay: .6s; } .feat__card:nth-child(3) .feat__ico { animation-delay: 1.2s; } .feat__card:nth-child(4) .feat__ico { animation-delay: 1.8s; }
@keyframes flota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.feat__card h3 { font-family: var(--font-display); font-weight: 800; color: var(--bone); font-size: 1.1rem; margin-bottom: .5em; }
.feat__card p { color: var(--muted); font-size: .9rem; margin: 0; }

/* recorrido */
.route { --prog: 0; list-style: none; margin: 0; padding: 0 0 0 44px; position: relative; }
.route::before, .route::after { content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; }
.route::before { background: var(--line); }
.route::after { background: linear-gradient(var(--green), var(--amber)); box-shadow: 0 0 12px var(--green); transform-origin: top; transform: scaleY(var(--prog)); }
.route__stop { position: relative; padding: 22px 26px; margin-bottom: 22px; border-radius: var(--r); background: linear-gradient(170deg, var(--moss), var(--cave)); border: 1px solid var(--line); }
.route__dot { position: absolute; left: -44px; top: 28px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 2px solid var(--green-dim); transition: border-color .4s, box-shadow .4s, background .4s; }
.route__stop.is-in .route__dot { border-color: var(--green); background: var(--green); box-shadow: 0 0 0 6px rgba(93,255,156,.15), 0 0 20px var(--green); }
.route__ep { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); }
.route__stop h3 { font-family: var(--font-display); font-weight: 800; color: var(--bone); font-size: 1.35rem; margin: .2em 0 .3em; }
.route__place { margin: 0 0 .6em; color: var(--muted); font-size: .92rem; }
.route__stop a { font-weight: 600; font-size: .9rem; }

/* nota de Nueva Onda */
.nota { display: block; position: relative; overflow: hidden; padding: clamp(24px, 4vw, 44px); border-radius: 26px; border: 1px solid var(--line); background: radial-gradient(ellipse 80% 120% at 100% 0, rgba(93,255,156,.14), transparent 60%), linear-gradient(160deg, var(--moss), var(--cave)); }
.nota:hover { text-decoration: none; border-color: var(--green); }
.nota h2 { font-size: clamp(1.4rem, 3.2vw, 2.1rem); max-width: 28em; margin: .3em 0 .8em; }
.nota__go { color: var(--green); font-weight: 600; }
.sub-card:hover { box-shadow: 0 0 30px rgba(93,255,156,.12); }

@media (max-width: 980px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .hero__yt iframe { transform: translate(-50%, -50%) scale(1.3); }
  .reveal--left, .reveal--right { transform: translateY(30px); }
}
@media (max-width: 640px) {
  .route { padding-left: 38px; }
  .route__dot { left: -38px; }
  .route__stop { padding: 18px 18px; }
  .ep-card__foot { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-in, .section__title::after { opacity: 1 !important; transform: none !important; }
  .hero__yt, .hero__embers { display: none; }
}

.ep-card--ext .ep-card__foot { flex-direction: column; align-items: flex-start; gap: 12px; }
.ep-card__foot > span:first-child { white-space: nowrap; }
.ep-card--ext .ep-ext { align-self: stretch; text-align: center; }

/* Marca Nueva Onda junto al logo del programa (header y pie) */
.brand-sep { width: 1px; height: 30px; background: rgba(255, 255, 255, .3); flex-shrink: 0; }
.brand-no { display: flex; align-items: center; flex-shrink: 0; }
.brand-no img { height: 30px; width: auto; display: block; }
.footer__brands { display: flex; align-items: center; justify-content: center; gap: 18px; }
.footer__brands .brand-sep { height: 40px; }
.footer__no img { height: 40px; width: auto; display: block; }
@media (max-width: 640px) {
  .brand-sep { height: 22px; }
  .brand-no img { height: 22px; }
  .footer__brands { gap: 12px; }
  .footer__no img { height: 30px; }
}

/* ===== Header común de la red Nueva Onda (píldora flotante, efecto glass) ===== */
.header { padding: 12px 12px 0; background: none !important; backdrop-filter: none !important; border: 0 !important; }
.header__bar { width: min(1240px, 100%); height: calc(var(--head) - 16px); padding: 0 10px 0 20px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(5, 8, 6, .38); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .45); transition: background .3s, border-color .3s; }
.header.is-solid .header__bar { background: rgba(5, 8, 6, .88); border-color: var(--line); }
.brand img { height: 62px; margin-block: -10px; position: relative; z-index: 2; }
.brand-no img { height: 28px; margin: 0; }
.menu-btn { border-radius: 50%; width: 42px; height: 42px; }
@media (max-width: 640px) { .header__bar { padding: 0 6px 0 14px; } .brand img { height: 50px; } .brand-no img { height: 22px; } }
