/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-9elawlzkdt] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-9elawlzkdt] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-dtnigm4nha],
.components-reconnect-repeated-attempt-visible[b-dtnigm4nha],
.components-reconnect-failed-visible[b-dtnigm4nha],
.components-pause-visible[b-dtnigm4nha],
.components-resume-failed-visible[b-dtnigm4nha],
.components-rejoining-animation[b-dtnigm4nha] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-dtnigm4nha],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-dtnigm4nha],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-dtnigm4nha],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-dtnigm4nha],
#components-reconnect-modal.components-reconnect-retrying[b-dtnigm4nha],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-dtnigm4nha],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-dtnigm4nha],
#components-reconnect-modal.components-reconnect-failed[b-dtnigm4nha],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-dtnigm4nha] {
    display: block;
}


#components-reconnect-modal[b-dtnigm4nha] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-dtnigm4nha 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-dtnigm4nha 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-dtnigm4nha 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-dtnigm4nha]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-dtnigm4nha 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-dtnigm4nha {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-dtnigm4nha {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-dtnigm4nha {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-dtnigm4nha] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-dtnigm4nha] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-dtnigm4nha] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-dtnigm4nha] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-dtnigm4nha] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-dtnigm4nha] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-dtnigm4nha] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-dtnigm4nha 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-dtnigm4nha] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-dtnigm4nha {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/MainPage.razor.rz.scp.css */
/* Fondo fijo que cubre toda la ventana, oscurecido para que el texto se lea sobre cualquier imagen. */
.countdown-background[b-6dbrbnaeel] {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-size: cover;
    background-position: center;
}

    .countdown-background[b-6dbrbnaeel]::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
    }

/* Los tamaños usan clamp(mínimo, relativo a la pantalla, máximo) para escalar solos del móvil al escritorio. */
.countdown[b-6dbrbnaeel] {
    min-height: 100vh;
    min-height: 100dvh; /* en móvil descuenta la barra del navegador; el valor anterior es el respaldo */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 3vw, 1.5rem);
    padding: clamp(1rem, 4vw, 2rem) 1rem;
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

    /* El espaciado lo marca el gap; se quitan los márgenes por defecto de Bootstrap. */
    .countdown h1[b-6dbrbnaeel],
    .countdown p[b-6dbrbnaeel] {
        margin: 0;
        max-width: 40rem;
        text-wrap: balance;
    }

.countdown-logo[b-6dbrbnaeel] {
    width: min(30vw, 8rem);
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}

/* Cuadrada sin deformar: object-fit recorta lo que sobra manteniendo las proporciones. */
.countdown-image[b-6dbrbnaeel] {
    display: block;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
    position: relative;
    width: min(40vw, 10rem);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

    /* Imágenes apiladas; el fundido lo hace la transición de opacidad al cambiar la clase .active. */
    .countdown-image img[b-6dbrbnaeel] {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0;
        transition: opacity 1.5s ease-in-out;
    }

        .countdown-image img.active[b-6dbrbnaeel] {
            opacity: 1;
        }

/* Modal de imagen a pantalla completa, mostrada entera (contain) sin recortar. */
.image-modal[b-6dbrbnaeel] {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.85);
    cursor: zoom-out;
    animation: modal-fade-in-b-6dbrbnaeel 0.3s ease-out;
    outline: none;
}

    .image-modal img[b-6dbrbnaeel] {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        border-radius: 0.5rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
        cursor: default;
    }

.image-modal-close[b-6dbrbnaeel] {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

@keyframes modal-fade-in-b-6dbrbnaeel {
    from {
        opacity: 0;
    }
}

.countdown-text[b-6dbrbnaeel] {
    font-size: clamp(1.05rem, 3.5vw, 1.25rem);
}

    .countdown-text.reached[b-6dbrbnaeel] {
        font-size: clamp(1.5rem, 6vw, 2rem);
        font-weight: 700;
    }

/* "Solo faltan:" + contador, agrupados para que la etiqueta quede pegada al tiempo. */
.countdown-remaining[b-6dbrbnaeel] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.remaining-label[b-6dbrbnaeel] {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.8);
}

/* Siempre 4 columnas en una sola línea; en pantallas estrechas encogen en vez de saltar de línea. */
.countdown-grid[b-6dbrbnaeel] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(0.4rem, 2vw, 1rem);
    width: 100%;
    max-width: 30rem;
}

.unit[b-6dbrbnaeel] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(0.5rem, 2.5vw, 1rem) 0.25rem;
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}

.value[b-6dbrbnaeel] {
    font-size: clamp(1.5rem, 8vw, 3rem);
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.label[b-6dbrbnaeel] {
    margin-top: 0.4rem;
    font-size: clamp(0.6rem, 2.5vw, 0.85rem);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.75);
}
