/* ============================
   HEADER FIJO CON DEGRADADO
============================ */

header {
    display: flex;
    justify-content: space-between;
    /* separa logo y nav */
    align-items: center;
    /* centra verticalmente */
    width: 100%;
    height: 90px;
    padding: 0 1vw;
    box-sizing: border-box;
    margin: 0;
    /* asegurar que no haya desplazamiento */
}

header,
header * {
    font-family: 'Poppins', sans-serif;
}

.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 9999;
    box-shadow: 0px 6px 5px -6px rgba(0, 0, 0, 0.75);
    background: linear-gradient(to bottom, #9ce6f8, #ffffff);
}

/* ============================
   LOGOS (HEADER + SIDEBAR)
============================ */
.logo-main {
    width: 150px;
    height: auto;
    display: block;
    margin: 0;
    margin-left: 20px;
}

.logo-main:hover {
    transform: scale(1.05);
}


/* ============================
   NAVIGATION
============================ */
.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    /* eliminar márgenes que desplazan nav */
    padding: 0;
}

.nav-list li {
    display: flex;
    align-items: center;
    margin-left: 35px;
}

.nav-list li .refs {
    color: #1e293b;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: normal;
    /* quitar el line-height grande */
    display: inline-block;
    /* permite que ::after mida solo la palabra */
    position: relative;
    /* necesario para ::after */
    padding: 10px 0;
    /* mantiene verticalmente centrado dentro del header */
}

.nav-list li .refs:hover {
    color: #01bce7;
}

.nav-list li .refs::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 4px;
    /* justo debajo de la palabra */
    left: 50%;
    background-color: #01bce7;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-list li .refs:hover::after {
    width: 100%;
}

.nav-list li:last-child {
    margin-right: 15px;
}

.nav-list li .dropdown-button .refs {
    color: #1e293b;
    /* mismo color que los demás links */
}

.nav-list li .dropdown-button .refs:hover {
    color: #01bce7;
    /* mismo hover que los demás */
}

.underlined {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

.underlined:hover {
    color: #01bce7;
}

ul {
    margin-bottom: 0 !important;
}