/* Top Bar Styles */
.top-bar {
    height: 48px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
}

.top-container {
    height: 48px;
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}

.bg-red-600 {
    background-color: #E31E24;
}

/* Main Header Styles */
.main-header {
    height: 122px;
    width: 100%;
    max-width: 2033px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #fff !important;
    color: #5d666f;
    line-height: 26px;
}

.bg-white {
    background-color: #fff !important;
}

.header-inner-container {
    height: 122px;
    width: 100%;
    padding: 0 7.5px;
    margin: 0 auto;
}

.header-inner-container > div {
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styles */
.logo-container {
    flex: 0 0 auto;
    width: 25%;
}

.logo-link {
    padding: 36px 0;
    display: block;
    max-width: max-content;
}

.logo-img {
    border: 0;
    vertical-align: middle;
    max-width: 100%;
    height: auto;
}

/* Navigation Column Styles */
.navigation-column {
    flex: 0 0 auto;
    width: 75%;
}

.main-header-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

/* Display Classes for Responsive */
.d-none {
    display: none !important;
}

.d-xl-block {
    display: none !important;
}

@media (min-width: 1200px) {
    .d-xl-block {
        display: block !important;
    }
    
    .d-xl-none {
        display: none !important;
    }
}

/* Main Navigation Styles */
.nav-main {
    height: 122px;
}

.mainmenu {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    height: 100%;
}

.mainmenu > li {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    width: auto;
    margin-right: 15px;
}

.mainmenu > li:last-child {
    margin-right: 0;
}

.mainmenu > li.has-droupdown {
    position: relative;
}

.mainmenu li.has-droupdown > a {
    position: relative;
    padding-right: 20px;
    color: #1c2539;
}

.mainmenu li.has-droupdown:hover > a {
    color: #E31E24;
}

.mainmenu li.has-droupdown > a::before {
    content: "\f078" !important;
    position: absolute !important;
    top: 51%;
    font-family: "Font Awesome 5 Pro" !important;
    right: 2px;
    transform: translateY(-50%);
    transition: 0.3s;
    font-size: 16px;
    color: #1c2539;
    font-weight: 500;
}

.mainmenu li.has-droupdown:hover > a::before {
    color: #E31E24;
    transform: translateY(-50%) rotate(180deg);
}

/* Estilos para los enlaces de navegación */
.nav-item, .nav-link {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.2s ease;
    padding: 0;
    height: 100%;
    display: flex;
    align-items: center;
    letter-spacing: 0.5px;
    position: relative;
    color: #1c2539;
    line-height: 26px;
    text-align: left;
    margin: 0;
    padding: 0 0.75rem;
}

.nav-item:hover, .nav-link:hover {
    color: #E31E24;
}

.nav-item::after, .nav-link::after {
    position: absolute;
    content: "";
    left: 0.75rem;
    bottom: 50px;
    height: 2px;
    width: 0%;
    border-radius: 1px;
    background-color: #E31E24;
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: calc(100% - 1.5rem);
}

.nav-link:hover::after {
    width: calc(100% - 1.5rem);
}

/* Estilos para elementos activos */
.mainmenu li.active > a,
.mainmenu li.current-page-parent > a {
    color: #E31E24;
}

.mainmenu li.active > a.nav-item::after,
.mainmenu li.current-page-parent > a.nav-item::after {
    width: calc(100% - 1.5rem);
}

.mainmenu li.active > a.nav-link::after,
.mainmenu li.current-page-parent > a.nav-link::after {
    width: calc(100% - 1.5rem);
}

/* Estilo para el submenu activo */
.submenu li.active > a {
    color: #E31E24;
    font-weight: 700;
}

/* Triángulo indicador en el elemento del menú principal cuando tiene un submenú */
.mainmenu li.has-droupdown.active > a::before,
.mainmenu li.has-droupdown.current-page-parent > a::before {
    color: #E31E24;
}

/* Ajuste específico para el submenú de Actualidad */
.mainmenu li.has-droupdown.active .submenu,
.mainmenu li.has-droupdown.current-page-parent .submenu {
    border-top: 3px solid #E31E24;
}

/* Submenu Styles - Rediseñado para coincidir con la imagen */
.submenu {
    min-width: 270px;
    height: auto;
    position: absolute;
    top: 90%;
    left: 0;
    z-index: 90;
    visibility: hidden;
    opacity: 0;
    text-align: left;
    transition: 0.3s;
    border-radius: 0 0 10px 10px;
    background-color: #fff;
    border-left: 1px solid #ffffff14;
    border-bottom: 1px solid #ffffff14;
    border-right: 1px solid #ffffff14;
    border-top: 4px solid #E31E24;
    display: inline-block;
    box-shadow: 0 36px 35px rgba(0, 0, 0, 0.08);
}
.submenu:hover{
    opacity: 1;
    visibility: visible;
    top: 100%;
}

/* Eliminar el pseudo-elemento ::before ya que ahora usamos border-top */
.submenu::before {
    display: none;
}

/* Nueva flecha para el submenu */
.mainmenu li.has-droupdown .submenu::after {
    top: -20px;
    left: 16%;
    transform: translateX(-50%);
    position: absolute;
    content: "";
    border: 8px solid transparent;
    border-bottom-color: #E31E24;
}

/* Triángulo rojo apuntando hacia arriba - ajuste final de posición */
.mainmenu > li.has-droupdown::after {
    display: none;
}

/* Mostrar submenu y triángulo al hacer hover */
.mainmenu > li.has-droupdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    top: 100%;
}

.mainmenu > li.has-droupdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    top: 100%;
}

/* Elementos del submenu */
.submenu li {
    display: block;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f5f5f5;
}

.submenu li:last-child {
    border-bottom: none;
}

.submenu li a {
    display: block;
    padding: 14px 20px;
    color: #333333;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.2s ease;
    font-family: 'DM Sans', sans-serif;
    text-decoration: none;
}

/* Efectos hover para elementos del submenu */
.submenu li a:hover {
    color: #E31E24;
}

/* Estilos específicos para el último elemento */
.submenu li:last-child a:hover {
    border-radius: 0 0 10px 10px;
}

/* Estilo para el ítem activo en el submenu */
.submenu li.active > a {
    color: #E31E24;
    font-weight: 600;
}

/* Estilo específico para el último elemento activo */
.submenu li:last-child.active > a {
    border-radius: 0 0 10px 10px;
}

/* Eliminar border-top heredado */
.mainmenu li.has-droupdown.active .submenu,
.mainmenu li.has-droupdown.current-page-parent .submenu {
    border-top: none;
}

/* Eliminar subrayado en hover para elementos con submenu */
.mainmenu li.has-droupdown:hover > a.nav-link::after {
    width: calc(100% - 2.1rem);
}

/* Pero mantener el subrayado cuando está activo */
.mainmenu li.has-droupdown.active > a.nav-link::after,
.mainmenu li.has-droupdown.current-page-parent > a.nav-link::after {
    width: calc(100% - 2.1rem);
}

/* Button Area */
.button-area {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    color: #5d666f;
    line-height: 26px;
    margin: 33px 0px;
}

/* Botón de menú móvil */
#menu-btn {
    background: #fce9c8;
    height: 55px;
    width: 55px;
    padding: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #5d666f;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    line-height: 21px;
    text-align: center;
    margin: 0px 0px 0px 20px;
    transition: all 0.3s ease;
}

#menu-btn:hover {
    background-color: #d7303a;
    color: white;
}

#menu-btn img {
    transition: all 0.3s ease;
    max-width: 100%;
    height: auto;
}

#menu-btn:hover img {
    filter: brightness(10);
}

.main-header .button-area button.menu .menu-dark {
    display: block;
    transition: 0.3s;
}

.rts-btn {
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
}

@media (max-width: 1199px) {
    .rts-btn {
        display: flex;
    }
    
    /* Ajustar altura del botón en la versión móvil */
    .button-area {
        margin: 0;
        padding: 15px 0;
    }
}

.rts-btn:hover {
    background-color: #d7303a;
    color: white;
}

.menu.rts-btn.d-xl-none:hover {
    background-color: #d7303a;
    color: white;
}

.menu.rts-btn.d-xl-none:hover img {
    filter: brightness(10);
}

/* Contact info styles */
.contact-info {
    font-size: 14px;
    letter-spacing: 0.5px;
    height: 48px;
    display: flex;
    align-items: center;
}

.contact-info i {
    font-size: 16px;
}

/* Language selector */
.lang-selector {
    font-size: 14px;
    font-weight: 500;
    height: 48px;
    display: flex;
    align-items: center;
}

.lang-selector a {
    padding: 0 0.5rem;
    transition: color 0.2s ease;
}

.lang-selector a:hover {
    color: #fff;
}

.lang-selector span {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0.2rem;
}

/* Mobile Menu Styles */
.side-bar {
    position: fixed;
    overflow: hidden;
    top: 0;
    right: -100%;
    width: 320px;
    padding: 30px;
    height: 100%;
    background-color: white;
    backdrop-filter: blur(7px);
    z-index: 1900;
    transition: all 600ms ease;
    box-shadow: -5px 0 20px -5px rgba(149, 22, 22, 0.12);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Overlay para el fondo oscuro */
.side-bar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0;
    visibility: hidden;
    transition: all 600ms ease;
    z-index: 1899;
}

.side-bar-overlay.active {
    opacity: 0.7;
    visibility: visible;
}

.side-bar.hidden {
    right: -100%;
}

.side-bar:not(.hidden) {
    right: 0;
}

/* Botón de cierre */
.side-bar button {
    max-width: max-content;
    padding-bottom: 30px;
}

.close-icon-menu {
    position: relative;
    top: 0;
    left: 0;
    background-color: #D7303A;
    color: white;
    border: none;
    min-width: 50px;
    min-height: 50px;
    width: 50px;
    height: 50px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    padding: 0;
    margin-bottom: 30px;
    box-sizing: border-box;
}

.close-icon-menu i {
    color: #fff;
    font-size: 20px;
    font-weight: 400;
    font-family: "Font Awesome 5 Pro";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.close-icon-menu i.fa-times:before {
    content: "\f00d";
}

/* Logo */
.side-bar .mobile-logo {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 30px;
}

.side-bar .mobile-logo img {
    max-height: 60px;
    width: auto;
}

/* Navegación móvil */
.mobile-nav {
    margin-top: 10px;
    width: 100%;
    height: 514px;
    display: flex;
    flex-direction: column;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
   
}

.mobile-menu-list > li {
    position: relative;
    padding: 0;
    border-radius: 5px;
    box-shadow: 0px 11px 30px rgba(0, 0, 0, 0.07);
    width: 260px;
    background-color: #fff;
    margin-bottom: 10px;
    transition: margin-bottom 0.3s ease;
    overflow: visible;
}

.mobile-menu-list > li.has-droupdown.active {
    margin-bottom: 130px;
    z-index: 2;
}

.mobile-menu-list > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    color: #000;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 26px;
    font-weight: 500;
    text-decoration: none;
}

.mobile-menu-list > li.has-droupdown > a i {
    color: #000;
    font-size: 12px;
    transform: rotate(0deg);
    transition: all 0.3s ease;
}

.mobile-menu-list > li.has-droupdown.active > a {
    color: #E31E24;
}

.mobile-menu-list > li.has-droupdown.active > a i {
    color: #E31E24;
    transform: rotate(180deg);
}

.mobile-menu-list .submenu {
    display: none;
    padding: 0 15px 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 3;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 5px 5px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 5px;
}

.mobile-menu-list .has-droupdown.active .submenu {
    display: block;
    visibility: visible;
    max-height: 500px;
    transition: max-height 0.3s ease-in;
    padding: 10px;
}

.mobile-menu-list .submenu li {
    margin-bottom: 8px;
    opacity: 1;
    transform: none;
    transition: all 0.3s ease;
    background: #fff;
    padding: 5px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-menu-list .has-droupdown.active .submenu li {
    opacity: 1;
    transform: none;
}

.mobile-menu-list .submenu li:last-child {
    border-bottom: none;
}

.mobile-menu-list .submenu li a {
    color: black;
    font-size: 15px;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    display: block;
    padding: 5px 0;
}

.mobile-menu-list .submenu li a:hover {
    color: #E31E24;
}

@media (max-width: 479px) {
    .side-bar {
        width: 320px;
        padding: 50px 30px 40px;
    }
}

@media (max-width: 1199px) {
    /* Ocultar barra superior roja en pantallas menores a 1200px */
    .top-bar {
        display: none !important;
    }
    
    body {
        padding-top: 100px;
    }
    
    .main-header {
        height: 100px;
        max-height: 100px;
        /* Ajustar posición cuando la barra roja desaparece */
        margin-top: 0;
        top: 0;
        position: fixed;
        width: 100%;
        z-index: 99;
    }
    
    .header-inner-container {
        height: 100px;
        max-height: 100px;
    }
    
    .navigation-column {
        width: 75%;
        display: flex;
        justify-content: flex-end;
    }
    
    /* Reemplazo del menú de navegación por el botón */
    .nav-main.d-none {
        display: none !important;
        visibility: hidden;
        position: absolute;
        left: -9999px;
    }
    
    /* Botón de menú móvil */
    .button-area {
        display: flex !important;
        visibility: visible !important;
    }
    
    .button-area .rts-btn.d-xl-none {
        display: flex !important;
    }
}

/* Media query específico para iPad y dispositivos similares (menor a 1000px) */
@media (max-width: 999px) {
    body {
        padding-top: 85px;
    }
    
    .main-header {
        height: 85px;
        max-height: 85px;
    }
    
    .header-inner-container {
        height: 85px;
        max-height: 85px;
        padding: 0 20px;
    }
    
    .header-inner-container > div {
        height: 85px !important;
        max-height: 85px !important;
        align-items: center;
        display: flex;
    }
    
    .logo-container {
        width: 40%;
        height: 85px !important;
        max-height: 85px !important;
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }
    
    .logo-link {
        padding: 0;
        display: flex;
        align-items: center;
    }
    
    .logo-img {
        max-height: 65px;
    }
    
    .navigation-column {
        width: 60%;
        height: 85px !important;
        max-height: 85px !important;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
    
    .button-area {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        height: 85px !important;
        max-height: 85px !important;
        margin: 0;
        padding: 0;
    }
    
    #menu-btn {
        height: 50px;
        width: 50px;
        padding: 15px;
    }
}

@media (max-width: 991px) {
    body {
        padding-top: 70px;
    }
    
    .main-header {
        height: 70px;
        max-height: 70px;
    }
    
    .header-inner-container {
        height: 70px;
        max-height: 70px;
    }
    
    .top-bar {
        height: auto;
        padding: 8px 0;
    }
    
    .top-container {
        height: auto;
        flex-direction: column;
        gap: 8px;
    }
    
    .top-container > div {
        width: 100%;
        justify-content: center;
    }
    
    .contact-info {
        height: auto;
    }
    
    .lang-selector {
        height: auto;
    }
    
    /* Sticky header ajustes */
    body.has-sticky-header {
        padding-top: 70px;
    }
    
    .sticky-header .main-header,
    .sticky-header .header-inner-container {
        height: 70px !important;
        max-height: 70px !important;
        min-height: 70px !important;
    }
    
    .sticky-header .header-inner-container > div {
        height: 70px !important;
        max-height: 70px !important;
        display: flex;
        align-items: center;
    }
    
    .sticky-header .logo-link {
        padding: 0 !important;
    }
}

/* Estilos específicos para el rango entre tablets pequeñas y móviles grandes (769px-991px) */
@media (min-width: 769px) and (max-width: 991px) {
    .header-inner-container {
        padding: 0 15px;
    }
    
    .header-inner-container > div {
        height: 70px !important;
        max-height: 70px !important;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .logo-container {
        width: 40% !important;
        height: 70px !important;
        max-height: 70px !important;
        display: flex;
        align-items: center;
        flex-shrink: 0;
        justify-content: flex-start;
    }
    
    .logo-link {
        padding: 0 !important;
        display: flex;
        align-items: center;
        height: 70px !important;
    }
    
    .logo-img {
        max-height: 55px !important;
        display: block;
    }
    
    .navigation-column {
        width: 60% !important;
        height: 70px !important;
        max-height: 70px !important;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-shrink: 0;
    }
    
    .main-header-inner {
        height: 70px !important;
        max-height: 70px !important;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
    
    .button-area {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        height: 70px !important;
        max-height: 70px !important;
        margin: 0;
        padding: 0;
    }
    
    #menu-btn {
        height: 45px;
        width: 45px;
        padding: 12px;
        margin-left: 15px;
    }
    
    /* Sticky header ajustes */
    .sticky-header .logo-container,
    .sticky-header .navigation-column {
        height: 70px !important;
        max-height: 70px !important;
        display: flex;
        align-items: center;
    }
    
    .sticky-header .main-header-inner {
        height: 70px !important;
        max-height: 70px !important;
    }
    
    .sticky-header .logo-link {
        padding: 0 !important;
        display: flex;
        align-items: center;
        height: 70px !important;
    }
    
    .sticky-header .logo-img {
        max-height: 55px !important;
    }
    
    .sticky-header .button-area {
        height: 70px !important;
        max-height: 70px !important;
        display: flex;
        align-items: center;
        margin: 0;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .main-header {
        height: 70px !important;
        min-height: 70px !important;
        display: flex;
        align-items: center;
    }

    .header-inner-container {
        height: 70px !important;
        min-height: 70px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
        display: flex;
        align-items: center;
    }

    .header-inner-container > div {
        height: 70px !important;
        min-height: 70px !important;
        width: 100% !important;
        display: flex;
        align-items: center;
    }

    .logo-container {
        width: 50% !important;
        height: 70px !important;
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }
    
    .logo-link {
        padding: 0 !important;
        display: flex;
        align-items: center;
    }
    
    .logo-img {
        max-height: 55px !important;
    }

    .navigation-column {
        width: 50% !important;
        height: 70px !important;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
    
    /* Sticky header específico */
    body.has-sticky-header {
        padding-top: 70px;
    }
    
    /* Forzar altura exacta de 70px para todos los elementos del header en sticky */
    #header-container.sticky-header,
    .sticky-header .main-header,
    .sticky-header .header-inner-container,
    .sticky-header .header-inner-container > div,
    .sticky-header .logo-container,
    .sticky-header .navigation-column,
    .sticky-header .button-area {
        height: 70px !important;
        max-height: 70px !important;
        min-height: 70px !important;
        line-height: 70px !important;
        display: flex;
        align-items: center;
    }
    
    .sticky-header .logo-link {
        padding: 0 !important;
        display: flex;
        align-items: center;
    }
    
    .sticky-header .logo-img {
        max-height: 55px !important;
    }
    
    .button-area {
        display: flex;
        align-items: center;
        height: 70px !important;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 70px;
    }
    
    .header-inner-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
    }
    
    #menu-btn {
        height: 40px;
        width: 40px;
        padding: 10px;
        margin-left: 10px;
    }
    
    .mobile-menu-list li a {
        font-size: 15px;
        padding: 10px;
    }
    
    .submenu-mobile li a {
        font-size: 13px;
    }
    
    body.has-sticky-header {
        padding-top: 70px; /* Solo la altura del header en móvil muy pequeño */
    }
    
    .sticky-header .main-header,
    .sticky-header .header-inner-container {
        height: 70px !important; /* Mantener exactamente la misma altura */
        max-height: 70px !important;
        min-height: 70px !important;
    }
    
    .sticky-header .header-inner-container > div {
        height: 70px !important;
        max-height: 70px !important;
    }
}

@media (max-width: 400px) {
    .side-bar {
        width: 320px;
    }
    
    .header-inner-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
    }
}

/* Mostrar el triángulo y el submenu al hacer hover */
.mainmenu > li.has-droupdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    top: 100%;
}

/* Ajuste fino de la distancia vertical entre el menú y el submenu */
.mainmenu > li.has-droupdown .submenu {
    margin-top: 0;
}

/* También hacer visible el menú desplegable cuando un elemento está activo */
.mainmenu > li.has-droupdown.active .submenu,
.mainmenu > li.has-droupdown.current-page-parent .submenu {
    opacity: 1;
    visibility: visible;
    top: 100%;
}

/* Ajuste fino para el subrayado rojo debajo de "Actualidad" */
.nav-link::after {
    position: absolute;
    content: "";
    left: 0.75rem;
    bottom: 50px;
    height: 2px;
    width: 0%;
    border-radius: 1px;
    background-color: #E31E24;
    transition: width 0.3s ease;
}

/* Eliminar subrayado en hover para elementos con submenu */
.mainmenu li.has-droupdown:hover > a.nav-link::after {
    width: calc(100% - 2.1rem);
}

/* Pero mantener el subrayado cuando está activo */
.mainmenu li.has-droupdown.active > a.nav-link::after,
.mainmenu li.has-droupdown.current-page-parent > a.nav-link::after {
    width: calc(100% - 2.1rem);
}

/* Estructura del header container */
#header-container {
    width: 100%;
}

/* Sticky Header Styles */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background-color: #fff;
}

.sticky-header .top-bar {
    display: none; /* Ocultar la barra superior en modo sticky */
}

.sticky-header .main-header {
    height: 122px; /* Mantener la misma altura que el header normal */
    box-shadow: none;
}

.sticky-header .header-inner-container {
    height: 122px; /* Mantener la misma altura que el header normal */
}

.sticky-header .nav-main {
    height: 122px; /* Mantener la misma altura que el header normal */
}

.sticky-header .nav-item::after,
.sticky-header .nav-link::after {
    bottom: 50px; /* Mantener la misma posición del subrayado */
}

.sticky-header .logo-link {
    padding: 36px 0; /* Restaurar el padding original para pantallas grandes */
    display: flex;
    align-items: center;
}

.sticky-header .logo-img {
    max-height: initial; /* Eliminar la reducción de altura */
    width: auto;
}

/* Ajustes para el contenido principal cuando el header es sticky */
body.has-sticky-header {
    padding-top: 170px; /* 48px (top-bar) + 122px (main-header) */
}

@media (max-width: 1199px) {
    body.has-sticky-header {
        padding-top: 100px; /* Solo la altura del header sin la top-bar */
    }
    
    .sticky-header .main-header {
        height: 100px !important; /* Mantener exactamente la misma altura que el header móvil */
        max-height: 100px !important;
    }
    
    .sticky-header .header-inner-container {
        height: 100px !important; /* Mantener exactamente la misma altura que el header móvil */
        max-height: 100px !important;
    }
    
    .sticky-header .header-inner-container > div {
        height: 100px !important;
        max-height: 100px !important;
        display: flex;
        align-items: center;
    }
    
    .sticky-header .logo-container,
    .sticky-header .navigation-column {
        height: 100px !important;
        display: flex;
        align-items: center;
    }
    
    .sticky-header .logo-link {
        padding: 0 !important; /* Eliminar el padding en pantallas menores */
        display: flex;
        align-items: center;
    }
    
    .sticky-header .button-area {
        height: 100px !important;
        display: flex;
        align-items: center;
        margin: 0;
    }
}

/* Reglas específicas para iPad y dispositivos similares (menor a 1000px) */
@media (max-width: 999px) and (min-width: 992px) {
    body.has-sticky-header {
        padding-top: 85px;
    }
    
    .sticky-header .main-header,
    .sticky-header .header-inner-container {
        height: 85px !important;
        max-height: 85px !important;
        min-height: 85px !important;
    }
    
    .sticky-header .header-inner-container > div {
        height: 85px !important;
        max-height: 85px !important;
        min-height: 85px !important;
        display: flex;
        align-items: center;
    }
    
    .sticky-header .logo-container,
    .sticky-header .navigation-column,
    .sticky-header .button-area {
        height: 85px !important;
        max-height: 85px !important;
        min-height: 85px !important;
        display: flex;
        align-items: center;
    }
    
    .sticky-header .logo-link {
        padding: 0 !important;
        display: flex;
        align-items: center;
    }
    
    .sticky-header .logo-img {
        max-height: 65px !important;
    }
}

/* Responsive container sizes */
@media (min-width: 1400px) {
    .header-inner-container {
        max-width: 1305px;
    }
    .top-container {
        max-width: 1305px;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .header-inner-container {
        max-width: 1140px;
    }
    .top-container {
        max-width: 1140px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .header-inner-container {
        max-width: 960px;
    }
    .top-container {
        max-width: 960px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .header-inner-container {
        max-width: 720px;
    }
    .top-container {
        max-width: 720px;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .header-inner-container {
        max-width: 540px;
    }
    .top-container {
        max-width: 540px;
    }

}

@media (max-width: 1199px) {
    .submenu{
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 400px) {
    .mobile-menu {
        width: 100%;
    }
    
    header-inner-container mx-auto{
        width: 100%;
    }

    .submenu{
        opacity: 1;
        visibility: visible;
    }
} 