/*------------ VARIABLES ----------*/
:root {
    /* Colores */
    --primary: #B9B28A;
    /* --primary: #f1cd01; */
    --text-color: #000000;
    --gray: #333;
    --danger: #dc3545;

    /* Fondos */
    --background: #f5f5f5;
    --bg-light: rgb(216, 216, 216);
    --bg-hover: #f3f3f3;

    /* Tablas */
    --table-border: #ddd;
    --table-bg-header: #d8d8d8;
    --table-bg-odd: #eeeeee;

    /* Tablas */
    --tabs-bg: #d8d8d8;
}

/*------------ RESET ------------*/
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background);
    margin: 0;
    position: relative;
    overflow-x: hidden;
}

h1 {
    margin-top: 0;
}

footer {
    padding: 15px;
    background-color: var(--bg-light);
    text-align: center;
    position: absolute;
    bottom: 0;
    font-size: .8em;
    width: 100%;
}
footer p {
    margin: 0;
    font-size: .9em;
    margin-top: 15px;
    vertical-align: middle;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.footer_img {
    display: flex;
}


@media (max-width: 768px) {
    .table {
        display: block;
        overflow-x: auto;
    }
}

/*---------------- PANTALLA CARGA ------------------ */
body:has(.pantalla-carga-activo) {
    overflow: hidden;
}

.pantalla-carga {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 13px;
    background-color: #ddd;
    opacity: 0;

    transition: opacity .3s;
}

.pantalla-carga-activo {
    opacity: 1;
}

/*---------------- LOADER ------------------ */
.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #FFF;
    border-bottom-color: transparent !important;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.loader-little {
    width: 16px;
    height: 16px;
    border-width: 3px !important;
}

.loader-dark {
    border: 5px solid #000;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
} 

/*---------------- HEADER -------------------*/
.header {
    background-color: #000;
    position: relative;
}

.header_content {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-top: 0 !important;
}

#menu-alterar {
    display: none;
    cursor: pointer;
}

.header_content ul {
    display: flex;
    gap: 15px;
}

.header_content ul li {
    list-style: none;
}

.header_content ul li a {
    text-decoration: none;
    color: #ddd;
    display: block;
}

.header_estado{
    position: absolute;
    bottom: -38px;
    right: 10px;
}

.adherente-header {
    width: 100%;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #d3d3d3;
    position: sticky;
    top: 0;
    z-index: 1;
}
.adherente-header button {
    padding: 0;
    background-color: var(--primary);
    border: none;
}
.adherente-header button a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #000000;
    font-weight: bold;
}


@media screen and (max-width: 678px) {

    .header_content img {
        width: 200px;
    }

    .header_content ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        gap: 2px;
        flex-direction: column;
        width: 100%;
        background-color: #000;
        margin: 0;
        padding: 0;
        z-index: 1000;
    }

    .header_content ul li a {
        padding: 10px;
    }

    .header_content ul li a:hover {
        background-color: #202020;
    }

    #menu-alterar {
        display: block;
    }

    .header_content .active {
        display: flex !important;
    }

}

/*---------------- HOME -----------------*/

.home__presentation h1 {
    text-align: center;
    margin-bottom: 5px;
}

.home__presentation p {
    text-align: center;
    margin-top: 5px;
    opacity: .8;
    margin-bottom: 4rem;
}

.home__subtitle {
    border-bottom: 1px solid #dad9d9;
    padding-bottom: 5px;
    margin-bottom: 35px;
}

.home__card-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 3em 1em;
}

.home__card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    width: 300px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #000;
    text-decoration: none;
    transition: transform .3s;

    &:hover {
        transform: scale(1.05);
        background-color: #f3f3f3;
    }

    & i {
        font-size: 1.2em;
    }

    & h2 {
        margin-top: 0;
        margin-bottom: 0.2rem;
    }
}


/* .home__card h2 {
} */
.home__card p {
    opacity: .8;
    margin-bottom: 0;
    margin-top: 0;
    text-align: start;
}

@media (max-width: 600px) {
    .home__card {
        width: 100%;
    }

    .home__card-container {
        gap: 1em;
    }
}

/*---------------- LOGIN -----------------*/
.login__card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 100%;
    margin: 40px 0;
    max-width: 520px;
}

.login__card h2 {
    text-align: center;
    font-size: 1.8em;
    margin-top: .8rem;
    margin-bottom: 1.8rem;
}

.login__card h4 {
    font-size: .9em;
    text-align: center;
    margin-top: 0;
}

.login__logo {
    display: block;
    width: 60px;
    height: 60px;
    margin: 0 auto .5rem;
}

.login__form-subtitle {
    grid-column: 2 span;
    width: 100%;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
    margin: 10px 0;
    opacity: .8;
}

.login__form {
    margin-bottom: 1.3rem;
}

.login__form label {
    display: block;
    margin-bottom: 0.15rem;
    padding-left: 3px;
}

.login__form input, .login__form select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.login__card button {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary);
    color: var(--text);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.login__card button:hover {
    opacity: 0.9;
}

.login__link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: var(--text);
    text-decoration: none;

    &:hover {
        text-decoration: underline;
    }
}

.login__info-message {
    background-color: #e7f3fe;
    border: 1px solid #b6d4fe;
    border-radius: 4px;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}