/* ===================================================
   JuegoAlegre.com — Animations & Extras
   =================================================== */

/* ─── Prefers Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ─── Pulse Animation (used on live badges) ─── */
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,107,53,.4); }
  50%      { box-shadow: 0 0 0 10px rgba(255,107,53,0); }
}
.pulse { animation: pulse 2s infinite; }

/* ─── Schedule highlight for today ─── */
.schedule-table tbody tr.today-row { background: rgba(255,107,53,.05) !important; }
.schedule-table tbody tr.today-row td:first-child { border-left: 4px solid var(--primary); }

/* ─── Package card ribbon ─── */
.ribbon {
  position: absolute;
  top: 18px; left: -8px;
  background: var(--secondary);
  color: var(--white);
  font-size: .72rem;
  font-weight: 800;
  padding: 5px 14px 5px 18px;
  border-radius: 0 50px 50px 0;
  text-transform: uppercase;
  letter-spacing: .5px;
  box-shadow: 2px 2px 10px rgba(0,0,0,.15);
}
.ribbon::before {
  content: '';
  position: absolute;
  left: 0; bottom: -8px;
  border: 4px solid transparent;
  border-right-color: #5a1e90;
  border-top-color: #5a1e90;
}

/* ─── Sticky schedule day header ─── */
.sticky-day-header {
  background: linear-gradient(135deg, var(--dark), var(--secondary));
  color: var(--white);
  padding: 14px 24px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sticky-day-header .day-emoji { font-size: 1.4rem; }

/* ─── Tooltip ─── */
.tooltip-wrap { position: relative; cursor: help; }
.tooltip-wrap .tooltip-box {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: var(--white);
  font-size: .78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
  z-index: 10;
}
.tooltip-wrap:hover .tooltip-box { opacity: 1; }

/* ─── Accordion ─── */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
}
.accordion-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  background: var(--white);
  transition: background .2s;
}
.accordion-header:hover { background: var(--light-bg); }
.accordion-header svg {
  width: 20px; height: 20px;
  color: var(--primary);
  transition: transform .3s ease;
}
.accordion-item.open .accordion-header svg { transform: rotate(180deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.accordion-body-inner {
  padding: 0 24px 20px;
  font-size: .95rem;
  color: var(--text-lt);
  line-height: 1.7;
}

/* ─── Breadcrumb ─── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,.55); transition: var(--transition); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--accent); font-weight: 600; }
.breadcrumb-sep { color: rgba(255,255,255,.3); }

/* ─── Back to Top ─── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  border: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .3s, transform .3s;
  z-index: 500;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dk); transform: translateY(-3px); }
.back-to-top svg { width: 20px; height: 20px; }

/* ─── Notification dot ─── */
.notif-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent2);
  display: inline-block;
  margin-left: 4px;
  animation: blink 1.5s infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

/* ─── Scroll progress bar ─── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 9999;
  width: 0%;
  transition: width .1s linear;
}
