/* Estilos para el modal */
.alerts-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Estilos para el contenido del modal */
.alerts-modal-content {
    background: rgba(255, 255, 255, 0.8); /* Fondo del modal semitransparente */
    padding: 20px;
    border-radius: 8px;
    width: 60%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
    backdrop-filter: blur(8px); /* Efecto de desenfoque solo dentro del modal */
}

/* Cruz de cerrar en la esquina */
#alerts-close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2em;
    color: #333;
    cursor: pointer;
    font-weight: bold;
}

#alerts-close-button:hover {
    color: #ff4d4d;
}

/* Título del modal */
#alerts-title {
    margin-bottom: 20px;
    font-size: 1.8em;
}

/* Estilos para las pestañas (texto con subrayado) */
.alerts-tabs {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.alerts-tab {
    font-size: 1.2em;
    padding: 10px 20px;
    cursor: pointer;
    text-align: center;
    border: none;
    background: transparent;
    position: relative;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.alerts-tab:hover {
    color: #ff4d4d; /* Cambia el color al pasar el mouse */
}

.alerts-tab:focus {
    outline: none;
}

/* Línea inferior activa */
.alerts-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

/* Línea inferior de la pestaña activa */
.alerts-tab-active::after {
    background-color: #ff4d4d; /* Color de la línea inferior para la pestaña activa */
}

/* Contenido de las pestañas */
.alerts-tab-contents {
    margin-top: 20px;
}

.alerts-tab-content {
    display: none; /* Inicia todas las pestañas ocultas */
    margin-top: 20px;
}

#rodalies-alerts {
    max-height: 400px; /* Altura máxima para el contenedor de alertas */
    overflow-y: auto; /* Habilitar el desplazamiento vertical */
    margin-top: 20px;
}

.alert-card {
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alert-card h4 {
    margin: 0;
    font-size: 1.2em;
    color: #333;
}

.alert-card p {
    margin-top: 10px;
    font-size: 1em;
    color: #666;
}

.alert-card div {
    margin-top: 10px;
}

.alert-card img {
    width: 30px; /* Ajusta el tamaño del icono */
    margin-bottom: 5px;
}

.alert-card span {
    font-size: 1.1em;
}

/* Media Query para pantallas pequeñas (móviles) */
@media (max-width: 768px) {
    /* Ajustamos el ancho del modal a un 90% para móviles */
    .alerts-modal-content {
        width: 90%;
        padding: 15px; /* Reducimos el padding */
    }

    /* Reducimos el tamaño de la fuente del título y texto */
    #alerts-title {
        font-size: 1.4em; /* Título más pequeño */
    }

    .alerts-tab {
        font-size: 1em; /* Tamaño más pequeño de las pestañas */
    }

    .alert-card h4 {
        font-size: 1em; /* Reducimos el tamaño del texto del título de la alerta */
    }

    .alert-card p {
        font-size: 0.9em; /* Reducimos el tamaño del texto de la descripción */
    }

    .alert-card img {
        width: 25px; /* Reducimos el tamaño del icono */
        height: 25px;
    }

    .alert-card span {
        font-size: 1em; /* Reducimos el tamaño de la fuente */
    }
}
