/* Estilos para el botón de mensaje según el tipo */

.mensaje {
    position: relative;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-left: 5px;
}

/* Contenedor para mostrar el mensaje completo en la misma fila */
.mensaje-contenedor {
    display: inline-flex;
    align-items: center;
    margin-left: 5px;
}

.mensaje-texto {
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Colores según el tipo de mensaje */
.mensaje-activo {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.3);
}

.mensaje-activo:hover {
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
    transform: scale(1.1);
}

.mensaje-vencido {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.3);
    animation: pulse-red 2s infinite;
}

.mensaje-vencido:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
    transform: scale(1.1);
}

.mensaje-gracia {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #212529 !important;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
    animation: pulse-yellow 2s infinite;
}

.mensaje-gracia:hover {
    background-color: #e0a800 !important;
    border-color: #d39e00 !important;
    transform: scale(1.1);
}

.mensaje-bloqueado {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: white !important;
    box-shadow: 0 0 10px rgba(108, 117, 125, 0.3);
    animation: pulse-gray 2s infinite;
}

.mensaje-bloqueado:hover {
    background-color: #5a6268 !important;
    border-color: #545b62 !important;
    transform: scale(1.1);
}

.mensaje-renovado {
    background-color: #17a2b8 !important;
    border-color: #17a2b8 !important;
    color: white !important;
    box-shadow: 0 0 10px rgba(23, 162, 184, 0.3);
    animation: pulse-blue 2s infinite;
}

.mensaje-renovado:hover {
    background-color: #138496 !important;
    border-color: #117a8b !important;
    transform: scale(1.1);
}

.mensaje-notificacion {
    background-color: #fd7e14 !important;
    border-color: #fd7e14 !important;
    color: white !important;
    box-shadow: 0 0 10px rgba(253, 126, 20, 0.3);
    animation: pulse-orange 2s infinite;
}

.mensaje-notificacion:hover {
    background-color: #e8650e !important;
    border-color: #dc6502 !important;
    transform: scale(1.1);
}

.mensaje-mantenimiento {
    background-color: #6f42c1 !important;
    border-color: #6f42c1 !important;
    color: white !important;
    box-shadow: 0 0 10px rgba(111, 66, 193, 0.3);
    animation: pulse-purple 2s infinite;
}

.mensaje-mantenimiento:hover {
    background-color: #5a32a3 !important;
    border-color: #522d8a !important;
    transform: scale(1.1);
}

.mensaje-promocion {
    background-color: #e83e8c !important;
    border-color: #e83e8c !important;
    color: white !important;
    box-shadow: 0 0 10px rgba(232, 62, 140, 0.3);
    animation: pulse-pink 2s infinite;
}

.mensaje-promocion:hover {
    background-color: #d91a72 !important;
    border-color: #c2185b !important;
    transform: scale(1.1);
}

/* Animaciones de pulso */
@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

@keyframes pulse-yellow {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

@keyframes pulse-gray {
    0% { box-shadow: 0 0 0 0 rgba(108, 117, 125, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(108, 117, 125, 0); }
    100% { box-shadow: 0 0 0 0 rgba(108, 117, 125, 0); }
}

@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(23, 162, 184, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(23, 162, 184, 0); }
    100% { box-shadow: 0 0 0 0 rgba(23, 162, 184, 0); }
}

@keyframes pulse-orange {
    0% { box-shadow: 0 0 0 0 rgba(253, 126, 20, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(253, 126, 20, 0); }
    100% { box-shadow: 0 0 0 0 rgba(253, 126, 20, 0); }
}

@keyframes pulse-purple {
    0% { box-shadow: 0 0 0 0 rgba(111, 66, 193, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(111, 66, 193, 0); }
    100% { box-shadow: 0 0 0 0 rgba(111, 66, 193, 0); }
}

@keyframes pulse-pink {
    0% { box-shadow: 0 0 0 0 rgba(232, 62, 140, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(232, 62, 140, 0); }
    100% { box-shadow: 0 0 0 0 rgba(232, 62, 140, 0); }
}

/* Estilo para el tooltip personalizado */
.tooltip-inner {
    max-width: 300px;
    text-align: left;
    background-color: #333;
    color: white;
    border-radius: 6px;
    padding: 10px;
}

.tooltip.bs-tooltip-top .arrow::before {
    border-top-color: #333;
}

.tooltip.bs-tooltip-bottom .arrow::before {
    border-bottom-color: #333;
}

.tooltip.bs-tooltip-left .arrow::before {
    border-left-color: #333;
}

.tooltip.bs-tooltip-right .arrow::before {
    border-right-color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .mensaje {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}
