/* Hero Banner overrides to match Programa & Teatros */
.hero {
  min-height: 400px !important;
  background: #1a789e !important;
  color: #fff !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 80px 24px !important;
  position: relative !important;
}

.hero::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
  background: url('assets/textura%20fondo.png') center/cover !important;
  opacity: 0.1 !important;
  pointer-events: none !important;
}

.hero h1 {
  font-family: 'Cabinet Grotesk', 'Arial Black', sans-serif !important;
  font-size: clamp(38px, 6vw, 60px) !important;
  line-height: .85 !important;
  text-transform: uppercase !important;
  margin: 0 !important;
  letter-spacing: -0.03em !important;
  position: relative !important;
  z-index: 1 !important;
  color: #fff !important;
}



.calendar-page {
  background: radial-gradient(circle at 50% 30%, #ffffff, #eff6f7 85%);
  color: var(--text, #17333d);
  padding-top: 0;
  padding-bottom: 90px;
  position: relative;
  min-height: 100vh;
  font-family: var(--font-body), sans-serif;
  overflow: hidden;
}



.calendar-header-section {
  text-align: center;
  max-width: 1400px; /* same as calendar-grid-section */
  margin: 60px auto 40px;
  padding: 0 24px;
}

/* Theaters Bar/Badge overrides matching Programa layout */
.theaters-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  margin: 0 auto 35px;
}

.theater-badge {
  background: #fff;
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  height: 140px;
  border: 2px solid var(--accent);
  border-bottom: 20px solid var(--accent);
  box-sizing: border-box;
  box-shadow: 0 8px 30px rgba(26, 120, 158, 0.05);
  overflow: hidden;
}

.theater-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.theater-badge.purple { --accent: #761354; }
.theater-badge.red { --accent: #c4291c; }
.theater-badge.orange { --accent: #df8826; }
.theater-badge.pink { --accent: #cf66a2; }

.month-title {
  font-family: var(--font-title);
  font-size: 42px; /* larger title */
  letter-spacing: 0.15em;
  margin: 0;
  text-transform: uppercase;
  color: var(--text, #17333d);
  font-weight: 700;
}

/* Calendar Grid Section */
.calendar-grid-section {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.calendar-container {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  background: rgba(26, 120, 158, 0.04);
  border-radius: 20px;
  padding: 12px;
  border: 1px solid rgba(26, 120, 158, 0.08);
}

/* Weekdays Styling */
.weekday-header {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue, #1a789e);
  padding: 15px 5px;
  border-bottom: 2px solid rgba(26, 120, 158, 0.12);
}

/* Day Cell Basic Design */
.day-cell {
  min-height: 160px;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
}

.day-number {
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

/* Empty Day cells */
.empty-day {
  background: rgba(255, 255, 255, 0.3);
  border: 1.5px dashed rgba(26, 120, 158, 0.15);
  color: rgba(26, 120, 158, 0.4);
}

.empty-dots {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  gap: 4px;
  font-size: 24px;
  line-height: 0.5;
  margin-bottom: 10px;
  user-select: none;
}

.empty-dots span {
  display: block;
}

/* Active Day cells */
.active-day {
  background: #ffffff;
  color: var(--text, #17333d);
  border: 1px solid rgba(26, 120, 158, 0.1);
  box-shadow: 0 4px 20px rgba(26, 120, 158, 0.06);
}

.active-day .day-number {
  color: var(--text, #17333d);
  margin-bottom: 10px;
}

.plays-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
  justify-content: center;
}

/* Play Badge Buttons */
.play-badge {
  display: block;
  text-align: center;
  color: #ffffff;
  padding: 8px 10px;
  font-size: 13px; /* larger play title */
  font-weight: 600; /* semibold */
  border-radius: 6px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.play-badge::after {
  content: attr(data-time);
  display: block;
  font-size: 14px; /* even larger time */
  font-weight: normal; /* no bold */
  opacity: 0.85;
  margin-top: 4px;
}

/* Theater Color classes for Play Badges */
.purple-badge {
  background-color: var(--purple, #761354);
}
.purple-badge:hover {
  background-color: #921969;
  box-shadow: 0 4px 10px rgba(118, 19, 84, 0.25);
}

.red-badge {
  background-color: var(--red, #a21e00);
}
.red-badge:hover {
  background-color: #c42702;
  box-shadow: 0 4px 10px rgba(162, 30, 0, 0.25);
}

.orange-badge {
  background-color: var(--orange, #e2831e);
}
.orange-badge:hover {
  background-color: #fc972d;
  box-shadow: 0 4px 10px rgba(226, 131, 30, 0.25);
}

.pink-badge {
  background-color: #cf66a2;
}
.pink-badge:hover {
  background-color: #e675b6;
  box-shadow: 0 4px 10px rgba(207, 102, 162, 0.25);
}

/* Hover effects for badges and cells */
.play-badge:hover {
  transform: translateY(-2px);
}

.active-day:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(26, 120, 158, 0.12);
}



.weekday-header .short-day {
  display: none;
}

/* Responsive calendar adjustments */
@media (max-width: 1024px) {
  .calendar-container {
    gap: 6px;
  }
  .day-cell {
    min-height: 120px;
    padding: 6px;
  }
  .play-badge {
    font-size: 11px;
    padding: 5px 6px;
  }
}

/* 7-Column Grid Layout for Mobile matching reference mockup */
@media (max-width: 768px) {
  .calendar-header-section {
    margin: 30px auto 20px;
    padding: 0 12px;
  }
  .month-title {
    font-size: 26px;
    letter-spacing: 0.1em;
  }
  .theaters-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
  }
  .theater-badge {
    padding: 10px;
    height: 70px;
    border-bottom-width: 8px;
    border-radius: 10px;
  }

  .calendar-grid-section {
    padding: 0 6px;
  }
  .calendar-container {
    grid-template-columns: 0.6fr 0.6fr 0.6fr 1.3fr 1.3fr 1.3fr 1.3fr !important;
    gap: 3px !important;
    padding: 6px 3px !important;
    border-radius: 12px;
  }

  .weekday-header {
    display: block !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 6px 0 !important;
    letter-spacing: 0 !important;
    border-bottom: 1px solid rgba(26, 120, 158, 0.15) !important;
    text-align: center;
  }

  .weekday-header .full-day {
    display: none;
  }
  .weekday-header .short-day {
    display: inline-block;
  }

  .day-cell {
    min-height: 65px !important;
    padding: 4px 2px !important;
    border-radius: 6px !important;
    justify-content: flex-start !important;
  }

  .day-number {
    font-size: 10px !important;
    font-weight: 700 !important;
    text-align: center;
    margin-bottom: 2px !important;
  }

  .empty-dots {
    display: none !important;
  }

  .plays-container {
    gap: 3px !important;
    justify-content: flex-start !important;
    width: 100% !important;
  }

  .play-badge {
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
    font-size: 7.5px !important;
    font-size: clamp(7px, 2vw, 8px) !important;
    padding: 3px 2px !important;
    line-height: 1.1 !important;
    border-radius: 6px !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    text-align: center !important;
    font-weight: 500 !important;
  }

  .play-badge::after {
    display: none !important; /* Hide time inside mobile pills to keep clean multi-line layout */
  }
}

/* Adjust hero height on mobile to match teatros.html */
@media (max-width: 900px) {
  .hero {
    min-height: 260px !important;
    padding: 70px 18px !important;
  }
}
