/*Algunas variables y configuraciones globales de tipos de texto, colores.*/
:root {
    --primary-color: #ef6e00;
    --brand-blue: #001932;
    --text-white: #ffffff;


    --font-titles: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-body: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
}

a {
    text-decoration: none;
    color: inherit;
}
html {
    scroll-behavior: smooth;
}

/*Estilo general del header*/
.main-header {
    background-color: var(--brand-blue);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.header-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    height: 80px;
    padding: 0 4%;

    background-color: #001932;
    box-sizing: border-box;
    z-index: 1000;
}
/*Estilos del boton del cambio de idioma*/
.lang-switcher {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-left: 15px; /* Separación respecto a los links normales */
}

.btn-lang {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    padding: 4px 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.25s ease;
}

.btn-lang:hover {
    border-color: #ef6e00; /* Naranja corporativo */
    color: #ef6e00;
    background: rgba(239, 110, 0, 0.05);
}

/*Estilos para el logo para el fondo color blanco y la imágen*/
.header-logo-container {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    height: 100%;
    align-self: stretch;
    background-color: #ffffff;
    margin-left: -5%;
    padding: 0 70px 0 35px;
    gap: 1.2rem;
    box-sizing: border-box;
    cursor: default;
    clip-path: polygon(0% 0%, 100% 0%, calc(100% - 40px) 100%, 0% 100%);

}

.logo-image-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/*Nombre de la compañia en el logo*/
.company-name {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #001932;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 5px;
    white-space: nowrap;
}

.logo a {
    font-family: var(--font-titles);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 1.5px;
    line-height: 1;
    display: inline-block;
}

.logo .sub-logo {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 5.5px;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.9);
}

.logo img {
    height: 80px;
    width: auto;
    display: block;
}
/*Estilos para la navegación, es decir, el apartado donde definimos los links para las diferentes secciones*/
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-white);
    position: relative;
    padding: 0.6rem 0;
    transition: opacity 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-primary-filled {
    background-color: var(--primary-color);
    color: var(--text-white) !important;
    padding: 0.65rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
    /* Bordes ligeramente suaves como en tu imagen */
    transition: background-color 0.3s ease, transform 0.1s ease;
    display: inline-block;
}
/*Estilos del botón de contact us*/
.btn-primary-filled:hover {
    background-color: #d66200;
}

.btn-nav-contact {
    display: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-white);
    transition: all 0.3s ease;
}

/*Media querys para el manejo de pantallas pequeñas*/
@media (max-width: 992px) {

    .header-logo-container {
        padding: 0 35px 0 20px;
        gap: 0.6rem;
        clip-path: polygon(0% 0%, 100% 0%, calc(100% - 20px) 100%, 0% 100%);
    }

    .company-name {
        font-size: 1.1rem;
        margin-right: 5px;
    }

    .logo-image-wrapper {
        width: 28px;
        height: 28px;
    }

    .lang-switcher {
        margin: 10px;
    }

    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--brand-blue);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
        flex-direction: column;
        align-items: flex-start;
        padding: 90px 2rem 2rem 2rem;
        gap: 1.8rem;
        transition: right 0.4s ease;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-link {
        width: 100%;
        font-size: 1.1rem;
    }

    .nav-link::after {
        bottom: 0;
    }

    .btn-nav-contact {
        display: block;
        width: 100%;
        text-align: center;
        background-color: var(--primary-color);
        color: var(--text-white);
        padding: 0.8rem;
        border-radius: 4px;
        font-weight: 600;
        margin-top: 1rem;
    }

    .menu-toggle.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}