/*
Theme Name: HYS Producciones
Author: HYS Producciones
Description: Tema a medida para HYS Estudio & Producción y el programa Talento en HYS 2.
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: hys
*/

/* ============================================================ tokens */
:root {
  --bg: #0a0a0c;
  --bg-2: #0f0f13;
  --surface: #15151a;
  --surface-2: #1c1c22;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --ink: #f4f1ea;
  --dim: #a7a29a;
  --gold: #e3b23c;
  --gold-2: #f6d98a;
  --gold-deep: #b8861f;
  --red: #ff2a2a;

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;

  --font-head: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ============================================================ base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; color: #fff; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: #141008; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: #141008; padding: .6rem 1rem; border-radius: 8px; }
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--mid { max-width: 1000px; }
.text-gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold) 60%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ============================================================ botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.4rem;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 .98rem/1 var(--font-body); letter-spacing: .01em;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, var(--gold-deep));
  color: #141008; box-shadow: 0 8px 24px rgba(227, 178, 60, .25);
}
.btn--gold:hover { color: #141008; box-shadow: 0 10px 30px rgba(227, 178, 60, .38); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: rgba(255, 255, 255, .03); }
.btn--ghost:hover { border-color: var(--gold); color: #fff; }
.btn--sm { min-height: 40px; padding: .55rem 1.1rem; font-size: .92rem; }

/* ============================================================ etiquetas y "en vivo" */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font: 600 .78rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 1.1rem;
}
.eyebrow--gold { color: var(--gold); }
.live-dot {
  width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto;
  background: #55535a; display: inline-block; margin-right: .1rem;
}
.is-live .live-dot { background: var(--red); box-shadow: 0 0 0 0 rgba(255, 42, 42, .6); animation: live 1.8s infinite; }
.is-live .hero .eyebrow { color: #fff; }
@keyframes live { 70% { box-shadow: 0 0 0 9px rgba(255, 42, 42, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 42, 42, 0); } }

/* ============================================================ cabecera */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 12, .72);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.is-scrolled .site-header { border-color: var(--line); background: rgba(10, 10, 12, .88); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .75rem; color: #fff; }
.brand:hover { color: #fff; }
.brand__mark { width: 44px; height: 44px; border-radius: 50%; background: #fff; object-fit: contain; box-shadow: 0 0 0 2px rgba(227, 178, 60, .35); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font: 800 1.2rem/1 var(--font-head); letter-spacing: .04em; }
.brand__text span { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin-top: .25rem; }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav__list, .site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .35rem; }
.site-nav__list a {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .9rem; border-radius: 999px;
  color: var(--ink); font-weight: 500; font-size: .96rem;
}
.site-nav__list a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.site-nav__list a[aria-current="page"], .site-nav .current-menu-item > a { color: var(--gold); }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    border: 1px solid var(--line-2); border-radius: 12px; background: transparent; cursor: pointer;
  }
  .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
    content: ""; display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
    transition: transform .25s var(--ease), opacity .2s;
  }
  .nav-toggle__bar { position: relative; }
  .nav-toggle__bar::before { position: absolute; top: -6px; }
  .nav-toggle__bar::after { position: absolute; top: 6px; }
  .nav-open .nav-toggle__bar { background: transparent; }
  .nav-open .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1rem var(--gutter) 1.5rem;
    background: rgba(10, 10, 12, .97); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .25s var(--ease), visibility .2s;
  }
  .admin-bar .site-nav { top: calc(var(--header-h) + 46px); }
  .nav-open .site-nav { opacity: 1; transform: none; visibility: visible; }
  .site-nav__list { flex-direction: column; }
  .site-nav__list a { padding: .85rem .9rem; font-size: 1.05rem; }
}

/* ============================================================ hero */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 88px); }
.hero__glow {
  position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none;
  background:
    radial-gradient(40% 50% at 78% 30%, rgba(227, 178, 60, .16), transparent 70%),
    radial-gradient(35% 45% at 10% 10%, rgba(255, 42, 42, .08), transparent 70%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero__title { font-size: clamp(2.2rem, 4.6vw, 3.8rem); font-weight: 800; }
.hero__lead { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--dim); max-width: 34em; }
.hero__lead strong { color: var(--ink); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero__player .hys-player { margin: 0; max-width: none; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* ============================================================ reproductor (mu-plugin hys-core) */
.hys-player {
  --hys-accent: var(--red);
  background: #050506; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(227, 178, 60, .06);
}
.hys-player__bar { font-family: var(--font-body); color: var(--dim); }
.hys-player__offline { background: radial-gradient(circle at 50% 40%, #1b1b21 0%, #08080a 70%); }
.hys-player__offline strong { font-family: var(--font-head); color: #fff; }

/* ============================================================ secciones */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding-top: clamp(32px, 5vw, 56px); }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--line); }
.section__head { text-align: center; margin-bottom: clamp(28px, 4vw, 44px); }
.section__head .eyebrow { justify-content: center; }
.section__title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
.section__lead { color: var(--dim); font-size: 1.08rem; }
.section__cta { text-align: center; margin-top: 2rem; }

/* programa destacado */
.feature__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.feature__art {
  display: block; border-radius: calc(var(--radius) + 4px); overflow: hidden;
  box-shadow: 0 30px 90px rgba(227, 178, 60, .16), 0 0 0 1px rgba(227, 178, 60, .18);
  transition: transform .4s var(--ease);
}
.feature__art:hover { transform: scale(1.01); }
.feature__art img { width: 100%; }
@media (max-width: 960px) { .feature__grid { grid-template-columns: 1fr; } }

/* pasos */
.steps { list-style: none; margin: 1.5rem 0 2rem; padding: 0; display: grid; gap: .85rem; }
.steps li { display: flex; align-items: center; gap: .9rem; color: var(--dim); }
.steps li strong { color: var(--ink); }
.steps__n {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 .95rem/1 var(--font-head); color: var(--gold);
  border: 1px solid rgba(227, 178, 60, .45); background: rgba(227, 178, 60, .08);
}
.steps--compact { margin: 1.25rem 0 0; }

/* tarjetas de servicios */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  padding: 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  transition: border-color .25s, transform .25s var(--ease);
}
.card:hover { border-color: rgba(227, 178, 60, .35); transform: translateY(-2px); }
.card h3 { font-size: 1.2rem; margin-top: 1rem; }
.card p { color: var(--dim); margin: 0; }
.card__icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: rgba(227, 178, 60, .1); fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* participantes del día en la portada: foto en círculo y nombre */
.people {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: clamp(20px, 3vw, 32px) clamp(12px, 2vw, 24px);
}
.person { display: flex; flex-direction: column; align-items: center; text-align: center; }
.person__photo {
  position: relative; display: block; width: min(100%, 160px); aspect-ratio: 1; margin-bottom: 12px;
  border-radius: 50%; overflow: hidden; background: var(--surface);
  border: 2px solid rgba(227, 178, 60, .45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transition: border-color .35s, box-shadow .35s, transform .35s var(--ease);
}
/* Las fotos traen el arte circular en ~75 % del cuadro: se amplía para llenar el círculo (igual que en OBS). */
.person__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.36); transition: transform .5s var(--ease); }
/* Destello dorado que cruza la foto al pasar el mouse */
.person__photo::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 244, 196, .5) 50%, transparent 65%);
  transform: translateX(-120%);
}
.person__ph { display: grid; place-items: center; width: 100%; height: 100%; font: 800 2.4rem/1 var(--font-head); color: var(--gold); }
.person__name { font: 700 1rem/1.25 var(--font-head); color: var(--ink); overflow-wrap: anywhere; transition: color .3s; }
/* Solo con mouse: en el teléfono el «hover» se queda pegado al tocar. */
@media (hover: hover) {
  .person:hover .person__photo {
    border-color: var(--gold); transform: translateY(-8px) scale(1.06);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 0 0 4px rgba(227, 178, 60, .18), 0 0 36px rgba(255, 205, 96, .35);
  }
  .person:hover .person__photo img { transform: scale(1.48); }
  .person:hover .person__photo::after { transform: translateX(120%); transition: transform .8s var(--ease); }
  .person:hover .person__name { color: var(--gold); }
}
@media (max-width: 480px) { .people { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================ páginas */
.page-hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 88px) 0 clamp(16px, 3vw, 32px); }
.page-hero .container { position: relative; }
.page-hero__title { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; margin: 0; }

.program-hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 88px) 0; border-bottom: 1px solid var(--line); }
.program-hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: blur(40px) saturate(1.2); opacity: .35; transform: scale(1.2);
}
.program-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 12, .3), var(--bg)); }
.program-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 6fr 5fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
/* Arte con filo dorado y esquinas cortadas, como las piezas de OBS */
.program-hero__art {
  width: 100%; padding: 1.5px; border-radius: 16px 40px 16px 40px;
  background: linear-gradient(90deg, #8a6a1a, #f5d37a 30%, #fff4c4 50%, #f5d37a 70%, #8a6a1a);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6), 0 0 60px rgba(255, 205, 96, .16);
}
.program-hero__title {
  font-size: clamp(2rem, 3.7vw, 2.9rem); font-weight: 800; text-transform: uppercase; letter-spacing: .01em;
  background: linear-gradient(180deg, #fff4c4 0%, #f5d37a 28%, #c99a35 58%, #8a6a1a 80%, #f5d37a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .6));
}
/* Trama de puntos dorada detrás del encabezado */
.program-hero__inner::before {
  content: ""; position: absolute; inset: -10% -5%; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, rgba(245, 211, 122, .18) 1.2px, transparent 1.8px);
  background-size: 12px 12px;
  -webkit-mask-image: radial-gradient(60% 70% at 70% 50%, #000, transparent 70%);
          mask-image: radial-gradient(60% 70% at 70% 50%, #000, transparent 70%);
}
@media (max-width: 960px) { .program-hero__inner { grid-template-columns: 1fr; } }
.program-hero + .section { padding-top: clamp(36px, 5vw, 56px); }
.entry-content > .fv-scope + .fv-scope { margin-top: 28px; }

/* contenido editable */
.entry-content > * + * { margin-top: 1.25rem; }
.entry-content h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 2.5rem; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content .hys-player { margin-inline: 0; max-width: none; }
.post-item { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }

/* ============================================================ plugin de votación */
/* "body .fv-scope" y no ".fv-scope": la hoja del plugin se imprime DESPUÉS que
   la del tema (se encola desde el shortcode), y con igual especificidad ganaba
   la suya: tarjetas blancas con acento azul. */
body .fv-scope {
  --fv-accent: var(--gold);
  --fv-accent-dark: var(--gold-deep);
  --fv-ink: var(--ink);
  --fv-dim: var(--dim);
  --fv-line: var(--line-2);
  --fv-surface: var(--surface);
  --fv-bg-soft: var(--surface-2);
  --fv-ok: #4ade80;
  --fv-ok-bg: rgba(74, 222, 128, .12);
  --fv-err: #f87171;
  --fv-err-bg: rgba(248, 113, 113, .12);
  --fv-radius: var(--radius);
  --fv-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 20px 50px rgba(0, 0, 0, .35);
  font-family: var(--font-body);
}
/* ---- Estética "Talento en HYS 2" (la misma de los overlays de OBS):
   negro profundo, dorado metálico, filos dorados, esquinas cortadas, trama de
   puntos, fotos en anillo. Todo bajo "body .fv-scope" para ganarle a la hoja
   del plugin. */
body .fv-scope {
  --g-hi: #fff4c4; --g1: #f5d37a; --g2: #c99a35; --g3: #8a6a1a;
  --g-glow: rgba(255, 205, 96, .28);
  --metal: linear-gradient(180deg, var(--g-hi) 0%, var(--g1) 28%, var(--g2) 58%, var(--g3) 80%, var(--g1) 100%);
  --metal-h: linear-gradient(90deg, var(--g3), var(--g1) 30%, var(--g-hi) 50%, var(--g1) 70%, var(--g3));
  --silver: linear-gradient(180deg, #fff 0%, #d9dde3 35%, #9aa3ae 70%, #e6e9ee 100%);
  --bronze: linear-gradient(180deg, #ffe0c2 0%, #d99a62 35%, #8f5a2c 72%, #d7a27a 100%);
  --panel: linear-gradient(180deg, #131318, #07070a);
  --hair: rgba(245, 211, 122, .16);
}
@keyframes hys-spin { to { transform: rotate(360deg); } }
@keyframes hys-shine { 0%, 70% { transform: translateX(-120%) skewX(-20deg); } 100% { transform: translateX(420%) skewX(-20deg); } }

/* Paneles (votación y resultados) */
body .fv-scope .fv-vote,
body .fv-scope .festival-results {
  position: relative; isolation: isolate;
  max-width: 760px; margin-inline: auto;
  padding: clamp(20px, 3.5vw, 32px);
  border: 1px solid transparent;
  border-radius: 14px 36px 14px 36px;
  background: var(--panel) padding-box, var(--metal-h) border-box;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 44px rgba(255, 205, 96, .1);
}
body .fv-scope .fv-vote::before,
body .fv-scope .festival-results::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background-image: radial-gradient(circle, rgba(245, 211, 122, .2) 1.2px, transparent 1.8px);
  background-size: 11px 11px;
  -webkit-mask-image: radial-gradient(90% 70% at 100% 0%, #000, transparent 65%);
          mask-image: radial-gradient(90% 70% at 100% 0%, #000, transparent 65%);
}
body .fv-scope .fv-kicker {
  display: flex; align-items: center; gap: .7em; margin-bottom: .7rem;
  font: 700 .72rem/1 var(--font-body); letter-spacing: .3em; text-transform: uppercase; color: var(--g1);
}
body .fv-scope .fv-kicker::before { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--g1)); }
body .fv-scope .fv-vote__title,
body .fv-scope .festival-results > h3 {
  margin: 0 0 .35rem;
  font: 800 clamp(1.5rem, 3.4vw, 2rem)/1.1 var(--font-head); letter-spacing: .01em; text-transform: uppercase;
  background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .6));
}
body .fv-scope .fv-vote__steps,
body .fv-scope .festival-results__total { color: var(--dim); font-size: .95rem; margin-bottom: 1.4rem; }

/* Campos */
body .fv-scope .fv-field > label,
body .fv-scope .fv-field > legend {
  font: 700 .72rem/1 var(--font-body); letter-spacing: .24em; text-transform: uppercase; color: var(--g1);
  margin-bottom: .9rem;
}
body .fv-scope .fv-field input[type=text],
body .fv-scope .fv-field select {
  background: #0b0b0e; color: var(--ink);
  border: 1px solid rgba(245, 211, 122, .3); border-radius: 12px;
  font: 600 1.05rem/1.2 var(--font-body); letter-spacing: .03em;
}
body .fv-scope .fv-field input[type=text]:focus,
body .fv-scope .fv-field select:focus { border-color: var(--g1); box-shadow: 0 0 0 3px rgba(245, 211, 122, .18); }
body .fv-scope .fv-field input.fv-invalid { border-color: var(--fv-err); background: rgba(248, 113, 113, .08); }

/* Participantes para elegir: foto en anillo, número en placa dorada */
body .fv-scope .fv-pick { grid-template-columns: repeat(auto-fit, minmax(158px, 190px)); justify-content: center; gap: 14px; }
body .fv-scope .fv-opt__card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 20px 12px 16px;
  background: linear-gradient(180deg, #111116, #09090c);
  border: 1px solid var(--hair);
  border-radius: 12px 26px 12px 26px;
  overflow: visible;
  transition: border-color .2s, transform .2s var(--ease), box-shadow .25s, background .25s;
}
body .fv-scope .fv-opt__card:hover { border-color: rgba(245, 211, 122, .45); transform: translateY(-2px); }
body .fv-scope .fv-opt__media {
  position: relative; width: 104px; height: 104px; aspect-ratio: auto;
  border-radius: 50%; overflow: visible; background: none;
}
body .fv-scope .fv-opt__media img,
body .fv-scope .fv-opt__ph {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 3px #07070a, 0 0 0 5px rgba(201, 154, 53, .75);
}
body .fv-scope .fv-opt__ph {
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, #2a2418, #0d0d10);
  font: 800 2.4rem/1 var(--font-head); color: var(--g1);
}
/* Ampolletas: aparecen y giran al elegir, como el anillo del logo */
body .fv-scope .fv-opt__media::after {
  content: ""; position: absolute; inset: -13px; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, #fff8dc 0 5deg, transparent 5deg 22.5deg);
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%, #000 69%, transparent 70%);
          mask: radial-gradient(circle, transparent 60%, #000 61%, #000 69%, transparent 70%);
  filter: drop-shadow(0 0 4px var(--g1)) drop-shadow(0 0 8px rgba(255, 205, 96, .6));
  opacity: 0; transform: scale(.9);
  transition: opacity .3s, transform .4s var(--ease);
  animation: hys-spin 22s linear infinite;
}
body .fv-scope .fv-opt__check {
  top: auto; right: -2px; bottom: 0; width: 30px; height: 30px; z-index: 1;
  background: var(--metal); border: 0; color: #1a1204;
  opacity: 0; transform: scale(.4); transition: opacity .2s, transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
body .fv-scope .fv-opt__body { padding: 16px 2px 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
body .fv-scope .fv-opt__code {
  margin: 0; padding: 3px 10px; border-radius: 6px;
  font: 800 .78rem/1.2 var(--font-head); letter-spacing: .04em;
  background: var(--metal); color: #1a1204;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55);
}
body .fv-scope .fv-opt__name {
  font: 700 .98rem/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .01em; color: #fff;
  overflow-wrap: anywhere;
}
body .fv-scope .fv-opt__song { color: var(--dim); font-size: .82rem; }
body .fv-scope .fv-opt__song::before { content: "♪"; color: var(--g1); margin-right: .35em; }
body .fv-scope .fv-opt input:checked + .fv-opt__card {
  border-color: transparent;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(245, 211, 122, .14), transparent 70%) padding-box,
    linear-gradient(180deg, #15130d, #09090c) padding-box,
    var(--metal-h) border-box;
  box-shadow: 0 0 0 1px rgba(245, 211, 122, .25), 0 12px 36px rgba(255, 205, 96, .22);
}
body .fv-scope .fv-opt input:checked + .fv-opt__card .fv-opt__media::after { opacity: 1; transform: none; }
body .fv-scope .fv-opt input:checked + .fv-opt__card .fv-opt__media img,
body .fv-scope .fv-opt input:checked + .fv-opt__card .fv-opt__ph { box-shadow: 0 0 0 3px #07070a, 0 0 0 5px var(--g1), 0 0 26px rgba(255, 205, 96, .45); }
body .fv-scope .fv-opt input:checked + .fv-opt__card .fv-opt__check { opacity: 1; transform: none; }
body .fv-scope .fv-opt input:checked + .fv-opt__card .fv-opt__name {
  background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent;
}
body .fv-scope .fv-opt input:focus-visible + .fv-opt__card { outline: 2px solid var(--g1); outline-offset: 3px; }

/* Nota del 1 al 7: botones grandes para el pulgar */
body .fv-scope .fv-grade { margin-top: 22px !important; }
body .fv-scope .fv-grades { gap: 8px; }
body .fv-scope .fv-grade__opt span {
  min-height: 56px; border-radius: 12px; border: 1px solid rgba(245, 211, 122, .3);
  background: linear-gradient(180deg, #16161b, #0a0a0d); color: var(--g1);
  font: 800 1.5rem/1 var(--font-head);
  transition: transform .15s var(--ease), box-shadow .2s, background .2s;
}
body .fv-scope .fv-grade__opt span:hover { border-color: var(--g1); }
body .fv-scope .fv-grade__opt input:checked + span {
  background: var(--metal); color: #1a1204; border-color: transparent; transform: translateY(-2px) scale(1.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 8px 24px rgba(255, 205, 96, .4);
}
body .fv-scope .fv-grade__opt input:focus-visible + span { outline: 2px solid var(--g1); outline-offset: 3px; }
@media (max-width: 380px) {
  body .fv-scope .fv-grades { gap: 5px; }
  body .fv-scope .fv-grade__opt span { min-height: 48px; font-size: 1.25rem; }
}

/* Botón: placa dorada con un brillo que pasa cada tanto */
body .fv-scope .fv-actions { margin-top: 26px; }
body .fv-scope .fv-btn {
  position: relative; overflow: hidden;
  min-height: 56px; border-radius: 999px;
  background: var(--metal); color: #1a1204;
  font: 800 1.02rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 10px 30px rgba(255, 205, 96, .28);
}
body .fv-scope .fv-btn::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  animation: hys-shine 4.5s ease-in-out infinite;
}
body .fv-scope .fv-btn:hover:not([disabled]) { filter: brightness(1.07); background: var(--metal); }
body .fv-scope .fv-btn.is-sending::after { border-color: rgba(26, 18, 4, .3); border-top-color: #1a1204; }

/* Confirmación del voto */
body .fv-scope .fv-done { padding: 12px 8px 4px; }
body .fv-scope .fv-done__icon {
  position: relative; width: 96px; height: 96px; margin-bottom: 22px;
  background: radial-gradient(circle at 50% 35%, #2a2418, #0d0d10); border: 0;
  box-shadow: 0 0 0 3px #07070a, 0 0 0 5px var(--g1), 0 0 34px rgba(255, 205, 96, .45);
  font: 800 2.6rem/1 var(--font-head); color: var(--g1);
}
body .fv-scope .fv-done__icon::after {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, var(--g-hi) 0 3deg, transparent 3deg 22.5deg);
  -webkit-mask: radial-gradient(circle, transparent 64%, #000 65%, #000 69%, transparent 70%);
          mask: radial-gradient(circle, transparent 64%, #000 65%, #000 69%, transparent 70%);
  filter: drop-shadow(0 0 3px var(--g1));
  animation: hys-spin 22s linear infinite;
}
body .fv-scope .fv-done__title {
  font: 800 1.5rem/1.15 var(--font-head); text-transform: uppercase;
  background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent;
}

body .fv-scope .fv-done__next { margin-top: 14px; color: var(--g1); font-size: .9rem; opacity: .85; }

/* Votación por turno: nadie en escena */
body .fv-scope .fv-closed { padding: 18px 8px 8px; }
body .fv-scope .fv-closed__icon {
  position: relative; width: 88px; height: 88px; margin: 0 auto 22px;
  background: radial-gradient(circle at 50% 35%, #2a2418, #0d0d10); color: var(--g1);
  box-shadow: 0 0 0 3px #07070a, 0 0 0 5px rgba(201, 154, 53, .7);
  font: 800 2.2rem/1 var(--font-head);
}
body .fv-scope .fv-closed__icon::after {
  content: ""; position: absolute; inset: -13px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, #fff8dc 0 5deg, transparent 5deg 22.5deg);
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%, #000 69%, transparent 70%);
          mask: radial-gradient(circle, transparent 60%, #000 61%, #000 69%, transparent 70%);
  opacity: .35; animation: hys-spin 22s linear infinite;
}
body .fv-scope .fv-closed__title {
  font: 800 1.3rem/1.2 var(--font-head); text-transform: uppercase;
  background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent;
}
body .fv-scope .fv-closed__text { color: var(--dim); margin-top: 8px; }
body .fv-scope .fv-note {
  background: rgba(245, 211, 122, .08); border: 1px solid rgba(245, 211, 122, .25);
  color: var(--ink); border-radius: 12px;
}

/* Resultados: posiciones oro/plata/bronce, fotos en aro, líder en dorado */
body .fv-scope .festival-results__row { gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--hair); }
body .fv-scope .festival-results__rank {
  width: 32px; height: 32px; background: rgba(0, 0, 0, .4);
  border: 1px solid rgba(201, 154, 53, .55); color: var(--g1);
  font: 800 .85rem/1 var(--font-head);
}
body .fv-scope .festival-results__row[data-rank="1"] .festival-results__rank { background: var(--metal); color: #1a1204; border: 0; box-shadow: 0 0 14px rgba(255, 205, 96, .35); }
body .fv-scope .festival-results__row[data-rank="2"] .festival-results__rank { background: var(--silver); color: #14161a; border: 0; }
body .fv-scope .festival-results__row[data-rank="3"] .festival-results__rank { background: var(--bronze); color: #1d1208; border: 0; }
/* El tamaño de Ajustes pensaba en miniaturas cuadradas grandes; en filas con
   aro dorado se limita para que el ranking siga leyéndose en el móvil. */
body .fv-scope .festival-results img.thumb,
body .fv-scope .festival-results__ph {
  width: 52px !important; height: 52px !important; border-radius: 50%;
  box-shadow: 0 0 0 2px #07070a, 0 0 0 3.5px rgba(201, 154, 53, .7);
}
body .fv-scope .festival-results__ph {
  background: radial-gradient(circle at 50% 35%, #2a2418, #0d0d10);
  font: 800 1.2rem/1 var(--font-head); color: var(--g1);
}
body .fv-scope .festival-results__row--lead img.thumb,
body .fv-scope .festival-results__row--lead .festival-results__ph { box-shadow: 0 0 0 2px #07070a, 0 0 0 3.5px var(--g1), 0 0 18px rgba(255, 205, 96, .4); }
body .fv-scope .festival-results__name {
  display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
  font: 700 1rem/1.25 var(--font-head); text-transform: uppercase; letter-spacing: .01em; color: #fff;
}
body .fv-scope .festival-results__nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
body .fv-scope .festival-results__name .code {
  flex: 0 0 auto; margin: 0; padding: 2px 7px; border-radius: 5px;
  font-size: .72em; font-weight: 800; color: var(--g1);
  border: 1px solid rgba(201, 154, 53, .5); background: rgba(201, 154, 53, .1);
}
body .fv-scope .festival-results__row--lead .festival-results__name .code { background: var(--metal); color: #1a1204; border-color: transparent; }
body .fv-scope .festival-results__row--lead .festival-results__nm,
body .fv-scope .festival-results__row--lead .festival-results__votes {
  background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent;
}
body .fv-scope .festival-results__song { color: var(--dim); }
body .fv-scope .festival-results__song::before { content: "♪"; color: var(--g1); margin-right: .35em; }
body .fv-scope .festival-results__bar { height: 7px; background: rgba(255, 255, 255, .07); }
body .fv-scope .festival-results__bar > div { background: linear-gradient(90deg, var(--g3), var(--g2) 40%, var(--g1) 80%, var(--g-hi)); }
body .fv-scope .festival-results__row--lead .festival-results__bar > div { box-shadow: 0 0 12px rgba(255, 205, 96, .5); }
body .fv-scope .festival-results__votes { font: 800 1.2rem/1.1 var(--font-head); }

/* [festival_participants] con el mismo lenguaje */
body .fv-scope .fv-card {
  border: 1px solid transparent; border-radius: 12px 28px 12px 28px;
  background: var(--panel) padding-box, linear-gradient(90deg, rgba(138, 106, 26, .7), rgba(245, 211, 122, .5), rgba(138, 106, 26, .7)) border-box;
}
body .fv-scope .fv-card__media { border-bottom: 1px solid var(--hair); }
body .fv-scope .fv-badge { background: var(--metal); color: #1a1204; border-radius: 6px; font-family: var(--font-head); }
body .fv-scope .fv-card__title { font-family: var(--font-head); text-transform: uppercase; color: #fff; }

@media (max-width: 600px) {
  body .fv-scope .fv-vote, body .fv-scope .festival-results { border-radius: 12px 26px 12px 26px; }
  body .fv-scope .fv-pick { grid-template-columns: repeat(auto-fit, minmax(140px, 180px)); justify-content: center; gap: 10px; }
  body .fv-scope .fv-opt__media { width: 84px; height: 84px; }
  body .fv-scope .fv-opt__card { padding: 16px 8px 14px; }
  body .fv-scope .fv-opt__name { font-size: .88rem; }
  body .fv-scope .festival-results img.thumb, body .fv-scope .festival-results__ph { width: 42px !important; height: 42px !important; }
  body .fv-scope .festival-results__name { font-size: .9rem; align-items: flex-start; }
  body .fv-scope .festival-results__nm { white-space: normal; overflow: visible; line-height: 1.2; }
  body .fv-scope .festival-results__song { white-space: normal; }
  /* La columna de nota no debe comerse el nombre: el desglose «J · P» baja de línea. */
  body .fv-scope .festival-results__score { min-width: 0; max-width: 72px; }
  body .fv-scope .festival-results__pct { white-space: normal; font-size: .72rem; line-height: 1.25; }
  body .fv-scope .festival-results__name { font-size: .82rem; }
  body .fv-scope .festival-results__row { gap: 10px; }
}

/* En la portada el ranking ya tiene su propio título de sección */
.home .festival-results > h3,
.home .festival-results > .fv-kicker { display: none; }

/* ============================================================ pie */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-top: clamp(48px, 6vw, 72px); margin-top: 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 40px; }
.site-footer p { color: var(--dim); font-size: .95rem; }
.logo-card { background: #fff; border-radius: 16px; padding: 14px 18px; width: 170px; margin-bottom: 1rem; }
.site-footer__title { font: 600 .78rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.site-footer__list a { color: var(--ink); display: inline-flex; align-items: center; gap: .5rem; }
.site-footer__list a:hover { color: var(--gold); }
.site-footer__bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 48px; padding-block: 22px; border-top: 1px solid var(--line);
  color: var(--dim); font-size: .88rem;
}
.site-footer__bottom a { color: var(--dim); }
.site-footer__bottom a:hover { color: var(--gold); }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ============================================================ movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
