/* Temáticas festivas - Central de Medios (solo se carga con una temática activa) */

/* ---------- Encabezado ---------- */
html[class*="cdm-fiesta-"] #mt-header > *:not(#cdm-fiesta){z-index:8}
@media (min-width:901px){html[class*="cdm-fiesta-"] #mt-header .mt-header-logo{position:relative}}
html[class*="cdm-fiesta-"] #mt-header .mt-header-actions{position:relative}
#cdm-fiesta{position:absolute;left:0;right:0;top:0;height:0;overflow:visible;overflow-x:clip;pointer-events:none;z-index:6}
#cdm-fiesta .cdmf-guirnalda{position:absolute;left:0;right:0;top:-9px;height:52px;background-repeat:repeat-x;background-position:0 0;background-size:auto 52px}
#cdm-fiesta .cdmf-adorno{position:absolute;top:14px;transform-origin:50% 0;will-change:transform}
#cdm-fiesta .cdmf-adorno > i{position:absolute;left:50%;top:0;width:1px;height:var(--h);margin-left:-.5px}
#cdm-fiesta .cdmf-adorno img,#cdm-fiesta .cdmf-adorno .cdmf-extra{position:absolute;top:var(--h);left:50%;transform:translateX(-50%);display:block;
  filter:drop-shadow(0 4px 3px rgba(0,0,0,.45))}
#cdm-fiesta .cdmf-fijo{position:absolute;top:0}
#cdm-fiesta .cdmf-mono{position:absolute;top:2px;width:46px;height:34px;transform:translateX(-50%);filter:drop-shadow(0 3px 2px rgba(0,0,0,.5))}
#cdm-fiesta .cdmf-mascara{width:48px;height:31px}
#cdm-fiesta .cdmf-murcielago{width:46px;height:23px;animation:cdmf-aleteo .32s ease-in-out var(--d) infinite alternate}
@keyframes cdmf-aleteo{from{transform:translateX(-50%) scaleY(1)}to{transform:translateX(-50%) scaleY(.55)}}
#cdm-fiesta .cdmf-arana img{animation:cdmf-sube 5s ease-in-out var(--d) infinite alternate}
@keyframes cdmf-sube{from{transform:translate(-50%,0)}to{transform:translate(-50%,-10px)}}

/* ---------- Pie fijo ---------- */
#cdmf-pie{position:absolute;left:0;right:0;top:-22px;height:40px;pointer-events:none;z-index:1;
  background-repeat:repeat-x;background-position:0 0;background-size:auto 40px;transform:scaleY(-1)}
.menu-inferior > *:not(#cdmf-pie){z-index:2}
.menu-inferior > .boton-menu-fijo{position:relative}

/* ---------- Partículas (nieve, confeti, pétalos, hojas): solo CSS ---------- */
html.cdmf-con-nieve #ltv-player-wrap{z-index:3}
html.cdmf-con-nieve #cdm-tab-c,html.cdmf-con-nieve #cdm-tab-r{position:relative;z-index:3}
#cdmf-copos{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:2}
.cdmf-nieve-rep{position:absolute;inset:0;overflow:hidden;z-index:5;pointer-events:none;display:none}
#ltv-player-wrap:has(#ltv-status-badge.st-connecting) .cdmf-nieve-rep,
#ltv-player-wrap:has(#ltv-placeholder:not([style*="none"])) .cdmf-nieve-rep{display:block}
.cdmf-copo{position:absolute;top:-30px;left:var(--x);animation:cdmf-cae var(--t) linear var(--r) infinite;will-change:transform}
.cdmf-nieve-rep .cdmf-copo{animation-name:cdmf-cae-rep}
.cdmf-copo i{display:block;width:var(--s);height:var(--s);opacity:var(--o);
  animation:cdmf-vaiven var(--v) ease-in-out var(--r) infinite alternate;will-change:transform;
  background:radial-gradient(circle,#fff 0 35%,rgba(255,255,255,.55) 55%,transparent 72%)}
.cdmf-copo.cristal i{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24'%3E%3Cg stroke='%23fff' stroke-width='1.6' stroke-linecap='round' fill='none'%3E%3Cg id='b'%3E%3Cpath d='M0-10V10M0-6l-3-3M0-6l3-3M0 6l-3 3M0 6l3 3'/%3E%3C/g%3E%3Cuse href='%23b' transform='rotate(60)'/%3E%3Cuse href='%23b' transform='rotate(120)'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
  filter:drop-shadow(0 0 1.5px rgba(255,255,255,.6))}
.cdmf-copo.confeti i{height:calc(var(--s) * .5);box-shadow:inset 0 0 0 1px rgba(255,255,255,.25);border-radius:1px;background:var(--c);animation-name:cdmf-giro}
.cdmf-copo.petalo i{height:calc(var(--s) * .8);border-radius:80% 0 80% 0;
  background:radial-gradient(ellipse at 30% 25%,rgba(255,255,255,.45),transparent 55%),var(--c);animation-name:cdmf-giro-suave}
.cdmf-copo.hoja i{animation-name:cdmf-giro-suave;background:center/contain no-repeat}
.cdmf-copo.hoja.h1 i{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1l2 5 4-2-1 5 5 1-4 3 2 4-5-1-1 5-2-4-2 4-1-5-5 1 2-4-4-3 5-1-1-5 4 2z' fill='%23d9661a'/%3E%3Cpath d='M12 6v17' stroke='%23933c0c' stroke-width='1'/%3E%3C/svg%3E")}
.cdmf-copo.hoja.h2 i{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1l2 5 4-2-1 5 5 1-4 3 2 4-5-1-1 5-2-4-2 4-1-5-5 1 2-4-4-3 5-1-1-5 4 2z' fill='%23a8320f'/%3E%3Cpath d='M12 6v17' stroke='%23601a06' stroke-width='1'/%3E%3C/svg%3E")}
.cdmf-copo.hoja.h3 i{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c5 3 8 8 6 14-2 4-5 6-6 7-1-1-4-3-6-7C4 10 7 5 12 2z' fill='%23e8a21f'/%3E%3Cpath d='M12 4v19' stroke='%23946210' stroke-width='1'/%3E%3C/svg%3E")}
@keyframes cdmf-cae{to{transform:translate3d(0,calc(100vh + 60px),0)}}
@keyframes cdmf-cae-rep{to{transform:translate3d(0,var(--alto,600px),0)}}
@keyframes cdmf-vaiven{from{transform:translate3d(calc(var(--a) * -1),0,0) rotate(-25deg)}to{transform:translate3d(var(--a),0,0) rotate(25deg)}}
@keyframes cdmf-giro{from{transform:translate3d(calc(var(--a) * -1),0,0) rotate3d(1,.4,.2,0deg)}to{transform:translate3d(var(--a),0,0) rotate3d(1,.4,.2,540deg)}}
@keyframes cdmf-giro-suave{from{transform:translate3d(calc(var(--a) * -1),0,0) rotate(-40deg) rotateY(0deg)}to{transform:translate3d(var(--a),0,0) rotate(40deg) rotateY(160deg)}}

/* ---------- Cada temática ---------- */
html.cdm-fiesta-navidad #cdm-fiesta .cdmf-guirnalda,html.cdm-fiesta-navidad #cdmf-pie{background-image:url(navidad/guirnalda.webp)}
html.cdm-fiesta-navidad #cdm-fiesta .cdmf-adorno > i{background:linear-gradient(#f3d27a,#b8902f)}
html.cdm-fiesta-navidad.cdmf-con-reproductor #ltv-player-wrap{box-shadow:0 0 0 1px rgba(214,170,80,.45),0 0 22px rgba(200,30,40,.30),0 10px 30px rgba(0,0,0,.5)}
html.cdm-fiesta-anionuevo #cdm-fiesta .cdmf-guirnalda,html.cdm-fiesta-anionuevo #cdmf-pie{background-image:url(anionuevo/guirnalda.webp)}
html.cdm-fiesta-anionuevo #cdm-fiesta .cdmf-adorno > i{background:linear-gradient(#fff1b0,#c9a227)}
html.cdm-fiesta-anionuevo.cdmf-con-reproductor #ltv-player-wrap{box-shadow:0 0 0 1px rgba(240,200,90,.55),0 0 24px rgba(255,210,90,.30),0 10px 30px rgba(0,0,0,.5)}
html.cdm-fiesta-valentin #cdm-fiesta .cdmf-guirnalda,html.cdm-fiesta-valentin #cdmf-pie{background-image:url(valentin/guirnalda.webp)}
html.cdm-fiesta-valentin #cdm-fiesta .cdmf-adorno > i{background:linear-gradient(#ffb3cc,#e0245e)}
html.cdm-fiesta-valentin.cdmf-con-reproductor #ltv-player-wrap{box-shadow:0 0 0 1px rgba(255,120,160,.5),0 0 24px rgba(230,30,90,.32),0 10px 30px rgba(0,0,0,.5)}
html.cdm-fiesta-carnaval #cdm-fiesta .cdmf-guirnalda,html.cdm-fiesta-carnaval #cdmf-pie{background-image:url(carnaval/guirnalda.webp)}
html.cdm-fiesta-carnaval #cdm-fiesta .cdmf-adorno > i{background:linear-gradient(#ffe38a,#c9a227)}
html.cdm-fiesta-carnaval.cdmf-con-reproductor #ltv-player-wrap{box-shadow:0 0 0 1px rgba(255,210,60,.5),0 0 18px rgba(150,60,210,.35),0 0 30px rgba(20,170,110,.2),0 10px 30px rgba(0,0,0,.5)}
html.cdm-fiesta-pascua #cdm-fiesta .cdmf-guirnalda,html.cdm-fiesta-pascua #cdmf-pie{background-image:url(pascua/guirnalda.webp)}
html.cdm-fiesta-pascua #cdm-fiesta .cdmf-adorno > i{background:linear-gradient(#fff3b0,#e8c46a)}
html.cdm-fiesta-pascua.cdmf-con-reproductor #ltv-player-wrap{box-shadow:0 0 0 1px rgba(200,230,160,.55),0 0 22px rgba(255,200,230,.30),0 10px 30px rgba(0,0,0,.5)}
html.cdm-fiesta-halloween #cdm-fiesta .cdmf-guirnalda,html.cdm-fiesta-halloween #cdmf-pie{background-image:url(halloween/guirnalda.webp)}
html.cdm-fiesta-halloween #cdm-fiesta .cdmf-adorno > i{background:linear-gradient(rgba(235,235,235,.75),rgba(200,200,200,.45))}
html.cdm-fiesta-halloween.cdmf-con-reproductor #ltv-player-wrap{box-shadow:0 0 0 1px rgba(255,120,20,.5),0 0 24px rgba(255,110,0,.30),0 0 34px rgba(120,40,180,.25),0 10px 30px rgba(0,0,0,.5)}
html.cdm-fiesta-carnaval #cdm-fiesta .cdmf-guirnalda{height:84px;background-size:auto 84px;top:-6px}
html.cdm-fiesta-carnaval #cdm-fiesta .cdmf-adorno{top:22px}
html.cdm-fiesta-carnaval #cdmf-pie{transform:none;top:-10px;height:64px;background-size:auto 64px}
html.cdm-fiesta-valentin #cdm-fiesta .cdmf-guirnalda{height:62px;background-size:auto 62px;top:-10px}

@media (max-width:700px){
  #cdm-fiesta .cdmf-guirnalda{height:40px;background-size:auto 40px;top:-12px}
}
@media (prefers-reduced-motion:reduce){#cdmf-copos,.cdmf-nieve-rep{display:none!important}#cdm-fiesta *{animation:none!important}}
:fullscreen #cdm-fiesta{display:none}
