.kaam-calendar-widget {
  font-family: 'Inter', system-ui, sans-serif;
  max-width: 300px; /* Tamaño compacto solicitado */
}

.kaam-calendar {
  background: #000000;
  border-radius: 4px;
  overflow: hidden;
  user-select: none;
}

/* Header */
.kaam-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111111;
  padding: 10px 14px;
}

.kaam-cal-header button {
  background: none;
  border: none;
  color: #9CA3AF;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 150ms;
}

.kaam-cal-header button:hover { color: #fff; }

.kaam-month-label {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
}

/* Días de semana */
.kaam-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #222;
  padding: 8px 10px 4px;
}

.kaam-days-header span {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #6B7280;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 0;
}

/* Grid de días */
.kaam-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 10px;
  gap: 2px;
}

.kaam-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px; /* Fuente más pequeña para el tamaño 300px */
  color: #FFFFFF;
  border-radius: 3px;
  transition: background 150ms, color 150ms;
  cursor: default;
}

.kaam-day--empty { background: transparent; }

.kaam-day--available {
  color: #FFFFFF;
  cursor: pointer;
}

.kaam-day--available:hover {
  background: #333;
  color: #fff;
}

.kaam-day--unavailable {
  color: #4B5563;
  cursor: not-allowed;
  text-decoration: line-through;
  opacity: 0.5;
}

.kaam-day--past {
  color: #4B5563;
  cursor: default;
  opacity: 0.4;
}

.kaam-day--today {
  color: #C4975A !important;
  font-weight: 800;
  border: 1px solid #C4975A;
}

.kaam-day--selected {
  background: #C4975A !important;
  color: #fff !important;
  font-weight: 700;
  border-radius: 3px;
}

.kaam-day--in-range {
  background: rgba(196,151,90,0.2);
  color: #E5E7EB;
  border-radius: 0;
}

/* Leyenda */
.kaam-legend {
  display: flex;
  gap: 16px;
  padding: 10px 14px;
  border-top: 1px solid #2D2D2D;
  font-size: 11px;
  color: #6B7280;
  align-items: center;
}

.kaam-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.kaam-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.kaam-dot--available   { background: #4B5563; }
.kaam-dot--unavailable { background: #374151; opacity: 0.5; }

/* Selección y botón */
.kaam-selection-info {
  padding: 8px 14px 0;
  font-size: 12px;
  color: #C4975A;
  font-weight: 500;
  min-height: 20px;
}

.kaam-reserve-btn {
  display: none;
  width: calc(100% - 28px);
  margin: 10px 14px 14px;
  padding: 12px;
  background: #C4975A;
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 200ms;
}

.kaam-reserve-btn:hover { opacity: 0.88; }

.kaam-loading {
  text-align: center;
  color: #4B5563;
  font-size: 12px;
  padding: 16px 0;
}
