:root {
  --sidebar-width-desktop: 250px;
  --color-primario: #007bff;
  --color-primario-oscuro: #0056b3;
  --color-fondo-panel: #f4f6f9;
  --color-fondo-tarjeta: #ffffff;
  --color-texto-principal: #333;
  --color-texto-secundario: #6c757d;
  --color-borde-suave: #dee2e6;
  --sombra-suave: 0 2px 10px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--color-fondo-panel);
  color: var(--color-texto-principal);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  /* Evita que el body tenga scroll */
}

a {
  text-decoration: none;
  color: #FFFFFF;
}






.mobile-sidebar-toggle {
  display: none;
  /* Oculto en desktop, visible en móvil */
  background: none;
  border: none;
  color: white;
  font-size: 1.6em;
  cursor: pointer;
  padding: 0 15px 0 0;
}

#user-area {
  display: none;
  /* Controlado por JS */
}

.user-button {
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: inherit;
}

.user-photo-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 8px;
  object-fit: cover;
}

/* --- 2. Contenedor Principal del Panel --- */
.panel-container {
  display: flex;
  flex-grow: 1;
  margin-top: var(--header-height);
  overflow: hidden;
}


/* --- 3. Sidebar (Menú Lateral Izquierdo) --- */
.sidebar {
  width: var(--sidebar-width-desktop);
  background-color: #000000;
  color: #FFFFFF;
  flex-shrink: 0;
  height: calc(100vh - var(--header-main-height));
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.sidebar .logo {
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  border-bottom: 1px solid #222;
  display: flex;
  align-items: center;
}

.sidebar .logo i {
  margin-right: 10px;
}

.sidebar .menu ul {
  list-style: none;
}

.sidebar .menu a {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: #E0E0E0;
  transition: background-color 0.2s;
}

.sidebar .menu a:hover {
  background-color: #1A1A1A;
}

.sidebar .menu a i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

/* Submenú del Sidebar */
.sidebar .has-submenu>a .arrow {
  margin-left: auto;
  transition: transform 0.3s;
}

.sidebar .has-submenu.active>a .arrow {
  transform: rotate(180deg);
}

.sidebar .submenu {
  background-color: #1C1C1C;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.sidebar .has-submenu.active .submenu {
  max-height: 500px;
}

.sidebar .submenu a {
  padding-left: 45px;
  font-size: 0.9em;
  color: #ccc;
}

.sidebar .submenu a:hover {
  background-color: #2D2D2D;
}

/* Overlay para sidebar en móvil */
.sidebar-panel-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.sidebar-panel-overlay.active {
  display: block;
}


/* --- 4. Área de Contenido Principal --- */
.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  /* Scroll principal aquí */
}

/* Header dentro del Main Content */
.main-header {
  background-color: var(--color-fondo-tarjeta);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-borde-suave);
  flex-shrink: 0;
}

.main-header .search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-header .search-bar input,
.main-header .search-bar select {
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Botones de acción (Concretados, Pendientes, etc.) */
.header-actions {
  padding: 15px 10px;
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--color-borde-suave);
  background-color: var(--color-fondo-tarjeta);
}

.header-actions .btn {
  background-color: #f8f9fa;
  color: #495057;
  border: 1px solid #ced4da;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.9em;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  flex-grow: 1;
  /* Para que ocupen espacio similar */
  text-align: center;
}

.header-actions .btn:hover {
  background-color: #343a40;
  color: white;
}

.header-actions .btn.btn-selected {
  background-color: var(--color-primario);
  color: white;
  border-color: var(--color-primario);
}


/* --- 5. Contenido Específico (Historial de Pedidos) --- */
.content-area {
  padding: 20px;
  flex-grow: 1;
  overflow-y: auto;
  /* Habilita el scroll vertical */
  scrollbar-width: thin;
  /* Para Firefox: scrollbar delgada */
}

/* Para navegadores basados en WebKit (Chrome, Edge, Safari) */
.content-area::-webkit-scrollbar {
  width: 8px;
  /* ancho del scroll */
}

.content-area::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}



.pedidos-historial-container {
  background-color: var(--color-fondo-tarjeta);
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--sombra-suave);
}

.pedidos-titulo {
  margin: 0 0 20px 0;
  font-size: 1.8em;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.lista-pedidos .mensaje-carga,
.lista-pedidos .mensaje-vacio {
  text-align: center;
  color: var(--color-texto-secundario);
  padding: 30px 0;
}

/* Tarjeta de Pedido Individual */
.pedido-contenedor {
  border: 1px solid var(--color-borde-suave);
  border-radius: 6px;
  margin-bottom: 20px;
  box-shadow: var(--sombra-suave);
}

.pedido-encabezado {
  background-color: #343a40;
  color: #fff;
  padding: 12px 18px;
  border-radius: 6px 6px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.pedido-info-principal span {
  display: block;
}

.pedido-id {
  font-size: 0.8em;
  color: #ced4da;
  margin-top: 9px;
  margin-bottom: 9px;
}

.pedido-total {
  font-size: 1.1em;
  font-weight: bold;
}

.pedido-estado {
  padding-top: 12px;
  padding-bottom: 12px;
  border-radius: 15px;
  font-size: 0.8em;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  text-align: left;
}

.pedido-estado.pagado {
  background-color: #28a745;
}

.pedido-estado.pendiente {
  background-color: #ffc107;
  color: #212529;
}

.pedido-estado.error {
  background-color: #dc3545;
}

.pedido-estado.desconocido {
  background-color: #6c757d;
}

/* NUEVA CLASE PARA EN_ELABORACION */
.pedido-estado.en_elaboracion {
  background-color: #007bff;
}

.pedido-cuerpo {
  padding: 15px 18px;
}

.pedido-cuerpo h4 {
  margin: 0 0 10px 0;
}

.pedido-items-lista {
  list-style: none;
}

.pedido-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
}

.pedido-item:last-child {
  border-bottom: none;
}

.pedido-item-imagen-container {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  background-color: #e9ecef;
  margin-right: 15px;
  overflow: hidden;
  flex-shrink: 0;
}

.pedido-item-imagen-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pedido-item-info {
  flex-grow: 1;
}

.pedido-item-nombre {
  font-weight: 600;
}

.pedido-item-detalles {
  font-size: 0.85em;
  color: var(--color-texto-secundario);
}

.pedido-item-precio-total {
  font-weight: 600;
  margin-left: 15px;
}

#btn-ver-mas {
  display: none;
  /* Controlado por JS */
  margin: 20px auto;
  padding: 10px 20px;
  cursor: pointer;
  background-color: var(--color-primario);
  color: white;
  border: none;
  border-radius: 5px;
}

.search-group {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  /* ● Evita que el botón salte abajo */
  max-width: 100%;
  /* Se adapta a pantallas chicas */
}

.search-group input {
  flex-grow: 1;
  border: 1px solid #ced4da;
  padding: 8px 12px;
  border-radius: 8px 0 0 8px;
  font-size: 0.9em;
  background-color: #fff;
  min-width: 0;
  /* ● Previene desbordes */
}

.boton-buscar-texto {
  white-space: nowrap;
  /* ● Impide que el texto haga salto de línea */
  padding: 8px 16px;
  background-color: #ffffff;
  color: #5a6c84;
  /* azul-gris semioscuro */
  border: none;
  border-radius: 0 8px 8px 0;
  font-weight: 500;
  font-size: 0.9em;
  cursor: pointer;
  margin-left: 12px;
  margin-right: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.boton-buscar-texto:hover {
  background-color: #f2f4f7;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}






/* Contenedor de pago info */
.pedido-pago-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  /* ✅ Reducir de 4px a 2px */
}

.logo-metodo-pago-badge {
  height: 24px;
  width: auto;
  display: block;
  margin-bottom: 4px;
  /* ✅ Pequeño margen inferior */
}

/* Botón Ver Voucher - Desktop */
.btn-ver-voucher-desktop {
  background: white;
  color: #4a4a4a;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 6px 15px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  /* ✅ Ajustar a 8px (total ~12px con el gap) */
}

/* Texto de pago recibido */
.pago-recibido {
  display: block;
  margin: 4px 0;
  /* ✅ Margen uniforme */
}

/* ========================================================================== */
/* --- ESTILOS RESPONSIVOS --- */
/* ========================================================================== */

/* --- Vista Tablet y Móvil (<= 992px) --- */
@media (max-width: 992px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: var(--header-main-height);
    height: calc(100vh - var(--header-main-height));
    transform: translateX(-100%);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-sidebar-toggle {
    display: block;
    /* Mostrar botón hamburguesa */
  }


}





/************************TIPOS DE PAGO*******/
/* Estilos Generales y del Contenedor */


/* Estilos del Modal (Pop-up) */
.modal {
  display: flex;
  justify-content: center;
  position: fixed;
  /* Posición fija para cubrir toda la pantalla */
  z-index: 1002;
  /* <-- MUY IMPORTANTE: Asegura que esté por encima de otros elementos */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  /* Utiliza flexbox para centrar el contenido y manejar el espacio */
  display: flex;
  /* Cambiado a flex para centrar */
  align-items: center;
  /* Centra el contenido verticalmente */
  overflow-y: auto;
  padding: 40px 0;
  /* <-- AÑADIDO: Crea un espacio de 40px arriba y abajo */
  background-color: rgba(0, 0, 0, 0.6);
  /* Fondo semi-transparente */
  backdrop-filter: blur(5px);
  /* Efecto de desenfoque moderno */
  -webkit-backdrop-filter: blur(5px);
  /* Compatibilidad con Safari */
}

.modal-content {
  background-color: #ffffff;
  padding: 40px;
  /* Ya lo tienes, pero este es el margen interno */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  position: relative;
  max-width: 600px;
  /* Ancho máximo para PC */
  width: 90%;
  /* Ancho responsivo */
  animation: fadeInScale 0.3s ease-out forwards;
  /* Animación de entrada */
  display: flex;
  flex-direction: column;
  gap: 20px;

  /* Añadir margen superior e inferior para evitar que se pegue */
  /* Esto es útil si el contenido del modal es muy grande y se activa el scroll */
  margin-top: 0px;
  /* Añade un pequeño margen superior */
  margin-bottom: 0px;
  /* Añade un pequeño margen inferior */
  /* El 'margin: auto;' que teníamos antes con 'display: block' ya no es tan relevante con flexbox para centrar, pero lo dejamos por si acaso */
}

/* Animación de entrada del modal */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

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

.close-button {
  color: #aaa;
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
  color: #333;
}

.modal-content h2 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 2em;
  text-align: center;
}

.modal-content p {
  font-size: 1.1em;
  color: #555;
  text-align: center;
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  /* Permite que los elementos se envuelvan en pantallas pequeñas */
  justify-content: center;
  gap: 30px;
  /* Espacio entre los métodos de pago */
  margin-top: 25px;
}

.payment-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  flex: 1 1 calc(50% - 30px);
  /* Para 2 columnas en PC, ajusta para gap */
  min-width: 280px;
  /* Ancho mínimo para cada tarjeta de pago */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.payment-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.payment-item h3 {
  margin-bottom: 15px;
  font-size: 1.5em;
}

.payment-icon {
  max-width: 120px;
  /* Tamaño máximo para las imágenes de pago */
  height: auto;
  margin-bottom: 20px;
  display: block;
  /* Para centrar la imagen */
  margin-left: auto;
  margin-right: auto;
}

.payment-item p {
  font-size: 1em;
  color: #666;
  margin-bottom: 15px;
}

.card-types {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.card-types span {
  background-color: #e2f0ff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.85em;
  font-weight: bold;
}

.powered-by {
  font-size: 0.9em;
  color: #888;
  margin-top: 25px;
  text-align: center;
}

/* 1) Centrar el contenido del header */
.main-header {
  display: flex;
  justify-content: center;
  /* centra el único elemento (.search-group) */
  align-items: center;
}

/* 2) Fijar un ancho máximo y centrar la search-group */
.search-group {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 600px;
  /* ajusta este valor al ancho deseado en tablet/PC */
  margin: 0 auto;
  /* centra la caja dentro del header */
}

/* 3) Opcional: si quieres que en pantallas muy grandes no crezca demasiado */
@media (min-width: 1200px) {
  .search-group {
    max-width: 800px;
  }
}



#mobile-nav-panel {
  display: none;
}




.payment-icon {
  max-width: 100px;
  /* Ajusta el tamaño de la imagen en móvil */
}

.payment-icons {
  display: flex;
  gap: 1rem;
  /* espacio entre ellas */
  align-items: center;
  /* si quieres que queden alineadas verticalmente */
}

.payment-icon {
  max-height: auto;
  /* o el tamaño que desees */
}




/* Contenedor modal */
.modal-content {
  position: relative;
  /* para poder posicionar el botón "close" */
  width: clamp(300px, 90%, 600px);
  /* nunca menor a 300px, ni mayor a 600px, y escala hasta el 90% */
  max-height: 90vh;
  /* como mucho el 90% de la altura de la pantalla */
  overflow-y: auto;
  /* scroll interno si falta espacio */
  padding: 25px;
  box-sizing: border-box;
}

/* Botón de cerrar en la esquina superior derecha */
.close-button {
  position: absolute;
  top: 0;
  /* o 0 si quieres justo en el borde */
  right: 0.5rem;
  /* o 0 para justo en el borde */
  font-size: clamp(2rem, 6vw, 3rem);
  cursor: pointer;
  z-index: 10;
  /* por si acaso queda encima del título */
  color: #000000;
}

/* Titulares responsivos */
.modal-content h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: 0;
  /* para que no se meta bajo el botón */
  padding-top: 1rem;
  /* deja un poco de espacio desde el top */
}

/* Párrafos responsivos */
.modal-content p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.4;
}

/* Íconos de pago escalables */
.payment-icon {
  width: clamp(40px, 10vw, 100px);
  height: auto;
}

/* Flex items adaptables */
.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.payment-item {
  flex: 1 1 clamp(200px, 45%, 300px);
  box-sizing: border-box;
}



.modal-content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
}

.modal-content {
  overflow-y: auto;
  /* sigue permitiendo scroll */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE 10+ */
}

/* WebKit */
.modal-content::-webkit-scrollbar {
  display: none;
}





#mobile-logout-button {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 10px 0;
  cursor: pointer;
  color: #ffffff;
  font-weight: 500;
  font-size: 1em;
  display: flex;
  align-items: center;
  transition: background-color 0.2s;
  margin-left: 18px;
  margin-top: 12px;
}
























/* pedidos.css - Estilos para el sistema de pedidos */

/* ===== ESTILOS GENERALES ===== */
.pedido-row {
  transition: all 0.3s ease;
  cursor: pointer;
}

.pedido-row:hover {
  background-color: #f8f9fa;
  transform: translateX(5px);
}


/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #dee2e6;
}

.timeline-item {
  position: relative;
  padding-bottom: 30px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -25px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  border: 3px solid #dee2e6;
}

.timeline-marker.primary {
  border-color: #007bff;
  background: #007bff;
}

.timeline-marker.success {
  border-color: #28a745;
  background: #28a745;
}

.timeline-marker.warning {
  border-color: #ffc107;
  background: #ffc107;
}

.timeline-marker.danger {
  border-color: #dc3545;
  background: #dc3545;
}

.timeline-marker.info {
  border-color: #17a2b8;
  background: #17a2b8;
}

.timeline-content {
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  min-width: 300px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 16px;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  z-index: 9999;
}

.toast-notification.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast-success {
  border-left: 4px solid #28a745;
}

.toast-success i {
  color: #28a745;
}

.toast-error {
  border-left: 4px solid #dc3545;
}

.toast-error i {
  color: #dc3545;
}

.toast-warning {
  border-left: 4px solid #ffc107;
}

.toast-warning i {
  color: #ffc107;
}

.toast-info {
  border-left: 4px solid #17a2b8;
}

.toast-info i {
  color: #17a2b8;
}

/* ===== ITEMS DE PEDIDO ===== */
.item-pedido {
  background: white;
  transition: all 0.3s ease;
}

.item-pedido:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.item-pedido img {
  max-height: 80px;
  object-fit: contain;
}

.placeholder-image {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 8px;
}

/* ===== RESUMEN DE TOTALES ===== */
.resumen-totales {
  border: 2px solid #007bff;
}

.resumen-totales .row {
  padding: 5px 0;
}

.resumen-totales hr {
  border-color: #007bff;
  margin: 10px 0;
}

/* ===== FILTROS Y BÚSQUEDA ===== */
.filtros-container {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.filtros-container .form-control,
.filtros-container .form-select {
  border-radius: 6px;
  border: 1px solid #ced4da;
  padding: 8px 12px;
}

.filtros-container .form-control:focus,
.filtros-container .form-select:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
}

/* ===== TABLA DE PEDIDOS ===== */
.table-pedidos {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table-pedidos thead {
  background: #007bff;
  color: white;
}

.table-pedidos thead th {
  border: none;
  padding: 15px;
  font-weight: 600;
}

.table-pedidos tbody td {
  padding: 15px;
  vertical-align: middle;
}

.table-pedidos tbody tr {
  border-bottom: 1px solid #dee2e6;
}

.table-pedidos tbody tr:last-child {
  border-bottom: none;
}

/* ===== ESTADÍSTICAS ===== */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: #007bff;
}

.stat-card .stat-label {
  color: #6c757d;
  font-size: 0.875rem;
  text-transform: uppercase;
  margin-top: 5px;
}

/* ===== LOADING INDICATOR ===== */
#loadingIndicator {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9998;
}

.spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.3em;
}

/* ===== BOTONES DE ACCIÓN ===== */
.btn-group .btn {
  border-radius: 4px;
  margin: 0 2px;
}

.btn-group .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ===== CAMPO ADICIONAL ===== */
.campo-adicional {
  padding: 10px;
  background: #f8f9fa;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.campo-adicional code {
  background: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  color: #d63384;
}

.copiar-campo {
  margin-left: auto;
}



/* ===== PRINT STYLES ===== */
@media print {
  .no-print {
    display: none !important;
  }

  .table-pedidos {
    box-shadow: none;
  }



  body {
    font-size: 12pt;
  }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* ===== MEJORAS VISUALES ===== */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.card-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px 12px 0 0 !important;
  padding: 1.5rem;
}

.card-body {
  padding: 1.5rem;
}

/* ===== ALERTAS PERSONALIZADAS ===== */
.alert-custom {
  border-radius: 8px;
  border: none;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-custom i {
  font-size: 1.5rem;
}

/* ===== MEJORAS PARA FORMULARIOS ===== */
input[type="date"] {
  cursor: pointer;
}

select.form-control,
select.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  padding-right: 2.5rem;
}








/* ===== DESKTOP: Vista móvil oculta por defecto ===== */
.pedido-info-movil {
  display: none;
}

/* ===== ESTILOS PARA VISTA MÓVIL ===== */
.pedido-linea {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 6px;
}

.pedido-linea strong {
  font-weight: 600;
}

/* ✅ Primera línea con fecha y estado lado a lado */
.pedido-linea-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 10px;
}

.pedido-fecha-movil {
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1;
}

.pedido-estado-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  /* Evita que se rompa en dos líneas */
  flex-shrink: 0;
}

.pedido-estado-badge.success {
  background-color: #28a745;
}

.pedido-estado-badge.warning {
  background-color: #ffc107;
  color: #212529;
}

.pedido-estado-badge.danger {
  background-color: #dc3545;
}

.pedido-estado-badge.info {
  background-color: #17a2b8;
}

.pedido-estado-badge.secondary {
  background-color: #6c757d;
}

.pedido-estado-badge.recibido {
  background-color: #007bff;
  /* Azul más fuerte que "info" */
}

.pedido-estado-badge.elaboracion {
  background-color: #9c27b0;
  /* Morado elegante, distintivo */
}

.pedido-estado-badge.enviado {
  background-color: #e07400;
  /* Morado elegante, distintivo */
}

.pedido-pago-texto {
  font-weight: 500;
  color: #e9ecef;
}

.pedido-separador {
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  margin: 10px 0;
}

.pedido-total-movil {
  font-size: 1.3rem;
  font-weight: bold;
  color: #ffc107;
  text-align: center;
}






/* Toast personalizado para cambios en tiempo real */
.toast-cambio-pedido {
  position: fixed;
  top: -100px;
  /* Fuera de vista inicialmente */
  left: 50%;
  transform: translateX(-50%);
  background: white;
  color: #1a3a5c;
  /* Azul-negro */
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-weight: 500;
  font-size: 15px;
  z-index: 10000;
  transition: top 0.5s ease-out;
  white-space: nowrap;
}

.toast-cambio-pedido.show {
  top: 1cm;
  /* 1cm desde arriba */
}

.toast-cambio-pedido.hide {
  top: -100px;
  /* Vuelve a subir */
}






/* Logo de método de pago inline en badges */
.logo-metodo-pago-inline {
  height: 16px;
  /* ✅ Reducido de 18px */
  width: auto;
  vertical-align: middle;
  margin-right: 4px;
  display: inline-block;
}


/* Ya no se usa, pero por si acaso */
.logo-metodo-pago-small {
  height: 12px;
  /* ✅ Más pequeño */
  width: auto;
  vertical-align: middle;
  margin-right: 3px;
}

/* Logo de método de pago - ÚNICO estilo necesario */
.logo-metodo-pago-badge {
  height: 24px;
  width: auto;
  display: block;
}





/* Logo de pago en vista móvil */
.pedido-pago-movil {
  display: flex;
  align-items: center;
  gap: 12px; /* ✅ 12px entre logo y botón */
  margin: 8px 0;
  flex-wrap: nowrap; /* ✅ Evitar que se separen */
}

.logo-pago-movil {
  height: 20px;
  width: auto;
}





.btn-ver-voucher-desktop:hover {
  background: #f5f5f5;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-ver-voucher-desktop i {
  color: #666;
  font-size: 12px;
}

/* Botón Ver Voucher - Móvil */
.btn-ver-voucher-movil {
  background: white;
  color: #4a4a4a;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.btn-ver-voucher-movil:hover {
  background: #f5f5f5;
}

.btn-ver-voucher-movil i {
  color: #666;
  font-size: 11px;
}


/* Autocompletado de búsqueda */
.search-wrapper {
  position: relative;
  display: flex;
  gap: 8px;
  width: -webkit-fill-available;
}

.search-suggestions-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 300px;
  overflow-y: auto;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
  margin-top: 4px;
}

.search-suggestions-dropdown.show {
  display: block;
}

.search-suggestion-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s;
}

.search-suggestion-item:hover {
  background-color: #f5f5f5;
}

.search-suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-id {
  font-weight: 600;
  color: #333;
  display: block;
  margin-bottom: 4px;
}

.suggestion-details {
  font-size: 0.85em;
  color: #666;
  display: flex;
  gap: 12px;
}

.suggestion-empty {
  padding: 12px 16px;
  color: #999;
  text-align: center;
}








.filtros-fecha-activos {
  display: flex;
  align-items: center;
  flex-wrap: wrap; /* ✅ Permite saltos solo cuando sea necesario */
  gap: 8px;
  padding: 5px 9px;
  margin: 15px 0;
  background: #2d3748; /* ✅ Gris oscuro */
  color: #e2e8f0; /* ✅ Gris claro/blanco */
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  animation: slideDown 0.3s ease;
  margin-left: 16px;
    margin-right: 16px;
}

.filtros-fecha-activos i {
  font-size: 16px;
  color: #cbd5e0; /* ✅ Ícono gris claro */
  flex-shrink: 0; /* ✅ Evita que el ícono se comprima */
}

.filtros-fecha-activos strong {
  color: #ffffff; /* ✅ Texto en negrita blanco */
  white-space: nowrap; /* ✅ Mantiene juntas las palabras clave */
}

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

/* Contenedor del botón limpiar fecha */
.container-btn-limpiar-fecha {
  margin: 10px 0 20px 0;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
      opacity: 0;
  }
  to {
      opacity: 1;
  }
}

/* ========================================
 MOVIL
 ======================================== */

 @media (max-width: 768px) {

  body {
    overflow: auto; /* ✅ Permitir scroll en body */
    height: auto; /* ✅ Permitir altura dinámica */
  }
  
  .main-content {
    overflow-y: visible; /* ✅ Quitar scroll del contenedor */
    height: auto;
  }
  
  .panel-container {
    overflow: visible;
  }
  /* ===== NAVEGACIÓN Y HEADER ===== */
  #mobile-nav-panel {
    display: block;
  }
  
  #navLinkHeaderNavPnel {
    display: none;
  }
  
  .header-z .logo-info,
  .header-z .nav-links #user-name-display {
    display: none;
  }
  
  .main-header {
    flex-direction: column;
    height: auto;
    gap: 10px;
    align-items: stretch;
  }
  
  .main-header .search-bar {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  
  .main-header .search-bar input,
  .main-header .search-bar select {
    width: 100%;
  }
  
  .header-actions {
    flex-wrap: wrap;
    padding: 10px;
  }
  
  /* ===== SIDEBAR ADMIN ===== */
  #adminSidebar {
    overflow-y: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
    height: calc(100vh - 50px);
  }
  
  #adminSidebar::-webkit-scrollbar {
    display: none;
  }
  
  /* ===== ÁREA DE CONTENIDO ===== */
  .content-area {
    padding-left: 0;
    padding-right: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  
  .content-area::-webkit-scrollbar {
    display: none;
  }
  
  /* ===== PEDIDOS - ESTRUCTURA GENERAL ===== */
  .pedidos-historial-container {
    padding-left: 0;
    padding-right: 0;
  }
  
  .pedidos-titulo {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .lista-pedidos .mensaje-carga,
  .lista-pedidos .mensaje-vacio {
    padding-left: 0;
    padding-right: 0;
  }
  
  .pedido-contenedor {
    margin-left: 10px;
    margin-right: 10px;
  }
  
  .pedido-cuerpo {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* ===== PEDIDO ENCABEZADO ===== */
  .pedido-encabezado {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 15px;
  }
  
  /* Ocultar elementos desktop en móvil */
  .pedido-info-principal,
  .pedido-pago-info,
  .pedido-total {
    display: none !important;
  }
  
  /* Mostrar vista móvil */
  .pedido-info-movil {
    display: block;
    width: 100%;
  }
  
  .pedido-info-principal {
    display: flex;
    flex-direction: column;
    gap: 8px;
    order: 1;
  }
  
  .pedido-info-principal span {
    font-size: 0.9rem;
  }
  
  .pedido-id {
    margin: 0;
  }
  
  .pedido-linea {
    font-size: 0.85rem;
  }
  
  .pedido-fecha-movil {
    font-size: 0.85rem;
  }
  
  /* ===== PEDIDO ESTADO ===== */
  .pedido-estado {
    order: 2;
    align-self: flex-start;
    padding: 8px 16px;
    margin: 0;
  }
  
  .pedido-estado-badge {
    font-size: 0.75rem;
    padding: 5px 10px;
  }
  
  /* ===== PEDIDO TOTAL ===== */
  .pedido-total {
    order: 4;
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffc107;
    padding: 10px 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    text-align: center;
  }
  
  .pedido-total-movil {
    font-size: 1.2rem;
  }
  
  /* ===== PEDIDO ACCIONES ===== */
  .pedido-acciones-cabecera {
    order: 5;
    width: 100%;
    justify-content: space-between;
    margin: 0;
  }
  
  .btn-ver-detalles-pedido {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    text-align: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
  }
  
  .btn-ver-detalles-pedido:hover {
    background: rgba(255, 255, 255, 0.25);
  }
  
  .btn-ver-detalles-pedido i {
    margin-left: 8px;
  }
  
  /* ===== PEDIDO ITEMS ===== */
  .pedido-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .pedido-item-precio-total {
    align-self: flex-end;
    margin-top: 5px;
  }
  
  /* ===== PAGOS MÓVIL ===== */
  .pago-recibido {
    display: inline-block;
    margin-top: 0px;
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .pedido-pago-movil {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
  }
  
  .pedido-pago-movil span {
    font-size: 14px;
    color: #ffffff;
  }
  
  .logo-pago-movil {
    height: 20px;
    width: auto;
    flex-shrink: 0;
  }
  
  .btn-ver-voucher-movil {
    background: white;
    color: #4a4a4a;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .btn-ver-voucher-movil:hover {
    background: #f5f5f5;
  }
  
  .btn-ver-voucher-movil i {
    color: #666;
    font-size: 11px;
  }
  
  /* ===== MODAL ===== */
  .modal-content {
    padding: 20px;
    width: 95%;
  }
  
  .modal-content h2 {
    font-size: 1.8em;
  }
  
  /* ===== MÉTODOS DE PAGO ===== */
  .payment-methods {
    flex-direction: column;
    gap: 20px;
  }
  
  .payment-item {
    flex: 1 1 100%;
    padding: 20px;
    min-width: unset;
  }
  
  .payment-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
  }
  
  .payment-icon {
    max-height: 40px;
    max-width: 100px;
  }
  
  .open-modal-button {
    font-size: 1em;
    padding: 12px 25px;
  }
  
  /* ===== ESTADÍSTICAS Y TABLAS ===== */
  .stats-container {
    grid-template-columns: 1fr;
  }
  
  .table-responsive {
    font-size: 0.875rem;
  }
  
  /* ===== FILTROS ===== */
  .filtros-container {
    padding: 15px;
  }
  
  .filtros-fecha-activos {
    font-size: 13px;
    gap: 6px;
  }
  
  .filtros-fecha-activos i {
    font-size: 14px;
  }
  
  /* ===== TIMELINE ===== */
  .timeline {
    padding-left: 30px;
  }
  
  .timeline-marker {
    left: -21px;
  }
  
  /* ===== NOTIFICACIONES ===== */
  .toast-notification {
    right: 10px;
    left: 10px;
    min-width: auto;
  }
}

/* Móviles */
@media (max-width: 480px) {
  .filtros-fecha-activos {
      font-size: 12px;
      padding: 10px 14px;
      gap: 5px;
      justify-content: center; /* ✅ Centra en móvil */
      text-align: center;
  }
  
  .filtros-fecha-activos i {
      font-size: 13px;
  }
  
  /* ✅ En móvil pequeño, permite que cada strong haga wrap si es necesario */
  .filtros-fecha-activos strong {
      white-space: normal;
  }
}


/* ========================================
   BOTÓN DANGER SOFT (Rojo suave)
   ======================================== */

.btn-danger-soft {
    background-color: #fee2e2; /* Rojo muy suave */
    color: #dc2626; /* Rojo oscuro para el texto */
    border: 1px solid #fecaca; /* Borde rojo claro */
}

.btn-danger-soft:hover {
    background-color: #fecaca; /* Rojo un poco más intenso */
    border-color: #fca5a5;
    color: #b91c1c; /* Texto más oscuro */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.2);
}

.btn-danger-soft:active,
.btn-danger-soft.active {
    background-color: #fca5a5;
    border-color: #f87171;
    color: #991b1b;
    transform: translateY(0);
    box-shadow: inset 0 2px 4px rgba(220, 38, 38, 0.2);
}

.btn-danger-soft:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.btn-danger-soft i {
    color: #dc2626;
}

/* Animación al mostrar/ocultar el botón */
#btnLimpiarFiltroFecha {
    animation: fadeInScale 0.3s ease;
}

#btnLimpiarFiltroFecha .fa-times-circle {
  margin-left: 9px;
  margin-right: 12px;
}









/* Estilos para botones de header-actions */
.header-actions .btn {
  background-color: #f8f9fa;
  color: #212529;
  border: 1px solid #dee2e6;
  transition: all 0.3s ease;
}

.header-actions .btn:hover {
  background-color: #343a40;
  color: white;
}

/* ✅ Estilo para botón ACTIVO/SELECCIONADO */
.header-actions .btn.active {
  background-color: #343a40;
  color: white;
  border-color: #343a40;
  box-shadow: 0 2px 4px rgba(52, 58, 64, 0.3);
  font-weight: 600;
}

/* Mantener el estilo activo incluso al hacer hover */
.header-actions .btn.active:hover {
  background-color: #23272b;
  border-color: #23272b;
}




















.btn-cambiar-tarjeta {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
}

.btn-cambiar-tarjeta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-cambiar-tarjeta:active {
  transform: translateY(0);
}

/* Modal Advertencia Cambio de Pago */
.modal-advertencia-cambio-pago {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-advertencia-cambio-pago.show {
  opacity: 1;
}

.modal-overlay-cambio {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content-cambio {
  position: relative;
  background: white;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-advertencia-cambio-pago.show .modal-content-cambio {
  transform: scale(1);
}

.modal-header-cambio {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-header-cambio i {
  font-size: 24px;
}

.modal-header-cambio h3 {
  margin: 0;
  font-size: 20px;
}

.modal-body-cambio {
  padding: 24px;
}

.modal-body-cambio p {
  margin: 0 0 16px 0;
  line-height: 1.6;
  color: #333;
}

.modal-body-cambio .info-adicional {
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
  padding: 12px;
  border-radius: 4px;
  margin-top: 16px;
  font-size: 14px;
}

.modal-footer-cambio {
  padding: 16px 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  background: #f5f5f5;
}

.btn-cancelar-cambio,
.btn-continuar-cambio {
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cancelar-cambio {
  background: white;
  color: #666;
  border: 2px solid #ddd;
}

.btn-cancelar-cambio:hover {
  background: #f5f5f5;
}

.btn-continuar-cambio {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-continuar-cambio:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Modal Precios Cambiados */
.modal-precios-cambiados {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-precios-cambiados.show {
  opacity: 1;
}

.modal-overlay-precios {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content-precios {
  position: relative;
  background: white;
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-precios-cambiados.show .modal-content-precios {
  transform: scale(1);
}

.modal-header-precios {
  background: linear-gradient(135deg, #ffd89b 0%, #ff6b6b 100%);
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-header-precios i {
  font-size: 24px;
}

.modal-header-precios h3 {
  margin: 0;
  font-size: 20px;
}

.modal-body-precios {
  padding: 24px;
}

.alerta-precios {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 16px;
  border-radius: 4px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.alerta-precios i {
  color: #ffc107;
  font-size: 20px;
  margin-top: 2px;
}

.alerta-precios p {
  margin: 0;
  color: #856404;
}

.detalles-cambios {
  margin: 20px 0;
}

.detalles-cambios h4 {
  margin: 0 0 12px 0;
  font-size: 16px;
  color: #333;
}

.cambio-item {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.cambio-nombre {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.cambio-precios {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.precio-anterior {
  color: #999;
  text-decoration: line-through;
}

.precio-nuevo {
  font-weight: 600;
}

.precio-aumento {
  color: #dc3545;
}

.precio-disminucion {
  color: #28a745;
}

.nuevo-total {
  background: #e8f5e9;
  padding: 16px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
}

.nuevo-total strong {
  font-size: 20px;
  color: #2e7d32;
}

.mensaje-accion {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

.modal-footer-precios {
  padding: 16px 24px;
  display: flex;
  justify-content: center;
  background: #f5f5f5;
}

.btn-entendido {
  padding: 12px 32px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  transition: all 0.2s ease;
}

.btn-entendido:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Loader de Pago */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.loader-overlay.visible {
  opacity: 1;
}

.loader-container {
  text-align: center;
  color: white;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loader-text {
  font-size: 16px;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .btn-cambiar-tarjeta {
      width: 100%;
      margin: 8px 0 0 0;
      justify-content: center;
  }
  
  .modal-content-cambio,
  .modal-content-precios {
      width: 95%;
      max-width: none;
  }
  
  .modal-footer-cambio {
      flex-direction: column-reverse;
  }
  
  .btn-cancelar-cambio,
  .btn-continuar-cambio {
      width: 100%;
  }
}