/* Estilos puntuales no generados por Tailwind. */
details > summary {
  list-style: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

.pantalla-movil {
  width: 100%;
  min-height: 100vh;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem 1.25rem 7rem;
  background: #f4f7f9;
}

@media (min-width: 768px) {
  .pantalla-movil {
    max-width: 64rem;
  }
}

.barra-superior {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 1rem 1.25rem;
  background: rgba(244, 247, 249, 0.95);
  backdrop-filter: blur(12px);
}

.marca-avatar {
  display: flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #087568;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 900;
  box-shadow: 0 18px 40px rgba(21, 35, 55, 0.08);
}

.tarjeta {
  border: 1px solid #fff;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(21, 35, 55, 0.08);
}

.tarjeta-compacta {
  border: 1px solid #fff;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(21, 35, 55, 0.08);
}

.boton-primario,
.boton-secundario {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  padding: 0.75rem 1rem;
  font-weight: 900;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.boton-primario {
  background: #087568;
  color: #fff;
  box-shadow: 0 18px 32px rgba(8, 117, 104, 0.32);
}

.boton-secundario {
  border: 1px solid #e5ebf0;
  background: #fff;
  color: #1f2933;
}

.boton-primario:active,
.boton-secundario:active {
  transform: scale(0.98);
}

.contenedor-flotante {
  position: fixed;
  right: 1.25rem;
  bottom: 6rem;
  z-index: 40;
}

.boton-flotante {
  display: flex;
  width: 4rem;
  height: 4rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 20px;
  background: #087568;
  color: #fff;
  font-size: 2.25rem;
  font-weight: 300;
  line-height: 1;
  box-shadow: 0 18px 32px rgba(8, 117, 104, 0.32);
  cursor: pointer;
}

.boton-flotante:hover,
.boton-flotante:focus {
  background: #055f55;
}

.boton-flotante[aria-expanded="true"] {
  transform: rotate(45deg);
}

.menu-flotante {
  position: absolute;
  right: 0;
  bottom: 5rem;
  width: 14rem;
  display: grid;
  gap: 0.5rem;
  border-radius: 24px;
  background: #fff;
  padding: 0.75rem;
  box-shadow: 0 18px 40px rgba(21, 35, 55, 0.16);
}

.menu-flotante[hidden] {
  display: none !important;
}

@media (min-width: 768px) {
  .contenedor-flotante {
    right: calc(50% - 30rem);
  }
}

.campo {
  width: 100%;
  min-height: 3rem;
  border: 1px solid #e5ebf0;
  border-radius: 16px;
  background: #fff;
  padding: 0.75rem 1rem;
  color: #1f2933;
  font-size: 0.875rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.campo:focus {
  border-color: #087568;
  box-shadow: 0 0 0 4px #dffcf4;
}

.etiqueta {
  display: block;
  margin-bottom: 0.5rem;
  color: #6b7a90;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.nav-movil {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border-radius: 18px;
  padding: 0.5rem;
  color: #6b7a90;
  font-size: 0.625rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.nav-movil:hover,
.nav-movil:focus,
.nav-movil-activo {
  background: #dffcf4;
  color: #087568;
}

.nav-movil:active {
  transform: scale(0.98);
}

.icono-nav {
  width: 1.5rem !important;
  height: 1.5rem !important;
  flex-shrink: 0;
}

.estado {
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.625rem;
  font-weight: 900;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.estado-PendienteConfirmacion {
  background: #ffe1cf;
  color: #92400e;
}

.estado-Confirmada {
  background: #ccfbf1;
  color: #087568;
}

.estado-ReprogramacionSolicitada {
  background: #dbeafe;
  color: #1d4ed8;
}

.estado-Cancelada {
  background: #ffe4e6;
  color: #be123c;
}

.estado-Atendida {
  background: #d1fae5;
  color: #047857;
}

.estado-NoAsistio {
  background: #e2e8f0;
  color: #475569;
}

.dia-calendario {
  display: flex;
  min-width: 58px;
  min-height: 72px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(226, 232, 240, 0.8);
  color: #6b7a90;
}

.dia-calendario-activo {
  background: #087568;
  color: #fff;
  box-shadow: 0 18px 40px rgba(21, 35, 55, 0.08);
}

.linea-tiempo {
  position: absolute;
  top: 1.75rem;
  bottom: 0;
  left: 35px;
  width: 1px;
  background: #e5ebf0;
}

.chip-disponible {
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  padding: 1rem;
  color: #6b7a90;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 900;
}

.contenedor-toast {
  position: fixed;
  top: 0.85rem;
  left: 50%;
  z-index: 95;
  display: grid;
  width: min(calc(100% - 1.5rem), 28rem);
  gap: 0.65rem;
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid #fff;
  border-radius: 18px;
  padding: 0.85rem 0.95rem;
  color: #1f2933;
  font-size: 0.875rem;
  font-weight: 900;
  line-height: 1.35;
  box-shadow: 0 18px 40px rgba(21, 35, 55, 0.18);
  animation: toast-entrada 0.24s ease both;
}

.toast-exito {
  background: #ecfdf5;
  color: #065f46;
}

.toast-error {
  background: #fff1f2;
  color: #9f1239;
}

.toast-icono {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.toast-cerrar {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: currentColor;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.toast-saliendo {
  animation: toast-salida 0.22s ease both;
}

@media (min-width: 768px) {
  .contenedor-toast {
    top: 1rem;
    width: min(calc(100% - 2rem), 34rem);
  }
}

.loader-global {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0 1.25rem 7rem;
  background: rgba(2, 6, 23, 0.2);
  backdrop-filter: blur(4px);
}

.loader-global-activo {
  display: flex;
  animation: aparecer-loader 0.18s ease both;
}

.loader-contenido {
  display: flex;
  width: 100%;
  max-width: 24rem;
  align-items: center;
  gap: 1rem;
  border: 1px solid #fff;
  border-radius: 24px;
  background: #fff;
  padding: 1.25rem;
  box-shadow: 0 18px 40px rgba(21, 35, 55, 0.08);
  animation: subir-loader 0.24s ease both;
}

.loader-spinner {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border: 4px solid #dffcf4;
  border-top-color: #087568;
  border-radius: 999px;
  animation: girar-loader 0.8s linear infinite;
}

.cargando-boton {
  pointer-events: none;
  opacity: 0.75;
}

@media (prefers-reduced-motion: no-preference) {
  main > section,
  .tarjeta,
  .tarjeta-compacta,
  .dia-calendario,
  .chip-disponible,
  details,
  article {
    animation: entrada-suave 0.42s ease both;
  }
}

@keyframes toast-entrada {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-salida {
  to {
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
  }
}
