/* ==========================================================================
   Provinet — Temporada navideña
   Todo depende de la clase .pv-navidad en <html>, que pone src/scripts/navidad.js
   solo en temporada (1 de noviembre a 11 de enero; el 12 de enero ya no se ve). Fuera de esas fechas esta hoja
   no cambia nada.
   Decoración liviana: guirnalda de luces bajo el encabezado, gorro en el logo,
   adornos colgantes en los márgenes, saludo y franja de bastón de caramelo en el pie,
   y nieve suave. Nada se anima sobre precios ni textos legales y todo respeta
   «reducir movimiento».
   ========================================================================== */

.pv-navidad {
  --pv-rojo: #e60012;
  --pv-oro: #e2a93b;
  --pv-verde: #1f8a4c;
}

/* ---------- guirnalda de luces ---------- */
.pv-guirnalda {
  position: absolute; left: 24px; right: 24px; bottom: -16px; z-index: 2;
  height: 28px; pointer-events: none;
}
.pv-guirnalda svg { display: block; overflow: visible; }
.pv-guirnalda .pv-cable { fill: none; stroke: #33403a; stroke-width: 1.3; stroke-linecap: round; opacity: .7; }
.pv-guirnalda .pv-casquillo { fill: #3d4a44; }
.pv-guirnalda .pv-vidrio { fill: currentColor; }
.pv-guirnalda .pv-brillo { fill: #fff; opacity: .7; }
.pv-guirnalda .pv-luz { filter: drop-shadow(0 0 3px currentColor); animation: pv-titila 2.8s ease-in-out infinite; }
.pv-l-rojo { color: #ff2b3d; }
.pv-l-oro { color: #ffc247; }
.pv-l-verde { color: #2fc16b; }
.pv-l-azul { color: #4cc3ff; }
@keyframes pv-titila {
  0%, 100% { opacity: 1; }
  50% { opacity: .42; }
}

/* ---------- gorro sobre el logo ---------- */
.pv-navidad .site-header .brand { position: relative; }
.pv-gorro {
  position: absolute; z-index: 1; left: 5%; top: -9%;
  width: 22%; aspect-ratio: 64 / 50; pointer-events: none;
  transform: rotate(-14deg); transform-origin: 40% 90%;
}
.pv-gorro svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 2px 2px rgba(13, 17, 23, .22)); }
.pv-g-rojo { fill: #e60012; }
.pv-g-sombra { fill: #b8000f; opacity: .55; }
.pv-g-blanco { fill: #fff; stroke: #e3e6ea; stroke-width: 1.2; }

/* ---------- adornos colgantes (solo en pantallas anchas, en los márgenes) ---------- */
.pv-adornos { display: none; position: absolute; left: 0; right: 0; height: 0; z-index: 20; pointer-events: none; }
@media (min-width: 1440px) { .pv-navidad .pv-adornos { display: block; } }
.pv-bola {
  position: absolute; top: 0; width: 34px;
  transform-origin: 50% 0; animation: pv-mece 6s ease-in-out infinite alternate;
}
.pv-bola::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: var(--hilo);
  background: linear-gradient(180deg, rgba(226, 169, 59, .2), #d6a548);
}
.pv-bola svg { position: absolute; left: 0; top: var(--hilo); width: 34px; height: 42px; filter: drop-shadow(0 10px 12px rgba(13, 17, 23, .18)); }
.pv-bola-estrella svg { height: 34px; top: calc(var(--hilo) - 2px); }
.pv-b-tapa { fill: #d6a548; }
.pv-b-luz { fill: none; stroke: rgba(255, 255, 255, .18); stroke-width: 1; }
.pv-b-cinta { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 2.2; stroke-dasharray: 2 3; }
.pv-b-brillo { fill: #fff; opacity: .45; }
.pv-estrella { fill: #f2b93b; stroke: #d39a24; stroke-width: 1.2; stroke-linejoin: round; }
@keyframes pv-mece {
  from { transform: rotate(-4deg); }
  to { transform: rotate(4deg); }
}

/* ---------- botón «Contratar servicios»: regalo en vez de la estrella ---------- */
.pv-navidad .site-header .header-cta > span[aria-hidden="true"] {
  display: inline-block; width: 16px; height: 16px; font-size: 0; vertical-align: -2px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='4' rx='1'/%3E%3Cpath d='M12 8v13M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7'/%3E%3Cpath d='M7.5 8a2.5 2.5 0 0 1 0-5C10 3 12 8 12 8s2-5 4.5-5a2.5 2.5 0 0 1 0 5'/%3E%3C/svg%3E");
}

/* ---------- nieve acumulada: techo del encabezado y borde del banner del inicio ---------- */
.pv-techo, .pv-nieve-banner {
  position: absolute; z-index: 3; pointer-events: none;
  background: repeat-x 0 0 / 120px 22px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 22'%3E%3Cdefs%3E%3ClinearGradient id='n' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='1' stop-color='%23e6eef7'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23n)' d='M0 8C10 2 22 2 30 6c10-6 22-6 32-1 10-4 22-4 30 0 10-4 20-3 28 3v5h-8c-2 0-3 2-3.5 5-.5 2.5-3 2.5-3.5 0-.5-3-2-5-5-5H68c-2 0-3 2-3.5 4-.5 2-2.5 2-3 0-.5-2-1.5-4-3.5-4H28c-2 0-3 2-3.4 6-.4 2.5-3.2 2.5-3.6 0-.4-4-1.5-6-4-6H0z'/%3E%3Cpath fill='none' stroke='%23c3cfdd' stroke-width='.9' d='M0 8C10 2 22 2 30 6c10-6 22-6 32-1 10-4 22-4 30 0 10-4 20-3 28 3'/%3E%3C/svg%3E");
  filter: drop-shadow(0 2px 2px rgba(60, 82, 112, .22));
}
/* la barra superior es el «techo» en escritorio; en móvil, donde se oculta, lo es el encabezado */
.pv-techo-utility { left: 16px; right: 16px; top: -11px; height: 22px; }
.pv-techo-header { display: none; left: 14px; right: 14px; top: -9px; height: 22px; }
.pv-navidad .hero .shell { position: relative; }
/* en el banner la nieve va por dentro del borde superior, blanca sobre la foto oscura */
.pv-nieve-banner { left: 28px; right: 28px; top: -1px; height: 24px; z-index: 6; background-size: 140px 24px; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .35)); }

/* ---------- moño de regalo en el plan destacado (esquina, lejos del precio) ---------- */
.pv-mono {
  position: absolute; z-index: 3; top: 10px; right: 12px; width: 50px; height: 41px; pointer-events: none;
  filter: drop-shadow(0 6px 8px rgba(230, 0, 18, .25));
}
.pv-mono svg { display: block; width: 100%; height: 100%; }
.pv-m-lazo { fill: #e60012; }
.pv-m-sombra { fill: #a3000d; opacity: .5; }
.pv-m-cola { fill: #c4000f; }
.pv-m-nudo { fill: #ff2b3d; }

/* ---------- copitos en las etiquetas de sección del inicio («02 / Planes»…) ---------- */
.pv-navidad .tag::before {
  width: 13px; height: 13px; opacity: .9;
  -webkit-mask: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17L20.7 7M9 4l3 2 3-2M9 20l3-2 3 2'/%3E%3C/svg%3E");
  mask: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17L20.7 7M9 4l3 2 3-2M9 20l3-2 3 2'/%3E%3C/svg%3E");
}

/* ---------- botones flotantes: gorro en WhatsApp y esfera en «volver arriba» ---------- */
.pv-navidad .wa, .pv-navidad .pv-wa, .pv-navidad .to-top, .pv-navidad .pv-top { overflow: visible; }
.pv-gorro-wa {
  position: absolute; left: 0; top: -15px; width: 36px; aspect-ratio: 64 / 50; pointer-events: none;
  transform: rotate(-20deg);
}
.pv-gorro-wa svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 2px 2px rgba(13, 17, 23, .25)); }
.pv-tapa-esfera { position: absolute; left: 50%; top: -13px; width: 18px; height: 15px; transform: translateX(-50%); pointer-events: none; }
.pv-tapa-esfera svg { display: block; width: 100%; height: 100%; }
.pv-t-aro { fill: none; stroke: #c99a3b; stroke-width: 1.6; }
.pv-t-tapa { fill: #d6a548; }
.pv-t-raya { stroke: rgba(255, 255, 255, .55); stroke-width: 1; }

/* ---------- destello cada pocos segundos en «Contratar servicios» ---------- */
.pv-navidad .site-header .header-cta::after { animation: pv-destello 6s ease-in-out 1.5s infinite; }
@keyframes pv-destello {
  0%, 72% { left: -60%; }
  92%, 100% { left: 130%; }
}

/* ---------- pie: nieve con carámbanos y saludo ---------- */
.pv-navidad footer.sf::before { display: none; }
.pv-nieve-pie {
  position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 30px; pointer-events: none;
  background: repeat-x 0 0 / 160px 30px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 30'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='1' stop-color='%23d4e9ff'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M0 0h160v9c-6 3-12 3-18 0-6 4-14 4-20 1l-3 14-3-13.5c-6 1.5-12 1.5-18-1-6 3-14 3-20 .5l-2.5 8-2.5-7.5c-7 2.5-15 2.5-21-.5-6 3-12 3-16 1l-3 17-3-17c-6 1.5-14 1.5-20-1.5-4 1.5-8 1.5-10-.5z'/%3E%3C/svg%3E");
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35));
}
.pv-saludo-dia {
  display: inline-block; margin: 0 6px 4px 0; padding: 2px 11px; border-radius: 999px;
  background: rgba(255, 194, 71, .16); box-shadow: inset 0 0 0 1px rgba(255, 194, 71, .3);
  color: #ffd27a; font-weight: 700;
}
.pv-saludo {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 0 0 40px; padding: 14px 22px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(230, 0, 18, .16), rgba(226, 169, 59, .1) 50%, rgba(31, 138, 76, .16));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  color: #e9dcc2; font: 500 .95rem/1.5 'DM Sans', system-ui, sans-serif; text-align: center;
}
.pv-saludo b { color: #fff; font-family: 'Manrope', 'DM Sans', sans-serif; font-weight: 800; }
.pv-saludo-ico { flex: 0 0 auto; width: 26px; height: 32px; }
.pv-saludo-ico svg { width: 100%; height: 100%; display: block; }

/* ---------- nieve ---------- */
.pv-nieve {
  position: fixed; inset: 0; z-index: 95; width: 100%; height: 100%; pointer-events: none;
  /* se desvanece hacia abajo para no estorbar la lectura */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 28%, transparent 78%);
  mask-image: linear-gradient(180deg, #000 0%, #000 28%, transparent 78%);
}
.pv-nieve-btn {
  position: fixed; left: 18px; bottom: 18px; z-index: 96;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid rgba(13, 17, 23, .12); border-radius: 50%;
  background: rgba(255, 255, 255, .94); color: #2f7fd8; cursor: pointer;
  box-shadow: 0 12px 26px -14px rgba(13, 17, 23, .5);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform .2s ease, color .2s ease, border-color .2s ease;
}
.pv-nieve-btn:hover { transform: translateY(-2px); border-color: rgba(47, 127, 216, .4); }
.pv-nieve-btn:focus-visible { outline: 2px solid #2f7fd8; outline-offset: 3px; }
.pv-nieve-btn[aria-pressed="false"] { color: #9aa3ae; }
.pv-nieve-btn svg { width: 20px; height: 20px; }

/* ---------- copos de nieve en la sección de planes del inicio (detrás de las tarjetas) ---------- */
.pv-copos { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.pv-con-copos > .shell { position: relative; z-index: 1; }

/* ---------- pantallas pequeñas ---------- */
@media (max-width: 1080px) {
  .pv-guirnalda { left: 10px; right: 10px; bottom: -15px; }
  .pv-techo-header { display: block; }
}
@media (max-width: 860px) {
  .pv-nieve-banner { left: 18px; right: 18px; }
  .pv-mono { width: 42px; height: 34px; }
}
@media (max-width: 560px) {
  .pv-saludo { flex-direction: column; gap: 8px; padding: 14px 16px; }
  .pv-saludo-ico:last-child { display: none; }
  .pv-nieve-btn { left: 12px; bottom: 12px; width: 40px; height: 40px; }
}

/* ---------- reducir movimiento: todo quieto ---------- */
@media (prefers-reduced-motion: reduce) {
  .pv-guirnalda .pv-luz, .pv-bola, .pv-navidad .site-header .header-cta::after { animation: none !important; }
}
@media print {
  .pv-guirnalda, .pv-gorro, .pv-adornos, .pv-nieve, .pv-nieve-btn, .pv-saludo,
  .pv-techo, .pv-nieve-banner, .pv-mono, .pv-gorro-wa, .pv-tapa-esfera, .pv-nieve-pie, .pv-copos { display: none !important; }
}
