/* Estilos para el header */
header {
    background-color: #ffffff;
    color: #000000;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    font-family: 'Poppins', sans-serif;
}

header nav {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Contenedor del logo y texto */
.logo-container {
    display: flex;
    align-items: center;
}

/* Estilos para el logo */
.logo {
    height: 50px;
    margin-right: 10px;
}

/* Estilos para el contenedor del texto */
/* Contenedor del texto del logo */
.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    line-height: 1.2; /* Reduce la separación entre los textos */
    margin-left: 5px; /* Ajusta la posición respecto al logo */
}


/* Texto principal (CONSULTORÍA YL PHARMA) */
.main-text {
    font-size: 16px;
    font-weight: bold;
    animation: fadeIn 1s ease-in-out;
    transition: transform 0.3s ease-in-out;
    display: flex;
    align-items: center;
}

/* Estilos individuales de cada parte del texto */
.consultoria, .pharma, .yl {
    padding: 3px; /* Espaciado interno */
}

.consultoria, .pharma {
    color: #0db3de; /* Color azul */
}

.yl {
    color: #cf0c0c; /* Color rojo */
}

/* Efecto hover */
.consultoria:hover, .pharma:hover, .yl:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Animación de aparición */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.consultoria, .pharma, .yl {
    animation: fadeIn 1s ease-in-out;
}

/* Texto secundario (CONSULTORÍA Y ASESORÍA FARMACÉUTICA) */
.sub-text {
    font-size: 12px; /* Reducido para que no ocupe mucho espacio */
    font-weight: bold;
    color: black;
    text-transform: uppercase;
    text-align: left;
    margin-top: 2px; /* Ajuste fino para alineación */
    margin-left: 3px; /* Ajusta este valor según sea necesario */
    animation: fadeIn 1s ease-in-out;
    transition: transform 0.3s ease-in-out;

}
/* 🔥 Nuevo: Efecto de agrandado al pasar el mouse */
.sub-text:hover {
    transform: scale(1.05);
}

/* Estilos para los enlaces del menú */
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-links li {
    display: inline;
}

.nav-links li a {
    color: #000000;
    text-decoration: none;
    font-size: 12px; /* reducir tamaño de opciones menu */
    padding: 5px 10px;
    border-radius: 20px;
    transition: background-color 0.3s, transform 0.3s;
    position: relative;
}

.nav-links li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #e64d4d;
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    transition: transform 0.3s;
}

.nav-links li a:hover::after {
    transform: scaleX(1);
}

/* Estilos para el selector de idioma */
.language-selector {
    position: relative;
    cursor: pointer;
}

.current-language {
    display: flex;
    align-items: center;
    gap: 5px;
}

.language-flag {
    height: 20px;
}

.language-dropdown {
    display: none;
    position: absolute;
    top: 30px;
    right: 0;
    background-color: #ffffff;
    list-style: none;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.language-dropdown.active {
    display: block;
}

.language-dropdown li a {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #000000;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.language-dropdown li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Estilos para las banderas en el menú desplegable */
.language-dropdown img {
    width: 20px; /* Ancho fijo */
    height: auto; /* Altura automática para mantener la proporción */
}

/* Estilos para el ícono de menú hamburguesa */
.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Estilos para pantallas pequeñas (responsive) */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70.4px;
        right: 0;
        background-color: #ffffff;
        width: 100%;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .language-dropdown {
        top: 40px;
        right: 50%;
        transform: translateX(50%);
    }
}
