/* CubanDjsPro Radio — intro aniversario 3 años (opción B).
   Se activa con html.aniv-b desde aniv.js. Para quitarlo: window.CDJ_ANIV.intro=false. */

:root{
  --aniv-gold:#e8c872;
  --aniv-gold-hi:#fff4c2;
  --aniv-gold-mid:#d4af37;
  --aniv-gold-dim:#8a6a12;
  --aniv-ink:#1a1000;
  --aniv-ribbon-h:46px;
}

html.aniv-shot #loader,
html.aniv-shot #curtain{display:none!important;visibility:hidden!important}
html.aniv-shot #cur,
html.aniv-shot #cdot,
html.aniv-shot #avisos-popup{display:none!important}

/* —— A: cinta superior —— */
#aniv-ribbon{
  position:fixed;top:0;left:0;right:0;z-index:90;
  display:none;
  align-items:center;justify-content:center;
  min-height:var(--aniv-ribbon-h);
  padding:8px 16px;
  box-sizing:border-box;
  background:
    linear-gradient(180deg,rgba(42,16,8,.98),rgba(10,5,5,.98));
  border-top:2px solid var(--aniv-gold-mid);
  border-bottom:1px solid rgba(212,175,55,.5);
  box-shadow:0 6px 20px rgba(0,0,0,.45),0 0 24px rgba(212,175,55,.18),inset 0 -1px 0 rgba(255,26,46,.28);
  color:#f3e0a0;
  font:600 13px/1.35 Inter,system-ui,sans-serif;
  letter-spacing:.035em;
  text-align:center;
}
#aniv-ribbon .aniv-ribbon-txt{
  max-width:92vw;
  text-shadow:0 0 14px rgba(212,175,55,.35);
}
html.aniv-a #aniv-ribbon,
html.aniv-ac #aniv-ribbon{display:flex}
html.aniv-a header,
html.aniv-ac header{top:var(--aniv-ribbon-h)}
html.aniv-a #progress,
html.aniv-ac #progress{top:var(--aniv-ribbon-h)}

@media(max-width:860px){
  :root{--aniv-ribbon-h:52px}
  #aniv-ribbon{font-size:12px;padding:7px 12px;letter-spacing:.02em}
}

/* —— C: sello en el logo —— */
.brand-logo-wrap{position:relative;display:inline-flex;align-items:center;justify-content:center}
html.aniv-c .brand-logo-wrap,
html.aniv-ac .brand-logo-wrap{margin-right:10px}
.aniv-seal{
  display:none;
  position:absolute;
  right:-14px;top:-12px;
  width:42px;height:42px;
  border-radius:50%;
  background:radial-gradient(circle at 32% 28%,#fff4c2,#e8c872 40%,#c9a227 66%,#7a5910 100%);
  box-shadow:0 0 0 1.5px #5a4010,0 0 0 3px #e8c872,0 2px 10px rgba(212,175,55,.7);
  align-items:center;justify-content:center;
  transform:rotate(-14deg);
  z-index:3;
  pointer-events:none;
}
.aniv-seal-inner{
  width:32px;height:32px;
  border-radius:50%;
  border:1px dashed rgba(90,50,0,.45);
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  color:var(--aniv-ink);
  line-height:1;
}
.aniv-seal b{font-family:var(--disp),Anton,Impact,sans-serif;font-size:16px;font-weight:400;margin-top:1px}
.aniv-seal small{font-family:Inter,system-ui,sans-serif;font-size:6.5px;font-weight:800;letter-spacing:.04em;margin-top:-1px}
html.aniv-c .aniv-seal,
html.aniv-ac .aniv-seal{display:flex}
html.aniv-c header,
html.aniv-ac header{padding-top:16px}
@media(min-width:861px){
  .aniv-seal{width:38px;height:38px;right:-12px;top:-10px}
  .aniv-seal-inner{width:29px;height:29px}
  .aniv-seal b{font-size:14px}
  .aniv-seal small{font-size:6px}
  html.aniv-c header nav,
  html.aniv-ac header nav,
  html.aniv-a header nav{
    display:flex;flex-wrap:nowrap;align-items:center;white-space:nowrap
  }
  html.aniv-c header nav a,
  html.aniv-ac header nav a{margin:0 8px;font-size:13px}
}

/* —— B: intro 3 AÑOS + confeti —— */
#aniv-intro{
  display:none;
  position:fixed;
  top:0;left:0;right:0;
  bottom:88px;
  z-index:84;
  align-items:center;justify-content:center;
  background:radial-gradient(ellipse at center,rgba(22,10,0,.5) 0%,rgba(5,5,5,.78) 72%);
  pointer-events:none;
  opacity:0;
}
html.aniv-b #aniv-intro{display:flex}
#aniv-intro.is-on{animation:anivIntroIn .45s ease-out forwards}
#aniv-intro.is-out{animation:anivIntroOut .5s ease-in forwards}
@keyframes anivIntroIn{from{opacity:0}to{opacity:1}}
@keyframes anivIntroOut{from{opacity:1}to{opacity:0}}

.aniv-confetti{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.aniv-piece{
  position:absolute;
  top:-8%;
  width:8px;height:12px;
  border-radius:1px;
  background:var(--aniv-gold-mid);
  opacity:.95;
  animation:anivFall 2.15s linear infinite;
  will-change:transform;
}
.aniv-piece.round{width:7px;height:7px;border-radius:50%}
.aniv-piece.thin{width:4px;height:14px;border-radius:2px}
@keyframes anivFall{
  0%{transform:translate3d(0,-8vh,0) rotate(0deg);opacity:1}
  100%{transform:translate3d(var(--dx,12px),95vh,0) rotate(560deg);opacity:.7}
}

.aniv-intro-inner{position:relative;z-index:2;text-align:center;padding:0 16px}
.aniv-intro-inner::before{
  content:"";
  position:absolute;
  left:50%;top:46%;
  width:min(70vw,420px);height:min(70vw,420px);
  transform:translate(-50%,-58%);
  border-radius:50%;
  background:radial-gradient(circle,rgba(212,175,55,.32) 0%,rgba(212,175,55,.08) 42%,transparent 70%);
  pointer-events:none;z-index:-1;
}
.aniv-3{
  display:block;
  font-family:var(--disp),Anton,Impact,sans-serif;
  font-weight:400;
  font-size:clamp(200px,62vw,420px);
  line-height:.75;
  background:linear-gradient(180deg,#fff6c8 0%,#f3d27a 28%,#d4af37 62%,#8a6209 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 0 24px rgba(212,175,55,.55)) drop-shadow(0 10px 28px rgba(0,0,0,.5));
  animation:aniv3pop .7s cubic-bezier(.2,1.4,.3,1) both;
}
.aniv-anos{
  display:block;
  font-family:var(--disp),Anton,Impact,sans-serif;
  font-weight:400;
  font-size:clamp(28px,8vw,52px);
  letter-spacing:.32em;
  text-indent:.32em;
  color:var(--aniv-gold);
  text-shadow:0 0 18px rgba(212,175,55,.45);
  margin-top:2px;
  animation:anivFadeUp .55s ease-out .25s both;
}
.aniv-sub{
  display:block;
  margin-top:10px;
  font-family:Inter,system-ui,sans-serif;
  font-size:12px;
  font-weight:600;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:#f4f1f1;
  opacity:.82;
  animation:anivFadeUp .55s ease-out .4s both;
}
@keyframes aniv3pop{
  from{transform:scale(.42) rotate(-8deg);opacity:0}
  to{transform:scale(1) rotate(0);opacity:1}
}
@keyframes anivFadeUp{
  from{transform:translateY(14px);opacity:0}
  to{transform:translateY(0);opacity:1}
}

/* captura a mitad de la animación */
html.aniv-shot #aniv-intro{
  animation:none!important;
  opacity:1!important;
}
html.aniv-shot .aniv-3,
html.aniv-shot .aniv-anos,
html.aniv-shot .aniv-sub{
  animation:none!important;
  opacity:1!important;
  transform:none!important;
}
html.aniv-shot .aniv-anos{opacity:1!important}
html.aniv-shot .aniv-sub{opacity:.82!important}
html.aniv-shot .aniv-piece{animation:none!important}

@media(prefers-reduced-motion:reduce){
  #aniv-intro, .aniv-3, .aniv-anos, .aniv-sub, .aniv-piece{animation:none!important}
  #aniv-intro.is-on{opacity:1}
}
