/* CoreHogar Temporadas y Campañas 2.1.0: guirnaldas repeat-x sin deformación, arte editorial y copos fractales */

.ch-season-strip {
  color: var(--ch-temp-cinta-txt, #FFFFFF);
  background: var(--ch-temp-cinta-bg, #1F3557);
  padding: 9px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  position: relative;
  z-index: 9010;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.25);
}

.ch-season-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ch-season-msg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ch-season-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  color: var(--ch-temp-primario, #1F3557) !important;
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 800;
  font-size: 0.82rem;
  text-decoration: none !important;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.ch-season-cta:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

/* Guirnalda superior en mosaico repeat-x sin deformación ni franja blanca */
.ch-season-garland {
  width: 100%;
  height: 28px;
  margin-bottom: -28px;
  pointer-events: none;
  position: relative;
  z-index: 9009;
  background-repeat: repeat-x;
  background-position: top center;
}

.ch-garland-navidad {
  background-size: 220px 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='28' viewBox='0 0 220 28'%3E%3Cpath d='M0,2 Q55,14 110,3 Q165,14 220,2' fill='none' stroke='%2314532D' stroke-width='2' stroke-opacity='0.72'/%3E%3Ccircle cx='35' cy='10' r='5' fill='%23FDE68A' fill-opacity='0.38'/%3E%3Cpath d='M35,6 C37,9 37.5,12 35,14 C32.5,12 33,9 35,6 Z' fill='%23FACC15'/%3E%3Ccircle cx='78' cy='10' r='5' fill='%23FCA5A5' fill-opacity='0.38'/%3E%3Cpath d='M78,6 C80,9 80.5,12 78,14 C75.5,12 76,9 78,6 Z' fill='%23DC2626'/%3E%3Ccircle cx='122' cy='9' r='5' fill='%23FDE68A' fill-opacity='0.38'/%3E%3Cpath d='M122,5 C124,8 124.5,11 122,13 C119.5,11 120,8 122,5 Z' fill='%23FEF08A'/%3E%3Ccircle cx='168' cy='11' r='5' fill='%2386EFAC' fill-opacity='0.38'/%3E%3Cpath d='M168,7 C170,10 170.5,13 168,15 C165.5,13 166,10 168,7 Z' fill='%2316A34A'/%3E%3Ccircle cx='204' cy='7' r='4.5' fill='%23FCA5A5' fill-opacity='0.35'/%3E%3Cpath d='M204,4 C206,7 206.5,9.5 204,11.5 C201.5,9.5 202,7 204,4 Z' fill='%23DC2626'/%3E%3C/svg%3E");
  animation: chGarlandGlow 2.8s ease-in-out infinite;
}

.ch-garland-verano {
  background-size: 200px 22px;
  height: 22px;
  margin-bottom: -22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='22' viewBox='0 0 200 22'%3E%3Cpath d='M0,0 L200,0 L200,7 Q150,18 100,7 T0,7 Z' fill='%230EA5E9' fill-opacity='0.28'/%3E%3Cpath d='M0,7 Q50,18 100,7 T200,7' fill='none' stroke='%230284C7' stroke-width='1.5' stroke-opacity='0.5'/%3E%3C/svg%3E");
}

.ch-garland-vuelta-clases {
  background-size: 160px 16px;
  height: 16px;
  margin-bottom: -16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='16' viewBox='0 0 160 16'%3E%3Cpath d='M0,3 L160,3' stroke='%23C8961E' stroke-width='1.5' stroke-dasharray='6 6' stroke-opacity='0.7'/%3E%3Cpath d='M80,2 L84,7 L80,12 L76,7 Z' fill='%23C8961E' fill-opacity='0.8'/%3E%3C/svg%3E");
}

.ch-garland-dia-madre {
  background-size: 180px 24px;
  height: 24px;
  margin-bottom: -24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='24' viewBox='0 0 180 24'%3E%3Cpath d='M0,4 Q45,18 90,4 T180,4' fill='none' stroke='%23BE185D' stroke-width='1.5' stroke-opacity='0.4'/%3E%3Ccircle cx='45' cy='11' r='3.5' fill='%23F472B6' fill-opacity='0.8'/%3E%3Ccircle cx='135' cy='11' r='3.5' fill='%23FB7185' fill-opacity='0.8'/%3E%3C/svg%3E");
}

.ch-garland-dia-padre {
  background-size: 180px 18px;
  height: 18px;
  margin-bottom: -18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='18' viewBox='0 0 180 18'%3E%3Cline x1='0' y1='4' x2='180' y2='4' stroke='%23B87A2B' stroke-width='1.5' stroke-opacity='0.65'/%3E%3Cpolygon points='90,2 92,7 97,7 93,10 94.5,15 90,12 85.5,15 87,10 83,7 88,7' fill='%23B87A2B' fill-opacity='0.8'/%3E%3C/svg%3E");
}

.ch-garland-dia-nino {
  background-size: 160px 24px;
  height: 24px;
  margin-bottom: -24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='24' viewBox='0 0 160 24'%3E%3Cpolygon points='6,0 34,0 20,18' fill='%2338BDF8' fill-opacity='0.85'/%3E%3Cpolygon points='46,0 74,0 60,18' fill='%23F472B6' fill-opacity='0.85'/%3E%3Cpolygon points='86,0 114,0 100,18' fill='%23FACC15' fill-opacity='0.88'/%3E%3Cpolygon points='126,0 154,0 140,18' fill='%2334D399' fill-opacity='0.85'/%3E%3C/svg%3E");
}

.ch-garland-fiestas-patrias {
  background-size: 180px 26px;
  height: 26px;
  margin-bottom: -26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='26' viewBox='0 0 180 26'%3E%3Cpolygon points='6,0 44,0 25,20' fill='%230039A6' fill-opacity='0.88'/%3E%3Cpolygon points='25,5 26.5,9 30.5,9 27.3,11.3 28.5,15 25,12.8 21.5,15 22.7,11.3 19.5,9 23.5,9' fill='%23FFFFFF'/%3E%3Cpolygon points='66,0 104,0 85,20' fill='%23FFFFFF' fill-opacity='0.95'/%3E%3Cpolygon points='126,0 164,0 145,20' fill='%23D52B1E' fill-opacity='0.9'/%3E%3C/svg%3E");
}

.ch-garland-halloween {
  background-size: 200px 24px;
  height: 24px;
  margin-bottom: -24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='24' viewBox='0 0 200 24'%3E%3Cpath d='M0,2 Q50,18 100,2 Q150,18 200,2' fill='none' stroke='%233D2459' stroke-width='1.5' stroke-opacity='0.5'/%3E%3Cpath d='M42,8 Q46,4 50,7 L54,4 Q58,8 50,12 Q46,12 42,8 Z' fill='%233D2459' fill-opacity='0.75'/%3E%3Ccircle cx='150' cy='10' r='3' fill='%23EA580C' fill-opacity='0.85'/%3E%3C/svg%3E");
}

@keyframes chGarlandGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

/* Tinte ambiental sutil en Hero, Header, Badges y Footer (sin alterar jerarquía Tienda 1.5.1) */
body.ch-temp-activa .ch-header {
  border-bottom: 2px solid var(--ch-temp-acento, #F68E8F);
}

body.ch-temp-activa .ch-hero {
  background: var(--ch-temp-hero-bg, #FDF9F6);
}

body.ch-temp-activa .ch-badge {
  border-color: var(--ch-temp-acento, #F68E8F);
  color: var(--ch-temp-primario, #1F3557);
}

body.ch-temp-activa .ch-btn-primary {
  background-color: var(--ch-temp-primario, #1F3557) !important;
  border-color: var(--ch-temp-primario, #1F3557) !important;
}

body.ch-temp-activa .ch-btn-primary:hover {
  background-color: var(--ch-temp-acento, #D9636A) !important;
  border-color: var(--ch-temp-acento, #D9636A) !important;
}

body.ch-temp-activa .ch-footer {
  border-top: 5px solid var(--ch-temp-acento, #F68E8F);
}

/* Adorno SVG vectorial curvo sobre .ch-brand-emblem */
.ch-brand-emblem {
  position: relative;
}

.ch-logo-season-ornament {
  position: absolute;
  top: -12px;
  right: -11px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  pointer-events: none;
  z-index: 3;
}

/* Ilustración editorial acuarela WebP en esquina inferior izquierda */
.ch-season-corner-left {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 8950;
  pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(31, 53, 87, 0.16));
  animation: chGentleBob 4.8s ease-in-out infinite;
}

.ch-corner-art {
  display: block;
  width: 138px;
  height: auto;
  max-height: 146px;
  object-fit: contain;
}

@keyframes chGentleBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Partículas SVG animadas (copos fractales, burbujas, pétalos, murciélagos, destellos) */
.ch-season-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 8900;
}

.ch-fx-item {
  position: fixed;
  top: -38px;
  opacity: 0;
  will-change: transform, opacity;
}

.ch-fx-snow .ch-fx-item svg {
  filter: drop-shadow(0 1px 3px rgba(31, 53, 87, 0.24));
}

.ch-fx-snow .ch-fx-item {
  animation: chSnowFall var(--dur, 11s) linear var(--del, 0s) infinite;
}

.ch-fx-petal .ch-fx-item {
  animation: chPetalFall var(--dur, 12s) ease-in-out var(--del, 0s) infinite;
}

.ch-fx-rise .ch-fx-item {
  top: auto;
  bottom: -42px;
  animation: chFloatUp var(--dur, 11s) ease-in var(--del, 0s) infinite;
}

.ch-fx-bat .ch-fx-item {
  animation: chBatFly var(--dur, 10s) ease-in-out var(--del, 0s) infinite;
}

.ch-fx-sparkle .ch-fx-item {
  animation: chSparkleDrift var(--dur, 9s) ease-in-out var(--del, 0s) infinite;
}

@keyframes chSnowFall {
  0% { transform: translate3d(0, -32px, 0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.9; }
  50% { transform: translate3d(28px, 52vh, 0) rotate(180deg); opacity: 0.84; }
  90% { opacity: 0.8; }
  100% { transform: translate3d(-18px, 106vh, 0) rotate(360deg); opacity: 0; }
}

@keyframes chPetalFall {
  0% { transform: translate3d(0, -30px, 0) rotate(0deg); opacity: 0; }
  12% { opacity: 0.84; }
  50% { transform: translate3d(34px, 50vh, 0) rotate(160deg); opacity: 0.78; }
  100% { transform: translate3d(-24px, 106vh, 0) rotate(320deg); opacity: 0; }
}

@keyframes chFloatUp {
  0% { transform: translate3d(0, 30px, 0) scale(0.9); opacity: 0; }
  14% { opacity: 0.82; }
  55% { transform: translate3d(-20px, -55vh, 0) scale(1.06); opacity: 0.74; }
  100% { transform: translate3d(18px, -108vh, 0) scale(1); opacity: 0; }
}

@keyframes chBatFly {
  0% { transform: translate3d(-20px, -20px, 0) rotate(-8deg); opacity: 0; }
  15% { opacity: 0.82; }
  45% { transform: translate3d(42px, 42vh, 0) rotate(8deg); opacity: 0.8; }
  75% { transform: translate3d(-26px, 76vh, 0) rotate(-6deg); opacity: 0.72; }
  100% { transform: translate3d(30px, 105vh, 0) rotate(6deg); opacity: 0; }
}

@keyframes chSparkleDrift {
  0% { transform: translate3d(0, -25px, 0) scale(0.75) rotate(0deg); opacity: 0; }
  20% { opacity: 0.68; }
  50% { transform: translate3d(16px, 48vh, 0) scale(1.1) rotate(90deg); opacity: 0.58; }
  100% { transform: translate3d(-12px, 104vh, 0) scale(0.8) rotate(180deg); opacity: 0; }
}

body.woocommerce-checkout .ch-season-fx,
body.woocommerce-checkout .ch-season-corner-left,
body.woocommerce-account .ch-season-fx,
body.woocommerce-account .ch-season-corner-left {
  display: none !important;
}

@media (max-width: 768px) {
  .ch-season-corner-left {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ch-season-fx,
  .ch-season-corner-left,
  .ch-garland-navidad {
    animation: none !important;
  }
  .ch-season-fx {
    display: none !important;
  }
}
