/* Campaña (Cyber Monday): franja de arriba y banner de la home. Ver cyber.js. */
.cy-bar {
  --cy-green: var(--color-green-dark, #1A3E39);
  --cy-coral: var(--color-terracotta, #EA6D46);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 9px 16px;
  background: var(--cy-green);
  color: #FCF5E5;
  font: 600 13px/1.3 Montserrat, system-ui, sans-serif;
  text-decoration: none;
  text-align: center;
}
.cy-bar strong {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--cy-coral);
  color: #1D1D1D;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.cy-bar.is-live strong { animation: cy-pulse 1.8s ease-in-out infinite; }
.cy-bar__clock { display: inline-flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.cy-bar__clock > small { opacity: .7; font-weight: 500; }
.cy-bar__clock span { display: inline-flex; align-items: baseline; gap: 1px; }
.cy-bar__clock b { font-size: 14px; }
.cy-bar__clock span small { opacity: .7; font-size: 11px; }
.cy-bar__cta { text-decoration: underline; text-underline-offset: 3px; }
.cy-bar:hover .cy-bar__cta { color: var(--cy-coral); }
body.has-cy-bar .hn-announce { display: none; }
@media (max-width: 600px) {
  .cy-bar { font-size: 12px; gap: 4px 10px; }
  .cy-bar__msg { display: none; }
}

.cy {
  --cy-green: var(--color-green-dark, #1A3E39);
  --cy-coral: var(--color-terracotta, #EA6D46);
  padding: 0 24px;
  margin: 40px 0 8px;
}
.cy__inner {
  position: relative;
  overflow: hidden;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 1.5fr);
  gap: 32px;
  align-items: center;
  padding: 36px;
  border-radius: 24px;
  background: var(--cy-green);
  color: #FCF5E5;
}
.cy__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(252, 245, 229, .045) 0 2px, transparent 2px 14px);
  pointer-events: none;
}
.cy__copy, .cy__deals { position: relative; }
.cy__tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--cy-coral);
  color: #1D1D1D;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.cy.is-live .cy__tag { animation: cy-pulse 1.8s ease-in-out infinite; }
.cy h2 {
  margin: 0 0 10px;
  color: #FCF5E5;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.cy h2 em { color: var(--cy-coral); font-style: normal; }
.cy__copy > p { margin: 0 0 18px; color: rgba(252, 245, 229, .82); font-size: 15px; line-height: 1.55; }
.cy__clock > small { display: block; margin-bottom: 6px; color: rgba(252, 245, 229, .7); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.cy__units { display: flex; gap: 8px; }
.cy__units span { min-width: 58px; padding: 9px 6px 7px; border: 1px solid rgba(252, 245, 229, .22); border-radius: 12px; background: rgba(252, 245, 229, .06); text-align: center; }
.cy__units b { display: block; font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; }
.cy__units small { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.cy__cta {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  margin-top: 20px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--cy-coral);
  color: #1D1D1D;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease;
}
.cy__cta:hover { transform: translateY(-1px); }

.cy__deals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cy-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 10px 14px;
  border-radius: 16px;
  background: #FCF5E5;
  color: #1D1D1D;
  text-decoration: none;
  transition: transform .15s ease;
}
.cy-card:hover { transform: translateY(-3px); }
.cy-card__img { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 10px; background: #fff; overflow: hidden; }
.cy-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cy-card__img em {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--cy-green);
  color: #FCF5E5;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}
.cy-card__name { font-size: 13px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cy-card__price { font-variant-numeric: tabular-nums; }
.cy-card__price s { color: rgba(0, 0, 0, .45); font-size: 13px; }
.cy-card__price b { color: #C4502C; font-size: 17px; }
.cy-card__save { font-size: 11px; font-weight: 600; color: var(--cy-green); }

@media (max-width: 900px) {
  .cy__inner { grid-template-columns: 1fr; padding: 28px 20px; }
  .cy__deals { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 42%; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px; }
  .cy__deals::-webkit-scrollbar { display: none; }
  .cy-card { scroll-snap-align: start; }
}
@media (max-width: 600px) {
  .cy { padding: 0 16px; }
  .cy__units span { min-width: 52px; }
}

@keyframes cy-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(234, 109, 70, .55); }
  50% { box-shadow: 0 0 0 8px rgba(234, 109, 70, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .cy-bar.is-live strong, .cy.is-live .cy__tag { animation: none; }
  .cy-card, .cy__cta { transition: none; }
}

/* Cyber Monday: aviso del carrito y de la ficha (el precio Cyber rige llevando 6 vinos). */
.shop-cyber-note { list-style: none; margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: #FFF1E8; color: #1D1D1D; font-size: 14px; line-height: 1.4; border: 1px solid #F2C9B0; }
.shop-cyber-note.is-on { background: #E6F3EC; border-color: #BFE0CD; color: #1F4A3A; }
.pd-cyber { margin: 8px 0 0; padding: 10px 14px; border-radius: 12px; background: #FFF1E8; color: #9E2A5F; font-size: 14px; font-weight: 600; line-height: 1.4; }
.pd-cyber[hidden] { display: none; }
