/* Botom hamburguesa */
/* Forzar visibilidad del botón hamburguesa */
.navbar-toggler {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    font-size: 1.25rem;
    background-color: transparent;
    border: none;
}

/* Estilo personalizado del icono hamburguesa */
.navbar-toggler-icon {
    background-image: none;
    /* Quitamos el ícono por defecto */
    width: 30px;
    height: 24px;
    position: relative;
    display: inline-block;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon div {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    background-color: #004a84;
    /* azul ENDOweb */
    left: 0;
    transition: all 0.3s ease;
}

.navbar-toggler-icon div {
    top: 10px;
}

.navbar-toggler-icon::before {
    top: 0;
}

.navbar-toggler-icon::after {
    bottom: 0;
}

/* Estilo del contenedor de las líneas */
.custom-toggler {
    padding: 0.5rem;
    border: none;
    background: transparent;
    z-index: 1000;
}

.hamburger-lines {
    display: inline-block;
    position: relative;
    width: 32px;
    height: 24px;
}

.line {
    display: block;
    position: absolute;
    height: 3px;
    /* Más finas */
    width: 100%;
    background-color: #004a84;
    border-radius: 3px;
    /* Puntas redondeadas */
    transition: all 0.3s ease;
}

/* Posiciones iniciales */
.line1 {
    top: 0;
}

.line2 {
    top: 10px;
}

.line3 {
    bottom: 0;
}

/* Estado activo: cruz */
.custom-toggler.is-active .line1 {
    transform: rotate(45deg);
    top: 10px;
}

.custom-toggler.is-active .line2 {
    opacity: 0;
}

.custom-toggler.is-active .line3 {
    transform: rotate(-45deg);
    bottom: 10px;
}

.menu-access-mobile {
    z-index: 2;
    display: none;
    width: 100vw;
    left: -100%;
    position: relative;
    transition: left 0.3s ease-in-out;
}




/* Contenedor */
#menu-access-mobile.menu-access-mobile {
    width: 100%;
}

/* La lista horizontal (una sola línea) */
#menu-access-mobile .ul-menu-access {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Cambiá a flex-start si lo querés a la izquierda */
    flex-wrap: nowrap;
    /* Mantener todo en una línea */
    gap: 1rem;
    /* Separación entre items */
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Items (por si luego querés estilos por item) */
#menu-access-mobile .menu-access__item {
    display: block;
    white-space: nowrap;
    /* Evita cortes de línea dentro del item */
}

/* Links */
#menu-access-mobile .menu-access__link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    /* Espacio entre ícono y texto */
    text-decoration: none;
    padding: .25rem .5rem;
    border-radius: .5rem;
    color: var(--endo-azul);
    font-family: "Gotham Book";
    font-size: 17px;
}

/* Hover/Focus */
#menu-access-mobile .menu-access__link:hover,
#menu-access-mobile .menu-access__link:focus {
    text-decoration: none;
    background-color: rgba(13, 110, 253, .08);
    /* fallback */
    background-color: rgba(var(--bs-primary-rgb, 13, 110, 253), .08);
    outline: none;
}

/* Íconos Bootstrap */
#menu-access-mobile .menu-access__link .bi {
    font-size: 1rem;
    line-height: 1;
}

.search-box-wrapper {
    margin-top: 1.5rem !important;
    transition: all 0.3s linear;
}

/* Responsive fino (opcional) */
@media (max-width: 576px) {
    #menu-access-mobile .ul-menu-access {
        gap: .5rem;
    }

    #menu-access-mobile .menu-access__link {
        padding: .25rem .375rem;
    }
}

/* Estilos responsivos para móviles */
@media (max-width: 768px) {
    .bg-endoweb {
        max-height: 280px;
        min-height: 280px;
        height: 280px;
    }

    .lateral-title {
        font-size: 18px; 
    }

    .articulo-popular.box-50 {
        flex: 0 0 100%;
    }

    .bg-endoweb-scrolled {
        max-height: 80px;
        min-height: 80px;
        height: 80px;
    }

    #endoMenu>.nav-item {
        position: relative;
        z-index: 2;
        display: block;
        width: 100%;
    }

    div#mf-scroll-main {
        transition: all 0.3s linear;
        width: 100%;
        z-index: 2;
        margin: 0 auto;
    }

    div#mf-scroll-main input {
        height: 40px;
        transition: all 0.3s linear;
    }

    div#mf-scroll-main svg {
        transition: all 0.3s linear;
        width: 25px;
        height: 25px;
    }




    div#mf-scroll-main.open-menu div.search-box-wrapper {
        margin-top: 0 !important;
    }

    div#mf-scroll-main.open-menu {
        z-index: 2;
        position: relative;
        /* top: -146px; */
        /*display: block !important;*/
        margin: 0 auto;
        width: 100%;
        padding: 0;
    }

    div#mf-scroll-main.reposition-search {
        display: none;
    }

    div#mf-scroll-main.open-menu>form>.hero-search-container>h1 {
        display: none;
    }

    div#mf-scroll-main.open-menu>form>.hero-search-container {
        padding: 0 !important;
    }

    div#mf-scroll-main.open-menu>form>.hero-search-container input {
        height: 30px;
    }



    div#mf-scroll-main.open-menu>form>.hero-search-container svg {
        width: 20px;
        height: 20px;
    }

    .menu-access-mobile {
        left: -100%;
        padding: 0;
        height: 1px;
        visibility: hidden;
        transition: all 0.3 ease-in;
        display: block;
    }

    .menu-access-mobile.show-mba {
        visibility: visible;
        height: auto;
        padding: 10px 0;
        left: 0;
    }

    #endoMenu>.nav-item>.mod-menu__heading {
        padding: 0px;
        padding-bottom: 0px;
        text-align: left;
        font-size: 12pt;
    }

    #endoMenu>.nav-item:hover>.mod-menu__sub,
    #endoMenu .nav-item:hover>.mod-menu__sub {
        display: block;
        position: relative;
        top: 0;
    }

    .custom-toggler {
        z-index: 2;
        position: relative;
    }

    #dropdownBackdropMobile {
        z-index: 99;
        position: fixed;
        top: 0;
        margin-top: 80px;
        margin-bottom: 80px;
        display: block;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-height: 100dvh;
        overflow-y: scroll;
        background-color: #fff;
        left: -100%;
        transition: left 0.3s ease-in-out;
    }

    nav.nav-endoweb {
        padding: 0px 20px;
        overflow: scroll;
    }

    #endoMenu .mod-menu__sub li a,
    #endoMenu .mod-menu__sub li .mod-menu__heading {
        padding: 3px;
        font-size: 12pt;
    }

    #endoMenu.mod-menu {
        gap: 0px;
    }

    .logo-endoweb {
        height: auto;
        width: 150px !important;
    }

    .hero-search-container {
        padding-top: 50px !important;
    }

    .hero-search-container-menu {
        padding-top: 10px !important;
    }

    .hero-search-container-menu h1 {
        font-family: 'Gotham Book';
    }

    .hero-search-container h1 {
        font-size: 1.6rem;
    }

    .padding-header {
        padding: 0 20px;
    }

    /* Campo de busqueda */
    .search-box input {
        padding-right: 10px;
        height: 40px;
        font-size: 1.4rem;
    }

    /* Lupa */
    .search-button svg {
        width: 25px;
        height: 25px;
    }


    .dra-hormonita-header,
    .menu-access {
        display: none;
    }

    .pad-endo-header {
        padding: 0;
        padding-top: 1.5rem;
    }

    /* Carrusel de contenido y secciones */
    .carousel-wrapper {
        padding: 0;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 2rem;
        height: 2rem;
        font-size: 2rem;
    }

    .carousel-control-prev {
        left: 4px;
    }

    .carousel-control-next {
        right: 4px;
    }

    .articulo-card {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        background-size: cover;
        background-position: center;
        height: 200px;
        background-repeat: no-repeat;
    }

    .gap-carrousel {
        gap: 0rem;
        max-width: 100%;
    }

    small.card-category {
        font-size: 1rem;
    }

    .articulo-card .card-title {
        font-size: 1rem;
    }

    .articulo-card .card-body {
        padding: 1rem 2.5rem;
    }

    /* Ultimos articulos publicados */
    .mod-articles-category-endoweb {
        margin: 0rem !important;
    }

    .gap-last-articles {
        gap: 0rem;
    }

    .articulo-box {
        flex: 0 0 0;
        min-width: calc(100% - 1rem);
        padding: 0.5rem;
        font-size: 1rem;

    }

    .latest-article-title {
        font-size: 1rem;
    }

    .latest-article-category {
        font-size: 1rem;
    }



    /* Popular articles */
    .mod-popular-articles {
        margin: 0rem !important;
        margin-top: 1rem !important;
        margin-bottom: 3rem !important;
    }

    .popular-title {
        font-size: 1.4rem;
    }

    .popular-article-item {
        border-top: 1px solid #004A84;
    }

    .popular-article-item+.popular-article-item {
        border-bottom: 0;
    }

    .popular-article-item-second-list+.popular-article-item-second-list {
        border-bottom: 1px solid #004A84;
    }

    .numero-articulo {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
        line-height: 1.7rem;
    }

    .list-popular-articles {
        margin-bottom: 0;
    }

    .popular-article-link {
        font-size: 1rem;
    }

    /* Ateneos */
    /* Ateneos medicos */
    .ateneos-title {
        font-size: 1.6rem;
        padding: 1rem 2rem;
        padding-bottom: 0rem;
        margin: 0;
    }

    .articulo-card-ateneos {
        width: calc(100% - 4rem);
        min-width: calc(100% - 4rem);
        max-width: calc(100% - 4rem);
        margin: 2rem;
        background-size: cover;
        background-position: center;
        height: 200px;
        background-repeat: no-repeat;
    }

    .gap-carrousel-ateneos {
        gap: 2rem;
    }

    .gap-carrousel-landings {
        gap: 1.4rem !important;
    }

    .articulo-card-landings {
        width: calc(100% - 4rem);
        min-width: calc(100% - 4rem);
        max-width: calc(100% - 4rem);
        margin: 2rem;
        background-size: cover;
        background-position: center;
        height: 360px;
        background-repeat: no-repeat;
    }

    .articulo-card-landings .card-title {
        font-family: 'Gotham Medium';
        font-size: 1.5rem;
    }

    .mod-banners-membresias__item {
        max-width: 100%;
    }

    .social-buttons-padding {
        padding: 1rem;
    }

    .social-buttons-margin {
        margin-bottom: 1rem;
    }

    .social-buttons-gap {
        gap: 0rem;
        justify-content: space-between;
    }

    .social-icon {
        width: 50px;
        height: 50px;
        font-size: 32px !important;
    }

    .social-icon-spotify {
        font-size: 50px !important;
    }

    /*
    .social-buttons-gap-menu {
        position: fixed;
        top: calc(100vh - 80px);
        margin: 0 auto;
        padding-left: 15%;
        width: 100%;
        background-color: white;
        z-index: 2;
    }
*/
    .social-buttons-gap-menu {
        position: fixed;
        bottom: 0;
        margin: 0 auto;
        padding-left: 15%;
        width: 100%;
        background-color: white;
        z-index: 2;
    }

    .social-buttons-gap-menu .social-icon {
        width: 50px;
        height: 50px;
        font-size: 20px !important;
    }

    .social-buttons-gap-menu .social-icon-spotify {
        font-size: 32px !important;
        width: 28px;
        height: 28px;
        position: relative;
        top: 4px;
        left: 10px;
    }

    .menus-footer {
        display: none;
    }

    /*
Quitamos la info de tac
    .endo-footer {
        padding-bottom: 3rem !important;
        margin-bottom: 3rem;
    }
    */

    .copyrigth-legend {
        padding: 0rem !important;
        font-size: 1rem;
    }

    .copyrigth-legend>p {
        text-align: center;
    }

    .endo-form {
        max-width: 90%;
        margin: 20px auto;
    }

    .com-users-registration,
    .com-users-reset {
        margin: 20px 5%;
    }

    .com-users-registration>.endo-form {
        max-width: 100%;
    }

    .btn-user-registration,
    .btn-user-reset,
    .btn-user-login {
        min-width: 150px;
        text-transform: uppercase;
        font-size: 15px;
    }

    .pos-search {
        padding: 0px 5%;
    }

    .article-title {
        font-size: 18pt;
    }

    .padding-ateneos {
        padding: 0;
    }

    .art-position-main {
        margin: 0 5%;
    }

    .gon-col {
        flex-shrink: 1;
    }

    div.js-highlight {
        flex-shrink: 1;
        display: flex;
    }

    #commentsPanel {
        width: 100%;
    }


    .category-list-column-type-3,
    .category-list-column-type-2 {
        flex: initial;
        padding: 0;
    }

    .category-article-title-type-2,
    .category-article-title-type-1,
    .category-article-content-type-2 {
        font-size: 16px;
    }



    .item-blog-endoweb-type-3,
    .item-blog-endoweb-type-2 {
        width: 150px;
        height: 100px;
        object-fit: cover;
        flex-shrink: 0;
    }

    .category-list-2-columns-type-1 {
        margin: 0 5%;
    }

    .gap-category-list-2-columns-type-1 {
        display: block !important;
    }

    div.com-finder {
        padding: 0 5%;
    }

    div.com-finder-search,
    div.com-finder-search>div.controls>select {
        width: 100%;
    }

    div.com-finder-search {
        display: block;
        width: 100%;
        margin: 0;
        margin-top: 4px;
    }

    div.com-finder-search button,
    div.com-finder-search button:focus {
        display: inline-block;
        width: 10%;
        float: right;
        min-height: 36px;
    }

    div.com-finder-search div.awesomplete {
        display: inline-block;
        width: 90%;
    }

    div.com-finder-search input {
        width: 100%;
    }


    ul.pagination li.page-item:nth-child(1),
    ul.pagination li.page-item:nth-child(2),
    ul.pagination li.page-item:nth-last-child(1),
    ul.pagination li.page-item:nth-last-child(2) {
        display: block;
    }

    li.page-item.active a.page-link {
        font-size: 1.4rem;
        font-family: 'Gotham Bold';
    }

    .artcile-content>ul {
        margin: 0 !important;
        padding: 0 !important;
        width: 90%;
        /* text-align: justify; */
    }
}