@import "fonts.css";

:root {
    --primary: #509171;
    --secondary: #3A3E41;
    --tertiary: #afcf68;
    --light-blue: #E5F0F8;
    --light-gray: #AAB4BB;
    --light-green: #7BF4AB;
    --dark-green: #14A44D;
    --light-red: #ff8295;
    --dark-red: #912020;
    --tipography-1: "LibreBaskerville";
    --tipography-2: "Montserrat";
    --header-height: 120px; /* Cambiar según diseño */
    --footer-height: 140px; /* Tamaño establecido por defecto, no cambiar. */
}

html, body {
    padding-right: 0 !important;
    height: 100vh;
}

body {
    font-family: var(--tipography-2), sans-serif !important;
    background-image: url("../../img/general/background.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.navbar {
    box-shadow: 0px 20px 40px 0px rgba(0, 0, 0, 0.10);
    background: white !important;
    box-shadow: 0px 20px 40px 0px rgba(0, 0, 0, 0.10);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    min-height: var(--header-height);
}

.navbar-brand {
    margin-left: 3%;
}

.navbar-brand img {
    width: 120px !important;
}

.navbar-nav {
    margin-left: 2%;
}

.nav-item {
    margin: 0;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem !important;
}

.nav-username {
    padding: 0;
    max-width: 215px;
}

.nav-link {
    color: var(--secondary);
    font-weight: bold;
    text-align: center !important;
    position: relative;
}

.nav-link:not(.username):not(.logout):hover {
    color: var(--primary);
}


.contact-link:hover, .encuesta-link:hover {
    background-color: var(--secondary);
    color: var(--tertiary) !important;
    border:1px solid var(--primary);
}


.nav-link.active{
    color: var(--primary) !important;
}

.nav-link:not(.username):not(.logout)::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    bottom: 5px;
    width: 0;
    height: 3px;
    background-color: var(--primary);
    transition: width 0.5s ease;
}

.nav-link:not(.username):not(.logout):hover::after {
    width: 100%;
}

.navbar .active:not(.username):not(.logout)::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    bottom: 5px;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
}

.navbar-nav.ml-auto {
    margin-left: auto;
}

.contact-link {
    background-color: var(--tertiary);
    font-weight: normal;
    font-weight: bold;
    border-radius: 15px;
    width: 150px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.encuesta-link {
    color:white;
    font-weight: bold;
    background-color: var(--primary);
    border-radius: 15px;
    width: 150px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.contact-link:hover, .encuesta-link:hover {
    background-color: var(--secondary);
    color: var(--tertiary) !important;
    border:1px solid var(--tertiary);
}

.contact-link.active {
    background-color: var(--secondary) !important;
    border:1px solid var(--tertiary) !important;
    color: var(--tertiary) !important;
}

.contact-link::after, .encuesta-link::after {
    display: none !important;
}

.username, .username:hover {
    color: var(--primary);
}

.fa-arrow-right-from-bracket {
    font-size: 30px;
    color: var(--tertiary);
}

.btn-cerrar {
    background-color: var(--primary);
    color: #fff;
    font-family: var(--tipography-2), sans-serif;
    text-transform: none;
}

.btn-cerrar:hover {
    color: #fff;
}

.page {
    width: 100%;
    min-height: calc(100vh - (calc(var(--header-height) + var(--footer-height))));
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-container {
    flex: 1;
    position: relative;
    z-index: 2;
    padding: 0 5%;
    margin-top: -5%;
}

.action-buttons-container {
    height: 10%;
    display: flex;
    flex-wrap: wrap;
    padding: 0 5%;
    position: relative;
    z-index: 1000;
}

.swal2-icon.swal2-success {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.swal2-icon.swal2-success [class^="swal2-success-line"] {
    background-color: var(--primary) !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border: .25em solid rgba(30, 160, 179, 0.3) !important;
}

/*SCROLLBAR*/
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--secondary);
}

::-webkit-scrollbar {
    width: 12px !important;
    border-top: none;
    cursor: pointer !important;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--secondary), var(--primary)) !important;
    border-radius: 6px !important;
    border-top: none !important;
    transition: all 0.5s !important;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--secondary), var(--primary)) !important;
}
.logo-argenx-mov{
    width: 165px !important;
}


@media (max-width: 1600px) {


    .nav-link {
        font-size: .7rem !important;
    }

    .nav-item {
        margin: 1% auto;
        font-size:.7rem;
    }
}

@media (max-width: 1350px) {
    .nav-item {
        padding: 0 1rem;
    }

    .nav-username {
        padding: 0;
        margin: 0 1rem;
    }

    .nav-link {
        font-size: .65rem !important;
    }

    .nav-item {
        margin: 1% auto;
        font-size:.65rem;
    }
}

@media (max-width: 1400px) {


    .nav-link {
        font-size: .65rem !important;
    }

    .nav-item {
        margin: 1% auto;
        font-size:.65rem;
    }
    .logo-argenx-mov{
        display: none !important;
     }
}

@media (max-width: 991px) {
    body {
        background-image: url("../../img/general/background_991x1170.webp");
    }

    .navbar-nav {
        margin-left: 0;
    }

    .nav-item {
        margin: 1% auto;
    }

    .navbar-nav.ml-auto {
        margin-top: 4%;
    }

    .action-buttons-container {
        height: 7%;
    }

    .page {
        min-height: calc(100vh - 13%);
    }

    .content-container {
        margin-top: 0;
    }

        #navbarNav{
            background-color: rgba(255, 255, 255, 0.90) !important;
            border:1px solid var(--primary);
            border-radius: 15px;
            -webkit-border-radius: 15px;
            -moz-border-radius: 15px;
            -ms-border-radius: 15px;
            -o-border-radius: 15px;
    }
}

@media (max-width: 576px) {
    body {
        background-image: url("../../img/general/background_576x1000.webp");
    }
}