/* ============================================
   HEADER GLOBAL TECNOSALUD
   ============================================ */
@media (max-width: 768px) {
	#header-placeholder {
		display: none;
		}
	}
/* Variables CSS */
:root {
    --header-height: 100px;
    --header-bg: #ffffff;
    --primary-color: rgba(76,131,83,1);
    --secondary-color: rgba(98,181,112,1);
    --contact-bg: rgba(98,181,112,1);
    --header-shadow: 0 2px 10px rgba(0,0,0,0.08);
    --transition-speed: 0.3s;
    --dropdown-bg: #ffffff;
}

/* Reset básico para el header */
#main-header * {
    box-sizing: border-box;
}

/* ============================================
   HEADER PRINCIPAL - FIJO
   ============================================ */
#main-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 1920px !important;
    max-width: 1940px;
    height: var(--header-height) !important;
    background: var(--header-bg) !important;
    box-shadow: var(--header-shadow) !important;
    z-index: 1000 !important;
    border-bottom: 0px solid rgba(0, 0, 0, 0.05) !important;
    pointer-events: none;
}


.header-container {
    /* max-width: 1940px; */
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0 0 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    pointer-events: auto;
}

/* ============================================
   LOGO
   ============================================ */
.logo-link {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    transition: opacity var(--transition-speed);
}

/* .logo-link:hover {
    opacity: 0.85;
} */

.logo {
    height: 75px;
    width: auto;
    display: block;
}

/* ============================================
   SELECTOR DE IDIOMA (CENTRADO)
   ============================================ */
@media (min-width: 768px) {
	
   .languages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-shrink: 0;
    padding: 0.4rem 1rem;
    background: transparent;
    margin-left: auto;
    width: 25%;
}

.lang-button {
    font-family: Raleway, sans-serif;
    font-size: 25px;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: all var(--transition-speed);
    border-radius: 4px;
    font-weight: normal;
}

.lang-button:hover,
.lang-button:focus {
    color: var(--primary-color);
    transform: scale(1.10);
    background: transparent;
    outline: none;
}

.lang-button.active {
    font-weight: 700;
    color: var(--primary-color);
}

.separator {
    color: var(--primary-color);
    font-size: 25px;
    /* opacity: 0.4; */
}
}
/* ============================================
   NAVEGACIÓN DESKTOP
   ============================================ */
.nav-desktop {
    display: flex;
    align-items: center;
    /* gap: 1rem; */
    flex: 1;
    justify-content: flex-end;
    margin-left: auto;
    margin-right: -0.8rem;
    height: 100%;
}

.nav-item {
    display: flex;
    align-items: center;
    height: 100%;
    font-family: Raleway, sans-serif;
    font-size: 25px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 2rem;
    transition: all var(--transition-speed);
    white-space: nowrap;
    position: relative;
}
.nav-item-dropdown{
    display: flex;
    align-items: center;
    height: 100%;
}


/* .nav-item:hover,
.nav-item:focus {
    color: var(--secondary-color);
    transform: scale(1.05); 
    outline: none;
} */
/* Para items activos, el hover también aumenta tamaño */
.nav-item.active:hover,
.nav-item.active:focus {
    /* transform: scale(1.05); */
    background-color: rgba(98,181,112,1); /* Mantiene el mismo fondo */
    color: white; /* Mantiene el texto blanco */
}

/* ============================================
   DROPDOWN DE PRODUCTOS
   ============================================ */
.nav-item-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* .dropdown-icon {
    transition: transform var(--transition-speed);
}

.dropdown-toggle:hover .dropdown-icon,
.dropdown-toggle:focus .dropdown-icon,
.nav-item-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
} */

.dropdown-icon {
    /* Filtro para cambiar color en hover (aproximado) */
    transition: filter var(--transition-speed);
}

.dropdown-toggle:hover .dropdown-icon {
    /* filter: brightness(0) saturate(100%) invert(58%) sepia(98%) saturate(1000%) hue-rotate(170deg); */
    transform: rotate(180deg);
}
.dropdown-toggle.active .dropdown-icon {
    filter: brightness(0) saturate(100%) invert(100%);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0rem);
    left: 50%;
    transform: translateX(-50%);
    background: var(--dropdown-bg);
    border-radius: 0px 0px 15px 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    /* padding: 0.5rem 0; */
    min-width: 170px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed);
    z-index: 100;
}
.dropdown-menu a{
    text-align: center;
}

.nav-item-dropdown:hover .dropdown-menu,
.dropdown-toggle:focus + .dropdown-menu,
.dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
}

.dropdown-item {
    display: block;
    font-family: Raleway, sans-serif;
    font-size: 20px;
    font-weight: normal;
    color: var(--primary-color);
    text-decoration: none;
    padding: 1.5rem 1.5rem;
    transition: all var(--transition-speed);
    white-space: nowrap;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgb(221, 250, 225);
    color: var(--secondary-color);
    outline: none;
}

/* ============================================
   BOTONES DE CONTACTO
   ============================================ */
.contact-buttons {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    background: var(--contact-bg);
    padding: 2px 18px 2px 2px;
    border-radius: 1px;
    margin-left: auto;
    height: 100%;
    width: 11%;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    transition: transform var(--transition-speed);
    color: white;
    border-radius: 4px;
}

.contact-icon:hover,
.contact-icon:focus {
    transform: scale(1.15);
    outline: none;
    /* background: rgba(255, 255, 255, 0.2); */
}

.contact-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   AJUSTE PARA CONTENIDO BAJO EL HEADER
   ============================================ */
body {
    padding-top: var(--header-height);
}


/* ============================================
   PÁGINA ACTIVA - Fondo verde y texto blanco
   ============================================ */
.nav-item.active {
    background-color: rgba(98,181,112,1);
    color: white;
    /* padding: 0.5rem 2rem; */
}

/* Dropdown button activo */
.nav-item.dropdown-toggle.active {
    background-color: rgba(98,181,112,1);
    color: white;
}

/* El SVG también cambia a blanco cuando está activo */
.nav-item.active .dropdown-icon path {
    stroke: white;
}


/* Cuando el dropdown está activo */
.dropdown-toggle.active:hover,
.dropdown-toggle.active:focus {
    background-color: rgba(98,181,112,1);
    color: white;
}

/* ============================================
   DROPDOWN CONTAINER HOVER
   ============================================ */
/* Cuando pasas el mouse sobre el contenedor del dropdown */
.nav-item-dropdown:hover .dropdown-toggle {
    transform: scale(1.05);
}

/* Si el dropdown está activo y haces hover */
.nav-item-dropdown:hover .dropdown-toggle.active {
    background-color: rgba(98,181,112,1);
    color: white;
}

/* ============================================
   ACCESIBILIDAD - Focus visible
   ============================================ */
.nav-item:focus-visible {
    outline: 2px solid rgba(98,181,112,1);
    outline-offset: 2px;
}

.nav-item.active:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}


/* ============================================
   UTILIDADES
   ============================================ */

/* Focus visible para accesibilidad */
*:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Animación de entrada del header */
#main-header {
    animation: headerSlideDown 0.5s ease-out;
}

@keyframes headerSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Print styles */
@media print {
    #main-header {
        position: static;
        box-shadow: none;
    }
}


 /* ****versión móvil**** */

/* Variables CSS */
:root {
    --header-mobile-height: 50px;
    --bottom-nav-height: 50px;
    --header-bg: #ffffff;
    --primary-color: rgba(76,131,83,1);
    --secondary-color: rgba(98,181,112,1);
    --bottom-nav-bg: #ffffff;
    --header-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    --transition-speed: 0.3s;
}

/* Reset básico */
#main-header-mobile *,
#bottom-nav-mobile * {
    box-sizing: border-box;
}

/* ============================================
   HEADER SUPERIOR
   ============================================ */
#main-header-mobile {
    position: relative;
    width: 100%;
    background: var(--header-bg);
    z-index: 100;
}

.header-mobile-top {
    height: auto;
    margin-top: 1.5rem;
    margin-bottom: -1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Logo centrado */
.logo-link-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-link-mobile:hover {
    opacity: 0.85;
}

.logo-mobile {
    height: 40px;
    width: auto;
    display: block;
}

/* Selector de idioma (izquierda) */
@media (max-width: 768px) {
    .languages {
        position: absolute;
        left: 0%;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: 100%;
    }

    .lang-button {
        font-family: Raleway, sans-serif;
        font-size: clamp(15px, 2vw, 20px);
        background: none;
        border: none;
        color: var(--primary-color);
        cursor: pointer;
        padding: 0.25rem 0.5rem;
        transition: all var(--transition-speed);
        border-radius: 4px;
        font-weight: normal;
    }

    .lang-button:hover,
    .lang-button:focus {
        color: var(--secondary-color);
        outline: none;
    }

    .lang-button.active {
        font-weight: bold;
        color: var(--primary-color);
    }

    .separator {
        color: var(--primary-color);
        font-size: 15px;
    }

:root {
    --web-view-ids: menu_home_movil;
}

}

/* ============================================
   BARRA DE NAVEGACIÓN INFERIOR (FIJA)
   ============================================ */
#bottom-nav-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--bottom-nav-height);
    background: var(--bottom-nav-bg);
    box-shadow: var(--header-shadow);
    z-index: 1000;
    border-top: 0px solid rgba(0, 0, 0, 0.05);
    margin: 0px;
    padding: 0px;
}

.bottom-nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between !important;
    margin: 0px !important;
    padding: 0px !important;
}

/* Items de navegación */
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed);
    flex: 1;
    /* max-width: 100px; */
    font-family: Raleway, sans-serif;
    font-size: 12px;
    font-weight: 700;
    height: 100%;
}

.bottom-nav-item:hover,
.bottom-nav-item:focus,
.bottom-nav-item:active {
    color: var(--secondary-color);
    outline: none;
}

.bottom-nav-item svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.bottom-nav-item span {
    font-size: 12px;
    text-align: center !important;
}


/* ============================================
   ESTILOS ESPECIALES PARA BOTÓN DE CONTACTO
   ============================================ */
/* Botón de contacto con fondo verde */
#contacto-mobile-toggle {
    background: var(--secondary-color);
    color: white;
    /* border-radius: 5%; */
    width: 100px;
    height: 50px;
    padding: 0;
    /* margin: 0 0.5rem; */
    /* box-shadow: 0 4px 12px rgba(30, 107, 167, 0.3);
    position: relative;
    bottom: 10px; /* Elevarlo un poco */
}

#contacto-mobile-toggle.active {
    background: var(--secondary-color);
    color: white;
}

/* Dropdown de contacto con fondo verde */
#contacto-dropdown-mobile {
    background: var(--secondary-color);
}

#contacto-dropdown-mobile,.dropdown-item-mobile {
    color: white;
    justify-content: center;
    text-align: center;
    /* padding: 1rem; */
}

#contacto-dropdown-mobile .dropdown-item-mobile:hover,
#contacto-dropdown-mobile .dropdown-item-mobile:focus {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}


/* ============================================
   DROPDOWNS (SE ABREN HACIA ARRIBA)
   ============================================ */
.bottom-nav-item-dropdown {
    position: relative;
    flex: 1;
    /* max-width: 100px; */
}

.dropdown-menu-mobile {
    position: absolute;
    bottom: calc(100% + 0.0rem);
    left: 10%;
    /* transform: translateX(-50%); */
    background: var(--bottom-nav-bg);
    border-radius: 15px 15px 0px 0px;;
    /* box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15); */
    /* padding: 0.75rem 0; */
    min-width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed);
    z-index: 100;
}

.dropdown-menu-mobile.active {
    opacity: 1;
    visibility: visible;
}
#productos-dropdown-mobile{
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(100% + 0rem);
    /* width: 140px; */
}
#nosotros-dropdown-mobile {
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(100% + 0rem);
}
#contacto-dropdown-mobile {
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(100% + 0rem);
}
.dropdown-item-mobile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: Raleway, sans-serif;
    font-size: 14px;
    font-weight: normal;
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    transition: all var(--transition-speed);
    white-space: nowrap;
}

.dropdown-item-mobile:hover,
.dropdown-item-mobile:focus {
    background: rgb(221, 250, 225);
    color: var(--secondary-color);
    outline: none;
}

.dropdown-item-mobile img,
.dropdown-item-mobile svg {
    width: 37px;
    height: auto;
    flex-shrink: 0;
}

/* Indicador visual de dropdown activo */
.bottom-nav-item.active {
    color: var(--secondary-color);
}

/* ============================================
   AJUSTE PARA CONTENIDO
   ============================================ */
body {
    padding-bottom: var(--bottom-nav-height);
}

/* ============================================
   OVERLAY PARA CERRAR DROPDOWNS
   ============================================ */
.dropdown-overlay-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed);
}

.dropdown-overlay-mobile.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   UTILIDADES
   ============================================ */

/* Focus visible para accesibilidad */
*:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Animación de entrada de la barra inferior */
#bottom-nav-mobile {
    animation: slideUpNav 0.5s ease-out;
}
.bottom-nav-item-dropdown{
height: 100%;
width: 100%;
display: flex;
}

/* ============================================
   ESTADO ACTIVO - NAV MÓVIL
   ============================================ */

.bottom-nav-item.active {
    background-color: var(--secondary-color); 
    color: #ffffff;
    height: 100%;
    width: 100%;
    border-radius: 0;
}

/* Asegurar que el texto herede el color blanco */
#bottom-nav-mobile .bottom-nav-item.active span {
    color: #ffffff;
}

/* Evitar que afecte el botón de contacto */
#contacto-mobile-toggle.active {
    background: var(--secondary-color);
    color: #ffffff;
}


* {
    margin: 0;
}

@keyframes slideUpNav {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================
   RESPONSIVE - TABLETS PEQUEÑAS
   ============================================ */
@media (min-width: 481px) and (max-width: 768px) {
    .logo-mobile {
        height: 55px;
    }

    .bottom-nav-item span {
        font-size: 12px;
    }

    .dropdown-item-mobile {
        font-size: 15px;
        padding: 0.85rem 1.5rem;
    }

    * {
    margin: 0;
}
.bottom-nav-item {
    transition: none !important; /* Sin transición en mobile */
}

.bottom-nav-item.active {
    background: rgba(255, 255, 255, 0.2);
}
}

/* ============================================
   MÓVILES MUY PEQUEÑOS
   ============================================ */
@media (max-width: 360px) {
    .logo-mobile {
        height: 42px;
    }

    .bottom-nav-item span {
        font-size: 10px;
    }

    .bottom-nav-item svg {
        width: 20px;
        height: 20px;
    }

    .lang-button {
        font-size: clamp(10px, 2vw, 20px);
        padding: 0.2rem 0.4rem;
    }
    * {
    margin: 0;
}
    
}

/* Oculta imágenes hasta que se actualicen */
/* img[data-image] {
    visibility: hidden;
    opacity: 0;
}

img[data-image].loaded {
    visibility: visible;
    opacity: 1;
}

body.overlay_mov-active .languages {
    display: none;
} */

/* estilos contenedor principal header */

#fixed-header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    pointer-events: none; /* el contenedor no intercepta clics */
    z-index: 99999;
}

#header-placeholder {
    pointer-events: auto; /* el header sí */
    width: 100%;
}
body {
    padding-top: 0px !important;
}