/*
 * DS Navidad: noche azul de la marca, luces de alumbrado, rojo y dorado.
 * Todo cuelga de body.ds-nv, así que desaparece al desactivar el plugin.
 */
.ds-nv {
	--nv-noche: #002f47;
	--nv-noche2: #001c2c;
	--nv-rojo: #c8142f;
	--nv-vino: #8d0c20;
	--nv-oro: #f6b93b;
	--nv-oro2: #ffdf8a;
	--nv-pino: #1f9d63;
	--nv-cian: #05acc6;
}
.ds-nv ::selection { background: var(--nv-rojo); color: #fff; }

/* ---------- Barra superior ---------- */
.ds-nv-barra { position: relative; z-index: 400; background: linear-gradient(90deg, var(--nv-vino), var(--nv-rojo) 50%, var(--nv-vino)); color: #fff; overflow: hidden; }
.ds-nv-barra::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--nv-oro), var(--nv-oro2), var(--nv-oro)); }
.ds-nv-barra[hidden] { display: none; }
.ds-nv-barra-in { position: relative; max-width: 1222px; min-height: 46px; margin: 0 auto; padding: 8px 46px 10px 15px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 10px 22px; }
.ds-nv-marca { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; line-height: 1; white-space: nowrap; }
.ds-nv-marca svg { width: 20px; height: 20px; flex: none; animation: ds-nv-pulso 3.6s ease-in-out infinite; }
.ds-nv-texto { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; white-space: nowrap; }
.ds-nv-reloj { display: inline-flex; gap: 4px; font-variant-numeric: tabular-nums; }
.ds-nv-reloj[hidden], .ds-nv-novena[hidden] { display: none; }
.ds-nv-u { display: inline-flex; align-items: baseline; gap: 2px; padding: 4px 6px 3px; border-radius: 5px; background: rgba(0, 0, 0, .28); line-height: 1; }
.ds-nv-u b { min-width: 2ch; font-size: 15px; font-weight: 700; text-align: center; }
.ds-nv-u i { font-style: normal; font-size: 11px; color: var(--nv-oro2); }
.ds-nv-novena { display: inline-flex; gap: 5px; }
.ds-nv-novena span { width: 9px; height: 13px; border-radius: 50% 50% 46% 46%; background: rgba(0, 0, 0, .32); }
.ds-nv-novena span.on { background: var(--nv-oro2); box-shadow: 0 0 8px 1px var(--nv-oro); }
.ds-nv .ds-nv-cta { padding: 8px 15px; border-radius: 30px; background: var(--nv-oro); color: #3a1d00; font-size: 12px; font-weight: 700; line-height: 1.2; white-space: nowrap; text-decoration: none; transition: background-color .2s, transform .2s; }
.ds-nv .ds-nv-cta:hover, .ds-nv .ds-nv-cta:focus-visible { background: var(--nv-oro2); color: #3a1d00; transform: translateY(-1px); }
.ds-nv .ds-nv-cerrar { position: absolute; right: 8px; top: 50%; width: 30px; height: 30px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 20px; line-height: 30px; cursor: pointer; transform: translateY(-50%); box-shadow: none; }
.ds-nv .ds-nv-cerrar:hover, .ds-nv .ds-nv-cerrar:focus-visible { background: rgba(0, 0, 0, .25); }

/* Woodmart (encabezado fijo «real») es absolute top:0: sin esto taparía la barra. */
.ds-nv .whb-header { position: relative; }

/*
 * Menú. Woodmart pinta .whb-color-dark:not(.whb-with-bg) de blanco con la misma fuerza que «.ds-x .whb-header-bottom»
 * y se carga después; por eso aquí se suben niveles (.whb-header .whb-row…).
 */
@media (min-width: 1025px) {
	.ds-nv .whb-header .whb-row.whb-header-bottom { background: linear-gradient(var(--nv-noche), var(--nv-noche2)); position: relative; }
	.ds-nv .whb-header .whb-header-bottom .wd-nav-main > li > a { color: #fff; }
	.ds-nv .whb-header .whb-header-bottom .wd-nav-main > li:hover > a, .ds-nv .whb-header .whb-header-bottom .wd-nav-main > li > a:focus-visible { color: var(--nv-oro2); }
}
.ds-nv .whb-header .whb-general-header { position: relative; }

/* ---------- Alumbrado: luces que cuelgan del encabezado ---------- */
.ds-nv-luces { position: absolute; left: 0; right: 0; top: 100%; height: 58px; overflow: hidden; pointer-events: none; z-index: 1; }
.ds-nv-luces svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ds-nv-luces .cable { fill: none; stroke: #3f8f72; stroke-width: 2; }
.ds-nv-luces .halo { opacity: .22; animation: ds-nv-titila var(--d, 4s) ease-in-out var(--r, 0s) infinite; }
.ds-nv-luces .on .halo { animation: none; opacity: .75; }
.ds-nv .whb-sticked .ds-nv-luces { display: none; }

/* ---------- Tarjetas de producto ---------- */
.ds-nv .wd-product .product-wrapper { position: relative; transition: border-color .25s, box-shadow .25s; }
.ds-nv .wd-product .product-wrapper::before { content: ""; position: absolute; z-index: 2; left: -1px; right: -1px; top: -1px; height: 20px; border-radius: 8px 8px 0 0; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='20'%3E%3Cpath d='M0 0H160V9C150 15 140 8 130 9S112 19 102 12 84 7 74 11 56 18 46 10 24 8 14 13 5 11 0 9Z' fill='%23e2f3fa'/%3E%3Cpath d='M160 9C150 15 140 8 130 9S112 19 102 12 84 7 74 11 56 18 46 10 24 8 14 13 5 11 0 9' fill='none' stroke='%23a9d5e6' stroke-width='1.4'/%3E%3C/svg%3E") repeat-x 0 0; }
.ds-nv .wd-product:hover .product-wrapper { border-color: var(--nv-oro); box-shadow: 0 12px 28px -10px rgba(0, 47, 71, .5), 0 0 0 1px var(--nv-oro); }

/* Precio: píldora azul noche con aro dorado y un destello de vez en cuando. */
.ds-nv .wd-product .price ins .amount, .ds-nv .wd-product .price > .amount, .ds-nv .entry-summary .price ins .amount, .ds-nv .entry-summary .price > .amount { position: relative; overflow: hidden; isolation: isolate; background-color: var(--nv-noche); color: #fff; box-shadow: 0 0 0 2px var(--nv-oro); }
.ds-nv .wd-product .price ins .amount::after, .ds-nv .entry-summary .price ins .amount::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 223, 138, .5), transparent); transform: translateX(-160%); animation: ds-nv-brillo 7s ease-in-out infinite; pointer-events: none; }
.ds-nv .wd-product:nth-child(3n+2) .price .amount::after { animation-delay: 2.2s; }
.ds-nv .wd-product:nth-child(3n) .price .amount::after { animation-delay: 4.4s; }

/* Descuento: una bola de Navidad colgada, que se mece al pasar el ratón. */
.ds-nv .product-labels { overflow: visible; }
.ds-nv .product-labels .onsale { position: relative; overflow: visible !important; margin-top: 12px; background: radial-gradient(circle at 34% 28%, #ff8b8f 0, #e0203c 26%, var(--nv-rojo) 55%, var(--nv-vino) 100%) !important; color: #fff !important; font-weight: 700; text-shadow: 0 1px 2px rgba(60, 0, 10, .6) !important; box-shadow: 0 6px 12px -4px rgba(141, 12, 32, .6); transform-origin: 50% -14px; }
.ds-nv .product-labels .onsale::before { content: ""; position: absolute; left: 50%; top: -7px; width: 18px; height: 9px; margin-left: -9px; border-radius: 3px 3px 1px 1px; background: linear-gradient(90deg, #b87f14, var(--nv-oro2) 45%, #c98e1e); }
.ds-nv .product-labels .onsale::after { content: ""; position: absolute; left: 50%; top: -15px; width: 9px; height: 9px; margin-left: -4.5px; box-sizing: border-box; border: 2px solid #c98e1e; border-radius: 50%; }
.ds-nv .wd-product:hover .onsale { animation: ds-nv-mece 1.3s ease-in-out; }

/* ---------- Ladera de Medellín sobre el pie ---------- */
.ds-nv-ladera { position: relative; height: 190px; margin-top: 40px; overflow: hidden; background: linear-gradient(#fff 0, #cfe8f1 34%, #5a93ad 72%, #1d5873 100%); }
.ds-nv-ladera svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ds-nv-ladera .luz { animation: ds-nv-titila2 var(--d, 5s) ease-in-out var(--r, 0s) infinite; }
.ds-nv-ladera .llama { transform-box: fill-box; transform-origin: 50% 100%; animation: ds-nv-llama 1.8s ease-in-out var(--r, 0s) infinite alternate; }
.ds-nv-ladera .velas { display: none; }
.ds-nv-velitas .ds-nv-ladera .velas { display: block; }
.ds-nv-velitas .ds-nv-ladera, .ds-nv-ano .ds-nv-ladera { background: linear-gradient(#fff 0, #7ba6bb 16%, #123f58 58%, #001c2c 100%); }
.ds-nv-ladera .fuego { display: none; }
.ds-nv-ano .ds-nv-ladera .fuego { display: block; }
.ds-nv-ladera .fuego path { stroke-dasharray: 26 60; animation: ds-nv-fuego 4.5s ease-out var(--r, 0s) infinite both; }

/* ---------- Capa de efectos (no recibe clics) ---------- */
.ds-nv-capa { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 2147482000; /* debajo del panel de DS Cotizador */ }
.ds-nv-copo { position: absolute; top: -20px; width: var(--t, 8px); height: var(--t, 8px); border-radius: 50%; background: #f4fbff; box-shadow: 0 0 0 1px rgba(90, 160, 190, .45), 0 1px 4px rgba(0, 60, 90, .25); opacity: 0; animation: ds-nv-nieva var(--dur, 8s) linear var(--ret, 0s) forwards; }
.ds-nv-estrella { position: absolute; left: -220px; top: 12vh; width: 210px; height: 30px; animation: ds-nv-cruza 3.4s cubic-bezier(.4, .1, .6, 1) forwards; }
.ds-nv-chispa { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; background: var(--c); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: ds-nv-estalla .9s ease-out forwards; }
.ds-nv-regalo { position: absolute; left: 0; top: 0; width: 40px; height: 40px; margin: -20px 0 0 -20px; }
.ds-nv-voltio { position: absolute; right: -8px; bottom: 120px; width: 150px; height: 190px; transform: translateX(120%) rotate(14deg); animation: ds-nv-asoma 8s cubic-bezier(.3, .8, .3, 1) forwards; }
.ds-nv-voltio .ojo { transform-box: fill-box; transform-origin: 50% 50%; animation: ds-nv-parpadea 3.2s infinite; }
.ds-nv-voltio .brazo { transform-box: view-box; transform-origin: 52px 142px; animation: ds-nv-saluda .7s ease-in-out infinite alternate; }

@keyframes ds-nv-pulso { 50% { transform: scale(1.16) rotate(12deg); } }
@keyframes ds-nv-titila { 0%, 100% { opacity: .15; } 50% { opacity: .55; } }
@keyframes ds-nv-titila2 { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes ds-nv-llama { from { transform: scale(.9, .92) rotate(-3deg); } to { transform: scale(1.05, 1.1) rotate(3deg); } }
@keyframes ds-nv-brillo { 0%, 72% { transform: translateX(-160%); } 100% { transform: translateX(320%); } }
@keyframes ds-nv-mece { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(12deg); } 45% { transform: rotate(-9deg); } 70% { transform: rotate(5deg); } 88% { transform: rotate(-2deg); } }
@keyframes ds-nv-fuego { 0% { stroke-dashoffset: 26; opacity: 0; } 8% { opacity: 1; } 45% { stroke-dashoffset: -30; opacity: .9; } 60%, 100% { stroke-dashoffset: -60; opacity: 0; } }
@keyframes ds-nv-nieva { 0% { opacity: 0; transform: translate3d(0, 0, 0); } 8%, 82% { opacity: .95; } 50% { transform: translate3d(var(--vx), 50vh, 0); } 100% { opacity: 0; transform: translate3d(var(--dx), 104vh, 0); } }
@keyframes ds-nv-cruza { 0% { transform: translate3d(0, 0, 0) rotate(7deg); opacity: 0; } 12%, 85% { opacity: 1; } 100% { transform: translate3d(calc(100vw + 460px), 20vh, 0) rotate(13deg); opacity: 0; } }
@keyframes ds-nv-estalla { from { transform: scale(1.3); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) rotate(140deg) scale(.3); opacity: 0; } }
@keyframes ds-nv-asoma { 0% { transform: translateX(120%) rotate(14deg); } 12%, 86% { transform: translateX(18%) rotate(-8deg); } 100% { transform: translateX(120%) rotate(14deg); } }
@keyframes ds-nv-parpadea { 0%, 92%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes ds-nv-saluda { from { transform: rotate(-10deg); } to { transform: rotate(12deg); } }

/* ---------- Móvil ---------- */
@media (max-width: 768px) {
	.ds-nv-barra-in { justify-content: flex-start; gap: 8px; padding: 7px 38px 9px 10px; }
	.ds-nv-marca { font-size: 13px; gap: 5px; }
	.ds-nv-marca svg { width: 16px; height: 16px; }
	.ds-nv-fase, .ds-nv-seg { display: none; }
	.ds-nv-saludo .ds-nv-fase { display: inline; font-size: 12px; }
	.ds-nv-saludo .ds-nv-marca { display: none; }
	.ds-nv-u { padding: 3px 4px 2px; }
	.ds-nv-u b { font-size: 13px; }
	.ds-nv-novena { gap: 2px; }
	.ds-nv-novenas .ds-nv-u:nth-child(3) { display: none; }
	.ds-nv-novena span { width: 6px; height: 9px; }
	.ds-nv .ds-nv-cta { margin-left: auto; padding: 7px 10px; font-size: 11px; }
	.ds-nv .ds-nv-cerrar { right: 4px; }
	.ds-nv-luces { height: 42px; }
	.ds-nv-ladera { height: 140px; }
	.ds-nv-voltio { width: 104px; height: 132px; bottom: 150px; }
}

/* Pago y Mi cuenta: colores sí, movimiento no. */
.ds-nv-calma .ds-nv-luces .halo, .ds-nv-calma .ds-nv-marca svg, .ds-nv-calma .ds-nv-ladera * { animation: none; }
.ds-nv-calma .price .amount::after, .ds-nv-calma .ds-nv-ladera .fuego { display: none; }

@media (prefers-reduced-motion: reduce) {
	.ds-nv-barra *, .ds-nv-luces *, .ds-nv-ladera *, .ds-nv .onsale { animation: none !important; }
	.ds-nv .price .amount::after, .ds-nv-capa { display: none !important; }
}
@media print {
	.ds-nv-barra, .ds-nv-luces, .ds-nv-ladera, .ds-nv-capa { display: none !important; }
}
