﻿.calendario-calendar {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  background: linear-gradient(135deg, #f8fafc, #ffffff);
}

.calendario-calendar__notice {
  margin: 0 0 0.75rem;
  color: #374151;
  font-weight: 600;
  min-height: 1.2em;
}

.calendario-calendar__grid {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.5rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.calendario-calendar__event {
  min-height: 60px;
  font-weight: 400;
  color: #0f172a;
  padding: 2px 4px;
  border-radius: 4px;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  width: 100%;
  text-wrap: auto;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.calendario-calendar__event.is-closed {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #6b7280;
  text-decoration: line-through;
  cursor: not-allowed;
}

.calendario-list {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0;
  display: grid;
  gap: 0.35rem;
}

.calendario-list__item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
}

.calendario-list__city {
  font-weight: 700;
  color: #0f172a;
}

.calendario-list__dates {
  color: #374151;
  font-size: 0.95rem;
}

.calendario-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9999;
}

.calendario-modal.is-open {
  display: flex;
}

.calendario-modal__content {
  background: #fff;
  border-radius: 10px;
  padding: 1.25rem;
  max-width: 520px;
  width: 92%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  position: relative;
}

.calendario-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.calendario-modal__city {
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: #0f172a;
}

.calendario-modal__date {
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #111827;
}

.calendario-modal__slot {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #1f2937;
}

.calendario-modal__slots {
  margin-bottom: 0.75rem;
  display: grid;
  gap: 0.4rem;
}

.cal-slot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f9fafb;
}

.cal-slot-label {
  font-weight: 700;
  color: #111827;
}

.cal-slot-status {
  color: #374151;
  font-size: 0.95rem;
}

.cal-slot-toggle {
  padding: 0.3rem 0.6rem;
  border: 1px solid #111827;
  background: #111827;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

.cal-slot-toggle:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

body.calendario-modal-open {
  overflow: hidden;
}


@media screen and (max-width: 600px) {
  .calendario-calendar__event {
    font-size: 8px;
  }
}
