.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

main {
    overflow: hidden !important;
}

/* Fondo general */
body, html {
    margin: 0;
    padding: 0;
    position: relative;
    font-family: sans-serif;
}

/* Contenedor */
.background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1; /* Detrás del contenido */
}

/* Círculos decorativos */
.circle {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(34, 197, 94, 0.3); /* Verde más intenso y translúcido (#22c55e) */
    animation: move 20s linear infinite;
}

    /* Animación aleatoria con diferentes delays y posiciones */
    .circle:nth-child(1) {
        top: 10%;
        left: 20%;
        animation-delay: 0s;
    }

    .circle:nth-child(2) {
        top: 40%;
        left: 70%;
        animation-delay: 5s;
        width: 100px;
        height: 100px;
        background-color: rgba(132, 204, 22, 0.3); /* otro verde más vibrante */
    }

    .circle:nth-child(3) {
        top: 70%;
        left: 30%;
        animation-delay: 10s;
    }

/* Movimiento suave y aleatorio */
@keyframes move {
    0% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(50px, -30px) scale(1.1);
    }

    50% {
        transform: translate(-30px, 60px) scale(0.9);
    }

    75% {
        transform: translate(20px, -20px) scale(1.05);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Loader centrado */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f9fafb; /* fondo claro, puedes cambiarlo */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Spinner animado */
.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #e5e7eb; /* gris claro */
    border-top: 6px solid #2563eb; /* azul corporativo */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

/* Texto debajo del spinner */
.loader-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: #374151; /* gris oscuro */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


.bg-body {
    background: linear-gradient(to top right, #ffffff, #ebf4ff, #e0e7ff) !important;
}

.bg-hero {
    justify-content: center;
    display: flex;
    background-image: url('../assets/img/fondo-home.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    padding-left: 14px;
    padding-right: 14px;
}

.bg-eleginos {
    background: #f4f4fc;
    width: 100%;
    justify-content: center;
    display: flex;
    padding-left: 10%;
    padding-right: 10%;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100% !important;
    background-color: transparent;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

    .navbar.scrolled {
        /*        background-color: white;*/
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

.navbar-container {
    display: flex;
    height: 100%;
    align-items: center !important;
    justify-content: space-between;
    padding: 0.6rem 2rem;
}

.logo-container img {
    height: 50px;
    transition: height 0.3s ease-in-out;
    cursor: pointer;
}

.navbar.scrolled .logo-container img {
    height: 30px;
}

/*.btn-agendar {
    display: block;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    border: groove 1px #a6b0fb;
    background: white;
    color: #393185;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.4s ease !important;
    cursor: pointer;
}

    .btn-agendar:hover {
        background: #a6b0fb;
    }*/

.submit-button {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5rem 1rem;
    border: 2px solid #4CAF50;
    color: #4CAF50 !important;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

    .submit-button:hover {
        background: #e4ffe0;
    }

    .submit-button span {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        color: #4CAF50 !important;
    }

.btn-hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    justify-content: start;
}

    .btn-hamburger svg {
        width: 32px;
        height: 32px;
        stroke: #393185;
    }

.navbar.scrolled .btn-hamburger svg {
    stroke: #333;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin-top: 5px;
    margin-bottom: 5px;
}

.nav-button {
    background: none;
    border: none;
    color: #393185;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    /*    text-transform: uppercase;*/
    cursor: pointer;
    position: relative;
    transition: color 0.4s ease;
}

.navbar.scrolled .nav-button {
    color: #393185;
}

.nav-button::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background-color: #f9e905;
    border-radius: 30px;
    transition: width 0.4s ease, left 0.4s ease;
    transform: translateX(-50%);
}

.nav-button:hover::after,
.nav-button:focus::after {
    width: 50%;
}

/* Responsive */
@media (max-width: 1024px) {
    .btn-agendar {
        display: none;
    }

    .btn-hamburger {
        display: block;
    }

    .nav-menu {
        overflow: hidden;
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 1rem;
        height: 0;
        opacity: 0;
        transition: height 0.4s ease, opacity 0.4s ease;
        display: block;
        z-index: 999;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

        .nav-menu.show {
            display: flex;
        }

        .nav-menu ul {
            flex-direction: column;
            align-items: flex-start;
        }

    .nav-button {
        color: #3c3483;
        font-size: 12px;
    }

        .nav-button::after {
            content: "";
            position: absolute;
            width: 0%;
            height: 1.5px;
            bottom: -2px;
            left: 50%;
            background-color: #f9e905;
            border-radius: 30px;
            transition: width 0.4s ease, left 0.4s ease;
            transform: translateX(-50%);
        }

        .nav-button:hover::after,
        .nav-button:focus::after {
            width: 80%;
        }

    .logo-container img {
        height: 40px;
        justify-content: start !important;
        width: 100% !important;
    }

    .navbar.scrolled .logo-container img {
        height: 30px;
    }

    .nav-menu.expanding,
    .nav-menu.collapsing {
        display: block;
    }

    .nav-menu.expanded {
        height: auto;
        opacity: 1;
    }
}

/* Estilo del select para idiomas */
.language-select {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .6rem;
    border-radius: .6rem;
    border: 2px solid #393185;
    background: transparent;
    cursor: pointer;
    transition: background .2s;
    font-size: 0.9rem;
    font-weight: bold;
    color: #393185;
    font-family: inherit; /* Mantiene la fuente del sitio */
}

    /* Hover */
    .language-select:hover {
        background: rgba(57, 49, 131, 0.06);
    }

    /* Opciones internas */
    .language-select option {
        color: #393185;
        font-weight: bold;
    }
