/* Estilos generales */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Estilos del encabezado (Header) */
header {
    background: #FFFFFF;
    color: #333;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    cursor: pointer;
}

header .logo img {
    height: 70px;
    width: auto;
}

header nav ul { 
    list-style: none;
    display: flex;
}

header nav ul li {
    margin-left: 20px;
    display: flex;
    align-items: center;
}

header nav ul li a {
    color: #002874; /*#003366;*/
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15em;
    transition: color 0.3s ease, background-color 0.3s ease;
    padding: 8px 12px;
    border-radius: 5px;
    display: block;
}

header nav ul li a:hover,
header nav ul li a:focus {
    color: #002244;
    background-color: #f0f0f0;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: #333;
}

main {
    padding-top: 90px;
    flex: 1 0 auto;
    width: 100%;
}

/* Estilos de la sección Hero */
#hero {
/*
 * Background image for the hero section.
 * Uses a local WebP image for better performance.
 * Includes a fallback background color in case the image fails to load.
 */
background-color: #000; /* Fallback color for when the image is not available */
background: url('/images/Tech-Companie-1024x625.webp') no-repeat center center/cover;
color: #fff; /* Text color, ensure sufficient contrast with the background */
    padding: 100px 0;
    text-align: center;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

#hero .container {
    position: relative;
    z-index: 1;
}

#hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.6;
}

#hero p {
    font-size: 24px;
    margin-bottom: 40px;
}

.btn {
    background: #007BFF;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #0056b3;
}

/* Estilos de la sección Sobre Nosotros (About) */
#about {
    padding: 50px 0;
}

#about .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

#about .about-image {
    flex: 1;
    margin-right: 20px;
    min-width: 300px;
}

#about .about-image img {
    width: 100%;
    height: 250px; /* Fixed height for consistent alignment */
    object-fit: cover; /* Ensures the image covers the area, cropping if necessary */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#about .about-text {
    flex: 2;
}

#about h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #007BFF;
}

#about p {
    margin-bottom: 15px;
    font-size: 18px;
    color: #555;
}

/* Estilos de la sección Servicios */
#services {
    background: #f4f4f4;
    padding: 50px 0;
}

#services h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
    color: #007BFF;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    justify-content: center;
}

.service-item {
    text-align: center;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item i {
    font-size: 48px;
    color: #007BFF;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.service-item:hover i {
    color: #0056b3;
}

.service-item h3 {
    font-size: 22px; /* Reducido para acomodar palabras más largas como 'Desenvolvimento' */
    margin-bottom: 10px;
    color: #333;
}

.service-item p {
    color: #666;
}

/* Estilos de la sección Clientes */
#clients {
    padding: 50px 0;
    text-align: center;
    background: #fff;
}

#clients h2 {
    margin-bottom: 20px;
    font-size: 36px;
    color: #007BFF;
}

#clients p {
    margin-bottom: 40px;
    font-size: 18px;
    color: #555;
}

.clients-carousel {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 20px 0;
}

.clients-carousel img {
    height: 80px;
    width: auto;
    margin: 0 30px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.clients-carousel img:hover {
    transform: scale(1.1);
}

.clients-carousel-wrapper {
    display: inline-block;
    animation: slide 45s linear infinite;
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Estilos de la sección Contacto */
#contact {
    padding: 50px 0;
    background: #f9f9f9;
}

#contact .container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

#contact .contact-info {
    flex: 1;
    min-width: 300px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#contact .contact-info h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #007BFF;
}

#contact .contact-info p {
    margin-bottom: 10px;
    font-size: 18px;
    color: #555;
}

#contact .contact-info .address-line-with-icon,
#contact .contact-info .address-subline {
    font-weight: 500;
    font-size: 19px;
    color: #333;
}

#contact .contact-info .address-line-with-icon {
    display: flex;
    align-items: center;
}

#contact .contact-info .address-subline {
    margin-left: calc(10px + 20px - 5px);
    margin-top: -5px;
    margin-bottom: 15px;
}

#contact .contact-info i {
    margin-right: 10px;
    color: #007BFF;
    font-size: 20px;
}

#contact .contact-info a {
    color: #007BFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

#contact .contact-info a:hover {
    color: #0056b3;
}

#contact iframe {
    border-radius: 8px;
    margin-top: 20px;
}

#contact form {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#contact form h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #007BFF;
}

#contact label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #333;
}

#contact input, #contact textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

#contact input:focus, #contact textarea:focus {
    border-color: #007BFF;
    outline: none;
}

#contact button {
    background: #007BFF;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    transition: background 0.3s ease;
}

#contact button:hover {
    background: #0056b3;
}

/* Estilos del pie de página (Footer) */
footer {
    background: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    font-size: 16px;
    width: 100%;
    flex-shrink: 0;
}

/* Estilos para el menú de navegación */
header nav ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Estilos para el selector de idioma */
.language-selector {
    background: #fff;
    border: 1px solid #002244; /* #007bff; */
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 14px;
    color: #002874; /* #007bff; */
    font-weight: 600;
    height: 36px;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    outline: none;
    margin-left: 15px;
    line-height: 1.2;
}

.language-selector:focus, .language-selector:hover {
    border-color: #002244;
    box-shadow: 0 0 0 2px  rgba(0,51,102,0.15);
    background: #e6eef7;
}

/* Responsive para menú móvil */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    header nav ul {
        display: none;
        flex-direction: column;
        background: #F8F8F8;
        position: absolute;
        width: 100%;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
        top: 90px;
        left: 0;
        z-index: 1000;
        align-items: flex-start; /* Alinea los ítems a la izquierda */
    }
    
    header nav ul.show {
        display: flex;
    }
    
    header nav ul li {
        margin: 0;
        border-bottom: 1px solid #eee;
        width: 100%; /* Asegura que el li ocupe todo el ancho */
    }
    
    header nav ul li a {
        padding: 15px 20px;
        display: block;
        color: #333;
        width: 100%; /* Asegura que el enlace ocupe todo el ancho */
        box-sizing: border-box; /* Evita que el padding afecte el ancho total */
    }
    
    header nav ul li a:hover {
        background: #e9e9e9;
    }
    
    .hamburger {
        display: block;
        position: absolute;
        right: 20px;
        top: 38px; /* Ajustado para centrar verticalmente con el nuevo logo de 60px y padding de 10px */
    }
    
    #hero h1 {
        font-size: 36px;
    }
    
    #hero p {
        font-size: 18px;
    }
    
    #about .container,
    #contact .container {
        flex-direction: column;
    }
    
    #about .about-image {
        margin-right: 0;
        margin-bottom: 30px;
    }
    
    #contact .contact-info {
        margin-right: 0;
        margin-bottom: 30px;
    }
    
    .clients-carousel img {
        height: 60px;
        margin: 0 15px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .service-item {
        padding: 20px;
    }

    .language-selector {
        margin: 10px 0;
        width: 100%;
        text-align: left; /* Alinea el texto a la izquierda */
        padding-left: 20px; /* Alinea con los otros ítems del menú */
    }
    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    nav ul li:last-child {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    #hero h1 {
        font-size: 28px;
    }
    
    #hero p {
        font-size: 16px;
    }
    
    #about h2, #services h2, #clients h2, #contact h2 {
        font-size: 28px;
    }
    
    .service-item h3 {
        font-size: 20px;
    }
    
    .service-item i {
        font-size: 40px;
    }
    
    #contact .contact-info p {
        font-size: 16px;
    }
}
