/* --- IMPORTACIÓN DE FUENTE LOCAL (TREBUCHET) --- */
@font-face {
    font-family: 'Trebuchet MS Custom';
    src: url('trebuc.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Trebuchet MS Custom';
    src: url('trebucbd.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Trebuchet MS Custom';
    src: url('trebucit.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Trebuchet MS Custom';
    src: url('trebucbi.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
}


/* --- VARIABLES Y ESTILOS GLOBALES --- */
:root {
    --dark-blue: #001323;
    --medium-blue: #002a4c;
    --accent-blue: #0065a2;
    --white: #ffffff;
    --light-gray: #f4f4f4;
    --text-color: #333;
    --hover-light-blue: #7ac5f5;
}

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

body {
    font-family: 'Trebuchet MS Custom', 'Trebuchet MS', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.map-full-width {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1,
h2,
h3 {
    font-family: 'Trebuchet MS Custom', 'Trebuchet MS', sans-serif;
    font-weight: bold;
    color: var(--dark-blue);
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
}

/* --- HEADER --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease, height 0.4s ease;
    height: 90px;
}

.main-header.scrolled {
    background-color: var(--dark-blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    height: 70px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 50px;
    transition: height 0.4s ease;
    display: block;
}

.main-header.scrolled .logo img {
    height: 40px;
}

.logo .logo-white {
    display: none;
}

.main-header.scrolled .logo .logo-color {
    display: none;
}

.main-header.scrolled .logo .logo-white {
    display: block;
}

.main-nav {
    height: 100%;
}

.main-nav ul {
    list-style: none;
    display: flex;
    height: 100%;
    align-items: stretch;
}

.main-nav ul li {
    display: flex;
    align-items: center;
    margin-left: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--white);
    font-weight: bold;
    transition: color 0.3s ease;
    padding: 0 10px;
    display: flex;
    align-items: center;
}

.main-nav a:hover {
    color: var(--accent-blue);
}

.main-header.scrolled .main-nav a:not(.nav-contact-btn):hover {
    color: var(--hover-light-blue);
}

.main-nav .contact-item {
    margin-left: 40px;
    padding: 0;
}

.nav-contact-btn {
    background-color: transparent;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 25px;
    transition: background-color 0.3s ease;
}

.main-header.scrolled .nav-contact-btn {
    background-color: var(--accent-blue);
}

.main-header.scrolled .nav-contact-btn:hover {
    background-color: #007bc7;
    color: var(--white);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--hover-light-blue);
}

.main-header.scrolled .main-nav a:not(.nav-contact-btn):hover,
.main-header.scrolled .main-nav a.active:not(.nav-contact-btn) {
    color: var(--hover-light-blue);
}

/* --- ESTILOS PARA MENÚ HAMBURGUESA --- */
.hamburger-menu {
    display: none;
    /* Oculto en desktop */
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
    /* Debe estar por encima del nav */
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--white);
    transition: all 0.3s ease-in-out;
}

.main-header.scrolled .hamburger-menu .bar {
    background-color: var(--white);
}

/* --- HERO BANNER --- */
.hero {
    height: 100dvh;
    /* Corregido: Usamos dynamic viewport height */
    background: url('img/landing-background.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 19, 35, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: left;
    /* Revertido a left como en el original */
    width: 100%;
}

.hero h1 {
    font-size: 4.5rem;
    color: var(--white);
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 10px;
}

.hero h2 {
    color: var(--white);
    font-weight: bold;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-blue);
    color: var(--white);
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;

    /* Añadido para normalizar <button> y <a> */
    border: none;
    font-family: 'Trebuchet MS Custom', 'Trebuchet MS', sans-serif;
    font-size: 1rem;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #007bc7;
    transform: translateY(-3px);
}

/* --- SERVICES --- */
.services {
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--light-gray);
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.service-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    padding: 40px;
}

.service-card .icon {
    font-size: 3rem;
    color: var(--accent-blue);
    margin-bottom: 20px;
    transition: color 0.4s ease;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--dark-blue);
    transition: color 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background-color: var(--accent-blue);
    color: var(--white);
}

.service-card:hover h3,
.service-card:hover .icon {
    color: var(--white);
}

/* --- WHY US IMMERSIVE --- */
.why-us-immersive {
    position: relative;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
    padding: 180px 0;
}

.why-us-immersive .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 19, 35, 0.8);
}

.why-us-immersive .immersive-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.why-us-immersive h2 {
    color: var(--white);
    font-size: 2.8rem;
}

.why-us-immersive p {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* --- WHY US SECTIONS --- */
.why-us {
    background-color: var(--white);
    padding: 100px 0;
    display: flex;
    align-items: center;
    overflow-x: hidden;
}

.why-us:nth-of-type(even) {
    background-color: var(--light-gray);
}

.why-us-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.why-us-image {
    flex: 0 0 45%;
    order: 2;
    border-radius: 8px;
    overflow: hidden;
}

.why-us-image img {
    width: 100%;
    height: auto;
    display: block;
}

.why-us-text {
    flex: 1;
    order: 1;
}

.why-us-text h2 {
    text-align: left;
    margin-bottom: 25px;
    font-size: 2.8rem;
    line-height: 1.2;
}

.why-us-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #555;
}

/* --- GLOBAL REACH --- */
.global-reach-detailed {
    background-color: #bae1e97a;
    /* Color original restaurado */
}

.map-full-width {
    overflow: hidden;
    border-radius: 8px;
}

.map-full-width img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 60px;
}

.global-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: flex-start;
}

.global-stats-grid h3 {
    font-size: 1.7rem;
    margin-bottom: 25px;
}

.percentage-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-item {
    text-align: center;
    background-color: var(--white);
    padding: 20px;
    border-radius: 5px;
}

.stat-item .stat-label {
    display: block;
    font-size: 1rem;
    margin-bottom: 5px;
}

.stat-item .stat-number {
    display: block;
    font-weight: bold;
    font-size: 2.5rem;
    color: var(--accent-blue);
    line-height: 1;
}

.bar-item {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.bar-label {
    flex: 0 0 40%;
    font-size: 0.95rem;
    padding-right: 20px;
}

.bar-container {
    flex: 1;
    background-color: #e0e0e0;
    border-radius: 4px;
}

.bar {
    height: 28px;
    border-radius: 4px;

    display: flex;
    /* Para alinear el span interno */
    align-items: center;
    /* Centrado vertical */
    justify-content: flex-end;
    /* Alineado a la derecha */
    padding-right: 10px;
    /* Espacio para que no se pegue al borde */
    overflow: hidden;
    /* Oculta el texto hasta que la barra se anima */
}

.bar.b1 {
    width: 40%;
    background-color: #9b8ab8;
}

.bar.b2 {
    width: 60%;
    background-color: #6d88b7;
}

.bar.b3 {
    width: 100%;
    background-color: var(--medium-blue);
}

.bar.b4 {
    width: 80%;
    background-color: var(--dark-blue);
}

.bar span {
    color: var(--white);
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
    /* Evita que el texto se rompa en dos líneas */
}


/* --- CLIENTS SECTION --- */
.clients-section {
    background-color: var(--white);
    text-align: center;
    padding-top: 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/*
.clients-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-image: url('https://viera.com.ar/plantdesign2025/img/fondo-partners.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;

    background-color: var(--medium-blue); 

    background-blend-mode: multiply;

    opacity: 0.08; 

    z-index: -1; 
}*/
.clients-section .subtitle {
    font-size: 1.1rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto 60px;
}

.client-logo-grid {
    display: grid;
    gap: 50px 40px;
    max-width: 1000px;
    margin: 0 auto 25px auto;
    align-items: center;
}

.row-1,
.row-3 {
    grid-template-columns: repeat(5, 1fr);
}

.row-2,
.row-4 {
    grid-template-columns: repeat(4, 1fr);
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

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

.client-logo-img {
    max-height: 60px;
    width: auto;
    max-width: 100%;
    filter: grayscale(100%);
    opacity: 0.75;
    cursor: pointer;
    transition: opacity 1s ease-in-out, filter 0.7s ease-in-out, transform 0.7s ease-in-out;
}

.client-logo-img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.logo-fade-out {
    opacity: 0;
}

/* --- CONTACT SECTION --- */
.contact-section-final {
    padding: 80px 0;
    background-color: var(--medium-blue);
    color: var(--white);
}

.contact-section-final h2 {
    color: var(--white);
}

.contact-section-final .section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: rgba(255, 255, 255, 0.8);
}

.contact-form-container {
    max-width: 900px;
    margin: 0 auto;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border-radius: 5px;
    font-family: 'Trebuchet MS Custom', sans-serif;
    font-size: 1rem;
    color: var(--white);
    background-color: rgba(0, 19, 35, 0.6);
    border: 1px solid var(--accent-blue);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background-color: rgba(0, 19, 35, 0.9);
    border-color: #007bc7;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-button {
    grid-column: 1 / -1;
    justify-self: center;
}

/* --- ESTILOS PARA PÁGINA DE PROYECTOS (OPCIÓN 1) --- */
.intro-section {
    padding: 60px 0;
    background-color: var(--white);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.intro-text-block h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--accent-blue);
}

.projects-showcase-container {
    padding: 80px 0;
}

.project-showcase-item {
    padding: 80px 0;
    border-bottom: 1px solid #e0e0e0;
}

.project-showcase-item:nth-child(odd) {
    background-color: var(--light-gray);
}

.project-showcase-item:last-child {
    border-bottom: none;
}

.project-showcase-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.project-showcase-content.reverse {
    flex-direction: row-reverse;
}

.project-text {
    flex: 1;
}

.project-image {
    flex: 0 0 45%;
    border-radius: 8px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
}

.project-client-logo {
    max-height: 45px;
    width: auto;
    margin-bottom: 25px;
}

.project-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.legend-list {
    list-style: none;
    /* Quita los puntos negros por defecto de la lista */
    padding: 0;
    margin: 0;
}

.legend-list li {
    margin-bottom: 12px;
    /* Espacio entre los dos ítems */
    display: flex;
    /* Alinear el punto y el texto */
    align-items: center;
    /* Centrar verticalmente */
    color: #3a535b;
    /* Color de texto oscuro */
    font-size: 1rem;
}

/* Estilo base para los puntos de color */
.dot {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    /* Esto los convierte en círculos */
    margin-right: 10px;
    /* Espacio entre el punto y el texto */
}

/* Colores específicos para cada punto */
.dot-yellow {
    background-color: #f5c518;
}

.dot-green {
    background-color: #4caf50;
}

/* --- ESTILOS INTRO PROYECTOS (OPCIÓN C) --- */
.intro-section-overlap {
    padding: 80px 0;
}

.intro-grid-overlap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.intro-overlap-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    color: var(--white);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.overlap-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.overlap-text-box {
    position: relative;
    z-index: 2;
    padding: 30px;
    background: linear-gradient(180deg, rgba(0, 19, 35, 0) 10%, rgba(0, 19, 35, 0.7) 25%, rgba(0, 19, 35, 0.95) 100%)
}

.overlap-text-box h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.overlap-text-box p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* --- FOOTER --- */
.main-footer {
    background-color: var(--dark-blue);
    color: var(--light-gray);
    padding: 60px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 80px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column img {
    height: 70px;
    margin-bottom: 10px;
}

.footer-slogan {
    margin-bottom: 20px;
    font-style: italic;
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li a {
    color: var(--light-gray);
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--accent-blue);
}

.footer-column .address-info,
.footer-column .contact-info {
    font-style: normal;
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-column .contact-info p {
    margin-bottom: 16px;
}

.footer-column .contact-info a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column .contact-info a:hover {
    color: var(--accent-blue);
}

.footer-socials {
    margin-top: 15px;
}

.footer-socials a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s ease;
    opacity: 0.8;
}

.footer-socials a i {
    font-size: 1.8rem;
}

.footer-socials a:hover {
    color: var(--accent-blue);
    opacity: 1;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--medium-blue);
    font-size: 0.9rem;
}

/* --- INICIO DE CÓDIGO RESTAURADO --- */
/* Estilos para encabezados de página y otras utilidades que fueron omitidos */

.page-header {
    position: relative;
    height: 45vh;
    min-height: 300px;
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    padding-bottom: 40px;
}

.page-header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 19, 35, 0.7);
}

.page-header-title-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.page-header-title-container h1 {
    color: var(--white);
    /* Regla de color blanco para el título restaurada */
    font-size: 2.8rem;
    text-align: left;
    margin: 0;
}

.page-title-container {
    padding: 50px 0 20px 0;
    text-align: center;
    background-color: var(--white);
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
}

.page-title-container h1 {
    font-size: 3rem;
    color: var(--dark-blue);
}

/* Opciones de estilo para listas (bullets) restauradas */
.spaced-list-icons {
    list-style: none;
    padding-left: 0;
}

.spaced-list-icons li {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.spaced-list-icons .icon-box {
    flex: 0 0 50px;
    height: 50px;
    background-color: var(--light-gray);
    color: var(--accent-blue);
    border-radius: 50%;
    margin-right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

.spaced-list-lines {
    list-style: none;
    padding-left: 25px;
}

.spaced-list-lines li {
    font-size: 1.1rem;
    margin-bottom: 18px;
    padding-left: 25px;
    position: relative;
    border-left: 3px solid var(--accent-blue);
}

.spaced-list-checkmark {
    list-style: none;
    padding-left: 0;
}

.spaced-list-checkmark li {
    font-size: 1.1rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
}

.spaced-list-checkmark .fa-check {
    color: var(--accent-blue);
    margin-right: 15px;
    font-size: 1.2rem;
}

/* Estilos para la barra de scroll (scrollbar) restaurados */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-blue) var(--dark-blue);
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--dark-blue);
}

::-webkit-scrollbar-thumb {
    background-color: var(--accent-blue);
    border-radius: 20px;
    border: 3px solid var(--dark-blue);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--hover-light-blue);
}

/* --- FIN DE CÓDIGO RESTAURADO --- */

.intro-section-overlap {
    padding: 80px 0;
}

.intro-grid-overlap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.intro-overlap-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    color: var(--white);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Añadimos la transición para el efecto de elevación */
    transition: transform 0.3s ease-out;
}

.overlap-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    /* Añadimos la transición para el efecto de zoom */
    transition: transform 0.4s ease-out;
}

/* --- NUEVO EFECTO HOVER --- */
.intro-overlap-item:hover {
    cursor: pointer;
}

.intro-overlap-item:hover .overlap-bg-image {
    transform: scale(1.05);
    /* La imagen de fondo crece sutilmente */
}

.overlap-text-box {
    position: relative;
    z-index: 2;
    padding: 30px;
    background: linear-gradient(180deg, rgba(0, 19, 35, 0) 10%, rgba(0, 19, 35, 0.7) 25%, rgba(0, 19, 35, 0.95) 100%);
    /* Transición para que el texto no se vea afectado bruscamente */
    transition: background 0.3s ease;
}

.overlap-text-box h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.overlap-text-box p {
    font-size: 1.1rem;
    opacity: 0.9;
}


/* --- Efecto Hover-Lift --- */

.hover-lift {
    /* Asegura que el elemento pueda ser transformado */
    display: inline-block;
    vertical-align: middle;
    /* Ayuda a alinear si está junto a texto */

    /* Define la animación para que sea suave */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;

    /* Estado inicial (sin hover) */
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hover-lift:hover {
    /* Estado al pasar el cursor (hover) */
    transform: translateY(-10px);
    /* Mueve el elemento 10px hacia arriba */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    /* Sombra más pronunciada para dar profundidad */
}

/* Opcional: Asegura que la imagen se ajuste al contenedor */
.hover-lift img {
    display: block;
    max-width: 100%;
    height: auto;
}

.grecaptcha-badge {
    visibility: hidden;
    display: none;
}

@media (min-width: 992px) {

    .hero-content h1,
    .hero-content h1 {
        max-width: 650px;
    }
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .hero {
        background: url('img/landing-background-mobile.jpg') no-repeat center center/cover;
    }

    .legend-list {
        display: none
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero p {
        font-size: 1.3rem;
    }

    .why-us-content {
        flex-direction: column;
        gap: 40px;
    }

    .why-us-image {
        order: 1;
    }

    .why-us-text {
        order: 2;
    }

    .why-us-text h2 {
        text-align: center;
        font-size: 2rem;
    }

    .global-stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }

    h2 {
        font-size: 2rem;
    }

    .main-header,
    .main-header.scrolled {
        height: 70px;
    }

    .logo img,
    .main-header.scrolled .logo img {
        height: 35px;
    }

    .hamburger-menu {
        display: block;
    }

    .main-header.scrolled .hamburger-menu .bar {
        background-color: var(--white);
    }

    .main-nav {
        position: fixed;
        left: -100%;
        top: 0;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--dark-blue);
        transition: left 0.4s ease;
        padding-top: 100px;
        z-index: 999;
    }

    .main-nav.is-active {
        left: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
    }

    .main-nav ul li {
        width: 100%;
        margin-left: 0;
    }

    .main-nav a {
        padding: 15px 30px;
        width: 100%;
        justify-content: flex-start;
        font-size: 1.2rem;
    }

    .main-nav .contact-item {
        margin-left: 0;
    }

    .nav-contact-btn {
        height: auto;
        background-color: var(--accent-blue);
        justify-content: center;
    }

    .hero-content {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .client-logo-grid.row-1,
    .client-logo-grid.row-3,
    .client-logo-grid.row-2,
    .client-logo-grid.row-4 {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columnas para todas las filas */
        gap: 25px;
        max-width: 90%;
    }

    .form-column-right .form-group {
        height: auto !important;
        /* Anula la altura conflictiva del HTML */
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-column img {
        margin: 0 auto 20px;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    /* Solución #1: Padding en la sección de contacto */
    .contact-section-final {
        padding: 50px 20px;
    }

    /* Solución #2: Ocultar logos dinámicos */
    .client-logo-wrapper.dynamic-wrapper {
        display: none;
    }


    /* Solución #3: Centrar botón "Our Company" */
    .why-us-text {
        text-align: center;
    }

    /* Solución #5: Barras de estadísticas apiladas */
    .bar-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        /* Espacio entre la etiqueta y la barra */
    }

    .bar-label {
        flex-basis: auto;
        /* Anulamos el ancho fijo */
        padding-right: 0;
    }

    .bar-container {
        width: 100%;
    }

    /* Solución #6: Ocultar el mapa del mundo */
    .map-full-width {
        display: none;
    }

    .intro-grid-overlap {
        grid-template-columns: 1fr;
        /* Apila los items en una sola columna */
    }

    .project-showcase-item {
        padding: 50px 0;
        /* Reduce el espaciado vertical en móviles */
    }

    .project-showcase-content,
    .project-showcase-content.reverse {
        flex-direction: column;
        /* Apila la imagen y el texto verticalmente */
        gap: 30px;
        /* Reduce el espacio entre ellos */
    }

    .project-text h3 {
        font-size: 1.6rem;
        /* Ajusta el tamaño de los títulos para mejor lectura */
    }
}

/* 1. Reduce el tamaño de los íconos y su espaciado en la sección específica */
#engineering-solutions .spaced-list-icons .icon-box {
    flex: 0 0 40px;
    /* Reduce el ancho del contenedor del ícono */
    height: 40px;
    /* Reduce la altura */
    font-size: 1.2rem;
    /* Reduce el tamaño del ícono en sí */
    margin-right: 15px;
    /* Ajusta el espacio con el texto */
}

/* 2. Reduce el espacio vertical entre cada elemento de la lista */
#engineering-solutions .spaced-list-icons li {
    margin-bottom: 20px;
}


/* --- CORRECCIÓN DE ALINEACIÓN EN MÓVILES --- */
@media (max-width: 768px) {

    /* 3. Anula la regla que centra el texto y lo alinea a la izquierda en móviles */
    .why-us-our-company .why-us-text {
        text-align: left;
    }
}


/* --- ESTILOS PARA EL DESPLEGABLE DE IDIOMAS --- */

/* Contenedor del desplegable en la barra de navegación */
.main-nav ul li.lang-item {
    margin-left: 25px;
    /* Espacio a la izquierda del botón de contacto */
    position: relative;
    /* Esencial para posicionar el contenido del desplegable */
}

.language-dropdown {
    cursor: pointer;
    height: 100%;
    /* Ocupa toda la altura del header */
    display: flex;
    align-items: center;
}

/* La parte visible del desplegable (idioma actual) */
.current-lang {
    display: flex;
    align-items: center;
    color: var(--white);
    font-weight: bold;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.current-lang img {
    width: 22px;
    height: auto;
    margin-right: 8px;
    border-radius: 3px;
}

.current-lang .fa-chevron-down {
    font-size: 0.7rem;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

/* Contenedor de las opciones (oculto por defecto) */
.dropdown-content {
    display: none;
    position: absolute;
    top: 80%;
    /* Lo posicionamos un poco más abajo del header */
    right: 0;
    background-color: var(--dark-blue);
    min-width: 130px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
    border-radius: 5px;
    padding: 0;
    border: 1px solid var(--medium-blue);
}

/* Estilo de cada opción dentro del desplegable */
.dropdown-content a.lang-option {
    color: var(--white);
    padding: 10px 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-weight: normal;
    transition: background-color 0.3s ease;
}

.dropdown-content a.lang-option img {
    width: 22px;
    margin-right: 10px;
    border-radius: 3px;
}

/* --- EFECTOS HOVER --- */

/* 1. Mostrar el contenido del desplegable al pasar el ratón por encima */
.language-dropdown:hover .dropdown-content {
    display: block;
}

/* 2. Girar la flecha al mostrar el desplegable */
.language-dropdown:hover .current-lang .fa-chevron-down {
    transform: rotate(180deg);
}

/* 3. Resaltar la opción actual al pasar el ratón por encima */
.language-dropdown:hover .current-lang {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 4. Resaltar las opciones del desplegable al pasar el ratón */
.dropdown-content a.lang-option:hover {
    background-color: var(--accent-blue);
}

.dropdown-content a.lang-option.active {
    background-color: var(--medium-blue);
}


/* --- AJUSTES PARA EL MENÚ MÓVIL --- */
@media (max-width: 768px) {

    /* Posiciona el contenedor de idiomas dentro del menú lateral */
    .main-nav ul li.lang-item {
        margin-left: 0;
        width: 100%;
        padding: 15px 30px;
        margin-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* 1. Oculta el disparador de escritorio (bandera actual + flecha) */
    .current-lang {
        display: none;
    }

    /* 2. Muestra SIEMPRE los botones de idioma y los alinea horizontalmente */
    .dropdown-content {
        display: flex;
        /* Asegura que sea visible */
        flex-direction: row;
        justify-content: center;
        /* Centra los botones */
        gap: 15px;
        /* Añade espacio entre los botones */

        /* Anula los estilos del desplegable de escritorio */
        position: static;
        box-shadow: none;
        background-color: transparent;
        border: none;
        padding: 0;
    }

    /* 3. Elimina cualquier comportamiento de hover en el contenedor principal */
    .language-dropdown {
        cursor: default;
        /* El cursor no será una mano */
    }

    /* 4. Estilo de botón para cada opción de idioma */
    .dropdown-content a.lang-option {
        padding: 8px 15px;
        border: 1px solid var(--medium-blue);
        border-radius: 5px;
        width: 100%;
        /* Ocupan el espacio disponible */
        justify-content: center;
    }

    /* Opcional: Anula el hover de escritorio por si acaso */
    .language-dropdown:hover .dropdown-content {
        display: flex;
    }
}