:root {
    /* Colors */
    --text: #00100B;
    --text-2: #64748B;
    --background: #EDF2F4;
    --brand: #176B87;
    --white: #FFFFFF;  
    --tags: #F4BD5F;

    --brand-20: rgba(23, 107, 135, 0.2);
    /* Fonts */
    --font-heading: 'Fjalla One', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
@font-face {
    font-family: 'Fjalla One';
    src: url('../assets/fonts/FjallaOne-Regular.ttf');
}
@font-face {
    font-family: 'DM Sans';
    src: url('../assets/fonts/DMSans-VariableFont_opsz\,wght.ttf');
}
body {
    background-color: var(--background);
    color: var(--text);
    font-family: var(--font-body);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 24px;
}

/* Header */
header {
    padding: 0 20px;
    background-color: var(--background);
    border: 3px solid var(--text-2);

    position: sticky;
    top: 0;
    z-index: 100;  /* Para que el nav desplegable no quede detras de los elementos de la pagina */
}
.header-content {
    margin: 0 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
header a {
    font-size: 24px;
    text-decoration: none;
    color: var(--text);
}
.header-content > a {
    display: flex;
    min-width: 0;
}
img[alt="logo"] {
    height: 96px;
    max-width: 100%;
    object-fit: contain;
}
#header-nav-container {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
#header-menu {
    width: 48px;
    cursor: pointer;
}
#header-nav {
    display: none;
    flex-direction: column;
    gap: 32px;

}


#header-nav.display{
    display: flex;
    position: absolute;
    top: calc(100% + 3px);
    right: 24px;

    padding: 24px;
    background-color: var(--white);
    border: 1px solid var(--brand-20);
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);

}

.account-info {
    display: flex;
    flex-direction: row;
    gap: 8px;
}
.header-links {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Footer */
footer {
    background-color: var(--brand-20);
    padding: 20px;
}
.footer-content {
    display: flex;
    flex-direction: column;
}
.footer-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 32px
}
.footer-bottom {
    text-align: center;
}
footer a {
    text-decoration: none;
    color: var(--text);
}
main {
    padding: 20px;

}


/* Formularios: base comun a todas las paginas */
input, select, button, textarea {
    font-family: var(--font-body);
    font-size: 1rem;
}
input, select {
    padding: 8px;
}
.unified-input-box *{
    border: none;
}
.unified-input-box > * {
    min-width: 0;
}
.unified-input-box, input, select {
    background-color: var(--white);
    border: 3px solid var(--text-2);
    border-radius: 5px;
    width: 100%;
}
input:focus, select:focus {
    border: 3px solid var(--brand);
}

.unified-input-box {
    display: flex;
    flex-direction: row;
}


/* Botones */
.btn {
    background-color: var(--brand);
    color: var(--white);
    border: none;
    border-radius: 5px;
    padding: 8px 24px;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
    max-width: 200px;
    align-self: center;
}
.btn:hover {
    cursor: pointer;
    opacity: 90%;
}
.btn:active {
    transform: scale(0.98);
}

/* Tipografia y utilidades */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
}
.text-secondary {
    color: var(--text-2);
}
.section-heading {
    text-align: center;
    padding: 16px;
}
.card {
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 1px solid var(--brand-20);
}
.display-none {
    display: none;
}

/* Icons */
i {
    color: var(--text);
}


/* Pantallas muy pequeñas (320px): recuperar espacio lateral */
@media (max-width: 359px) {
    main {
        padding: 16px;
    }
    .card {
        padding: 16px;
    }
}

@media (min-width: 768px) {

    /* Header */
    #header-menu {
        display: none;
    }
    #header-nav {
        display: flex;
        flex-direction: row-reverse;
    }
    #header-nav hr, .btn.btn-logout {
        display: none;
        align-self: baseline;
    }
    .header-links {
        flex-direction: row;
    }

    /* Footer */
    .footer-content {
        flex-direction: row;
        align-items: center;
    }
    .footer-links a {
        width: 30%;
    }

}
