/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: linear-gradient(180deg, #1B2A4A 0%, #2C3E5F 100%);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 48px 48px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.empty {
  color: #8899AA;
  text-align: center;
  font-size: 16px;
}

/* ===== Week Cards ===== */
.weeks {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.week-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.week-card__header {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.week-card__label {
  color: #8899AA;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
}

.week-card__num {
  color: #FFFFFF;
  font-size: 22px;
  font-weight: 700;
}

.week-card__value {
  width: 100%;
  height: 100px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
}

.week-card__value--closed {
  font-size: 28px;
}

/* ===== Calendars ===== */
.calendars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.calendar-wrapper {
  display: flex;
  gap: 8px;
}

.calendar__week-nums {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 57px;
  width: 32px;
  flex-shrink: 0;
}

.calendar__week-num {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 16px;
  font-weight: 700;
  color: #8899AA;
  width: 32px;
}

.calendar__week-num--current {
  color: #4CAF50;
}

.calendar {
  flex: 1;
  background: rgba(255, 255, 255, 0.133);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: visible;
}

.calendar__title {
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 500;
}

.calendar__row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  justify-items: center;
}

.calendar__header-cell {
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #AABBCC;
  width: 28px;
}

.calendar__day {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 400;
  color: #DDDDDD;
}

.calendar__day--outside {
  color: #667788;
}

.calendar__day--weekend {
  background: #1E2D42;
  color: #FFFFFF;
  font-weight: 500;
  border-radius: 14px;
}

.calendar__day--outside.calendar__day--weekend {
  background: #1E2D42;
  color: #FFFFFF;
}

.calendar__day--cierre {
  background: #3366AA;
  color: #FFFFFF;
  font-weight: 500;
  border-radius: 14px;
}

.calendar__day--cierre[title] {
  cursor: help;
}

/* ===== Current Week Highlight ===== */
.calendar__row--current {
  position: relative;
  z-index: 0;
}

.calendar__row--current::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  /* Extend left: card padding (16px) + gap (8px) + week-num width (32px) */
  left: -56px;
  right: 0;
  background: rgba(76, 175, 80, 0.12);
  border-radius: 6px;
  z-index: -1;
}

.calendar__row--current .calendar__day {
  color: #FFFFFF;
  font-weight: 500;
}

.calendar__row--current .calendar__day--outside {
  color: #667788;
  font-weight: 400;
}

/* ===== Responsive ===== */
@media (max-width: 1023px) {
  body {
    background: linear-gradient(180deg, #0F1D3A 0%, #223A62 55%, #2D4A74 100%);
  }

  .container {
    padding: 0;
    gap: 0;
    max-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .weeks {
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(180deg, #0F1D3A 0%, #1A2E52 100%);
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 24px 20px 20px;
  }

  .week-card {
    gap: 4px;
  }

  .week-card__header {
    gap: 6px;
  }

  .week-card__label {
    font-size: 11px;
  }

  .week-card__num {
    font-size: 18px;
  }

  .week-card__value {
    height: 56px;
    font-size: 24px;
    border-radius: 6px;
  }

  .week-card__value--closed {
    font-size: 20px;
  }

  .calendars {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }
}
