:root {
    --color-blue: #003973;
    --color-dorado: #C7893E;
    --header-height: 70px;
    --transition-time: 0.3s;
}

/* Estilos base del header */
header {
    margin-top: 0;
    height: var(--header-height);
    width: 100%;
    padding: 0;
    box-sizing: border-box;
    background-color: white;
    display: flex;
    position: sticky;
    justify-content: space-between;
    align-items: center;
    border-bottom: solid 1px #1C3C6D;
    z-index: 1000;
    top: 0;
    /* O reduce el padding en media queries pequeñas */
}

header a {
    display: flex;
    background-color: transparent;
    align-items: center;
    font-size: 16px;
    padding: 10px;
    margin: 1px;
    border-radius: 5px;
    transition: color 0.2s ease;
    font-family: "sourceSansProRegular";
    text-decoration: none;
    color: var(--color-blue);
}

/* Estilos del logo */
.container-logo {
    height: 100%;
    display: flex;
    align-items: center;
}

.logo {
    height: 100%;
    display: flex;
    align-items: center;
}

.logo img {
    height: auto;
    max-height: 40px;
    width: auto;
    display: block;
    transition: transform var(--transition-time) ease;
}

.logo .fono {
    height: 30px;
    margin-left: 15px;
}

/* Estilos del menú de escritorio */
.menu-bar {
    height: 100%;
    display: flex;
    align-items: center;
}

.desktop-nav {
    height: 100%;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    align-items: center;
}

.nav-list>li {
    position: relative;
    margin: 0 10px;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-list a {
    color: var(--color-blue);
    text-decoration: none;
    font-family: "sourceSansProRegular";
    font-size: 16px;
    padding: 5px 10px;
    transition: all var(--transition-time) ease;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-list a:hover {
    color: var(--color-dorado);
    font-weight: bold;
}

/* Estilos del dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 0 0 4px 4px;
    padding: 10px 0;
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1001;
    list-style: none;
    margin: 0;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 5px 15px;
}

.dropdown-menu a {
    padding: 8px 15px;
    width: 100%;
    text-decoration: none;
    border: none;
    background: none;
}

/* Estilos del icono de Facebook */
.social-icon {
    margin-left: 15px;
}

.social-icon img {
    width: 30px;
    height: 30px;
    transition: transform 0.2s ease;
}

.social-icon img:hover {
    transform: scale(1.1);
}

/* Estilos del menú móvil */
.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--color-blue);
    padding: 10px;
}


.mobile-menu {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    width: 100%;
    background-color: white;
    border-top: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 999;
    box-sizing: border-box;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0.0, 0.3, 1), opacity 0.6s cubic-bezier(0.4, 0.0, 0.3, 1);
}

.mobile-menu.active {
    max-height: 600px;
    opacity: 1;
    overflow: visible;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 15px 0;
}

.mobile-nav-list>li {
    padding: 10px 20px;
}

.mobile-nav-list a {
    color: var(--color-blue);
    text-decoration: none;
    font-family: "sourceSansProRegular";
    font-size: 16px;
    display: block;
    padding: 8px 0;
}

.mobile-dropdown-menu {
    padding-left: 20px;
    display: none;
    list-style: none;
    margin: 0;
    background: white;
    border: none;
    box-shadow: none;
}

.mobile-dropdown-menu a {
    text-decoration: none;
    border: none;
    background: none;
}

.mobile-dropdown-menu li {
    padding: 5px 0;
}

/* Estilos de Facebook */
.facebook {
    display: flex;
    align-items: center;
    margin-left: 15px;
    height: 40px;
}

.facebook img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    transition: transform 0.2s;
}

.facebook img:hover {
    transform: scale(1.1);
}

/* Si quieres que se oculte en móvil, puedes agregar: */

/* Media Queries para responsive */
@media only screen and (max-width: 1024px) {
    header {
        padding: 0 12px;
    }

    .logo img {
        max-height: 32px;
    }

    .logo .fono {
        height: 22px;
        margin-left: 8px;
    }

    .mobile-menu {
        width: 100%;
        left: 0;
        right: 0;
    }
}

/* Mostrar hamburguesa y ocultar menú de escritorio en tablet/móvil */
@media only screen and (max-width: 768px) {
    .hamburger {
        display: block !important;
    }

    .menu-bar {
        display: none !important;
    }

    .logo img {
        max-height: 30px;
    }

    .logo .fono {
        height: 20px;
        margin-left: 10px;
    }

    .mobile-menu {
        width: 100%;
        left: 0;
        right: 0;
    }

    .hamburger {
        font-size: 25px;
        padding-right: 30px;
    }
}

@media only screen and (max-width: 425px) {
    .logo img {
        height: 40px;
        padding: 5px;
    }

    .logo .fono {
        height: 30px;
        margin-left: 3px;
    }

    .hamburger {
        font-size: 25px;
        padding-right: 20px;
    }
}

@media only screen and (max-width: 375px) {
    .logo img {
        max-height: 35px;
        padding: 5px;
    }

    .logo .fono {
        height: 25px;
        margin-left: 2px;
    }

    .hamburger {
        font-size: 25px;
        padding-right: 15px;
    }
}

@media only screen and (max-width: 320px) {
    .logo img {
        max-height: 35px;
        padding: 5px;
    }

    .logo .fono {
        height: 25px;
        margin-left: 1px;
    }

    .hamburger {
        font-size: 25px;
        padding: 5px;
        padding-right: 10px;

    }
}