/* Estilos personalizados adicionales */



/**
** Estilos para los flash helpers
**/
.flash-messages {
    position: fixed;
    width: 100%;
    top: 120px;
    z-index: 10;
}

.r-alert.warning {
    color: #594c01;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.r-alert.error {
    color: #594c01;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.r-alert.success {
    border: none;
    color: #005000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.flash-messages .r-alert {
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    /* sombreado */
}

/* @media (max-width: 500px) {
    .flash-messages {
        top: 162px;
    }
} */



/**
** Estilos para tratar los popups
**/
.hidden {
    display: none !important;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    /* más alto que el resto de la página */
}

/* El overlay que cierra */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px);
    z-index: 1;
}

/* El contenido que no cierra */
.modal-content {
    position: relative;
    z-index: 2;
}

/* Opcional */
.shadow {
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
}

.popup {
    background-image: none;
}

.w100 {
    width: 100%;
}

@media (max-width: 900px) {
    .mobile-width {
        width: 100% !important;
    }
}



/**
** Estilos para las advertencias de los campos al seleccionar hora
**/
.select-course {
    border: 1px solid #396d77;
    border-radius: 10px;
    padding: 5px;
    width: 100%;
    margin-top: 10px;
}

.hour-warning {
    position: relative;
    border: 2px solid #396d77;
    border-radius: 10px;
    padding: 5px;
}

.tooltip-bubble {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
    background-color: #396d77;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.tooltip-bubble::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: #396d77;
}

.tooltip-bubble-top {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    background-color: #396d77;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.tooltip-bubble-top::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #396d77;
}
