/* eptemas · Navidad «Noche mágica de invierno» (final, 03/12/2026): cabecera azul de marca y CLS 0. Nieve y trineo: tema.js */
html.ept-navidad{--ept-barra-fondo:#b10f2b;--ept-barra-texto:#fff;--ept-barra-acento:#f4d35e;--nb-rojo:#c8102e;--nb-rojo2:#a30d25;--nb-oro:#f2c14e;
--nb-noche:linear-gradient(#081634,#0e275e 60%,#1b3c7c);
--nb-copos:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='40'><defs><path id='f' d='M0-6V6M-5.2-3l10.4 6M-5.2 3l10.4-6M-2-5l2 1.6 2-1.6M-2 5l2-1.6 2 1.6' fill='none' stroke='%23fff' stroke-linecap='round'/><path id='s' d='M0-3Q.4-.4 3 0 .4.4 0 3-.4.4-3 0-.4-.4 0-3z' fill='%23ffd76a'/></defs><use href='%23f' x='28' y='13' opacity='.5'/><use href='%23f' transform='translate(98 27) scale(.7)' opacity='.42'/><use href='%23f' transform='translate(172 14) scale(1.15)' opacity='.34'/><use href='%23s' x='62' y='22' opacity='.85'/><use href='%23s' transform='translate(138 11) scale(.7)' opacity='.75'/></svg>");
--nb-gorro:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 34'><defs><linearGradient id='g' x1='1' x2='0' y2='1'><stop offset='0' stop-color='%23f5506a'/><stop offset='.55' stop-color='%23d1172f'/><stop offset='1' stop-color='%238e091e'/></linearGradient></defs><path d='M6 25C7 14 15 5 25 5c6 0 10 5 11 11l-3 2c-1-4-3-6-5-6 2 4 3 8 3 13z' fill='url(%23g)'/><path d='M25 5c6 0 10 5 11 11l-3 2c-1-4-3-6-5-6-1-3-2-5-3-7z' fill='%237d0819' opacity='.45'/><g fill='%23fff' stroke='%23bfcde1' stroke-width='.7'><rect x='3' y='23' width='31' height='8' rx='4'/><circle cx='35' cy='18' r='4.5'/></g><path d='M7 24h0M13 23.5h0M19 23.7h0M25 23.4h0M30.5 24h0' stroke='%23fff' stroke-width='3.6' stroke-linecap='round'/></svg>");
--nb-lazo:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 20'><defs><linearGradient id='o' x2='0' y2='1'><stop offset='0' stop-color='%23ffeaa6'/><stop offset='1' stop-color='%23d29a2e'/></linearGradient></defs><g fill='url(%23o)' stroke='%2394660f' stroke-width='.7' stroke-linejoin='round'><path d='M12 10l-5 9 3-1 1 2 2-9zM14 10l5 9-3-1-1 2-2-9z'/><path d='M13 9C9 2 2 2 3 7s7 4 10 2zM13 9c4-7 11-7 10-2s-7 4-10 2z'/><circle cx='13' cy='9.2' r='2.4'/></g></svg>");
--nb-luces:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='16'><defs><path id='b' d='M0 0c-2 0-2.6 2.2-2.6 3.9 0 2 1.4 3.9 2.6 4.5 1.2-.6 2.6-2.5 2.6-4.5C2.6 2.2 2 0 0 0z' stroke-width='.6'/></defs><path d='M0 1.5Q30 7.5 60 1.5 90 7.5 120 1.5' fill='none' stroke='%232e6b48' stroke-width='1.4'/><use href='%23b' x='12' y='6' fill='%23ff3347' stroke='%23a8001a'/><use href='%23b' x='36' y='7' fill='%23ffc933' stroke='%23b07c00'/><use href='%23b' x='60' y='4.1' fill='%235fd0ff' stroke='%231b77b8'/><use href='%23b' x='84' y='7' fill='%2333df8a' stroke='%2311804a'/><use href='%23b' x='108' y='6' fill='%23fff1c2' stroke='%23c9a24a'/><path d='M10.5 3.4h3v2.8h-3zM34.5 4.4h3v2.8h-3zM58.5 1.5h3v2.8h-3zM82.5 4.4h3v2.8h-3zM106.5 3.4h3v2.8h-3z' fill='%233c5a46'/><path d='M11.1 7.8v1.8M35.1 8.8v1.8M59.1 5.9v1.8M83.1 8.8v1.8M107.1 7.8v1.8' stroke='%23fff' stroke-width='1.3' stroke-linecap='round' opacity='.8'/></svg>");
--nb-brilloA:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='16'><circle cx='12' cy='10.4' r='5.8' fill='%23ff3347' opacity='.38'/><circle cx='60' cy='8.5' r='5.8' fill='%235fd0ff' opacity='.38'/><circle cx='108' cy='10.4' r='5.8' fill='%23fff1c2' opacity='.38'/><path d='M11.4 9.6h0M59.4 7.7h0M107.4 9.6h0' stroke='%23fff' stroke-width='3' stroke-linecap='round' opacity='.9'/></svg>");
--nb-brilloB:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='16'><circle cx='36' cy='11.4' r='5.8' fill='%23ffc933' opacity='.38'/><circle cx='84' cy='11.4' r='5.8' fill='%2333df8a' opacity='.38'/><path d='M35.4 10.6h0M83.4 10.6h0' stroke='%23fff' stroke-width='3' stroke-linecap='round' opacity='.9'/></svg>");
--nb-banco:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='12'><defs><linearGradient id='g' x2='0' y2='1'><stop offset='.35' stop-color='%23fff'/><stop offset='1' stop-color='%23cddbef'/></linearGradient></defs><path d='M0 8C14 8 18 5 30 5S48 8 62 8 82 4 96 4 116 7 130 7 148 5 160 5 182 8 200 8V12H0z' fill='url(%23g)'/></svg>");
--nb-tarjeta:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='124' height='22'><defs><linearGradient id='g' x2='0' y2='1'><stop offset='.35' stop-color='%23fff'/><stop offset='1' stop-color='%23d6e4f6'/></linearGradient><path id='p' d='M2.4 18.5C1.6 12 3.5 6.5 9 4.6C12 3.8 15 4 18 4C21 4 25 1.5 31 1.5S40 4.2 44 4.2 53 2.8 57 2.8 67 4.5 71 4.5 81 1.2 86 1.2 102 4 106 4C109 4 112 3.8 115 4.6C120.5 6.5 122.4 12 121.6 18.5a1.6 1.6 0 0 1-3.2 0C118 14 113 13 106 13H92.3C90.7 13 90.6 15 90.6 16.3a1.6 1.6 0 0 1-3.2 0C87.4 15 87.3 13 85.7 13H53.5C52.3 13 52.2 14.2 52.2 15a1.2 1.2 0 0 1-2.4 0C49.8 14.2 49.7 13 48.5 13H18C11 13 6 14 5.6 18.5a1.6 1.6 0 0 1-3.2 0z'/></defs><use href='%23p' y='1.3' fill='%23c2d4ec'/><use href='%23p' fill='url(%23g)' stroke='%23b4c9e6' stroke-width='.8'/></svg>");
--nb-gancho:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='20' fill='none' stroke-linecap='round'><defs><linearGradient id='g' gradientUnits='userSpaceOnUse' spreadMethod='repeat' x1='9.89' x2='.84' y2='-3.48'><stop offset='.556' stop-color='%23c8102e'/><stop offset='.556' stop-color='%23fff'/></linearGradient><path id='p' d='M-1 4.5H8a5.5 5.5 0 0 1 0 11H5'/></defs><use href='%23p' stroke='%23c8102e99' stroke-width='9'/><use href='%23p' stroke='url(%23g)' stroke-width='6'/></svg>");
--nb-pie:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='19'><defs><path id='p' d='M0 0h120v4c-6 0-8 7-15 7s-7-4-13-4-9 9-16 9-8-6-14-6-9 3-15 3-6-7-13-7-8 6-14 6S6 4 0 4z'/></defs><use href='%23p' y='1' fill='%239fb7da'/><use href='%23p' fill='%23fff'/></svg>");
--nb-cielo:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='200' stroke-linecap='round'><path d='M169 42h0M278 28h0M113 13h0M127 27h0M67 61h0' stroke='%23fff' stroke-width='1.5' opacity='.7'/><path d='M206 170h0M191 153h0M48 115h0M286 112h0' stroke='%23fff' stroke-width='1.1' opacity='.5'/><path d='M28 22h0M33 133h0M218 21h0M34 148h0' stroke='%23ffe7a8' stroke-width='1.1' opacity='.5'/></svg>");
--nb-titila:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='220'><defs><path id='s' d='M0-4Q.5-.5 4 0 .5.5 0 4-.5.5-4 0-.5-.5 0-4z'/><use id='t' href='%23s' transform='scale(.6)'/></defs><use href='%23s' x='30' y='40' fill='%23fff'/><use href='%23t' x='120' y='18' fill='%23ffe7a8'/><use href='%23s' x='205' y='92' fill='%23fff'/><use href='%23t' x='78' y='150' fill='%23ffe7a8'/><use href='%23s' x='240' y='182' fill='%23fff'/></svg>");
--nb-luna:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='64'><defs><radialGradient id='h'><stop offset='.3' stop-color='%23fff2c2' stop-opacity='.55'/><stop offset='1' stop-color='%23fff2c2' stop-opacity='0'/></radialGradient></defs><circle cx='32' cy='32' r='32' fill='url(%23h)'/><path d='M31.2 16A16 16 0 1 0 46.5 38.8 13.7 13.7 0 0 1 31.2 16z' fill='%23fff3cc'/></svg>");
--nb-lejos:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='520' height='40'><path d='M-1 25H0C23 24 45 17 70 17S124 21 150 23S200 30 225 29S274 22 300 19S355 12 380 12S427 18 450 20S497 26 520 25H521V44H-1z' fill='%23294c8c' stroke='%23a9c2ec' stroke-opacity='.6' stroke-width='1.3'/></svg>");
--nb-cerca:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='700' height='40'><defs><linearGradient id='n' x2='0' y2='1'><stop offset='0' stop-color='%23f3f8fe'/><stop offset='1' stop-color='%23a9bfe0'/></linearGradient><radialGradient id='y'><stop offset='.2' stop-color='%23ffd76b' stop-opacity='.75'/><stop offset='1' stop-color='%23ffb02e' stop-opacity='0'/></radialGradient><g id='t'><path d='M0-34 6-23H3.5L9-14H5.5L12-4h-24l6.5-10H-9l5.5-9H-6z' fill='%230d3a2b'/><path d='M0-34 6-23H0zM0-24l9 10H0zM0-15l12 11H0z' fill='%231b5a43'/><path d='M-6-23q6 2.2 12 0M-9-14q9 2.6 18 0M-12-4q12 3 24 0' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round'/><path d='M0-34l-2.5 4.2h5z' fill='%23fff'/></g><use id='u' href='%23t' transform='scale(.8)'/><use id='v' href='%23t' transform='scale(.62)'/><g id='h'><path d='M5-19h3.4v7H5z' fill='%235e2b22'/><path d='M4.6-19.8h4.2v1.6H4.6z' fill='%23fff'/><path d='M-10-11h20V0h-20z'/><path d='M-12-11 0-22l12 11z' fill='%234b2a22'/><path d='M-13.2-10.4 0-23l13.2 12.6-1.8.9L0-19.6-11.4-9.5z' fill='%23fff'/><path d='M-2.4-7h4.8V0h-4.8z' fill='%234b2a22'/><path d='M-8.2-8.4h4.4V-4h-4.4zM3.8-8.4h4.4V-4H3.8z' fill='%23ffd56b'/><circle cx='-6' cy='-6.2' r='6' fill='url(%23y)'/><circle cx='6' cy='-6.2' r='6' fill='url(%23y)'/></g></defs><use href='%23h' x='150' y='31.1' fill='%23a1452f'/><use href='%23h' x='395' y='28' fill='%232f5f8f'/><use href='%23h' x='590' y='33' fill='%237a5230'/><use href='%23u' x='104' y='30.3'/><use href='%23u' x='122' y='30.9'/><use href='%23v' x='178' y='33.3'/><use href='%23u' x='262' y='34.9'/><use href='%23v' x='281' y='33.8'/><use href='%23u' x='420' y='29.5'/><use href='%23u' x='512' y='34'/><use href='%23v' x='531' y='34.9'/><use href='%23u' x='618' y='31.9'/><use href='%23v' x='676' y='33'/><g stroke-linecap='round' stroke-width='2.3'><path d='M259.6 18.9h0M263.6 28.5h0' stroke='%23ff3347'/><path d='M265.2 21.3h0M268.4 29.3h0' stroke='%23ffc933'/><path d='M258 26.9h0' stroke='%235fd0ff'/></g><path d='M262 4.1l1 2.2 2.4.3-1.8 1.6.5 2.4-2.1-1.2-2.1 1.2.5-2.4-1.8-1.6 2.4-.3z' fill='%23ffd54a' stroke='%23c48a10' stroke-width='.4'/><path d='M-1 31H0C25 31 53 28 80 28S133 29 160 30S213 33 240 33S293 30 320 29S373 26 400 26S453 29 480 30S535 33 560 33S607 29 630 29S675 31 700 31H701V44H-1z' fill='url(%23n)' stroke='%23fff' stroke-width='1.2'/></svg>")}
/* Cabecera */
html.ept-navidad #header .ept-barra{background:linear-gradient(90deg,#9c0d2566,#c8102e66 28% 72%,#9c0d2566),var(--nb-copos) 0 50%/240px 40px,linear-gradient(90deg,#9c0d25,var(--nb-rojo) 28% 72%,#9c0d25);box-shadow:inset 0 -2px var(--nb-oro)}
html.ept-navidad #header .header-nav{background:linear-gradient(#0b4029,#0e4d33);box-shadow:inset 0 -2px #b39f45}
html.ept-navidad .nb-cielo{position:absolute;z-index:0}
html.ept-navidad :is(.nb-cielo,.ept-nieve){opacity:0;transition:opacity 2s}
html.ept-navidad .ept-deco.is-on{opacity:1}
html.ept-navidad .nb-trineo{position:absolute;top:calc(50% - 15px);left:0;width:154px;height:29px;opacity:0;animation:nbTrineo 30s linear -5s infinite}
html.ept-navidad .nb-trineo svg{display:block;animation:nbBota 1.6s ease-in-out infinite alternate}
html.ept-navidad #desktop-header .col-header-center{background:var(--nb-copos) 0 50%/240px 40px}
html.ept-navidad #header #desktop_logo{position:relative}
html.ept-navidad #header #desktop_logo::before,html.ept-navidad #mobile-header .col-mobile-logo::before{content:"";position:absolute;left:0;top:-7px;width:25px;height:21px;pointer-events:none;transform:translateY(-2px) rotate(-8deg) scaleX(-1);background:var(--nb-gorro) center/contain no-repeat}
html.ept-navidad #mobile-header .col-mobile-logo::before{--g:min(100% - 1.25rem,672px);width:calc(var(--g)*.1);height:0;padding-top:calc(var(--g)*.085);top:2px;margin-top:calc(var(--g)*-.025);left:calc(max(.625rem,50% - 336px) + var(--g)*.006)}
/* «Elige Premium» = regalo */
html.ept-navidad #header #cbp-hrmenu-tab-5>a{color:#fff;background:repeating-linear-gradient(135deg,#00000014 0 7px,#0000 0 14px),var(--nb-rojo);box-shadow:inset 0 3px var(--nb-oro),inset 0 -3px var(--nb-oro)}
html.ept-navidad #header #cbp-hrmenu-tab-5>a:hover{color:#fff;background-color:var(--nb-rojo2)}
html.ept-navidad #header #cbp-hrmenu-tab-5>a::after{content:"";position:absolute;top:-9px;right:-6px;width:26px;height:20px;pointer-events:none;background:var(--nb-lazo) center/contain no-repeat;transform-origin:50% 60%;animation:var(--nb-q,nbLazo) 7s ease-in-out infinite}
@media (min-width:992px){
html.ept-navidad #header .ep-catbar{position:relative;background:var(--nb-luces) 0 0/120px 16px repeat-x,var(--nb-banco) 0 100%/200px 12px repeat-x,#0a2f87}
html.ept-navidad #header .ep-catbar::before,html.ept-navidad #header .ep-catbar::after{content:"";position:absolute;left:0;right:0;top:0;height:16px;pointer-events:none;background:var(--nb-brilloA) 0 0/120px 16px repeat-x;animation:var(--nb-q,nbLuz) 3.6s ease-in-out infinite}
html.ept-navidad #header .ep-catbar::after{background-image:var(--nb-brilloB);animation-delay:-1.8s}
/* destellos del pie */
html.ept-navidad #footer-container-main::before,html.ept-navidad #footer-container-main::after{content:"";position:absolute;bottom:46px;z-index:-1;pointer-events:none;background:var(--nb-titila) 0 0/300px 220px;animation:var(--nb-q,nbLuz) 4.4s ease-in-out infinite}
html.ept-navidad #footer-container-main::before{left:calc(50% - 205px);width:240px;height:120px}
html.ept-navidad #footer-container-main::after{left:0;right:0;top:22px;background-position:150px 40px;animation-delay:-2.2s;--m:linear-gradient(90deg,#000 calc(50% - 650px),#0000 0 calc(50% + 650px),#000 0);-webkit-mask:var(--m);mask:var(--m)}
}
/* Móvil y tableta: luces quietas en la cabecera fija */
@media (max-width:991.98px){
html.ept-navidad #mobile-header #mobile-header-sticky{background:var(--nb-brilloA),var(--nb-brilloB),var(--nb-luces) #0a2f87;background-position:0 100%;background-size:120px 16px;background-repeat:repeat-x}
}
/* Compra en rojo (la tienda usa !important); epsearch con sus estados */
html.ept-navidad :is(#wrapper .product-miniature :is(.add-to-cart,.btn-product-list),#product .product-actions .add-to-cart){background:var(--nb-rojo)!important;color:#fff!important}
html.ept-navidad :is(#wrapper .product-miniature :is(.add-to-cart,.btn-product-list),#product .product-actions .add-to-cart):hover{background:var(--nb-rojo2)!important;color:#fff!important}
html.ept-navidad :is(#wrapper,#epsearch-overlay) .epsearch-add:not(.is-cargando,.is-ok,.is-error){background:var(--nb-rojo);color:#fff}
html.ept-navidad :is(#wrapper,#epsearch-overlay) .epsearch-add:not(.is-cargando,.is-ok,.is-error):hover{background:var(--nb-rojo2)}
html.ept-navidad #wrapper .product-flags .product-flag:is(.discount,.on-sale){background:var(--nb-rojo);color:#fff;box-shadow:inset 0 0 0 1.5px var(--nb-oro)}
/* Bastón de caramelo; en la portada, con gancho */
html.ept-navidad #wrapper :is(.elementor-widget-heading .elementor-heading-title,.ep-sec-title,.ep-subcats__title,.elementor-widget-prestashop-widget-ProductsListTabs .nav-tabs .nav-link.active)::after{background:repeating-linear-gradient(-60deg,var(--nb-rojo) 0 5px,#fff 5px 9px);box-shadow:0 0 0 1px #c8102e99;transform:scaleY(1.5)}
html.ept-navidad body#index #wrapper :is(.elementor-heading-title.page-title,.ep-sec-title)::before{content:"";position:absolute;left:calc(50% + 25px);bottom:calc(.55rem - 13.5px);z-index:1;width:18px;height:20px;pointer-events:none;background:var(--nb-gancho)}
/* Bloques azules con estrellas */
html.ept-navidad body#index :is(.ep-deal,.ep-elige-dest){background:var(--nb-cielo) 0 0/300px 200px,linear-gradient(135deg,#0a2f87,#15439e)}
html.ept-navidad body#category #js-product-list-header h1.page-title{background:var(--nb-cielo) 0 0/300px 200px,linear-gradient(135deg,#0a2f87,#1a4ab8)}
/* Nieve en las tarjetas */
html.ept-navidad body#category .ep-subcats__card{position:relative}
html.ept-navidad :is(body#index .ep-cats-native .elementor-icon-box-wrapper,body#category .ep-subcats__card)::before{content:"";position:absolute;left:-3px;right:-3px;top:-9px;height:22px;border:solid #0000;border-width:0 18px;border-image:var(--nb-tarjeta) 0 18 fill round;pointer-events:none}
/* Pie de noche: todo detrás del texto */
html.ept-navidad #footer-container-main{position:relative;z-index:0;background:var(--nb-pie) 0 0/120px 19px repeat-x,var(--nb-cerca) 0 100%/700px 40px repeat-x,var(--nb-lejos) 0 100%/520px 40px repeat-x,var(--nb-luna) calc(50% - 170px) calc(100% - 62px)/64px no-repeat,var(--nb-cielo) 0 22px/300px 200px,var(--nb-noche)}
html.ept-navidad #footer .block-title{color:var(--nb-oro)}
/* Móvil: pie a la mitad; sin decoraciones = solo colores */
@media (max-width:767px){
html.ept-navidad #footer-container-main{background-size:120px 19px,350px 20px,260px 20px,0 0,300px 200px,auto}
html.ept-navidad.ept-sin-movil #footer-container-main{background-size:120px 19px,0 0,0 0,0 0,0 0,auto}
html.ept-navidad.ept-sin-movil #mobile-header #mobile-header-sticky{background:#0a2f87}
html.ept-navidad.ept-sin-movil{--nb-gorro:none;--nb-gancho:none;--nb-tarjeta:none}
}
/* Nieve que cae (tema.js) */
html.ept-navidad .ept-nieve i{position:absolute;top:-30px;animation:nbCae linear infinite}
html.ept-navidad .ept-nieve b{display:block;position:relative;height:100%;animation:nbVaiven ease-in-out infinite alternate}
html.ept-navidad .ept-nieve .c b{background:var(--nb-cristal) center/contain no-repeat}
html.ept-navidad .ept-nieve .b b{border-radius:50%;background:radial-gradient(circle at 38% 34%,#fff,#f1f6fd 40%,#b5cbe9 66%,#b5cbe900 72%)}
html.ept-navidad .ept-nieve .n b::after{content:"";position:absolute;inset:25%;border-radius:50%;background:radial-gradient(#fff 25%,#fff0 70%);animation:nbLuz 2.8s infinite}
html.ept-navidad .ept-deco.is-pausa *,html.ept-navidad .ept-deco.is-pausa b::after{animation-play-state:paused}
/* Animaciones y versión quieta */
@keyframes nbLuz{0%,100%{opacity:1}50%{opacity:.1}}
@keyframes nbTrineo{0%{transform:translateX(0);opacity:0}4%,30%{opacity:1}34%,100%{transform:translateX(var(--nb-d,600px));opacity:0}}
@keyframes nbBota{from{transform:translateY(-1.5px)}to{transform:translateY(1.5px)}}
@keyframes nbLazo{0%,76%,100%{transform:none}84%{transform:rotate(-8deg)}92%{transform:rotate(5deg)}}
@keyframes nbCae{to{transform:translateY(calc(100vh + 60px))}}
@keyframes nbVaiven{from{transform:translateX(calc(var(--a,8px)*-1)) rotate(-28deg)}to{transform:translateX(var(--a,8px)) rotate(28deg)}}
html.ept-navidad.ept-sin-anim{--nb-q:none}
