@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Tipografía Montserrat para todos los títulos, subtítulos y tarjetas */
h1, h2, h3, h4,
.section-title h2,
.card-info h3,
.producto-info h3,
.producto-nombre-link,
.producto-detalle-info h2,
.cat-hero h1,
.admin-header h1,
.admin-login-box h2,
.modal-box h2 {
  font-family: var(--font-heading) !important;
  letter-spacing: -0.02em;
}

h1, .hero-content h1, .cat-hero h1 {
  font-weight: 800;
}

h2, h3, .producto-nombre-link {
  font-weight: 700;
}

body, p, .lede, .section-title p, .hero-content p {
  font-family: var(--font-body);
}

/* =========================================================
   1. GORRITO DE NAVIDAD EN LA "A" DE ALOS (calibrado al vértice)
   ========================================================= */
.logo-wrap, .brand-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

/* Logo grande en index.html (64px alto -> ~186px ancho; vértice de la A en ~16.6% = ~31px) */
.navbar .logo-wrap .navidad-gorro {
  position: absolute;
  top: -18px;
  left: 9px;
  width: 36px;
  height: 36px;
  z-index: 6;
  pointer-events: none;
  transform: rotate(-18deg);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}

/* Logo en páginas internas y admin (~36-40px alto -> ~105-116px ancho; vértice de la A en ~17-19px) */
.brand-logo .navidad-gorro,
.admin-header .logo-wrap .navidad-gorro {
  position: absolute;
  top: -12px;
  left: 4px;
  width: 24px;
  height: 24px;
  z-index: 6;
  pointer-events: none;
  transform: rotate(-18deg);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}

@media (max-width: 640px) {
  /* Logo móvil en index.html (46px alto -> ~134px ancho; vértice de la A en ~22px) */
  .navbar .logo-wrap .navidad-gorro {
    top: -14px;
    left: 5px;
    width: 28px;
    height: 28px;
  }
}

/* =========================================================
   2. GUIRNALDA Y LUCES NAVIDEÑAS (SUPERIOR E INFERIOR)
   ========================================================= */
.navidad-guirnalda {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(180deg, #1b4332 0%, #2d6a4f 100%);
  border-bottom: 2px solid #143628;
  padding: 5px 0 10px;
  z-index: 35;
}

.navidad-guirnalda.navidad-guirnalda-footer {
  border-top: 2px solid #143628;
  border-bottom: none;
  background: linear-gradient(180deg, #143628 0%, #1b4332 100%);
  z-index: 20;
}

.navidad-guirnalda-inner {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 12px;
  position: relative;
}

.navidad-guirnalda-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  border-bottom: 2px dashed rgba(149, 213, 178, 0.7);
  border-radius: 50%;
}

.navidad-foco {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-top: 5px;
  animation: parpadeo-navidad 1.8s ease-in-out infinite alternate;
}

.navidad-foco:nth-child(2n) { animation-delay: 0.45s; }
.navidad-foco:nth-child(3n) { animation-delay: 0.9s; }
.navidad-foco:nth-child(4n) { animation-delay: 1.35s; }

.navidad-casquillo {
  width: 6px;
  height: 5px;
  background: #222;
  border-radius: 2px 2px 0 0;
}

.navidad-bombilla {
  width: 11px;
  height: 15px;
  border-radius: 50% 50% 45% 45%;
  margin-top: -1px;
}

.navidad-foco.rojo .navidad-bombilla { background: #ff4d4d; box-shadow: 0 0 10px #ff4d4d; }
.navidad-foco.dorado .navidad-bombilla { background: #ffd166; box-shadow: 0 0 10px #ffd166; }
.navidad-foco.verde .navidad-bombilla { background: #52b788; box-shadow: 0 0 10px #52b788; }
.navidad-foco.azul .navidad-bombilla { background: #4ea8de; box-shadow: 0 0 10px #4ea8de; }

.navidad-banner-borde {
  margin-top: 18px;
  padding: 9px 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(217, 83, 79, 0.10), rgba(62, 107, 75, 0.12));
  border: 1px solid rgba(217, 83, 79, 0.24);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: #1A1A1A;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* =========================================================
   3. MUÑECOS DE NIEVE ARRIBA DE "NUESTRAS CATEGORÍAS"
   ========================================================= */
.navidad-munecos-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 6px;
  pointer-events: none;
}

.navidad-munecos-wrap svg {
  height: 58px;
  width: auto;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.08));
}

/* =========================================================
   4. MARCAS DE AGUA VERDES DE ARBOLITOS A LOS COSTADOS
   ========================================================= */
.categories-section {
  position: relative;
}

.categories-section .section-title,
.categories-section .categories-grid {
  position: relative;
  z-index: 2;
}

.navidad-arbol-watermark {
  position: absolute;
  top: 52%;
  transform: translateY(-50%);
  width: 260px;
  height: auto;
  opacity: 0.14;
  pointer-events: none;
  z-index: 1;
}

.navidad-arbol-watermark.izq {
  left: -135px;
}

.navidad-arbol-watermark.der {
  right: -135px;
}

@media (max-width: 1460px) {
  .navidad-arbol-watermark {
    width: 210px;
    opacity: 0.11;
  }
  .navidad-arbol-watermark.izq {
    left: -55px;
  }
  .navidad-arbol-watermark.der {
    right: -55px;
  }
}

@media (max-width: 768px) {
  .navidad-arbol-watermark {
    width: 150px;
    opacity: 0.09;
  }
  .navidad-arbol-watermark.izq {
    left: -30px;
    top: 25%;
  }
  .navidad-arbol-watermark.der {
    right: -30px;
    top: 75%;
  }
}

@keyframes parpadeo-navidad {
  0% { opacity: 0.55; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(1px); }
}

@media (prefers-reduced-motion: reduce) {
  .navidad-foco { animation: none; opacity: 1; }
}

/* =========================================================
   5. RÉPLICA DE REGALOS Y ARBOLITOS EN PÁGINAS INTERNAS
   ========================================================= */
.navidad-page-watermarks {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

main,
header.site,
footer.site,
.admin-header,
.admin-container,
.admin-login-wrap {
  position: relative;
}

main {
  z-index: 1;
}

.navidad-page-arbol {
  position: absolute;
  width: 210px;
  height: auto;
  opacity: 0.10;
}

.navidad-page-arbol.izq {
  left: -55px;
  top: 46%;
}

.navidad-page-arbol.der {
  right: -55px;
  top: 22%;
}

.navidad-page-regalo {
  position: absolute;
  color: #2d6a4f;
  opacity: 0.11;
}

.navidad-page-regalo.regalo-1 {
  width: 105px;
  top: 13%;
  right: 6%;
  transform: rotate(14deg);
}

.navidad-page-regalo.regalo-2 {
  width: 84px;
  top: 17%;
  right: 22%;
  color: #d9534f;
  opacity: 0.08;
  transform: rotate(-12deg);
}

.navidad-page-regalo.regalo-3 {
  width: 92px;
  bottom: 14%;
  left: 5%;
  color: #d9534f;
  opacity: 0.09;
  transform: rotate(-15deg);
}

.navidad-page-regalo.regalo-4 {
  width: 82px;
  bottom: 18%;
  right: 7%;
  transform: rotate(10deg);
}

@media (max-width: 768px) {
  .navidad-page-arbol {
    width: 140px;
    opacity: 0.08;
  }
  .navidad-page-arbol.izq {
    left: -35px;
    top: 55%;
  }
  .navidad-page-arbol.der {
    right: -35px;
    top: 28%;
  }
  .navidad-page-regalo.regalo-1 {
    width: 76px;
    top: 14%;
    right: 3%;
  }
  .navidad-page-regalo.regalo-2 {
    display: none;
  }
  .navidad-page-regalo.regalo-3 {
    width: 72px;
    bottom: 12%;
    left: 2%;
  }
  .navidad-page-regalo.regalo-4 {
    width: 68px;
    bottom: 14%;
    right: 3%;
  }
}
