html {
    height: 100%;
}
body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow-x: hidden;
}
.main-content {
    flex: 1;
}
footer {
    margin-top: auto;
    width: 100%;
    overflow-x: hidden;
}
.container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}
.imagen_mostrar {
    cursor: pointer;
    margin: 25px auto;
    display: block;
    max-width: 100%;
    height: auto;
}
@media (max-width: 768px) {
    .imagen_mostrar {
        margin: 15px auto;
        width: 90%;
    }

    footer .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    footer .row {
        margin-left: 0;
        margin-right: 0;
    }
    footer [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }
}

.card {
    border-radius: 12px;
    border: none;
}

.card-title {
    color: #621132;
    font-weight: 600;
}

.btn-primary {
    background-color: #621132;
    border-color: #621132;
    color:white;
}

    .btn-primary:hover {
        background-color: #7d2452;
        border-color: #7d2452;
    }

    .btn-primary:focus,
    .btn-primary:active {
        background-color: #7d2452 !important;
        border-color: #7d2452 !important;
        box-shadow: 0 0 0 0.25rem rgba(98, 17, 50, 0.25) !important;
    }

.form-control:focus {
    border-color: #621132;
    box-shadow: 0 0 0 0.25rem rgba(98, 17, 50, 0.15);
}

.form-check-input:checked {
    background-color: #621132;
    border-color: #621132;
}

.form-check-input:focus {
    border-color: #621132;
    box-shadow: 0 0 0 0.25rem rgba(98, 17, 50, 0.15);
}

a {
    color: #621132;
    text-decoration: none;
}

    a:hover {
        color: #7d2452;
        text-decoration: underline;
    }

.password-toggle-wrapper {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 5px;
    z-index: 10;
}

    .password-toggle-btn:hover {
        color: #621132;
    }

    .password-toggle-btn svg {
        width: 20px;
        height: 20px;
    }

.main-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

    .main-content > .container {
        width: 100%;
    }

.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.login-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    padding: 2.5rem;
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
}

    .login-card h3 {
        color: #621132;
        font-weight: 600;
        margin-bottom: 2rem;
        text-align: center;
    }

    .login-card .form-label {
        color: #333;
        font-weight: 500;
        margin-bottom: 0.5rem;
    }

    .login-card .form-control {
        padding: 0.75rem 1rem;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
    }

    .login-card .btn-primary {
        padding: 0.75rem;
        font-weight: 600;
        border-radius: 8px;
    }

    .login-card .text-center a {
        font-size: 0.95rem;
    }

@media (max-width: 768px) {
    .login-card {
        padding: 1.5rem;
        margin: 0 1rem;
    }
}


.navbar-inverse .navbar-nav > .open > a, .navbar-inverse .navbar-nav > .open > a:focus, .navbar-inverse .navbar-nav > .open > a:hover {
    color: white;
}

.requerido::after {
    content: " *";
    color: red;
}

.hide-item {
    display: none !important;
}

.hide-item {
    display: none !important;
}

.field-error {
    color: #d9534f;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.input-invalid {
    border-color: #d9534f !important;
    box-shadow: 0 0 0 0.15rem rgba(217,83,79,0.1);
}

#divGuidMenuContent {
    transition: max-height 220ms ease, opacity 220ms ease;
    overflow: hidden;
}

.hide-item#divGuidMenuContent {
    opacity: 0;
    max-height: 0;
}

#divGuidMenuContent:not(.hide-item) {
    opacity: 1;
    max-height: 200px;
}


.navbar-flex-container {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    position: relative;
}

.scrollable-menu {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-left: 0;
    margin-bottom: 0;
    flex: 1 1 auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    min-height: 50px;
}

    .scrollable-menu > li {
        flex: 0 0 auto;
    }

.fixed-admin-menu {
    display: flex;
    margin-left: auto;
}

    .fixed-admin-menu > li {
        align-items: center;
    }

.scrollable-menu::-webkit-scrollbar {
    height: 9px;
}

.scrollable-menu::-webkit-scrollbar-track {
    background: #3A0B1F;
    border-radius: 3px;
}

.scrollable-menu::-webkit-scrollbar-thumb {
    background-color: #611232;
    border-radius: 3px;
}

    .scrollable-menu::-webkit-scrollbar-thumb:hover {
        background-color: #8B1E3F;
    }

.scrollable-menu .dropdown {
    position: static !important;
}

.scrollable-menu .dropdown-menu {
    position: fixed !important;
    display: none;
    z-index: 9999;
    margin-top: 0;
}

.scrollable-menu .nav-item.dropdown.show .dropdown-menu,
.scrollable-menu .dropdown:hover > .dropdown-menu {
    display: block;
}

.navbar-collapse {
    overflow: visible !important;
}

.sub-navbar {
    overflow: visible !important;
}

.fixed-admin-menu .nav-link.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .navbar-collapse {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        max-height: calc(100vh - 60px);
        -webkit-overflow-scrolling: touch;
    }

    .navbar-flex-container {
        flex-direction: column;
        flex-wrap: wrap;
        align-items: stretch;
    }

    .scrollable-menu {
        overflow-x: visible;
        overflow-y: visible;
        flex-direction: column;
        flex-wrap: wrap;
        width: 100%;
        display: block;
        white-space: normal;
        padding-bottom: 0;
    }

        .scrollable-menu > li {
            width: 100%;
            display: block;
            flex: none;
        }

        .scrollable-menu .dropdown {
            position: relative !important;
        }

        .scrollable-menu .dropdown-menu {
            position: relative !important;
            width: 100%;
            float: none;
            box-shadow: none;
            border: none;
            background-color: rgba(255, 255, 255, 0.05);
            margin-top: 0;
        }

            .scrollable-menu .dropdown-menu li {
                width: 100%;
            }

            .scrollable-menu .dropdown-menu .dropdown-item {
                padding-left: 30px;
                white-space: normal;
            }

    .fixed-admin-menu {
        margin-left: 0;
        width: 100%;
        display: block;
        flex-direction: column;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 10px;
        margin-top: 10px;
        margin-bottom: 20px; 
    }

        .fixed-admin-menu > li {
            width: 100%;
            display: block;
        }

        .fixed-admin-menu .dropdown-menu {
            position: relative !important;
            width: 100%;
            float: none;
            box-shadow: none;
            border: none;
            background-color: rgba(255, 255, 255, 0.05);
        }

            .fixed-admin-menu .dropdown-menu .dropdown-item {
                padding-left: 30px;
            }

    .navbar-collapse::-webkit-scrollbar {
        width: 6px;
    }

    .navbar-collapse::-webkit-scrollbar-track {
        background: #3A0B1F;
        border-radius: 3px;
    }

    .navbar-collapse::-webkit-scrollbar-thumb {
        background-color: #611232;
        border-radius: 3px;
    }

        .navbar-collapse::-webkit-scrollbar-thumb:hover {
            background-color: #8B1E3F;
        }
}