
.alerta-horario {

    position: fixed;

    top: 25px;
    left: 50%;

    width: min(90%, 500px);

    padding: 18px 20px;

    border-radius: 25px;

    display: flex;

    align-items: center;

    gap: 15px;

    z-index: 999999;

    box-sizing: border-box;

    font-family: Arial, sans-serif !important;

    background: #ffffff;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.25);

    opacity: 0;

    transform:
        translate(-50%, -150%)
        scale(0.85);

    overflow: visible;

    transition:
        transform 0.5s ease,
        opacity 0.5s ease;
}


.alerta-horario.alerta-visible {

    opacity: 1;

    transform:
        translate(-50%, 0)
        scale(1);

}


.alerta-horario.alerta-abierto {

    background: #ffffff !important;

    border-left: 6px solid #20c997 !important;

    color: #111111 !important;

}


.alerta-horario.alerta-cerrado {

    background: #ffffff !important;

    border-left: 6px solid #dc3545 !important;

    color: #111111 !important;

}


.alerta-icono {

    font-size: 30px !important;

    min-width: 35px;

    width: 35px;

    text-align: center;

    line-height: 1.2;

    color: #111111 !important;

    opacity: 1 !important;

    flex-shrink: 0;

}


.alerta-contenido {

    display: flex;

    flex-direction: column;

    gap: 4px;

    flex: 1;

    min-width: 0;

    color: #111111 !important;

    opacity: 1 !important;

    visibility: visible !important;

}


.alerta-contenido strong {

    display: block;

    font-family: Arial, sans-serif !important;

    font-size: 18px !important;

    font-weight: 700 !important;

    line-height: 1.3;

    color: #111111 !important;

    opacity: 1 !important;

    visibility: visible !important;

    text-shadow: none !important;

}


.alerta-contenido span {

    display: block;

    font-family: Arial, sans-serif !important;

    font-size: 14px !important;

    font-weight: 400 !important;

    line-height: 1.4;

    color: #333333 !important;

    opacity: 1 !important;

    visibility: visible !important;

    text-shadow: none !important;

}


.alerta-contenido span b {

    font-family: Arial, sans-serif !important;

    font-size: inherit !important;

    font-weight: 700 !important;

    color: #111111 !important;

    opacity: 1 !important;

}


.alerta-contenido small {

    display: block;

    font-family: Arial, sans-serif !important;

    font-size: 12px !important;

    font-weight: 400 !important;

    line-height: 1.4;

    color: #555555 !important;

    opacity: 1 !important;

    visibility: visible !important;

}


.cerrar-alerta {

    border: none !important;

    outline: none !important;

    background: transparent !important;

    font-family: Arial, sans-serif !important;

    font-size: 28px !important;

    font-weight: 700 !important;

    line-height: 1;

    color: #111111 !important;

    cursor: pointer;

    padding: 4px 8px;

    margin: 0;

    opacity: 0.7 !important;

    flex-shrink: 0;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;

}


.cerrar-alerta:hover {

    opacity: 1 !important;

    transform: scale(1.1);

}


.alerta-horario.alerta-visible:not(.alerta-explotando) {

    animation:
        inflarBurbuja 5s ease-in-out forwards;

}


@keyframes inflarBurbuja {

    0% {

        transform:
            translate(-50%, 0)
            scale(1);

    }

    15% {

        transform:
            translate(-50%, 0)
            scale(1.01);

    }

    30% {

        transform:
            translate(-50%, 0)
            scale(1.02);

    }

    45% {

        transform:
            translate(-50%, 0)
            scale(1.035);

    }

    60% {

        transform:
            translate(-50%, 0)
            scale(1.05);

    }

    75% {

        transform:
            translate(-50%, 0)
            scale(1.065);

    }

    90% {

        transform:
            translate(-50%, 0)
            scale(1.08);

    }

    100% {

        transform:
            translate(-50%, 0)
            scale(1.09);

    }

}


.alerta-horario.alerta-explotando {

    animation:
        explotarBurbuja 0.7s ease-out forwards !important;

    pointer-events: none;

}


@keyframes explotarBurbuja {

    0% {

        opacity: 1;

        transform:
            translate(-50%, 0)
            scale(1.09);

    }

    15% {

        opacity: 1;

        transform:
            translate(-50%, 0)
            scale(1.16);

    }

    30% {

        opacity: 1;

        transform:
            translate(-50%, 0)
            scale(1.25);

    }

    45% {

        opacity: 0.9;

        transform:
            translate(-50%, 0)
            scale(1.15);

    }

    65% {

        opacity: 0.55;

        transform:
            translate(-50%, 0)
            scale(0.9);

    }

    100% {

        opacity: 0;

        transform:
            translate(-50%, 0)
            scale(0);

    }

}


.alerta-horario.alerta-explotando::before {

    content: "";

    position: absolute;

    left: 50%;

    top: 50%;

    width: 30px;

    height: 30px;

    border-radius: 50%;

    border: 4px solid #20c997;

    transform:
        translate(-50%, -50%)
        scale(0);

    opacity: 0;

    animation:
        circuloExplosion 0.7s ease-out forwards;

    pointer-events: none;

}


.alerta-horario.alerta-explotando::after {

    content: "";

    position: absolute;

    left: 50%;

    top: 50%;

    width: 15px;

    height: 15px;

    border-radius: 50%;

    border: 3px solid #48cae4;

    transform:
        translate(-50%, -50%)
        scale(0);

    opacity: 0;

    animation:
        segundoCirculoExplosion 0.7s ease-out forwards;

    pointer-events: none;

}


@keyframes circuloExplosion {

    0% {

        opacity: 0;

        transform:
            translate(-50%, -50%)
            scale(0);

    }

    20% {

        opacity: 0.9;

    }

    60% {

        opacity: 0.7;

    }

    100% {

        opacity: 0;

        transform:
            translate(-50%, -50%)
            scale(5);

    }

}


@keyframes segundoCirculoExplosion {

    0% {

        opacity: 0;

        transform:
            translate(-50%, -50%)
            scale(0);

    }

    20% {

        opacity: 1;

    }

    100% {

        opacity: 0;

        transform:
            translate(-50%, -50%)
            scale(7);

    }

}


.alerta-oculta {

    opacity: 0 !important;

    pointer-events: none !important;

}


@media (max-width: 600px) {

    .alerta-horario {

        top: 15px;

        width: calc(100% - 30px);

        padding: 15px;

        border-radius: 22px;

        gap: 10px;

    }


    .alerta-icono {

        font-size: 25px !important;

        min-width: 30px;

        width: 30px;

    }


    .alerta-contenido strong {

        font-size: 16px !important;

    }


    .alerta-contenido span {

        font-size: 13px !important;

    }


    .alerta-contenido small {

        font-size: 11px !important;

    }


    .cerrar-alerta {

        font-size: 25px !important;

    }

}


@media (max-width: 400px) {

    .alerta-horario {

        width: calc(100% - 20px);

        padding: 13px;

        gap: 8px;

    }


    .alerta-icono {

        font-size: 22px !important;

        min-width: 27px;

        width: 27px;

    }


    .alerta-contenido strong {

        font-size: 15px !important;

    }


    .alerta-contenido span {

        font-size: 12px !important;

    }

}

/* =====================================================
   BURBUJA DOBLE (MENÚ): DOS MITADES
===================================================== */

.alerta-horario.alerta-doble {
    padding: 16px 14px 16px 20px;
}

.alerta-doble .alerta-contenido {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
}

.alerta-mitad {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 14px;
    text-align: center;
}

.alerta-mitad + .alerta-mitad {
    border-left: 1px solid rgba(0, 0, 0, 0.18);
}

.mitad-titulo {
    font-family: Arial, sans-serif !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.25;
    color: #111111 !important;
}

.mitad-estado {
    font-family: Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #333333 !important;
}

.mitad-hora {
    font-family: Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #111111 !important;
}

@media (max-width: 600px) {

    .alerta-horario.alerta-doble {
        padding: 14px 10px 14px 12px;
    }

    .alerta-mitad {
        padding: 0 8px;
    }

    .mitad-titulo {
        font-size: 14px !important;
    }

    .mitad-estado {
        font-size: 12px !important;
    }

    .mitad-hora {
        font-size: 12.5px !important;
    }

}

@media (max-width: 400px) {

    .mitad-titulo {
        font-size: 13px !important;
    }

    .mitad-hora {
        font-size: 12px !important;
    }

}