/* ============================================= */
/* Overrides para estilizar el título del calendario */
/* ============================================= */

/* FullCalendar emplea un <h2> para el título; con este CSS lo “bajamos” a un tamaño h3 */
.fc .fc-toolbar h2.fc-toolbar-title {
  /* tamaño aproximado a un H3 */
  font-size: 1.75rem;  
  font-weight: 600;
  margin: 0.5em 0;
  line-height: 1.2;
}

/* Opcional: si quieres asegurarte de que nunca crezca demasiado */
.fc .fc-toolbar h2.fc-toolbar-title {
  max-width: 100%;
  white-space: normal;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* ================================================================= */
/* Si deseas personalizar aún más (colores, espaciados, etc.) aquí */
/* ================================================================= */

/* Ejemplo: los botones de cambio de vista (Mes/Semana) */
.fc .fc-button {
  border-radius: 0.25rem;
  padding: 0.4em 0.6em;
  font-size: 0.9em;
}

/* Color de fondo al pasar hover */
.fc .fc-button:hover {
  background-color: rgba(0, 123, 255, 0.1);
}


/* ============================================= */
/* Sección 6 – Layout calendario + formulario     */
/* ============================================= */
#fa-form-agendamiento .fa-section[data-index="6"] .fa-section-6__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
}

/* Por defecto (móvil): 1 columna cada uno */
#fa-form-agendamiento
  .fa-section[data-index="6"] #fa-fullcalendar,
#fa-form-agendamiento
  .fa-section[data-index="6"] .fa-time-notif-container {
  flex: 1 1 100%;
  min-width: 100%;
}

/* Tablet (≥600px y <992px): 2 columnas iguales */
@media (min-width: 600px) and (max-width: 991px) {
  #fa-form-agendamiento
    .fa-section[data-index="6"] #fa-fullcalendar,
  #fa-form-agendamiento
    .fa-section[data-index="6"] .fa-time-notif-container {
    flex: 1 1 calc(50% - 1rem);
    min-width: calc(50% - 1rem);
  }
}

/* Desktop (≥992px): calendario 65%, formulario 35% */
@media (min-width: 992px) {
  #fa-form-agendamiento
    .fa-section[data-index="6"] #fa-fullcalendar {
    flex: 0 0 65%;
    min-width: 65%;
    max-width: 65%;
  }
  #fa-form-agendamiento
    .fa-section[data-index="6"] .fa-time-notif-container {
    flex: 0 0 35%;
    min-width: 33%;
    max-width: 33%;
  }
}

/* Ajuste de tamaño del título del mes */
#fa-fullcalendar .fc-toolbar-title {
  font-size: 1.25rem !important; /* similar a un h3 */
  font-weight: 600;
  margin: 0;
}

/* Asegúrate de que el contenedor del calendario tenga al menos altura */
#fa-fullcalendar {
  min-height: 350px;
}


/* ============================================= */
/* Sección 6 – Estilos para “Datos adicionales”   */
/* ============================================= */

/* Columna derecha: un bloque por campo, con espacio extra */
#fa-form-agendamiento .fa-section[data-index="6"] .fa-time-notif-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;               /* espacio mayor entre cada bloque */
}

/* Cada label se comporta como “tarjeta” */
#fa-form-agendamiento
  .fa-section[data-index="6"] 
  .fa-time-notif-container label {
  display: flex;
  flex-direction: column;
  font-weight: 700;          /* etiquetas en negrita */
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 0.5rem;
  padding: 0.75rem;
}

/* Inputs/Textarea: un poco de margen arriba */
#fa-form-agendamiento
  .fa-section[data-index="6"] 
  .fa-time-notif-container label input,
#fa-form-agendamiento
  .fa-section[data-index="6"] 
  .fa-time-notif-container label textarea {
  margin-top: 0.5rem;
}

/* Quitar borde al fieldset de notificación */
#fa-form-agendamiento
  .fa-section[data-index="6"] 
  .fa-time-notif-container fieldset.fa-notification {
  border: none;
  padding: 0;
  margin: 0;
}

/* Legend en negrita y con espacio inferior */
#fa-form-agendamiento
  .fa-section[data-index="6"] 
  .fa-time-notif-container legend {
  font-weight: 700;
  margin-bottom: 0.5rem;
}


/* ============================================= */
/* Sección 6 – Estilo “tarjeta” para radios Notificación */
/* ============================================= */
#fa-form-agendamiento .fa-section[data-index="6"] .fa-notification label {
  display: flex;
  flex-direction: row;         /* radio y texto en fila */
  align-items: center;
  gap: 0.75rem;                /* separación entre radio y texto */
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin-bottom: 1rem;         /* espacio entre tarjetas */
  font-weight: 700;            /* texto en negrita */
}

/* Que cada label ocupe todo el ancho */
#fa-form-agendamiento .fa-section[data-index="6"] .fa-notification {
  display: flex;
  flex-direction: column;
}
#fa-form-agendamiento .fa-section[data-index="6"] .fa-notification label {
  flex: 1 1 auto;
}

/* Ajuste fino del radio dentro de la tarjeta */
#fa-form-agendamiento 
  .fa-section[data-index="6"] 
  .fa-notification label input[type="radio"] {
  margin: 0;                   /* eliminar márgenes por defecto */
}


/* ============================================= */
/* Sección 6 – Ajuste tooltip en “Datos adicionales”   
/* ============================================= */
#fa-form-agendamiento .fa-section[data-index="6"] .fa-time-notif-container label[data-help] {
  /* texto + icono en línea */
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;       /* para que el campo baje */
}

/* separa el “?” del texto */
#fa-form-agendamiento .fa-section[data-index="6"] .fa-time-notif-container label[data-help] .fa-help-icon {
  margin-left: 0.25em;
  margin-bottom: 0;      /* elimina salto extra */
}

/* fuerza que el input/textarea ocupe toda la línea debajo */
#fa-form-agendamiento .fa-section[data-index="6"] .fa-time-notif-container label[data-help] input,
#fa-form-agendamiento .fa-section[data-index="6"] .fa-time-notif-container label[data-help] textarea {
  flex: 0 0 100%;
  margin-top: 0.5em;
}


/* ============================================= */
/* Botón “Elegir esta hora” en cada slot         */
/* ============================================= */
.fc .fc-timegrid-slot-label .fc-slot-btn {
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 0.25rem;
  padding: 0.2em 0.4em;
  font-size: 0.75rem;
  cursor: pointer;
}

.fc .fc-timegrid-slot-label .fc-slot-btn:hover {
  background-color: #218838;
}

/* Ajuste para que no se corte el texto de la etiqueta de hora */
.fc .fc-timegrid-slot-label > div {
  width: 100%;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
}

