@charset "UTF-8";

/* El resto de tu CSS... *//* ===========================================
   MODAL DE MOTIVO DE CANCELACI�N
   =========================================== */

/* Modal principal */
#modalMotivoCancelacion .modal-content {
  background: linear-gradient(135deg, #ffffff, #f9f9f9);
  width: 95%;
  max-width: 500px;
  height: auto;
  min-height: 450px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.1);
  position: relative;
}

/* T�tulo del modal */
#modalMotivoCancelacion h3 {
  color: #322fd3 !important;
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  margin: 0 0 25px 0 !important;
  padding-bottom: 15px;
  border-bottom: 3px solid #ffcdd2;
  position: relative;
}

/* Icono decorativo en el t�tulo */
#modalMotivoCancelacion h3::before {
  
  margin-right: 10px;
  font-size: 1.4rem;
}

/* ===========================================
   RESUMEN DE CITA - CORREGIDO
   =========================================== */

.resumen-cita {
  background: linear-gradient(135deg, #f0f7ff, #e3f2fd);
  border-radius: 12px;
  padding: 20px;
  margin: 0 0 25px 0;
  border-left: 5px solid #2196F3;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.1);
  position: relative;
  overflow: hidden;
}

/* Título del resumen */
.resumen-cita h4 {
  color: #1976D2 !important;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  margin: 0 0 15px 0 !important;
  padding-bottom: 10px;
  border-bottom: 1px solid #bbdefb;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Información de la cita */
.resumen-cita p {
  margin: 10px 0 !important;
  font-size: 17px !important;
  color: #161616 !important;
  line-height: 1.1 !important;
  font-family: Verdana, Geneva, Tahoma, sans-serif !important;
  display: flex;
  align-items: center;
  padding-left: 30px; /* Espacio para el icono */
  position: relative;
  min-height: 24px; /* Altura mínima para alinear */
}

/* ICONOS CORREGIDOS - Solo emojis sin caracteres especiales */
.resumen-cita p::before {
  position: absolute;
  left: 0;
  font-size: 18px; /* Tamaño un poco más grande */
  width: 24px;
  text-align: center;
  font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
  line-height: 1;
}

/* Asignar emojis específicos */
.resumen-cita p:nth-child(2)::before { content: "👨‍⚕️"; } /* Calendario */
.resumen-cita p:nth-child(3)::before { content: "📅"; } /* Reloj */
.resumen-cita p:nth-child(4)::before { content: "🕒"; } /* Médico hombre */
/* O usa esta alternativa para médico: */
 .resumen-cita p:nth-child(5)::before { content: "⚕️"; }  /* Símbolo médico */

.resumen-cita p:nth-child(6)::before { content: "💼"; } /* Maletín */

/* Labels dentro del resumen */
.resumen-cita p strong {
  color: #555 !important;
  font-weight: 700 !important;
  min-width: 100px;
  display: inline-block;
  margin-right: 10px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

/* ===========================================
   SECCI�N DE MOTIVOS
   =========================================== */

.motivos-cancelacion {
  margin: 30px 0 25px 0;
}

/* T�tulo de motivos */
.motivos-cancelacion h4 {
  color: #004625 !important;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  margin: 0 0 20px 0 !important;
  padding-bottom: 6px;
  border-bottom: 2px solid #dbdbdb;
  display: flex;
  align-items: center;
  gap: 10px;
}

.motivos-cancelacion h4::before {
  
  font-size: 20px;
 
}

/* Lista de motivos */
.lista-motivos {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0 0 25px 0;
}

/* Cada opci�n de motivo */
.motivo-option {
  display: flex;
  align-items: center;
  padding: 16px;
  border: 2px solid #c9c9c9;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  background: white;
  font-family: Verdana, Geneva, Tahoma, sans-serif !important;
  position: relative;
  overflow: hidden;
}

/* Efecto hover */
.motivo-option:hover {
  background: #f8fdff;
  border-color: #00bcd4;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 188, 212, 0.1);
}

/* Cuando est� seleccionado */
.motivo-option input[type="radio"]:checked + span {
  color: #1976D2;
  font-weight: 600;
}

.motivo-option input[type="radio"]:checked ~ span {
  color: #1976D2;
  font-weight: 600;
}

/* Estilo del radio button */
.motivo-option input[type="radio"] {
  margin-right: 15px;
  transform: scale(1.3);
  accent-color: #00bcd4;
  cursor: pointer;
}

/* Texto del motivo */
.motivo-option span {
  flex: 1;
  color: #444;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

/* ===========================================
   CAMPO "OTRO" MOTIVO
   =========================================== */

#otroMotivoContainer {
  margin-top: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #f9f9f9, #f5f5f5);
  border-radius: 10px;
  border: 2px dashed #ccc;
  animation: fadeIn 0.5s ease;
  display: none; /* Oculto por defecto */
}

/* Cuando se muestra */
#otroMotivoContainer[style*="display: block"] {
  display: block !important;
}

/* Label del campo "Otro" */
#otroMotivoContainer .lblDat {
  color: #333 !important;
  font-family: Verdana, Geneva, Tahoma, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  margin-bottom: 10px !important;
  display: block;
}

/* Campo de texto para "Otro" */
#otroMotivoTexto {
  width: 100% !important;
  height: 45px !important;
  border: 2px solid #ccc !important;
  border-radius: 8px !important;
  padding: 0 15px !important;
  font-size: 14px !important;
  font-family: Verdana, Geneva, Tahoma, sans-serif !important;
  color: #333 !important;
  background-color: white !important;
  transition: all 0.3s ease !important;
  box-sizing: border-box !important;
}

#otroMotivoTexto:focus {
  border-color: #00bcd4 !important;
  box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.2) !important;
  outline: none !important;
}

#otroMotivoTexto::placeholder {
  color: #999 !important;
  font-style: italic !important;
}

/* ===========================================
   BOTONES DEL MODAL
   =========================================== */

#modalMotivoCancelacion .modal-actions {
  margin-top: 30px;
  display: flex;
  gap: 15px;
  justify-content: center;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

/* Bot�n "Volver" */
#btnCancelarMotivo {
  background: linear-gradient(135deg, #757575, #616161) !important;
  color: white !important;
  border: none !important;
  padding: 14px 28px !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
  min-width: 140px;
  transition: all 0.3s ease !important;
  letter-spacing: 0.5px;
}

#btnCancelarMotivo:hover {
  background: linear-gradient(135deg, #616161, #424242) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(97, 97, 97, 0.3);
}

/* Bot�n "Confirmar Cancelaci�n" */
#btnConfirmarCancelacion {
  background: linear-gradient(135deg, #ff5252, #d32f2f) !important;
  color: white !important;
  border: none !important;
  padding: 14px 28px !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
  min-width: 180px;
  transition: all 0.3s ease !important;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

#btnConfirmarCancelacion:hover:not(:disabled) {
  background: linear-gradient(135deg, #ff867f, #ff5252) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 82, 82, 0.4);
}

#btnConfirmarCancelacion:active:not(:disabled) {
  transform: translateY(0);
}

#btnConfirmarCancelacion:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ===========================================
   RESPONSIVE
   =========================================== */

@media (max-width: 768px) {
  #modalMotivoCancelacion .modal-content {
    width: 92%;
    padding: 22px;
    max-height: 82vh;
  }
  
  .resumen-cita {
    padding: 18px;
  }
  
  .motivo-option {
    padding: 14px;
  }
  
  #btnCancelarMotivo,
  #btnConfirmarCancelacion {
    padding: 12px 22px !important;
    min-width: 130px;
  }
}

@media (max-width: 480px) {
  #modalMotivoCancelacion .modal-content {
    width: 96%;
    padding: 20px 16px;
    max-height: 90vh;
    margin: 10px auto;
    border-radius: 12px;
  }
  
  #modalMotivoCancelacion h3 {
    font-size: 1.4rem !important;
    margin-bottom: 20px !important;
  }
  
  .resumen-cita {
    padding: 16px;
    margin-bottom: 10px;
  }
  
  .resumen-cita p {
    font-size: 18px !important;
    padding-left: 22px;
  }
  
  .resumen-cita p::before {
    font-size: 14px;
  }
  
  .resumen-cita p strong {
    min-width: 85px;
    font-size: 12px !important;
  }
  
  .motivos-cancelacion {
    margin: 25px 0 20px 0;
  }
  
  .motivos-cancelacion h4 {
    font-size: 15px !important;
    margin-bottom: 15px !important;
  }
  
  .lista-motivos {
    gap: 5px;
    margin-bottom: 10px;
  }
  
  .motivo-option {
    padding: 14px 12px;
  }
  
  .motivo-option span {
    font-size: 13px;
  }
  
  .motivo-option input[type="radio"] {
    margin-right: 12px;
    transform: scale(1.2);
  }
  
  #otroMotivoContainer {
    padding: 16px;
    margin-top: 16px;
  }
  
  #otroMotivoTexto {
    height: 40px !important;
    font-size: 13px !important;
    padding: 0 12px !important;
  }
  
  #modalMotivoCancelacion .modal-actions {
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
  }
  
  #btnCancelarMotivo,
  #btnConfirmarCancelacion {
    width: 100% !important;
    min-width: auto;
    padding: 12px 20px !important;
  }
}

@media (max-width: 360px) {
  #modalMotivoCancelacion .modal-content {
    width: 98%;
    padding: 18px 14px;
  }
  
  .resumen-cita p strong {
    min-width: 75px;
    font-size: 11px !important;
  }
  
  .motivo-option span {
    font-size: 12px;
  }
}

/* ===========================================
   ANIMACIONES
   =========================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Aplicar animaci�n al mostrar */
#otroMotivoContainer {
  animation: fadeIn 0.3s ease;
}

/* ===========================================
   ESTADOS ESPECIALES
   =========================================== */

/* Motivo seleccionado */
.motivo-option.selected {
  border-color: #4CAF50;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), transparent);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}

.motivo-option.selected span {
  color: #2E7D32;
  font-weight: 600;
}

/* Error en validaci�n */
.motivo-option.error {
  border-color: #f44336;
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}