*{
  font-family: "Poppins", sans-serif;
}



html, body{
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  width: 100%; /* Aseguramos que ocupen el 100% del viewport */
  height: auto;
  overflow-x: hidden; /* ¡La clave para evitar el scroll horizontal! */
  -webkit-tap-highlight-color: transparent;
}

/* --- Sección de Navegación (Escritorio - Fuera de Media Query) --- */
.navigation {
    background-color: transparent;
    background-image: url('Assets/Pixel/PNG/WEB-COMEX-2025-Pixel.png');
    display: flex;
    justify-content: space-between;
    align-items: center; /* Asegura que todos los hijos directos (logo, menu-toggle, nav-links) estén alineados verticalmente */
    position: fixed;
    top: 0%;
    width: 100%;
    z-index: 100;
    transition: background-color 0.3s ease-in-out;
    box-sizing: border-box;
    left: 50%;
    transform: translateX(-50%);
    height: 135px; /* Altura total de la barra de navegación */
    padding: 0 5vw;
    border-top: 25px solid #4d4642; /* La línea superior */
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    width: 177px;
    height: 63px;
    object-fit: cover;
    object-position: center;
}

.nav-links {
    display: flex;
    flex-direction: row; /* Para que UL y nav-utility estén en fila */
    align-items: center;
    justify-content: flex-end; /* Empuja los elementos a la derecha */
    border-radius: 25px;
    height: 100%;
    /* Añadir un gap para el espacio entre <ul> y .nav-utility */
    gap: 30px; /* Ajusta según sea necesario */
}

.nav-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

.nav-links ul li {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 400;
    font-size: 14px;
    font-family: "Poppins", sans-serif;
    padding: 0 25px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.nav-links ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #4d4642 0%, rgba(77, 70, 66, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1;
}

.nav-links ul li a:hover::before {
    opacity: 1;
}

.nav-links ul li a span {
    display: inline-block;
    position: relative;
    z-index: 2;
}

.nav-links ul li a span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
    transform-origin: center bottom;
}

.nav-links ul li a:hover span::after,
.nav-links ul li a.active span::after {
    transform: scaleX(1);
}

/* --- ESTILOS DE ACCESO CLIENTES (AJUSTADOS PARA .nav-utility) --- */
.client-access {
    display: flex;
    align-items: center;
    /* margin-left y margin-right ahora se manejarán por el gap del .nav-utility */
    height: 100%; /* Asegura que ocupe la altura del .nav-utility */
}

.client-access a {
    text-decoration: none;
    color: #ffffff;
    background-color: transparent;
    border-radius: 5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-family: "Poppins", sans-serif;
    height: 100%; /* Ocupa la altura del .client-access */
    padding: 0; /* No padding horizontal aquí, ya que el gap de nav-utility lo maneja */
}

.client-access img {
    width: 30px;
    padding-right: 5px;
}

/* Contenedor principal del selector de idioma */
.language-selector {
    text-decoration: none; /* Quita el subrayado del enlace */
    color: #ffffff; /* Color de texto predeterminado para escritorio */
    font-weight: 500;
    font-size: 14px;
    font-family: "Poppins", sans-serif;
    display: flex;
    align-items: center;
    height: auto; /* Para que ocupe la altura disponible en .nav-links */
    padding: 0 15px; /* Pequeño padding horizontal */
    white-space: nowrap; /* Evita que el texto se rompa en varias líneas */
    gap: 8px; /* Espacio entre los elementos internos (icono, divisor, texto) */
    transition: background-color 0.3s ease-in-out;
}

/* Contenido interno (icono, divisor, texto) */
.language-selector .language-content {
    display: flex;
    align-items: center;
    gap: 8px; /* Espacio entre los elementos internos */
}

/* Estilo para el ícono de mundo (tu PNG) */
.language-selector .world-icon {
    width: 30px; /* Tamaño del ícono (ajusta según sea necesario) */
    height: 30px; /* Mantén la proporción */
    object-fit: contain; /* Asegura que la imagen se ajuste sin cortarse */
}

/* Estilo para la línea divisoria */
.language-selector .language-divider {
    width: 1px; /* Ancho de la línea */
    height: 15px; /* Altura de la línea */
    background-color: #ffffff; /* Color de la línea */
    margin: 0 2px; /* Margen a los lados de la línea */
}






/* --- Menu Toggle (Hamburguesa) --- */
.menu-toggle {
    display: none; /* Oculto por defecto en escritorio */
    flex-direction: column;
    cursor: pointer;
    margin-right: 20px;
    gap: 6px;
    width: 25px;
    height: 21px;
    justify-content: center;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}




/* SECCION PRINCIPAL (Video de Fondo y Contenido Hero) */
#main-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin: 0 auto;
    background-color: #fc5e05;
    
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column; /* Apila los elementos hijos de main-section verticalmente */

    z-index: 10; 
}

/* Estilos del video de fondo */
#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    
    object-fit: cover; 
    
    z-index: 9; 
}

/* Contenedor del texto y el SVG que va superpuesto al video */
.hero-content {
    position: relative;
    z-index: 11;
    
    color: #ffffff;
    font-size: 51px;
    line-height: 1.2;
    font-weight: 400;
    font-family: "Poppins", sans-serif;
    /* Mantenemos display: flex y flex-direction: column para apilar las frases y el grupo final */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Centra horizontalmente los elementos (las frases y el grupo final) */
    justify-content: center; /* Centra verticalmente el contenido */
}

/* Estilo para los párrafos generales de las frases */
.hero-text {
    margin: 0;
    padding: 5px 0;
    font-weight: 500;
}

/* *** NUEVO CONTENEDOR PARA "SOMOS" Y EL SVG *** */
.final-phrase-group {
    display: flex; /* Habilita Flexbox para alinear los elementos HIJOS (p y img) horizontalmente */
    align-items: center; /* Alinea "Somos" y el SVG verticalmente en el centro */
    justify-content: center; /* Centra este grupo horizontalmente dentro de .hero-content */
    margin-top: 20px; /* Añade espacio entre la frase anterior y este grupo */
    /* Puedes ajustar el margin-top para el espacio deseado */
}

/* Estilo específico para el párrafo "Somos" (ahora dentro de .final-phrase-group) */
.hero-text-simple {
    margin: 0; /* Elimina márgenes por defecto */
    padding-right: 10px; /* Espacio a la derecha de "Somos" para separarlo del SVG */
    font-size: 46px; /* Mantiene el tamaño de fuente, si quieres otro, ajústalo aquí */
    white-space: nowrap; /* Evita que el texto "Somos" se rompa en varias líneas */
    line-height: 1; /* A veces útil para alinear texto pequeño con imágenes */
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    color: #ffffff;
}

/* Estilo para el logo SVG (COMEX CONSULTORS) */
.hero-logo-text {
    width: 750px; /* Define el ancho del SVG. Ajusta este valor según el tamaño deseado. */
    height: auto; /* Mantiene la proporción del SVG */
    /* No necesitamos margin-top aquí porque .final-phrase-group ya maneja el espaciado */
}


/* Asegura que los elementos del hero estén ocultos al cargar la página */
.hero-content .hero-text,
.hero-content > p.hero-text-simple, /* Para "Somos Creadores..." */
.final-phrase-group{
    opacity: 0; /* Oculta todos los elementos del hero por defecto */
}



/* Sección con Icono y Textos Verticales */
.icon-text-section {
    padding: 75px 20px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center; /* Mantener si otros ítems deben seguir centrados */
    width: 94%;
    margin: 0 auto;
}

.left-icon {
    display: flex;
    justify-content: flex-start;
    /* align-items: center; /* Eliminar si no necesitas centrar la imagen dentro de este flex */
    position: relative;
    transform: translateX(-100%);

    /* ¡CAMBIO CLAVE AQUÍ! Alinea solo este ítem al inicio (top) de su celda */
    align-self: start;
    margin-top: 5px;
}

.left-icon img {
    max-width: 250px;
    height: auto;
    display: block;
    padding-left: 25px;
    width: 15vw;
    /* transform: translateY(-60px); /* ¡ELIMINA ESTO! Ya no será necesario */
}



.right-texts {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    width: 100%;
    /* Puedes añadir un borde temporal para visualizar el ancho del contenedor */
    /* border: 2px solid green; */ 
}

/* Asegura que los elementos b y p llenen el 100% del ancho de .right-texts */
.right-texts > p {
    width: 100%;
    box-sizing: border-box; /* Importante para que padding/border no desborden el 100% */
    margin: 0;
    /* Añadimos estilos de justificación a los hijos para que se apliquen al b y p */
    text-align: justify;
    text-align-last: right; /* Esto hace que la última línea de cada párrafo/encabezado se alinee a la derecha */
    text-justify: inter-word; /* Para un mejor comportamiento de justificación en navegadores compatibles */
    /* Propiedades para un mejor manejo de palabras largas y evitar desbordamientos */
    -webkit-hyphens: auto; /* Para Safari */
    -ms-hyphens: auto; /* Para IE/Edge */
    hyphens: none; /* Estándar */
    word-break:normal; /* Rompe palabras si es necesario para ajustar al ancho */
}


/* Estilos específicos para el encabezado */
.right-head-text {
    color: #fc5e05;
    font-weight: 600;
    font-size: 1.8vw;
    font-family: "Poppins", sans-serif;
    text-align: end;
}

/* Estilos específicos para los párrafos */
.right-texts p {
    font-family: "Poppins", sans-serif;
    color: #757575;
    font-weight: 500;
    font-size: 1.2vw;
    line-height: 1.6; /* Un buen interlineado mejora la legibilidad con justificación */
}



/* Sección de Servicios */
.services-section {
    padding: 100px 20px;
    text-align: center;
    background-color: #f7f7f7; /* Mantenemos este color como fallback si la imagen no carga */
    width: 93%;
    margin: 0 auto;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    padding-bottom: 150px;
    /* Quitamos el background-image de aquí */
    background-image: none; /* Aseguramos que no haya background-image directo */
    position: relative; /* CRUCIAL: Necesario para posicionar el pseudo-elemento */
    overflow: hidden; /* Opcional, por si la imagen de fondo se sale un poco */
    z-index: 1; /* Opcional: Asegura que el contenido esté por encima del pseudo-elemento */
}

.services-section::before {
    content: ''; /* Obligatorio para pseudo-elementos */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(Assets/Assets/Fondo\ conteiner.png);
    
    /* --- CAMBIOS CLAVE AQUÍ --- */
    background-size: auto; /* La imagen usará su tamaño intrínseco (propio) */
    /* Si solo quieres que aparezca una vez en su tamaño original, usa background-repeat: no-repeat; */
    
    background-position: center; /* Sigue siendo útil para centrar la imagen o la primera repetición */
    opacity: 0.1; /* AJUSTA ESTE VALOR (0.0 a 1.0) para la opacidad deseada */
    z-index: -1; /* Envía el pseudo-elemento detrás del contenido de .services-section */
    border-top-left-radius: 40px; /* Aplica el mismo radio para que no se salga del contenedor padre */
    border-top-right-radius: 40px;
}

.services-title{
  width: 80%;
  margin: 0 auto;
}

.services-title h1 {
    color: #fc5e05;
    font-size: 38px; 
    font-weight: 600; 
    font-family: "Poppins", sans-serif;
    text-align: left;
    margin:0;
    padding: 0;
    margin-top: 50px;
}

.services-title p {
    color: #757575;
    font-size: 22px;
    font-weight: 500; 
    text-align: left;
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
}

.services-title p strong {
    font-size: 15px;
    font-weight: bold;
    color: #2e2925; 
}







/* Sección de Historia */
.history-section {
  padding: 40px 0; 
  opacity: 0;
  transform: translateY(50px);
}


/* Contenedor de Historia */
.history-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 80%; 
  margin: 0 auto; 
  gap: 50px;
  align-items: center;
}

/* Imagen de la Historia */
.history-image {
  flex: 1;
  margin-right: 0px;
  opacity: 0;
  transform: translateX(-50px);
}

/* Imagen dentro de la historia */
.history-image img {
  display: block;
  width: 100%;
  height: auto; 
  object-fit: contain;
}

/* Texto dentro de la Historia */
.history-text {
  flex: 1;
  color: #333; 
  width: 80%;
  opacity: 0;
  transform: translateY(50px);
}

/* Título h2 de la Historia */
.history-text h2 {
  font-size: 2.2vw;
  font-weight: 600;
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  margin: 0;
  opacity: 0;
  transform: translateY(-150px);
}

.history-text p {
  line-height: 1.2;
  margin-bottom: 5px;
  font-family: "Poppins", sans-serif;
  font-size: 1.1vw;
  color: #ffffff;
  opacity: 70%;
}



.quality-section {
    position: relative;
    width: 100%;
    margin: 0 auto;
    transform: translateY(50px);
    overflow: hidden;
    z-index: 1;
    border: none;

    /*
     * Aplica un degradado lineal (en este caso, un color sólido con transparencia)
     * SOBRE la imagen de fondo. El orden importa: el degradado va primero.
     */
    background-image: url('Assets/Pixel/PNG/WEB-COMEX-2025-fondo-.png');
    background-size: cover;

    background-repeat: no-repeat;
    background-position: center;
}


.quality-container {
  display: flex;
  align-items: center;
  width: 80%;
  margin: 0 auto;
  border-radius: 10px;
  padding: 100px 0;
}

.quality-image {
  flex: 1; 
  opacity: 0;
  transform: translateX(-50px); /* Estado inicial para GSAP */
}

.quality-image img {
  display: block;
  width: 30vw;
  height: auto;
  object-fit: cover;
  padding-top: 50px;
  transform: translateX(80px);
}

.quality-text {
  flex: 2;
  color: #333;
  text-align: left;
  opacity: 0;
  transform: translateX(50px); /* Estado inicial para GSAP */
}

.quality-text h2 {
  font-size: 38px;
  font-weight: 600;
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  margin: 0;
  opacity: 90%;
  transform: translateY(30px); /* Estado inicial para GSAP */
}

.quality-text p {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 19px;
  color: #ffffff;
  opacity: 0%; /* Para animación con GSAP */
  transform: translateY(20px);
  width: 120%;
}

.quality-text h2.highlight-effect {
  position: relative;
  overflow: hidden;
  /* Para que el highlight animado quede contenido */
}

.quality-text h2.highlight-effect::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.6), transparent);
  transform: skewX(-25deg);
  pointer-events: none;
  opacity: 0.8;
}




/* Sección de Contacto */
.contact-section {
  background-image: url('Assets/Assets/Foto\ contacto.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  padding: 80px 0px;
}

.contact-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  width: 100%;
  align-items: center;
  margin: 0 auto;
}

.contact-info {
  color: #333;
  text-align: left;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  justify-self: end;
  padding-right: 15%;
}

.contact-info h1 {
  font-family: "Poppins", sans-serif;
  font-size: 23px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  opacity: 85%;
}

.contact-info h2 {
  font-size: 1.1vw;
  font-weight: 600;
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  margin-top: 10px;
}

.contact-info h3 {
  font-size: 35px;
  font-weight: 600;
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  opacity: 85%;
  margin: 15px 0px;
}

.contact-info p{
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  width: 100%;
  opacity: 85%;
}

.gestion-respaldo{
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  width: 90%;
  opacity: 85%;
  font-style: italic;
  margin: 0;
  padding: 0;
}

.emprende-el-viaje {
    font-family: "Poppins", sans-serif;
    font-weight: bold;
    font-size: 17px;
    color: #ffffff;
}

.contact-form {
    display: flex;
    flex-direction: column; 
    justify-content: center; 
    align-items: flex-start; 
    width: 80%;
}

#contactForm {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: end;
}

.contact-form h2 {
    font-size: 2em;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
    width: 100%;
}

.contact-form .form-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
}

.contact-form .form-group.full-width {
    flex-direction: column;
    width: 100%;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    font-size: 15px;
    width: 100%;
    box-sizing: border-box;
    color: #9e9e9e;
}

.contact-form textarea {
    min-height: 175px;
}

.contact-form .submit-button {
    display: flex; /* O inline-flex */
    align-items: center; /* Crucial para alinear verticalmente los hijos */
    justify-content: center; /* Crucial para alinear horizontalmente los hijos */
    gap: 8px; /* Espacio entre flecha y texto */

    /* ... tus otros estilos para el botón ... */
    width: 30% !important;
    background-color: #fc5e05;
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 25px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.submit-button .arrow {
    font-size: 1.5em;
    line-height: 1; /* Mantenemos este para la base */

    /* --- ¡¡¡Ajuste fino aquí!!! --- */
    position: relative;
    top: -2px; 

}

.contact-form .submit-button:hover {
    background-color: rgb(255, 149, 88);
}


.submit-button:hover {
  background-color: rgb(255, 149, 88);
  box-shadow: 0 0 15px rgba(252, 94, 5, 0.6);
  transform: scale(1.05);
}


/* Sección del Footer */
.main-footer {
  background-color: #4d4642;
  color: #fff;
  padding: 30px 20px;
}

.footer-container {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  max-width: 70%;
  margin: 25px auto;
}

/* Modifica .footer-contacto para que se posicione dentro de .footer-info */
.footer-contacto {
    font-weight: 600;
    font-size: 18px;
    color: #ffffff;
    opacity: 80%;
    /* border-bottom: 4px solid rgb(255, 255, 255); /* ¡Eliminar esta línea! Lo haremos con ::after */
    width: max-content;
    padding-left: 5px;
    margin: 0;
    justify-self: end;
    align-self: center;

    /* --- Añadido para el pseudo-elemento --- */
    position: relative; /* Necesario para posicionar el pseudo-elemento */
    padding-bottom: 8px; /* ¡Espacio entre el texto y el borde simulado! Ajusta este valor */
    display: inline-block; /* O display:block; si quieres que ocupe todo el ancho. `inline-block` es bueno con `width: max-content` */
}

.footer-contacto::after {
    content: ''; /* Obligatorio para los pseudo-elementos */
    position: absolute;
    left: 0;
    right: 0; /* O width: 100%; */
    bottom: 0; /* Lo posiciona en la parte inferior del footer-contacto */
    height: 4px; /* El grosor de tu borde */
    background-color: rgb(255, 255, 255); /* El color de tu borde */
    border-radius: 5px; /* ¡Redondea las esquinas del borde! Ajusta este valor */
}

.footer-logo {
    /* Eliminamos el 'width' y 'min-width' fijos aquí, ya que el contenido determinará el ancho */
    /* width: 10vw; */
    /* min-width: 120px; */

    max-width: 200px; /* Establece un ancho MÁXIMO razonable para el logo en pantallas muy grandes */
                      /* Ajusta este valor si ves que se hace demasiado grande en monitores ultra-anchos */

    text-align: center;
    opacity: 85%;
    /* Si el logo y el texto deben estar en el centro de su celda de flexbox/grid, esto ya lo hace el padre */
}

.footer-logo b {
    color: #ffffff;
    font-size: 0.8em; /* Mantener este tamaño, o ajustar si quieres el texto más grande/pequeño */
    opacity: 80%;
    font-weight: 400;
    display: inline-block; /* ¡CAMBIO CLAVE! Esto permite que 'width: max-content' funcione */
    margin-top: 5px; /* Pequeño espacio debajo de la imagen del logo */

    /* --- ¡¡¡ESTAS SON LAS PROPIEDADES CLAVE PARA QUE LA FRASE NO SE CORTE Y SE AJUSTE!!! --- */
    white-space: nowrap; /* ¡Fuerza que el texto esté en una sola línea! */
    width: max-content; /* El elemento 'b' ocupará exactamente el ancho que necesite su contenido */
                       /* Esto anulará el 100% de width de 'display: block' si lo fuera */

    /* Si en algún contexto muy, muy pequeño necesitas que un texto así se corte con puntos suspensivos */
    /* overflow: hidden; */
    /* text-overflow: ellipsis; */
}

.footer-logo img {
    display: block;
    width: 100%;
    height: auto;
}

/* Modifica .footer-info para definir su layout de grilla */
.footer-info {
    display: grid;
    /* Define tus columnas si quieres un layout horizontal para los elementos */
    /* Por ejemplo, para 2 columnas, donde la primera pueda ser para el Contacto y la segunda para los info-blocks */
    grid-template-columns: 1fr; /* O como necesites que se distribuyan los elementos */
    /* Asegura que los elementos se alineen al final de su celda */
    justify-items: end; /* Alinear todos los ítems a la derecha dentro de sus celdas */
    align-items: center; /* Centrar verticalmente los ítems */
    text-decoration: none;
}

.footer-info a{
  text-decoration: none;
}

/* Además, es probable que quieras alinear los .info-block a la derecha también */
.info-block {
    display: flex;
    align-items: center;
    justify-content: end; 
    justify-self: end;
    align-self: center;
}

.info-block .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  margin-right: 10px;
  font-size: 1.2em; 
  text-decoration: none;
}


.location-icon::before {
  content: "\2762"; 
}

.whatsapp-icon::before {
  content: "\1F4AC";
}

.email-icon::before {
  content: "\2709";
}

.info-block p {
  margin: 0;
  font-size: 0.8vw;
  line-height: 1.4;
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  color: #ffffff;
}

.info-block {
  cursor: pointer;
  transition: color 0.3s ease;
  opacity: 80%;
}

.info-block p {
  transition: color 0.3s ease;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
  font-family: "Poppins", sans-serif;
  color: #ffffff;
  opacity: 80%;
}

.location{
  margin-top: 20px;
  text-align: end;
}

.telefono{
  margin-top: 20px;
  text-align: end;
}

.email{
  text-align: end;
}

.right-texts p {
  opacity: 0;
  transform: translateX(50px);
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 23px;
}

.right-head-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
}

.right-head-text span {
  display: inline-block;
  white-space: pre;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  font-size: 35px;
  color: #fc5e05;
}


.somos-comex{
  font-size: 29px;
}

.consultores-con-criterio{
  font-size: 26px;
}

/* Media query para pantallas medianas (hasta 1450px de ancho) */
@media (max-width: 1450px) {
    .navigation {
        padding: 0 25px;
        height: 115px;

    }

    .nav-links ul li a{
      font-size: 12px;
      padding: 0 15px;
    }

    .logo {
        margin-left: 3vw;
    }

    .logo img {
        width: 125px; 
        height: 40px;
    }
    .hero-content{
      font-size: 40px;
    }
    .hero-text-simple{
      font-size: 36px;
    }

    .somos-comex{
      font-size: 24px;
    }

    .consultores-con-criterio{
      font-size: 21px;
    }

    .services-title h1{
      font-size: 30px;
    }

    .services-title p{
      font-size: 18px;
    }

    .quality-text h2{
      font-size: 28px;
    }
    .quality-text p{
      font-size: 15px !important;
    }

    .right-head-text span{
      font-size: 28px;
    }

    .right-texts p{
      font-size: 18px !important;
    }
    .client-access a {
        font-size: 12px;
        padding: 0; 
    }

    .client-access img {
        width: 25px;
    }

    .service-header h3{
      font-size: 1rem !important;
    }

    .services-title p strong{
      font-size: 11px;
    }
    .image-container-manual{
      width: 300px;
    }
    .links-left{
      font-size: 11px;
    }
    .links-right{
      font-size: 11px;
    }

    .history-text h2{
      font-size: 2.5vw;
    }
    .history-text p{
      font-size: 0.9vw;
    }
    #contactForm{
      width: 100%;
    }

    .contact-info h1{
      font-size: 1.8vw;
    }

    .contact-info h2{
      font-size: 1.5vw;
    }

    .contact-info h3{
      font-size: 2.5vw;
    }

    .contact-info p{
      font-size: 1.2vw;
    }

    .contact-form .submit-button{
      font-size: 0.9em;
      padding: 10px 30px;
    }
    .contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form textarea{
      font-size: .8em;
    }
    
    .footer-logo{
      width: 12vw;
    }
    .info-block .icon{
      width: 30px;
    }
    .info-block p{
      font-size: 10px;
    }
    .footer-container{
      width: 85%;
      max-width: 85%;
      margin: 0 auto;
    }
    .main-footer{
      height: auto;
    }
    .main-section{
      margin-top: 125px;
    }

    .hero-logo-text{
      width: 650px;
    }

    .footer-logo b{
      font-size: 0.9vw;
    }

    .language-selector{
      font-size: 12px;
    }
    .language-selector .world-icon{
      width: 25px;
      height: 25px;
    }
    .nav-links{
      gap: 20px;
    }
}

@media (max-width:1250px){

  .hero-content{
    font-size: 2.1em;
  }
  .hero-logo-text{
    width: 550px;
  }
  .quality-text p{
    font-size: 1.2vw;
  }
}


/* Media query para pantallas medianas (hasta 1450px de ancho) */
@media (max-width: 1100px) {
    body{
      margin: 0;
    }

    .navigation {
        padding: 0px;
        margin: 0px;
        height: 100px;
        border-top: 20px solid #4d4642;
    }



    .nav-links {
        margin-right: 20px; 
    }

    .nav-links ul li {
        margin-left: 0px;
    }

    .nav-links ul li a {
        font-size: 11px; 
        margin: 0px;
        padding: 0 10px;
    }

    .logo img{
      width: 115px;
      height: fit-content;
    }

    .client-access a {
        font-size: 10px;
      }

    .client-access img {
        width: 20px;
    }

    .services-section{
      padding: 5px 0;
      border-top-left-radius: 15px;
      border-top-right-radius: 15px;
      width: 95%;
      padding-bottom: 50px;
      margin-top: 50px;
    }
    .services-title h1{
      font-size: 26px;
    }
    .services-title p{
      font-size: 16px;
      width: 100%;
    }
    .services-title p strong{
      font-size: 13px;
    }
    .links-left{
      font-size: 9px;
    }
    .links-right{
      font-size: 9px;
    }

    .service-read-more{
      font-size: 1rem !important;
      height: auto !important;
    }

    .read-more-text{
      font-size: 0.8rem !important;
      margin-left: 30px !important;
    }

    .history-container{
      max-width: 90%;
      gap: 0;
    }
    .history-text h2{
      font-size: 3vw;
    }
    .history-text p{
      font-size: 1.1vw;
    }
    .history-text{
      margin: 0 auto;
    }


    .contact-info h2{
      font-size: 1.5vw;
    }
    .contact-info h1{
      font-size: 2vw;
    }
    .emprende-el-viaje{
      font-size: 2vw;
    }
    .contact-form .submit-button{
      font-size: 1.3vw;
      padding: 10px 30px;
    }
    .contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form textarea{
      font-size: .5em;
    }
    

    .footer-logo{
      width: 14vw;
    }
    .info-block .icon{
      width: 3vw;
    }
    .info-block p{
      font-size: 10px;
    }
    .footer-container{
      width: 85%;
    }
    .main-footer{
      height: auto;
    }



    .links-left,
    .links-right {
        width: auto;
        font-size: 1vw;
        white-space: nowrap;
        margin: 0;
    }

    .image-container-manual {
        width: 30vw;
    }

    .contact-container{
      justify-content: center;
      width: 100%;
      padding: 0;
    }

    .icon-text-section{
      gap: 5%;
      grid-template-columns: 1fr 3fr;
      padding: 50px 20px;
    }
    .right-head-text{
      font-size: 2vw;
    }
    .right-texts p{
      font-size: 1.5vw;
    }
    


    .quality-text h2{
      font-size: 23px;
    }
    .quality-text p{
      font-size: 12px !important;
    }
    .quality-container{
      gap: 0;
      width: 90%;
      padding: 75px 0;
    }
    .quality-image img{
      width: 30vw;
      transform: translateX(0);
    }

    .main-logo img, .logo-capa-superior img{
      width: 300px;
    }
    .moving-text{
      font-size: 1.7em;
    }

    .service-item{
      min-height: 0px !important;
    }
    .service-icon{
      width: 75px;
    }
    .service-header h3{
      margin-bottom: 10px;
      font-size: 15px !important;
    }

    .service-full-description{
      font-size: 13px !important;
    }
    .right-head-text span{
      font-size: 20px;
    }
    .right-texts p{
      font-size: 13px !important;
    }
    .somos-comex{
      font-size: 15px;
    }
    .consultores-con-criterio{
      font-size: 14px;
    }
    .left-icon img{
      width: 10vw;
    }

    .language-selector{
      font-size: 10px;
    }
    .language-selector .world-icon{
      width: 20px;
      height: 20px;
    }
    .nav-links{
      gap: 20px;
    }
  }




@media (max-width: 900px) {
    .navigation {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        transform: none !important;
        box-sizing: border-box;
        padding: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 12;
        height: 100px;
        width: 100%;
        border-top: none;
    }

    .logo {
        margin-left: 0;
        padding-left: 15px;
        position: static;
        height: auto;
        width: auto;
        max-width: 175px;
        background-color: transparent;
    }

    .logo img {
        max-width: 100%;
        height: auto;
        width: 140px;
        padding-left: 10px;
    }

    .menu-toggle {
        display: flex;
        position: static;
        right: auto;
        cursor: pointer;
        height: 30px;
        margin-right: 25px;
        z-index: 101;
    }

    .nav-links {
        position: fixed;
        top: 100px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 100px);
        background-color: #f7f7f7;
        margin: 0;
        padding: 0;
        /* --- CAMBIOS CLAVE PARA CENTRADO Y DISTRIBUCIÓN --- */
        display: flex;
        flex-direction: column;
        justify-content: center; /* Centra los bloques de contenido (ul, nav-utility, language-selector) verticalmente */
        align-items: center;    /* Centra los bloques de contenido horizontalmente */
        gap: 0; /* Elimina cualquier espacio entre los bloques si quieres que estén "pegados" */
        /* --- FIN CAMBIOS CLAVE --- */

        padding-top: 0;
        transition: right 0.3s ease-in-out;
        z-index: 99;
        border-radius: 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links ul {
        flex-direction: column;
        width: 100%;
        height: auto;
        margin: 0; /* --- CAMBIO CLAVE AQUÍ --- Elimina márgenes superior/inferior para que estén pegados */
        padding: 0; /* Asegura que no haya padding que los separe */
    }

    .nav-links ul li {
        width: 100%;
        text-align: center;
        height: auto;
        margin: 0;
        padding: 0;
    }

    .nav-links ul li a {
        margin: 20px 0;
        width: 100%;
        justify-content: center;
        color: #444444;
        font-size: 20px;
        /* --- CAMBIO CLAVE AQUÍ --- Vuelve a activar los estilos si los quieres para móvil */
        position: relative; /* Necesario para que pseudo-elementos funcionen */
        overflow: hidden; /* Mantiene la coherencia visual */
        font-weight: 500;
    }

    .client-access a{
      font-size: 20px;
      color: #444444;
    }

    /* --- CAMBIOS CLAVE PARA REHABILITAR ESTILOS ACTIVE/HOVER EN MÓVIL --- */
    /* Ahora los pseudo-elementos SÍ deberían mostrarse o tener un efecto si quieres */
    .nav-links ul li a::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom, rgb(223 81 0 / 20%) 0%, rgba(77, 70, 66, 0) 100%);
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
        z-index: 1;
    }

    .nav-links ul li a:hover::before,
    .nav-links ul li a.active::before { /* También aplica a la clase .active */
        opacity: 1;
    }

    .nav-links ul li a span {
        display: inline-block;
        position: relative;
        z-index: 2;
    }

    .nav-links ul li a span::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 100%;
        height: 2px;
        background-color: #fa7000; /* Color de la línea de subrayado para móvil */
        transform: scaleX(0);
        transition: transform 0.3s ease-in-out;
        transform-origin: center bottom;
    }

    .nav-links ul li a:hover span::after,
    .nav-links ul li a.active span::after {
        transform: scaleX(1);
    }
    /* --- FIN CAMBIOS CLAVE PARA REHABILITAR ESTILOS ACTIVE/HOVER EN MÓVIL --- */


    /* Estilos para el enlace activo en móvil (si quieres que sea diferente) */
    .nav-links ul li a.active {
        background-color: #ee6b00; /* Fondo naranja para el enlace activo */
        color: #ffffff; /* Texto blanco para el enlace activo */
    }


    /* NUEVO: Contenedor para Acceso Cliente y Selector de Idioma en móvil */
    .nav-utility {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        width: 100%;
        /* --- CAMBIO CLAVE AQUÍ --- Ajusta o elimina márgenes para pegarlos */
        margin-top: 50px;
        margin-bottom: 0;
        padding: 15px 0;
        border-top: 1px solid #ddd;
        border-bottom: 1px solid #ddd;
    }

    .client-access {
        flex-direction: row;
        gap: 8px;
        font-size: 16px;
        color: #333;
        margin-left: 0;
        margin-right: 0;
    }

    .client-access img {
        width: 30px;
        height: auto;
        filter: invert(1);
    }

    .language-selector {
        width: 100%;
        padding: 15px 0;
        justify-content: center;
        color: #444444;
        font-size: 20px;
        /* --- CAMBIO CLAVE AQUÍ --- Ajusta o elimina márgenes para pegarlos */
        margin-top: 0;
        margin-bottom: 0;
        border-top: 1px solid #ddd;
        border-bottom: 1px solid #ddd;
        border-radius: 0;
    }

    .language-selector:hover {
        background-color: #f0f0f0;
    }

    .language-selector .language-divider {
        background-color: #888;
        height: 25px;
        width: 2px;
    }

    .language-selector .world-icon {
        width: 30px;
        height: 30px;
        filter: invert(1);
    }

    
    /* Contact info (si está dentro del menú y no en otro lugar) */
    .contact-info p {
        font-size: 2.4vw; /* Ajusta este tamaño */
        margin: 10px 0;
    }

    .left-icon img{
      padding-left: 0px;
      width: 10vw;
    }

      .icon-text-section{
      gap: 0%;
      padding: 50px 10px;
    }
    .right-head-text{
      font-size: 3vw;
      overflow: hidden;
    }
    .right-texts p{
      width: 100%;
      font-size: 14px !important;
    }
    .services-title p strong{
      font-size: 2vw;
    }


    .services-title h1{
      font-size: 4vw;
      padding-bottom: 10px;
    }
    .services-title h2{
      font-size: 2.2vw;
    }
    .services-title p{
      font-size: 2.5vw;
    }

    .right-texts p b{
      font-size: 14px !important;
    }
 .services-section {
    width: 100%;
    border-radius: 0;
  }
  .service-item{
    width: 80% !important;
  }

  .around-image-container-manual {
    position: relative;
    width: 100%;
    min-height: 350px; /* Aumenté un poco la altura mínima para más espacio */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
  }

  .image-container-manual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }

  .image-container-manual img {
    width: 42%;
    height: 100%;
  }

  .links-left,
  .links-right {
    position: absolute;
    top: 50%;
    z-index: 2;
    box-sizing: border-box;
    padding: 0px; /* Aumenté el padding para el fondo */
    color: black;
    text-align: center; /* Alineamos el texto al centro */
    border-radius: 5px; /* Añadí un pequeño borde redondeado (opcional) */
  }

  .links-left {
    width: fit-content;
    left: 18%; /* Centramos el punto de inicio */
    height: 65%;
    transform: translate(-50%, -50%); /* Centramos el div completo */
    text-align: end;
  }

  .links-right {
    text-align: justify;
    width: fit-content;
    right: 18%; /* Centramos el punto de inicio */
    transform: translate(50%, -50%); /* Centramos el div completo y lo movemos a la derecha */
    height: 65%;
  }

  .link-manual {
    font-size: 1.2em; /* Aumenté el tamaño de la fuente */
    line-height: 1.6;
    margin: 10px 0;
    white-space: normal;
    overflow-wrap: break-word;
    color: inherit;
  }

  .links-left .left-2 {
    transform: translateX(-5px) !important;
  }

  .links-left .left-3 {
    transform: translateX(-10px) !important;
  }

  .links-left .left-4 {
    transform: translateX(-5px) !important;
  }

  .links-right .right-2 {
    transform: translateX(5px) !important;
  }

  .links-right .right-3 {
    transform: translateX(10px) !important;
  }

  .links-right .right-4 {
    transform: translateX(10px) !important;
  }

  .links-right .right-5 {
    transform: translateX(5px) !important;
  }



    
    .history-container{
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0;
    }
    .history-text h2{
        font-size: 5vw;
        text-align: center;
    }
    .history-text p{
        font-size: 2vw;
        text-align: center;
    }

    .quality-section{
        width: 100%;
        border-radius: 0;
        padding-top: 75px;
    }
    .quality-container{
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        padding: 0;
    }
    .quality-text h2{
        font-size: 4vw;
        text-align: center;
    }
    .quality-text p{
        font-size: 15px;
        text-align: justify;
        width: 85% !important;
        margin: 0 auto;
        margin-top: 5px;
        font-size: 2.4vw !important;
    }
    .quality-image img{
        width: 50vw;
        transform: translateY(-40px);
        margin: 0 auto;
    }


    .contact-container{
        display: grid;
        grid-template-columns: 1fr;
        margin: 0 auto;
    }
    .contact-section{
        padding: 40px 0;
        margin: 0;
    }
    .contact-form{
        width: 80%;
        padding: 25px 10px;
        border: 1px solid gray;
        background: #e5e5e521;
        margin: 0 auto;
    }
    .contact-info{
        width: 75%;
        margin-bottom: 50px;
        padding-top: 50px;
    }
    .contact-info h2{
        font-size: 15px;
        text-align: center;
        margin: 0 auto;
    }
    .contact-info h1{
        font-size: 2.8Vw;
        text-align: center;
        margin: 0 auto;
    }

    .contact-info h3{
      text-align: center;
      font-size: 3vw;
    }

    .contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form textarea{
      font-size: 1.5vw;
    }

    .contact-info p{
      text-align: center;
      margin: 10px auto;
    }
    .para-cualquier-consulta{
        font-size: 10px;
        text-align: center;
        margin: 0 auto;
    }
    .emprende-el-viaje{
        font-size: 15px;
        text-align: center;
        margin: 0 auto;
    }
    .contact-form .submit-button{
        display: flex;
        margin: 0 auto;
        font-size: 12px;
        text-align: center;
        width: 110px !important;
    }
    .contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form textarea{
        background-color: rgba(0, 0, 0, 0.438);
        color: rgba(255, 255, 255, 0.79);
        border-bottom-right-radius: 10px;
        border-top-left-radius: 5px;
    }
    input::placeholder,
    textarea::placeholder {
        color: rgba(255, 255, 255, 0.79);
        opacity: 1;
    }

    input::-webkit-input-placeholder,
    textarea::-webkit-input-placeholder {
        color: rgba(255, 255, 255, 0.79);
    }

    input::-moz-placeholder,
    textarea::-moz-placeholder {
        color: rgba(255, 255, 255, 0.79);
        opacity: 1;
    }

    input:-ms-input-placeholder,
    textarea:-ms-input-placeholder {
        color: rgba(255, 255, 255, 0.79);
    }

    input::-ms-input-placeholder,
    textarea::-ms-input-placeholder {
        color:rgba(255, 255, 255, 0.79);
    }


        .main-footer {
        padding: 20px 0px;
        height: auto;
        text-align: center;
    }

    .service-icon{
      width: 50px;
    }

    .services-grid{
      gap: 25px !important;
      margin-bottom: 25px !important;
    }

    .service-item{
      margin-bottom: 0px !important;
    }

    .service-header {
    display: flex;
    flex-direction: row-reverse !important;
    align-items: center !important;
    }

    .service-header h3{
      font-size: 2vw !important;
    }
    .location{
      margin-top: 10px;
    }

    .footer-contacto{
      font-size: 14px;
    }

    .hero-text{
      margin: 0 auto;
      font-size: 4vw;
    }
    .final-phrase-group{
      margin: 0 auto;
      flex-direction: column;
      margin-top: 25px;
    }
    .hero-content{
      font-size: 1.5em;
    }
    .hero-logo-text{
      width: 60vw;
    }

    .service-full-description{
      font-size: 2vw !important;
    }

    .service-icon{
      width: 9vw !important;
    }

    .service-header{
      padding-bottom: 0px !important;
    }

    .hero-text-simple{
      font-size: 3.5vw;
    }

    .nav-links ul li a span::after{
      background-color: rgb(255, 255, 255) !important;
    }

    .footer-container{
      max-width: 90%;
      width: 90%;
      padding: 25px 25px;
    }

    .footer-contacto{
      padding-bottom: 5px;
    }
    .footer-contacto::after{
      height: 2px;
    }
    .footer-logo{
      width: 150px;
    }
    .footer-logo b{
      font-size: 10px;
    }
    .telefono{
      margin-top: 10px;
    }
}

@media (max-width: 650px) {
    .right-head-text span{
      font-size: 3vw;
    } 
    .right-texts p{
      font-size: 2.8vw !important;
    }
    .right-texts p b{
      font-size: 2.8vw !important;
    }
    .icon-text-section{
      grid-template-columns: 1fr 3.5fr;
    }
}



@media (max-width: 480px) {

    .icon-text-section {
        display: flex;
        flex-direction: row; 
        align-items: center;
        padding: 50px 0;
        gap: 0px;
        margin: 0 auto;
        width: 96%;
    }

    .left-icon {
        width: auto;
        height: auto;
        top: 0;
        align-items: center; 
        justify-content: center; 
        transform: translateX(0);
        margin-bottom: 0;
    }

    .left-icon img {
        max-width: 60px;
        height: auto;
        padding-left: 0;
        margin-top: 5px;
    }

    .right-texts {
        width: 85%; 
        transform: translateX(0);
    }

    .right-head-text {
        font-size: 1em;
        white-space: normal;
        overflow-wrap: break-word;
        margin-bottom: 5px;
    }

    .right-head-text span{
      font-size: 3.1vw;
    }

    .right-texts p {
        font-size: 0.8em;
        white-space: normal;
        overflow-wrap: break-word;
        margin-bottom: 10px; /* Añadimos un poco de margen inferior entre párrafos */
        line-height: normal;
    }

    .eliminar-en-movil{
      display: none;
    }

    /* --- Sección Servicios --- */
    .services-title h1 {
        font-size: 6vw;
        text-align: center;
    }

    .services-title h2 {
        font-size: 3.5vw;
    }

    .services-title p {
        font-size: 12px; 
        text-align: justify;
    }

        .services-title p strong{
      font-size: 12px;
    }

    .image-container-manual img{
      height: min-content;
      width: 50%;
    transform: rotateY(-50deg); /* Rotamos la imagen 180 grados en el eje Y */
    transform-origin: center center;
    }
    .around-image-container-manual{
      width: 95%;
      margin: 0 auto !important;
    }
    .link-manual{
      width: 100%;
      margin: 0 auto;
    }

    .links-left, .links-right{
      font-size: 1.5vw;
      width: 35%;
    }

    .links-right{
      text-align: left;
    }
    .links-left{
      text-align: right;
    }

    /* --- Sección Historia --- */

    .history-text h2 {
        font-size: 6vw; 
    }

    .history-text p {
        font-size: 2.5vw; 
    }

    /* --- Sección Calidad --- */
    .quality-text h2 {
        font-size: 6vw;
    }

    .quality-text p {
        font-size: 3vw !important;
    }

    .service-full-description{
      font-size: 2.8vw !important;
      padding: 0 10px !important;
    }

    .quality-image img {
        width: 60vw; 
        transform: translateY(-15px); 
    }

    /* --- Sección Contacto --- */
    .contact-info h2 {
        font-size: 0.8em;
        margin-top: 5px; 
    }

    .contact-info p{
      font-size: 0.75em;
    }
    .contact-info h1 {
        font-size: 0.9em; 
        margin-bottom: 5px;
    }

    .contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form textarea{
      font-size: 0.6em;
    }

    .contact-form textarea{
      min-height: 125px;
    }

    .contact-info{
      width: 95%;
      margin-bottom: 25px;
      padding-right: 0;
    }

    .contact-info h3{
      font-size: 1.3em;
    }

    .para-cualquier-consulta {
        font-size: 0.75em; 
    }

    .emprende-el-viaje {
        font-size: 0.9em; 
    }

    .contact-form {
        width: 95%;
        border-radius: 5px;
        padding: 25px 5px;
    }

    .contact-container{
      max-width: 95%;
    }

    .contact-form .submit-button {
        font-size: 0.7em;
        width: max-content !important;
    }

    /* --- Footer --- */

    .footer-container{
      padding: 25px 5px;
    }
    .footer-contacto{
      font-size: 12px;
    }

    .info-block p{
      font-size: 9px;
    }
    .footer-logo{
      width: min-content;
    }
    .footer-logo b{
      font-size: 8px;
    }



    .main-logo,
  .logo-capa-superior {
    margin-bottom: 10px;
    max-width: 95%;
  }

      .main-logo img,
  .logo-capa-superior img {
    width: 90vw;
    max-width: 200px;
  }

  .moving-text {
    font-size: 1.3em;
    padding-right: 20px;
  }

  .service-read-more{
    height: auto !important;
  }
  .service-header{
    padding-bottom: 0px !important;
    padding: 10px !important;
  }
  .quality-image img{
    padding-top: 0px !important;
  }

  .hero-content{
    width: 95%;
    font-size: 1.5em;
  }

  .hero-text {
  margin: 10px auto;
  font-size: 5vw;
  }


  .final-phrase-group{
    flex-direction: column;
    margin: 0 auto;
    margin-top: 25px;
  }

  .hero-text-simple{
    font-size: 4.2vw !important;
    white-space: normal;
    margin: 0 auto;
  }
  .hero-logo-text{
    width: 75vw;
  }

  .logo{
    padding-left: 0;
  }
  .menu-toggle{
    margin-right: 10px;
  }

  .navigation{
    width: 100%;
  }
  
  .right-texts p{
    font-size: 11px !important;
    margin-bottom: 0;
  }
  .right-texts p b{
    font-size: 11px !important;
  }

  .service-header h3{
    font-size: 3vw !important;
  }

  .service-header h3::after{
    bottom: -2px !important;
    width: 15px !important;
    height: 1px !important;
  }
  .service-item{
    width: 95% !important;
  }
  .nav-links{
    width: 100%;
  }
  .nav-links ul li a{
    font-size: 14px;
  }
  .client-access a{
    font-size: 14px;
  }
  .logo img{
    width: 110px;
    padding-left: 15px;
  }

  .client-access img{
    width: 27px;
  }
  .language-selector{
    font-size: 14px;
  }
  .language-selector .language-divider{
    height: 20px;
  }
  .language-selector .world-icon{
    width: 27px;
    height: 27px;
  }
}










/* Contenedor de la cuadrícula de servicios (ahora usando flexbox) */
.services-grid {
    display: grid; /* Cambiamos a flex */
    flex-wrap: wrap; /* Permitimos que los elementos se ajusten a nuevas líneas */
    justify-content: center; /* Centra los elementos horizontalmente en cada línea */
    width: 90%;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: 40px;
}

/* service-item (MODIFICAR) */
.service-item {
    background-color: #e0e0e0;
    display: flex;
    flex-direction: column;
    text-align: left;
    overflow: hidden; /* Muy importante para ocultar el contenido fuera del max-height */
    flex-grow: 1;
    flex-basis: 250px;
    width: 60%;
    margin: 0 auto;
    margin-bottom: 10px;

    /* --- CAMBIOS CLAVE AQUÍ --- */
    /* Eliminar `height: fit-content;` para que max-height controle la altura */
    max-height: 120px; /* AJUSTA ESTE VALOR: Altura inicial de la tarjeta colapsada (solo el header visible) */
                       /* Mide la altura de tu .service-header (incluyendo su padding y el bottom del ::after de h3) */
                       /* y dale un poco más. Por ejemplo, si el header es de 90px, prueba 100px o 120px. */

/* --- CAMBIO CLAVE AQUÍ: AÑADIR margin-bottom A LA TRANSICIÓN --- */
    transition: max-height 0.7s ease-in-out,
                box-shadow 0.3s ease-in-out,
                transform 0.3s ease-in-out,
                margin-bottom 0.3s ease-in-out; /* ¡Añadido! Puedes ajustar la duración y el ease si quieres */
}


/* service-item.active (MODIFICAR) */
.service-item:hover,
.service-item.active {
    /* --- CAMBIO CLAVE AQUÍ --- */
    /* Este max-height debe ser un valor fijo lo suficientemente grande para toda la descripción expandida. */
    /* NO USAR `fit-content` ni `auto` para animación en `max-height`. */
    max-height: 500px; /* AJUSTA ESTE VALOR: Necesita ser mayor que la altura máxima posible de CUALQUIER descripción. */
                       /* Si una descripción es muy larga, necesitarás un valor más grande (ej: 1000px, 1500px). */
    margin-bottom: 25px;
}

.service-header {
    background-color: #e8e8e8;
    /* Ajusta este padding general del header si es necesario para el espacio vertical */
    padding: 0px 15px; /* Ejemplo: 10px arriba/abajo, 15px izquierda/derecha */
    
    display: flex;
    flex-direction: row-reverse; /* Cambio: para que el texto esté a la izquierda y el icono a la derecha */
    align-items: center; /* CAMBIO CLAVE: Centra verticalmente los elementos hijos */
    justify-content: space-between; /* CAMBIO CLAVE: Empuja el h3 a la izquierda y el icono a la derecha */
    
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    position: relative;
    /* flex-grow: 1; Esto puede no ser necesario aquí si el height: 125px del nav lo maneja */
}

.service-icon {
    width: 85px; /* Asegura que el icono tenga un tamaño adecuado */
    filter: grayscale(100%) brightness(50%);
    opacity: 0.7;
    /* Ajusta el margen si necesitas más espacio a la izquierda del icono o a la derecha del texto */
    margin-left: 15px; /* Un poco de espacio entre el icono y el borde derecho, si lo deseas */
    
    transition: filter 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* ***** CAMBIO CLAVE AQUÍ: Aplicar estilos de hover también al estado activo del icono ***** */
.service-item:hover .service-icon,
.service-item.active .service-icon { /* Añadida la clase .active */
    filter: grayscale(0%) brightness(100%); /* Color al pasar el mouse o estar activo */
    opacity: 1; /* Más visible al pasar el mouse o estar activo */
}

.service-header h3 {
    font-size: 23px;
    font-weight: 600; /* Asumiendo Semi Bold */
    color: #505050;
    line-height: 1.3;
    margin: 0; /* Elimina márgenes por defecto */
    text-transform: uppercase;
    position: relative; /* CRUCIAL para posicionar el ::after de la línea */
    /* No se necesita text-align: left; si el contenedor es flex y lo alinea */
    width: auto; /* Ocupa el ancho de su contenido */
    
    transition: color 0.3s ease-in-out;
    
    /* Agrega el pseudo-elemento para la línea debajo del H3 */
    /* No es un ::after en el H3, es un borde real */
}

/* Pseudo-elemento para la línea debajo del H3 */
.service-header h3::after {
    content: ''; /* Obligatorio */
    position: absolute;
    left: 0; /* Empieza al inicio del H3 */
    bottom: -8px; /* Ajusta este valor para la separación entre el texto y la línea */
                  /* Por ejemplo, -8px podría ser un buen punto de partida */
    width: 30px; /* Ancho de la línea, ajusta según la imagen */
    height: 2px; /* Grosor de la línea */
    background-color: #505050; /* Color de la línea, asumiendo el mismo color del texto */
}



/* ***** CAMBIO CLAVE AQUÍ: Aplicar estilos de hover también al estado activo de la línea del h3 ***** */
.service-item:hover .service-header h3::before,
.service-item.active .service-header h3::before { /* Añadida la clase .active */
    background-color: #333;
    width: 50px; /* La línea se alarga un poco al pasar el mouse o estar activo */
}

/* service-read-more (sin cambios, ya tiene su propio hover) */
.service-read-more {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0px 20px;
    height: 50px;
    background-color: #929292;
    color: #f5f5f5;
    text-decoration: none;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    margin-top: auto;
}

.service-read-more:hover {
    background-color: #c0c0c0;
    color: #333;
}

.arrow-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* service-full-description (MODIFICAR) */
.service-full-description {
    padding: 0 20px; /* Padding lateral, pero top/bottom inicial en 0 */
    font-size: 20px;
    color: #333333;
    line-height: 1.5;
    font-weight: 400;
    
    max-height: 0; /* **CORRECTO:** Empieza colapsado con altura 0 */
    overflow: hidden; /* **MANTENER:** Esencial para que el texto no se desborde */

    /* `will-change` está bien, pero no es estrictamente necesario si ya tienes las transiciones */
    will-change: max-height, padding, opacity;

    /* --- CAMBIOS CLAVE AQUÍ: Ajustar transiciones para que el padding y opacity colapsen/aparezcan bien --- */
    transition: max-height 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), /* Para el despliegue del área */
                padding 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), /* Para que el padding top/bottom se anime */
                opacity 0.4s ease-in-out 0.3s; /* Opacidad con un pequeño delay para que aparezca después de empezar a abrir */
                                               /* El 0.3s es el delay: la opacidad empieza a animarse 0.3s DESPUÉS de que la tarjeta empieza a abrirse */
    opacity: 0; /* **CORRECTO:** Inicialmente invisible */
    
    /* Asegúrate de que el padding-top inicial sea 0 para que colapse completamente */
    padding-top: 0; 
    padding-bottom: 0; /* También puedes poner este en 0 inicialmente si lo animas */
    background-color: #d9d9d9;
}

/* service-full-description.active (MODIFICAR) */
.service-full-description.active {
    max-height: 500px; /* **No necesitas cambiar esto, ya lo tienes en .service-item.active** */
                       /* La `max-height` del contenedor `.service-item.active` es la que manda. */
                       /* Solo necesitas asegurar que el contenido dentro de .service-full-description
                          se haga visible y tenga el padding adecuado. */
    
    /* --- CAMBIOS CLAVE AQUÍ --- */
    padding-bottom: 20px; /* Cuando está activa, dale el padding inferior deseado */
    padding-top: 15px; /* Cuando está activa, dale el padding superior deseado */
    opacity: 1; /* **CORRECTO:** Se vuelve visible */
    
    /* Eliminar el transition-delay de aquí, ya lo pusimos en el estado normal para la opacidad */
    transition-delay: 0s; 
}

.service-read-more.active .arrow-icon {
    transform: rotate(-90deg);
}


