  .galeria-preview img {
    max-width: 300px;
    max-height: 300px;
    margin: 10px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  }

.color_link {
	color: #13181e !important; 
    text-decoration: none;
}

.color_link:hover  {
	color: #e30613 !important; 
}


.color_link2 {
	color: #e30613 !important; 
    text-decoration: none;
}

.color_link2:hover  {
	color: #13181e !important; 
}

.texto_rojo  {
	color: #e30613 !important; 
}

.texto_verde  {
	color: #1b7a3a !important; 
}


.bg-orange {
    background-color: #FFA500 !important; /* naranja Bootstrap standard */
    color: #fff !important;
}

.text-orange {
    color: #fd7e14 !important;
}

.border-orange {
    border-color: #fd7e14 !important;
}

.bg-grey {
    background-color: #656565 !important; /* naranja Bootstrap standard */
    color: #fff !important;
}

.text-grey {
    color: #656565 !important;
}

.border-grey {
    border-color: #656565 !important;
}



.bg-blue {
    background-color: #3688fa !important; /* naranja Bootstrap standard */
    color: #fff !important;
}

.text-blue {
    color: #3688fa !important;
}

.border-blue {
    border-color: #3688fa !important;
}

.badge { display:inline-block; padding:4px 8px; border-radius:12px; font-size:12px; font-weight:600; }
.badge-danger { background:#ffdddd; color:#b30000; border:1px solid #f3a9a9; }
.badge-ok     { background:#e6f6ea; color:#1b7a3a; border:1px solid #b6e0bf; }
.row-alert 
{
     background: linear-gradient(90deg, rgba(255,240,240,0.8), rgba(255,255,255,0)) !important;
}


/* regla personalizada para resaltar filas */
.table tr.row-alert td {
   background: linear-gradient(90deg, rgba(255,240,240,0.8), rgba(255,255,255,0)) !important;
   box-shadow: none !important; /* cancela el sombreado que mete Bootstrap */
}

.row-alert_max
{
     background: linear-gradient(90deg, rgba(170,230,190,0.8), rgba(255,255,255,0)) !important;
}
/* regla personalizada para resaltar filas */
.table tr.row-alert_max td {
   background: linear-gradient(90deg, rgba(170,230,190,0.8), rgba(255,255,255,0)) !important;
   box-shadow: none !important; /* cancela el sombreado que mete Bootstrap */
}


.sin-foto {
  width: 80px;
  height: 45px;
  background-color: #f0f0f0; /* gris claro */
  border: 1px solid #ccc;
  color: #555;
  font-size: 12px;
  font-family: Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  text-transform: lowercase;
}



/* Fondo oscuro translúcido popup */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

/* Contenedor del contenido */
.popup-contenido {
    background: #fff;
    width: 80%;
    max-width: 800px;
    border-radius: 15px;
    padding: 20px 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s ease;
    position: relative;
}

/* Botón cerrar */
.popup-cerrar {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}
.popup-cerrar:hover {
    color: #000;
}

/* Título */
.popup-contenido h2 {
    margin-top: 0;
    color: #0078D7;
    text-align: center;
}

/* Datos dentro del popup */
.popup-datos {
    margin-top: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

/* Animación de aparición */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.sin-foto {
  width: 80px;
  height: 45px;
  background-color: #f0f0f0; /* gris claro */
  border: 1px solid #ccc;
  color: #555;
  font-size: 12px;
  font-family: Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  text-transform: lowercase;
}
.producto-sin-foto {
	height: 180px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
	border-bottom: 1px solid #ddd;
	color: #777;
	font-size: 13px;
	text-align: center;
	flex-direction: column;
}

.producto-sin-foto i {
	font-size: 32px;
	margin-bottom: 6px;
	color: #999;
}


.img-solicitud {
	width: 48px;
	height: 48px;
	object-fit: contain;
	border-radius: 6px;
	border: 1px solid #ddd;
	background: #fff;
}

.img-solicitud.placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	color: #aaa;
	background: #f5f5f5;
}

.btn-ver-solicitud {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050; /* por encima del contenido */
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

.btn-scroll-top {
    position: fixed;
    bottom: 80px; 
    right: 20px;
    display: none;
    z-index: 1040;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
	padding: 0;         
    line-height: 1;     
}



.card-excede-max {
	border: 1px solid #2e7d32 !important;
	box-shadow: 0 0 0 2px rgba(46,125,50,0.25);
}

.aviso-max {
	background: rgba(46,125,50,0.12);
	color: #1b5e20;
	padding: 4px 8px;
	border-radius: 6px;
	font-size: 11px;
	margin-top: 6px;
	text-align: center;
}

.card-bajo-min {
	border: 1px solid #c62828 !important; /* rojo */
	box-shadow: 0 0 0 2px rgba(198,40,40,0.25);
}


.aviso-min {
    background-color: #fdecea;
    color: #b71c1c;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    margin-top: 6px;
	text-align: center;
}




/*para las fotos*/
  .miniatura {
    max-width: 60px;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 2px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
  }

  .miniatura:hover {
    transform: scale(1.05);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  }

  /* Modal para ver imagen grande */
  .modal-imagen {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
  }

  .modal-imagen img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 4px;
    box-shadow: 0 0 10px #000;
  }

  .modal-imagen.active {
    display: flex;
  }

  .sin-foto {
    width: 70px;
    height: 45px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    color: #555;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
  }


/* Seleccionamos específicamente los enlaces con la clase abrirModalAbonos */
.abrirModalAbonos {
    color: inherit; /* Mantiene el color original del ícono */
    transition: all 0.3s ease; /* Animación suave para cambios */
    display: inline-block; /* Para que el escalado funcione bien */
}

/* Efecto al pasar el mouse */
.abrirModalAbonos:hover {
    color: green; /* Cambia el color a verde */
    transform: scale(1.2); /* Aumenta el tamaño un 20% */
}


.flash-message {
    background-color: #e6f7e9;
    color: #067d2e;
    padding: 10px 16px;
    margin: 0px 0px 0px 0px;
    border-left: 4px solid #28a745;
    font-size: 14px;
    border-radius: 4px;
}

