body {
  margin: 0;
  min-height: 100vh;
  background: url("../img/fondoaxial.png") no-repeat center center fixed;
  background-size: cover;
  display: flex;
  justify-content: center;
}

.app {
  width: 100%;
  max-width: 780px;
  min-height: 100vh;
  background: rgba(20, 36, 41, 0.4);
  color: #00e0d3;

  display: flex;
  flex-direction: column;

  overflow-y: auto;   /* 🔑 CLAVE */
}

.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 60%;
  min-height: 80px; /* Altura mínima */
  text-align: center;
  transform: translate(-50%, -50%);
  background: #0054b3;
  color: #ffffff;
  padding: 0 28px; /* Quita el padding vertical */
  border-radius: 12px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 22px;
  font-weight: 500;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  
  /* Centrado vertical con flexbox */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* visible */
.toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* oculto */
.toast.hidden {
  display: none;
}




.header {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;   /* 🔑 CLAVE */
  align-items: center;
  padding: 0;
  background: none;         /* 🔑 quitamos fondo aquí */
  margin-bottom: 0px;
  height: 30px;           /* ajusta a tu gusto */
  overflow: hidden;        /* 🔑 clave */
  background-color: white;
}

/* Imagen del encabezado */
.header img {
  width: 80%;
  height: 80%;            /* ⬅️ AJUSTABLE */
  object-fit: cover;        /* 🔑 CLAVE */
  object-position: center;
  display: block;
  margin-top: 5px;
}

.prof-card {
  
  position: absolute;
  width: 100%;
  text-align: center;
  bottom: -20px;            /* la “flota” sobre la imagen */
  background: rgba(0,0,0,0.7);
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 25px;
  font-weight: 500;
  color: #bde6e3;
  backdrop-filter: blur(6px);
}



.calendar {
  
  width: 80%;
  padding: 10px 12px;  
  margin-top: 10px;
  margin: 0 auto;
}

.calendar .day {
  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;
  font-size: 13px;
}


.calendar.active .day {
  background-color: #a0e1e9;   /* azul claro */
  color: #0b4f6c;
  cursor: pointer;
}

.calendar.active .day:hover {
  background-color: #00ffdd;
}

.calendar .day.active {
  background-color: #1e88e5;  /* azul más fuerte */
  color: #ffffff;
  font-weight: 600;
}



.calendar.active {
  display: block;
}

.calendar.disabled .day {
  pointer-events: none;
  opacity: 0.4;
}

.calendar .day.disabled {
  background: transparent;
  color: #7f9aa3;
  opacity: 0.4;
  cursor: not-allowed;
}


/* Navegación mes */
.month-nav {
  display: flex;
  align-items:center;
  justify-content: space-between;
  padding: 6px 0;
  color: #04f2fa;
  
}

.calendar-nav.disabled {
  opacity: 0.4;
  pointer-events: none;
}


.month-nav h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

/* Días de la semana */
.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 18px;
  margin-top: 8px;
  color: #00f7ff;
}

/* Grid días */
.days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-top: 8px;
}


/* Día normal */
.days-grid div {
  aspect-ratio: 1 / 1;              /* 🔑 clave */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #727272;
  border-radius: 6px;
  font-size: 20px;
  color: #000000;
  cursor: pointer;
}

/* Día seleccionado */
.days-grid .active {
  background: #105c92;
  font-weight: bold;
}

/* Espacios vacíos */
.days-grid .empty {
  background: transparent;
  cursor: default;
  font-size: 45px;
}

#btnPrev{
    background-color: aliceblue;
    width: 60px;
    height: 40px;
    border-radius: 10px;
}
#btnNext{
    background-color: aliceblue;
    width: 60px;
    height: 40px;
    border-radius: 10px;
}

#cmbProfesional{
    width: 60%;
    height: 40px;
    /*font-size: 18px;       /* texto más legible */
    padding: 6px 10px;     /* espacio interno */
    border-radius: 10px;   /* estilo app */
    font-size: clamp(13px, 3.5vw, 16px);
  text-align: center;
  line-height: 1.3;
}

/* BLOQUES DE HORAS */
.slots {
  margin-top: 16px;
}

.agenda {
  padding: 12px;
}


.agenda-top {
  display: flex;
  flex-direction: column;
  align-items: center;   /* 🔑 solo aquí */
  margin-bottom: 0px;
  margin-top: 0;
  background-color: #070e09;
  height: 80px;
  padding-top: 8px;
  font-size: clamp(13px, 3.5vw, 16px);
  text-align: center;
  line-height: 1.3;
}

.agenda-top label {
  text-align: center;
  margin-bottom: 0px;
  font-size: 25px;
  color: #00ee9f;
  font-size: clamp(16px, 20px, 22px);
  text-align: center;
  line-height: 1.3;
}

.agenda-top select {
  width: 100%;
  max-width: 300px;
  padding: 8px;
  border-radius: 6px;
  border: none;
  text-align: center;
  
}

/* CONTENEDOR DE BOTONES */
.agenda-actions {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 2px 0 5px 0;
}

/* BOTONES BASE */
.btn-action {
  flex: 1;
  padding: 5px 0;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 300;
  cursor: pointer;
  height: 40px;
  cursor: pointer;
  background-color: #3b7591;   /* gris base */
  color: #cfd8dc;

  transition: 
    background-color 0.25s ease,
    color 0.25s ease,
    opacity 0.25s ease;

}

/* Estado deshabilitado */
.btn-action:disabled {
  background-color: #59747c;   /* gris más oscuro */
  color: #a6b1b6;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Estado habilitado */
.btn-action:not(:disabled) {
  background-color: #00bcd4;   /* color activo */
  color: #002b31;
}

/* Hover solo cuando está activo */
.btn-action:not(:disabled):hover {
  background-color: #00e77c;
}

/* ESTILOS POR ACCIÓN */
.btn-new {

  background: #029189;
  color: #ffffff;
}

.btn-reschedule {
  background: #029189;
  color: #ffffff;
}

.btn-cancel {
  background: #029189;
  color: #ffffff;
}

/* EFECTO TOUCH */
.btn-action:active {
  transform: scale(0.98);
}

.slot {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

.slot-time {
  color: #ffffff;
  font-size: 14px;
  text-align: right;
  padding-right: 6px;
}

.slot-box {
  height: 42px;
  background: #e3f2fd;
  border-radius: 6px;
  border: 2px solid #00e0d3;
  cursor: pointer;
}

/* Estados */
.slot-box:hover {
  background: #d0ecff;
}

.slot-box.selected {
  background: #bfe4ff;
  border-color: #0288d1;
}

.slot-box.disabled {
  background: #b0b0b0;
  border-color: #777;
  cursor: not-allowed;
}



/*--------------------     css para el modal   ---------------------*/

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;

  background: rgba(0,0,0,0.8);

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 9999;
  animation: fadeIn 0.25s ease-out;
}


#lbl{
  text-align: center;
}

.modal.hidden {
  display: none;
}

.modal-actions{
  margin-top: 1.5rem;
  display: flex;
  width: 100%;
  text-align: center;
  gap: 20px;
  justify-content: center;
}

.modal-content {
  background: #e5e9eb;
  color: #024e4a;

  width: 90%;
  max-width: 420px;

  height: auto;

  padding: 20px;
  border-radius: 14px;

  box-sizing: border-box;
  animation: slideUp 0.3s ease-out;
}

#titulo{
  color: #105c92;
  text-align: center;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size:1.7rem;
  margin-top: 2px;
}

#label1{
  color: #105c92;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 1.0rem;
}

#resProfesional{
  display: inline-block;
  position:inherit;
  margin-left: 8.5%;
  color: #000000;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 1.1rem;
  font-weight: bold;
  
}

#resFecha{
  display: inline-block;
  position:inherit;
  margin-left: 20%;
  color: #000000;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 1.1rem;
  font-weight: bold;
   
}

#resHora{
  display: inline-block;
  position:inherit;
  margin-left: 21.5%;
  color: #000000;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 1.1rem;
  font-weight: bold;
   
}

.label-resumen {
  color: #067483;
  font-weight: 500;
  font-size: 0.9rem;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.lblDat{
  color: #067483;
  font-size: 0.9rem;
  font-family: Verdana, Geneva, Tahoma, sans-serif;  
  font-weight: 500;
  flex-shrink: 0; /* Evita que el label se encoja */
}

.sec{
  
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.7rem;
  gap: 10px;
 
}

#docPaciente{
  flex-grow: 1; /* Ocupa el espacio restante */
  max-width: 65%; /* Opcional: puedes ajustar el ancho */
  height: 1.3rem;
}

#nomPaciente{
  flex-grow: 1; /* Ocupa el espacio restante */
  max-width: 65%; /* Opcional: puedes ajustar el ancho */
  height: 1.3rem;
}

#celPaciente{
  flex-grow: 1; /* Ocupa el espacio restante */
  max-width: 65%; /* Opcional: puedes ajustar el ancho */
  height: 1.3rem;
}

#servicioPaciente{
  flex-grow: 1; /* Ocupa el espacio restante */
  max-width: 75%; /* Opcional: puedes ajustar el ancho */
  height: 1.5rem;
  font-size: 1.12rem;
}



.select-full-text {
  position: relative;
  display: block;
  font-size: 1.12rem;
  color: #000000;
  line-height: 1.4;
  padding-left: 4px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;

  /* multilinea natural */
  white-space: normal;
  word-break: break-word;

  opacity: 0.85;

  width: 100%;
  height: 100px;
  border-style: solid;
  border-color: #105c92;
  border-width: 2px;
  background-color: #ffffff;
  margin-top: 20px;
  white-space: pre-line; /* 🔑 CLAVE para saltos de linea o enter */

}

#btnCancelarModal {
  width: 150px;
  height: 45px;
  background: #445f66;
  color: #e0f7f8;
  border-radius: 5px;
  position: relative;
  border-radius: 0.4rem;
}

#btnCancelarModal:hover {
  background: #587880;
}

#btnConfirmarCita {
  width: 150px;
  height: 45px;
  background: linear-gradient(135deg, #00e0d3, #00b8ad);
  color: #08323f;
  font-weight: 600;
  position: relative;
  border-radius: 0.4rem;
}

#btnConfirmarCita:hover {
  filter: brightness(1.05);
}

#spinner{
  height: 50px;
}

/*////////////////////////////////           css para modal de pagos              //////////////////////////////////////////////////////*/
#cabezera{
  display: block;
  text-align: center;
}

.pago-overlay {
  position: fixed;
  inset: 0;
  background: rgb(255, 255, 255);
  z-index: 9999;

  /* CAMBIO AQUÍ: añade flex-direction */
  display: flex;
  flex-direction: column; /* Esto apila los elementos verticalmente */
  justify-content: flex-start; /* Opcional: al inicio en lugar de centrado */
  align-items: center;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 1.2rem;
  
  /* Añade scroll si el contenido es muy largo */
  overflow-y: auto;
  padding: 20px 0; /* Espacio vertical */
}

.pago-overlay.hidden {
  display: none;
}

/* Para la imagen en cabezera */
#cabezera img {
  max-width: 80%; /* Controla tamaño máximo */
  height: auto;
  margin: 0 auto;
  display: block;
  margin-bottom: 1.5rem;
}

.pago-info {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-cerrar-pago {
  margin: 16px auto 0 auto;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  width: 50%; /* Aumentado para móvil */
  max-width: 200px; /* Máximo para desktop */
  background: #008f13;
  color: rgb(225, 255, 255);
  font-size: 0.95rem;
  cursor: pointer;
  display: block; /* Para que margin auto funcione */
}

.pago-info ul {
  margin: 15px auto;
  padding-left: 20px;
  display: table;
}

.pago-info li {
  text-align: left;
  margin-bottom: 10px;
}

/* Para la imagen de medios de pago */
.pago-info ul li img {
  max-width: 300px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/*             NUEVOS MODALES             */

/* Estilos para los nuevos modales */
.cita-encontrada {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    border-left: 4px solid #00bcd4;
}

.cita-encontrada p {
    margin: 5px 0;
    color: #333;
}

/* Estilo para el botón de cancelar (rojo) */
#btnConfirmarCancelar {
    background: #f44336 !important;
    color: white !important;
}

#btnConfirmarCancelar:hover {
    background: #d32f2f !important;
}

/* Calendario deshabilitado inicialmente */
.calendar.disabled .day {
  pointer-events: none;
  opacity: 0.6;
  background-color: #cccccc !important;
  color: #666666 !important;
  cursor: not-allowed;
}

/* Asegurar que los botones de navegación también estén deshabilitados */
.calendar.disabled .month-nav button {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Calendario activo (cuando se hace clic en Nueva Cita) */
.calendar.active .day:not(.disabled) {
  background-color: #a0e1e9;
  color: #0b4f6c;
  cursor: pointer;
}

.calendar.active .day:not(.disabled):hover {
  background-color: #00ffdd;
}


/* En agenda.css, agrega: */

/* Estado: Profesional seleccionado pero esperando acción */
.calendar.disabled .day:not(.disabled) {
  background-color: #a0e1e9;
  color: #0b4f6c;
  opacity: 0.7;
  cursor: default !important;
  pointer-events: none !important;
}

/* Mensaje informativo */
.info-message {
  background-color: rgba(0, 180, 212, 0.1);
  border: 1px solid #00bcd4;
  border-radius: 8px;
  padding: 10px;
  margin: 10px 0;
  text-align: center;
  color: #00bcd4;
  font-size: 14px;
}

/* Para agregar un mensaje en los slots cuando no hay acción */
.slots-placeholder {
  text-align: center;
  padding: 30px 20px;
  color: #5d8ca7;
  font-style: normal;
  background: rgba(160, 225, 233, 0.1);
  border-radius: 10px;
  margin: 10px 0;
  border: 2px dashed #a0e1e9;
}

.slots-placeholder p {
  margin: 8px 0;
  font-size: 15px;
}

.slots-placeholder p:first-child {
  font-size: 18px;
  font-weight: 500;
  color: #00bcd4;
}

.slots-placeholder strong {
  color: #00bcd4;
}

/*          estilos calendario      */


/* En agenda.css, agrega: */

/* Día de hoy - resaltado especial */
.calendar .day.hoy {
  position: relative;
  border: 2px solid #f100f1 !important;
  font-weight: bold;
  color: #c202c2 !important;
}

.calendar .day.hoy::after {
  content: "Hoy";
  position: absolute;
  top: -8px;
  right: -8px;
  background: #f100f1;
  color: white;
  font-size: 14px;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: normal;
}

/* Días pasados - estilo específico */
.calendar .day.disabled[title*="Fecha pasada"] {
  background-color: #e0e0e0 !important;
  color: #9e9e9e !important;
  position: relative;
}

.calendar .day.disabled[title*="Fecha pasada"]::before {
  content: "✗";
  position: absolute;
  font-size: 12px;
  color: #f44336;
  top: 2px;
  right: 4px;
}

/* Días dentro de rango pero no seleccionables (modo reagendar/cancelar) */
.calendar.disabled .day:not(.disabled) {
  background-color: #a0e1e9;
  color: #0b4f6c;
  opacity: 0.7;
  cursor: default !important;
  pointer-events: none !important;
}

/*               indicadores de carga de slots        */

/* Estilos para el texto "Disponible" dentro de los slots */
.slot-box {
  height: 42px;
  background: #e3f2fd;
  border-radius: 6px;
  border: 2px solid #00e0d3;
  cursor: pointer;
  position: relative; /* 🔥 NECESARIO PARA POSICIONAR EL TEXTO */
  display: flex; /* 🔥 PARA CENTRAR EL TEXTO */
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

/* Texto "Disponible" */
.slot-disponible {
  color: #067483; /* Color que combina con tu diseño */
  font-size: 12px;
  font-weight: 500;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  opacity: 0.9;
  transition: all 0.2s ease;
}

/* Estados hover - hacer el texto más visible */
.slot-box:hover .slot-disponible {
  color: #00bcd4;
  font-weight: 600;
  opacity: 1;
}

/* Slot seleccionado */
.slot-box.selected {
  background: #bfe4ff;
  border-color: #0288d1;
}

.slot-box.selected .slot-disponible {
  color: #0288d1;
  font-weight: 600;
}

/* Slot deshabilitado */
.slot-box.disabled {
  background: #f5f5f5;
  border-color: #cccccc;
  cursor: not-allowed;
}

.slot-box.disabled .slot-disponible {
  color: #999999;
  text-decoration: line-through;
}

/* ---------------------------    para cancelacion de citas  -------------------------*/

/* Modal de cancelación */
.btn-buscar {
  background: #00bcd4;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  margin-top: 10px;
  width: 100%;
}

.btn-buscar:hover {
  background: #00a0b7;
}

/* Lista de citas encontradas */
.citas-encontradas {
  max-height: 300px;
  overflow-y: auto;
  margin-top: 15px;
  border-top: 1px solid #ddd;
  padding-top: 15px;
}

.cita-item {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}

.cita-info p {
  margin: 5px 0;
  font-size: 13px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.btn-seleccionar-cita {
  background: #f44336;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  margin-top: 8px;
  width: 100%;
}

.btn-seleccionar-cita:hover {
  background: #d32f2f;
}

/* Resumen de cita */
.resumen-cita {
  background: #e8f4fd;
  border-radius: 8px;
  padding: 15px;
  margin: 15px 0;
  border-left: 4px solid #2196F3;
}

.resumen-cita h4 {
  margin-top: 0;
  color: #1976D2;
}

/* Motivos de cancelación */
.motivos-cancelacion {
  margin: 20px 0;
}

.lista-motivos {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 15px 0;
}

.motivo-option {
  display: flex;
  align-items: center;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
}

.motivo-option:hover {
  background: #f5f5f5;
  border-color: #00bcd4;
}

.motivo-option input[type="radio"] {
  margin-right: 10px;
}

.motivo-option span {
  flex: 1;
}

/* Mensajes */
.error-message {
  background: #ffebee;
  border: 1px solid #ffcdd2;
  border-radius: 5px;
  padding: 15px;
  text-align: center;
}

.info-message {
  background: #e3f2fd;
  border: 1px solid #bbdefb;
  border-radius: 5px;
  padding: 15px;
  text-align: center;
}


/* ===========================================
   ESTILOS ESPECÍFICOS PARA EL MODAL DE CANCELAR
   =========================================== */

/* TÍTULO "Cancelar Cita" */
#modalCancelarBusqueda .modal-content h3 {
  color: #0556cf !important;  /* Color rojo para cancelación */
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.6rem !important;  /* Tamaño de fuente */
  font-weight: 700 !important;    /* Grosor de fuente */
  margin-bottom: 5px !important;
  padding-bottom: 5px;
  border-bottom: 2px solid #ffcdd2;  /* Línea decorativa roja clara */
  text-transform: uppercase;  /* Mayúsculas */
  letter-spacing: 1px;  /* Espaciado entre letras */
  margin-top: 0px;
}

/* TEXTO "Ingrese el documento del paciente..." */
#modalCancelarBusqueda .modal-content .resumen > p:first-of-type {
  color: #303030 !important;
  font-family: Verdana, Geneva, Tahoma, sans-serif !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  text-align: center;
  margin: 15px 0 25px 0 !important;
  line-height: 1.5;
  padding: 0 0px;
}

/* Label "Documento" */
#modalCancelarBusqueda .modal-content .lblDat[for="docBuscarCancelar"] {
  color: #202020 !important;
  font-family: Verdana, Geneva, Tahoma, sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  display: block;
  margin-bottom: 8px;
}

/* Campo de entrada de documento */
#docBuscarCancelar {
  width: 100% !important;
  height: 42px !important;
  border: 2px solid #b8b8b8 !important;
  border-radius: 8px !important;
  padding: 0 15px !important;
  font-size: 20px !important;
  font-family: Verdana, Geneva, Tahoma, sans-serif !important;
  color: #1d1d1d !important;
  background-color: #ffffff !important;
  transition: all 0.3s ease !important;
  box-sizing: border-box !important;
}

/*-----------           contorno del cuadro de texto al recibir el foco   -------------------*/
#docBuscarCancelar:focus {
  border-color: #00bcd4 !important;
  box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.2) !important;
  outline: none !important;
}

#docBuscarCancelar::placeholder {
  color: #999999 !important;
  font-style: italic !important;
}

/* Botón "Buscar Citas" */
#btnBuscarCitasCancelar {
  display: block;
  margin: auto;
  background: linear-gradient(135deg, #2f9fd3, #070ac4) !important;
  color: white !important;
  border: none !important;
  padding: 14px 20px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
  margin-top: 10px !important;
  width: 80% !important;
  transition: all 0.3s ease !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  align-items: center;
}

#btnBuscarCitasCancelar:hover {
  background: linear-gradient(135deg, #0714c5, #4763e4) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 15px rgba(21, 0, 68, 0.3) !important;
}

#btnBuscarCitasCancelar:active {
  transform: translateY(0) !important;
}

/* Botón "Volver" */
#btnCancelarBusqueda {
  background: #028a3f !important;
  color: white !important;
  border: none !important;
  padding: 12px 24px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
  transition: all 0.3s ease !important;
  min-width: 120px !important;
}

#btnCancelarBusqueda:hover {
  background: #0ab46e !important;
  transform: translateY(-1px) !important;
}

.titulo-resultados {
  color: rebeccapurple;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 25px;
}

.numero-citas {
  color: #d32f2f;
  font-size: 1.5em;
  font-weight: 800;
}


/* Tarjeta de cita con diseño mejorado */
.cita-item {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8e8e8;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Encabezado de cada cita */
.cita-item {
  background: white;
  border-radius: 12px;
  padding: 50px 20px 20px 20px; /* 🔥 Aumentado padding-top a 50px */
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8e8e8;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Contenido de la cita (debajo del encabezado) */
.cita-info {
  margin-top: 25px;
}

/* Iconos para cada línea de información */
.cita-info p:nth-child(1)::before { content: "🕒 "; }
.cita-info p:nth-child(2)::before { content: "👨‍⚕️ "; }
.cita-info p:nth-child(3)::before { content: "💼 "; }

/* Iconos para cada línea */
.cita-info p::before {
  position: absolute;
  left: 0;
  font-size: 16px;
  width: 24px;
  text-align: center;
}




/*/----------------------------------------------------------------------------------------------------------------------------------*/
/* ===========================================
   RESULTADOS DE BÚSQUEDA DE CITAS
   =========================================== */

/* Contenedor principal de resultados */
#resultadoCitasCancelar {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ffffff;
  
}

/* Texto "Se encontraron X cita(s):" */
.citas-encontradas > p:first-child {
  color: #4b0101 !important;
  font-size: 18px !important;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-weight: 700 !important;
  margin-bottom: 10px !important;
  margin-top: 4px;
  padding-bottom: 12px !important;
  border-bottom: 2px solid #e0e0e0 !important;
  text-align: center;
  position: relative;
}

/* Decoración para el título de resultados */
.citas-encontradas > p:first-child::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #00bcd4, #d32f2f);
  border-radius: 3px;
}

/* Cada item individual de cita */
.cita-item {
  background: linear-gradient(135deg, #ffffff, #f9f9f9);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  position: relative;
}

/* Efecto hover en cada cita */
.cita-item:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 12px 25px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(0, 188, 212, 0.3) inset;
  border-color: rgba(0, 188, 212, 0.4);
}

/* Borde decorativo izquierdo */
/* Encabezado de la tarjeta */
.cita-item::before {
  content: "📅 CITA PROGRAMADA";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #00bcd4, #1976D2);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 12px 15px;
  text-align: center;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  z-index: 2;
}

/* Borde decorativo inferior del header */
.cita-item::after {
  content: "";
  position: absolute;
  top: 42px; /* Altura del header (12px padding-top + 12px padding-bottom + ~18px de texto) */
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00bcd4, transparent);
  z-index: 1;
}

/* Información dentro de cada cita */
.cita-info {
  margin-bottom: 15px;
  z-index: 3;
}

/* Cada línea de información de la cita */
.cita-info p {
  margin: 12px 0 !important;
  font-size: 14px !important;
  color: #444 !important;
  line-height: 1.5 !important;
  font-family: Verdana, Geneva, Tahoma, sans-serif !important;
  display: flex;
  align-items: center;
  padding-left: 30px;
  position: relative;
}

/* Etiquetas fuertes (Cita X:, Profesional:, Servicio:) */
.cita-info p strong {
  color: #333 !important;
  font-weight: 700 !important;
  min-width: 100px;
  display: inline-block;
  margin-right: 10px;
  font-size: 16px;
  font-family:Verdana, Geneva, Tahoma, sans-serif;
  
}

/* Valores de la cita (fechas, nombres, etc) */
/* Número de cita especial */
.cita-info p strong:first-child {
  color: #0018e7 !important;
  background: rgba(47, 145, 211, 0.185);
  padding: 2px 8px;
  border-radius: 4px;
  min-width: 70px;
  text-align: center;
}

/* El texto después del strong (valores) */
.cita-info p:not(:has(> strong)) {
  margin-left: 100px !important;
  font-size: 16px;
  color: #00e676;
}

/*    -------    texto de la fecha y la hora de la cita a cancelar  ----------*/
.cita-info p:nth-child(1) {
  color: #0f0f0f !important;           /* Naranja oscuro */
  font-weight: 600 !important;
  font-size: 15px !important;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  margin-bottom: 5px !important;
  border-bottom: 1px dashed #ecf0f1;
  padding-bottom: 10px !important;
}

/*    -------    texto de del nom profesional de la cita a cancelar  ----------*/
.cita-info p:nth-child(2) {
  color: #161616 !important;           /* Azul */
  font-weight: 600 !important;
  font-size: 15px !important;
  font-family: Verdana, Geneva, Tahoma, sans-serif;

}

/*    -------    texto del servicio de la cita a cancelar  ----------*/

.cita-info p:nth-child(3) {
  color: #161616 !important;           /* Azul */
  font-weight: 600 !important;
  font-size: 15px !important;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}


/* Botón "Seleccionar para Cancelar" */
.btn-seleccionar-cita {
  background: linear-gradient(135deg, #ff5252, #d32f2f) !important;
  color: white !important;
  border: none !important;
  padding: 12px 20px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
  width: 100% !important;
  transition: all 0.3s ease !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Efecto hover en el botón */
.btn-seleccionar-cita:hover {
  background: linear-gradient(135deg, #ff867f, #ff5252) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 15px rgba(255, 82, 82, 0.3) !important;
}

/* Efecto de onda en el botón */
.btn-seleccionar-cita::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.btn-seleccionar-cita:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

/* Cuando no hay citas encontradas */
#resultadoCitasCancelar .info-message {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border: 2px dashed #2196F3;
  border-radius: 12px;
  color: #1976D2;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  font-weight: 500;
  margin: 20px 0;
}

/* Mensaje de error */
#resultadoCitasCancelar .error-message {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #ffebee, #ffcdd2);
  border: 2px dashed #f44336;
  border-radius: 12px;
  color: #d32f2f;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  font-weight: 500;
  margin: 20px 0;
}

/* Spinner de carga */
#resultadoCitasCancelar .spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #00bcd4;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Scrollbar personalizado para la lista de citas */
.citas-encontradas {
  max-height: 350px;
  overflow-y: auto;
  padding-right: 10px;
  margin-top: 20px;
}

.citas-encontradas::-webkit-scrollbar {
  width: 8px;
}

.citas-encontradas::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.citas-encontradas::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #00bcd4, #d32f2f);
  border-radius: 4px;
}

.citas-encontradas::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #00a0b7, #b71c1c);
}

/* Responsive 
@media (max-width: 480px) {
  .cita-item {
    padding: 15px;
    margin-bottom: 12px;
  }
  
  .cita-info p {
    font-size: 13px !important;
  }
  
  .cita-info p strong {
    min-width: 80px;
    font-size: 13px !important;
  }
  
  .btn-seleccionar-cita {
    padding: 10px 15px !important;
    font-size: 13px !important;
  }
  
  .citas-encontradas > p:first-child {
    font-size: 15px !important;
  }
}
 */















/* Para móviles - ajustar tamaño de texto */
@media (max-width: 480px) {
  .slot-disponible {
    font-size: 11px;
  }
  
  .slot-box {
    height: 38px;
  }

  .cita-item {
    padding: 15px;
    margin-bottom: 12px;
  }
  
  .cita-info p {
    font-size: 13px !important;
  }
  
  
  
  .btn-seleccionar-cita {
    padding: 10px 15px !important;
    font-size: 13px !important;
  }
  
  .citas-encontradas > p:first-child {
    font-size: 15px !important;
  }


}

/* Indicador de carga para slots */
.loading-slots {
  text-align: center;
  padding: 40px 20px;
  color: #5d8ca7;
}

.loading-slots .spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #00bcd4;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Mensaje cuando no hay slots disponibles */
.no-slots {
  text-align: center;
  padding: 40px 20px;
  color: #ff9800;
  font-style: italic;
  background: rgba(255, 152, 0, 0.05);
  border-radius: 10px;
  border: 1px dashed #ff9800;
}

/*///////////////////////////////////////   botones de accion  ////////////////////////////////////////////////////////////////////////////////////////////*/

/* ESTILOS PARA BOTONES ACTIVOS (MEJORADOS) */

/* Botón "Nueva Cita" ACTIVO */
.btn-new.active {
  background: linear-gradient(135deg, #00e676, #00c853) !important;
  color: #002b31 !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(0, 230, 118, 0.3) !important;
  border: 2px solid #00e676 !important;
}

/* Botón "Reagendar Cita" ACTIVO */
.btn-reschedule.active {
  background: linear-gradient(135deg, #ff9800, #f57c00) !important;
  color: #311b00 !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3) !important;
  border: 2px solid #ff9800 !important;
}

/* Botón "Cancelar Cita" ACTIVO */
.btn-cancel.active {
  background: linear-gradient(135deg, #ff5252, #d32f2f) !important;
  color: #fff !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(255, 82, 82, 0.3) !important;
  border: 2px solid #ff5252 !important;
}

/* Estado deshabilitado de botones activos */
.btn-action.active:disabled {
  opacity: 0.8 !important;
  cursor: not-allowed !important;
}

/* Efecto hover para botones activos */
.btn-new.active:hover {
  background: linear-gradient(135deg, #00f77c, #00d85c) !important;
}

.btn-reschedule.active:hover {
  background: linear-gradient(135deg, #ffb74d, #ff9800) !important;
}

.btn-cancel.active:hover {
  background: linear-gradient(135deg, #ff867f, #ff5252) !important;
}

/*//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}





/* media queris   */



/*tablet y laptop*/
@media (min-width: 769px) {
  .header {
    height: 120px;   /* 🔥 más alto en móvil */
  }

  .header img {
    object-position: center top; /* muestra más la parte superior */
  }

  .calendar .day {
    width: 60px;
    height: 60px;
    font-size: 20px;
  }

  .days-grid {
    gap: 8px;
  }


  .modal-content {
    background: #d7ddda;
    color: #00e0d3;

    width: 94%;
    max-width: 580px;

    height:auto;

    padding: 20px;
    border-radius: 14px;

    box-sizing: border-box;
    animation: slideUp 0.3s ease-out;
  }

}

/* movil y tablet pequeña*/
@media (min-width: 481px) and (max-width: 768px) {
  .header {
    height: 110px;   /* 🔥 más alto en móvil */
  } 

  .header img {
    object-position: center top; /* muestra más la parte superior */
  }

  .calendar .day {
    width: 55px;
    height: 55px;
    font-size: 18px;
  }

  .days-grid {
    gap: 8px;
  }

}

@media (max-width: 480px) {
  .app {
    max-width: 100%;
  }

  .header {
    height: 80px;   /* 🔥 más alto en móvil */
  }
 
  .calendar {
    width: 85vw;          /* usa todo el ancho de la pantalla */
    margin: 0 auto;    /* compensa padding de .app */
    
  }

  .days-grid {
    gap: 4px;
  }

  .calendar .day {
    width: 45px;
    height: 45px;
    font-size: 16px;
  }

  .modal-content {
  background: #ced4d1;
  color: #00e0d3;

  width: 94%;
  max-width: 480px;

  height: auto;

  padding: 20px;
  border-radius: 14px;

  box-sizing: border-box;
  animation: slideUp 0.3s ease-out;
  }

 .pago-overlay {
    padding: 20px 10px;
    justify-content: flex-start; /* Empieza desde arriba */
  }
  
  #cabezera img {
    max-width: 70%; /* Más pequeño en mobile */
    margin-bottom: 20px;
  }
  
  .pago-info {
    width: 95%;
    padding: 20px 15px;
    margin-top: 0;
  }
  
  .btn-cerrar-pago {
    width: 80%; /* Más ancho en mobile */
    max-width: none;
  }
  
  .pago-info ul li img {
    max-width: 250px; /* Imagen de pagos más pequeña */
  }


}







