.calendario {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e8ecf1;
}

.calendario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(90deg, #CC3766 0%, #E85C89 100%);
    color: white;
    border-bottom: 1px solid rgba(204, 55, 102, 0.2);
}

.calendario-header button {
    background-color: rgba(255, 255, 255, 0.15);
    border: none;
    font-size: 1.4em;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: white;
}

.calendario-header button:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

#month-year {
    font-size: 1.1em;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.calendar-weekdays,
.dias-calendario {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    padding: 0;
}

.calendar-weekdays {
    padding: 12px 12px 8px 12px;
    background: #f8f9fb;
    border-bottom: 1px solid #e8ecf1;
}

.calendar-weekdays div {
    text-align: center;
    padding: 8px 0;
    font-weight: 600;
    color: #CC3766;
    font-size: 0.75em;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.dias-calendario {
    padding: 12px;
    gap: 6px;
}

.dias-calendario div {
    text-align: center;
    padding: 10px;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9em;
    transition: all 0.15s ease;
    position: relative;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2d3748;
    background-color: #f5f7fa;
    border: 1px solid #e8ecf1;
}

.dias-calendario div:hover:not(.past) {
    background-color: #eef5f8;
    border-color: #4EC1CD;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(78, 193, 205, 0.1);
}

/* Días en el pasado: deshabilitados */
.dias-calendario div.past {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
  background: #fafbfc;
  color: #a0aec0;
  font-weight: 400;
  border-color: #f0f4f8;
}

/* Estado para días con horarios disponibles */
.dias-calendario div.available {
    background: linear-gradient(135deg, #4EC1CD 0%, #3BA8B8 100%);
    color: #ffffff;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(78, 193, 205, 0.2);
    transform: scale(1.02);
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid rgba(78, 193, 205, 0.4);
}

.dias-calendario div.available:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(78, 193, 205, 0.3);
}

/* Estado para el día actualmente seleccionado */
.dias-calendario div.selected {
    background: linear-gradient(135deg, #CC3766 0%, #B8235A 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(204, 55, 102, 0.3) !important;
    transform: scale(1.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    font-weight: 700 !important;
}

@media (max-width: 480px) {
   .calendario {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 10px;
  }
  .calendario-header {
    padding: 12px 12px;
  }
  
  .calendario-header button {
    font-size: 1.1em;
    padding: 3px 8px;
  }
  
  #month-year {
    font-size: 0.95em;
    font-weight: 600;
  }
  
  .calendar-weekdays {
    padding: 8px 8px 5px 8px;
  }
  
  .calendar-weekdays div {
    font-size: 0.65em;
    padding: 4px 0;
    letter-spacing: 0.2px;
  }
  
  .dias-calendario {
    padding: 8px;
    gap: 4px;
  }
  
  .dias-calendario div {
    padding: 6px;
    font-size: 0.8em;
    min-height: 32px;
    border-radius: 6px;
  }
}

@media (max-width: 360px) {
  .calendario {
    border-radius: 8px;
  }
  
  .calendario-header {
    padding: 10px 10px;
  }
  
  .calendario-header button {
    font-size: 1em;
    padding: 2px 6px;
  }
  
  #month-year {
    font-size: 0.9em;
    font-weight: 600;
  }
  
  .calendar-weekdays {
    padding: 6px 6px 4px 6px;
  }
  
  .calendar-weekdays div {
    font-size: 0.6em;
    padding: 3px 0;
    letter-spacing: 0px;
  }
  
  .dias-calendario {
    padding: 6px;
    gap: 3px;
  }
  
  .dias-calendario div {
    padding: 5px;
    font-size: 0.75em;
    min-height: 30px;
    border-radius: 5px;
  }
}
