@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");
@import url(https://necolas.github.io/normalize.css/8.0.1/normalize.css);

/* Reset básico para asegurar que no haya márgenes o padding no deseados */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
       scroll-behavior: smooth;
}

/* Modificar el estilo del body para agregar márgenes laterales */
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Agregar un contenedor principal para todo el contenido */
.container {
  width: 100%;
  max-width: 1200px; /* Ancho máximo del contenido */
  margin: 0 auto; /* Centrar el contenedor */
  padding: 0 20px; /* Margen interior en los lados */
  box-sizing: border-box;
}

/* Asegurar que las secciones usen el contenedor */
section {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Para secciones específicas que necesiten fondo de color completo */
section.full-width {
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

section.full-width .container {
  padding: 0 20px;
}


/* Asegurar que el header ocupe todo el ancho y esté fijo en la parte superior */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw; /* Usar viewport width para asegurar ancho completo */
  z-index: 1000;
  background-color: white;
}

.lang-menu {
             margin-top: 25px;
}

.selected-lang {
                cursor: pointer;
                color: #777777;
                display: flex;
                justify-content: space-between;
                line-height: 2;
                width: 100px;
}

.selected-lang:before {
                       content: '';
                       display: block;
                       width: 32px;
}

.lang-menu ul {
                margin: 0;
                padding: 0;
                background-color: #fff;
                border: 1px solid #f8f8f8;
                box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2);
                border-radius: 5px;
                display: none;
                position: relative;
}

.lang-menu ul li {
                  list-style: none;
                  display: flex;
}

.lang-menu ul li a {
                    width: 140px;
                    display: block;
                    padding: 5px 10px;
}

.lang-menu ul li a:before {
                           content: '';
                           display: block;
                           width: 32px;
}

.lang-menu ul li a:hover {
                          background-color: #f2f2f2;
                          display: block;
                          padding: 5px 10px;
                          cursor: pointer;
}

.lang-menu:hover ul {
                      display: block;
}

.navbar {
 width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px; /* Increased horizontal padding */
  box-sizing: border-box;
}

/* Estilo específico para el contenedor de la navbar */
.navbar.container {
  width: 100%;
  max-width: none; /* Eliminar cualquier max-width */
  margin: 0;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px; /* Altura fija para la navbar */
}

/* Ajustar el contenido principal para compensar la navbar fija */
main {
  padding-top: px; /* Debe coincidir con la altura de la navbar */
  width: 100%;
}

/* Hamburger menu styles */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.menu-toggle .bar {
  height: 3px;
  width: 100%;
  background-color: #333;
  border-radius: 10px;
}

/* Estilos responsivos para la navbar */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    z-index: 101;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.5s;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: flex;
    gap: 20px;
    list-style: none;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    margin: 0;
  }
}

/* Animation for menu toggle when active */
.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
  transition: transform 0.3s ease;
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
  transition: transform 0.3s ease;
}

/* Estilos para el logo */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px; /* Ajusta la altura según tus necesidades */
  width: auto; /* Mantiene la proporción de la imagen */
  vertical-align: middle; /* Alinea la imagen verticalmente */
}

.flex {
  display: flex;
  align-items: center;
}

/* Sombra para la navbar */
.navbar-shadow {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-links {
  gap: 20px;
  list-style: none;
}

.navbar a {
  padding: 10px 15px; /* Padding uniforme para todos los enlaces */
  display: inline-block;
  color: #000000;
  text-decoration: none;
  text-transform: capitalize;
  transition: 0.2s;
  font-size: 16px; /* Tamaño de fuente consistente */
  white-space: nowrap; /* Evitar que el texto se rompa en múltiples líneas */
}

.navbar a:hover {
  color: #911103; /* Color rojo al pasar el mouse */
}

.lang-menu {
  position: relative;
  margin-left: 20px;
  margin-right: 25px; /* Increased right margin to move it away from the edge */
  z-index: 100;
}

.selected-lang {
  display: flex;
  align-items: center; /* This ensures vertical alignment of all items */
  cursor: pointer;
  color: #333;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
}


.selected-lang:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.selected-lang span {
  margin-right: 5px;
}

.selected-lang i {
  font-size: 12px;
  margin-left: 5px;
}

/* Add this to your CSS */
.lang-dropdown {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 120px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.lang-dropdown.show {
  display: block;
}


.lang-menu:hover .lang-dropdown {
  display: block;
}

.lang-dropdown li {
  list-style: none;
}

.lang-dropdown a {
  display: flex !important;
  align-items: center;
  padding: 10px 15px !important;
  color: #333 !important;
  text-decoration: none;
  transition: background-color 0.3s;
  min-height: 40px; /* Ensure enough vertical space */
}

.lang-dropdown a:hover {
  background-color: #f5f5f5 !important;
  color: #911103 !important;
}

.lang-dropdown a span {
  margin-right: 10px; /* Increased margin for better spacing with text */
}

/* Flag icons */
.fi {
  width: 30px;  /* Base size for flags */
  height: 22px; 
  margin-right: 8px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  display: inline-block;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.fi-us {
  width: 35px;  /* Larger size specifically for US flag */
  height: 26px; /* Maintaining aspect ratio */
  background-image: url('https://flagcdn.com/w160/us.png'); /* Using even larger image source */
}

.fi-mx {
  background-image: url('https://flagcdn.com/w80/mx.png');
}


/* For mobile responsiveness */
@media (max-width: 768px) {
  .lang-menu {
    margin-right: 20px; /* Ensure margin on mobile too */
  }
  
  .fi {
    width: 26px; /* Slightly smaller on mobile but still visible */
    height: 19px;
  }
}

/* Homepage and Carousel Styles */
.homepage {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.carousel-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide::before {
  content: '';
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.2);
}

.homepage .content {
  position: relative;
  z-index: 10;
  height: 85%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.homepage .text {
  color: #fff;
  text-align: center;
  margin-bottom: 50px;
  /* Increased bottom margin */
  align-items: center;
}

.homepage .text h1 {
  font-size: 60px;
  font-weight: 700;
  margin-bottom: 10px;
  margin-top: 60px;
  line-height: 1.2;
}


.homepage a {
  color: #333;
  text-decoration: none;
  background: #fff;
  padding: 10px 30px;
  border-radius: 5px;
  border: 2px solid #fff;
  box-shadow: rgba(0, 0, 0, 0.3);
  font-size: 18px;
  transition: 0.3s;
}

.homepage a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.3);
}

/* Carousel Indicators */
.carousel-indicators {
  display: flex;
  gap: 15px;
  margin-top: 30px; /* Space between button and indicators */
}

.indicator {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: 0.6s
}

.indicator:hover {
  transform: scale(1.2);
}

.indicator.active {
  background: white;
}



/* Estilos para la sección About - Propuesta renovada */
.about {
  padding: 80px 0;
  background-color: #fff;
}



.about-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 50px;
  color: #333;
  position: relative;
}

.about-title:after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #911103;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-image-container {
  order: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  height: auto;
}

.about-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.about-text-container {
  order: 2;
  display: flex;
  align-items: center;
  padding: 0 15px;
}

.about-text-inner {
  padding: 20px 15px;
  width: 100%;
}

.about-text-inner h2 {
  font-size: 1.8rem;
  color: #333;
  margin: 30px 0 15px;
  position: relative;
}

.about-text-inner p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 15px;
  padding-right: 10px;
}

/* Responsive design - Versión mejorada */
@media (min-width: 768px) {
  .about-content {
    flex-direction: row;
    align-items: center;
    gap: 50px;
  }
  
  .about-image-container {
    flex: 0 0 45%;
    order: 1;
    height: 550px;
  }
  
  .about-image {
    height: 100%;
    object-fit: cover;
  }
  
  .about-text-container {
    flex: 0 0 55%;
    order: 2;
    padding: 0 20px 0 0;
  }
  
  .about-text-inner {
    padding: 30px 20px 30px 0;
    display: flex;
    flex-direction: column;
    height: 550px;
    justify-content: space-between;
  }
  
  .about-text-inner p:first-child {
    margin-bottom: auto;
  }
  
  .about-text-inner h2 {
    margin-top: auto;
    margin-bottom: 20px;
  }
  
  .about-text-inner p:last-child {
    margin-top: 0;
  }
}

/* Para tablets y dispositivos similares */
@media (min-width: 768px) and (max-width: 991px) {
  .about-text-container {
    padding: 0 25px 0 0; /* Más padding derecho específicamente para tablets */
  }
  
  .about-text-inner {
    padding: 30px 25px 30px 0; /* Más padding derecho */
  }
  
  .about-text-inner p {
    padding-right: 15px; /* Más padding derecho para el texto */
    font-size: 1rem; /* Reducir ligeramente el tamaño de fuente si es necesario */
  }
}

/* Para pantallas más grandes */
@media (min-width: 992px) {
  .about-image-container {
    flex: 0 0 48%;
  }
  
  .about-text-container {
    flex: 0 0 52%;
    padding: 0 30px 0 0;
  }
  
  .about-text-inner {
    padding-left: 20px;
    padding-right: 30px;
  }
}

/* Para pantallas extra grandes */
@media (min-width: 1200px) {
  .about-content {
    gap: 60px;
  }
  
  .about-image-container {
    height: 600px;
  }
  
  .about-text-inner {
    height: 600px;
    padding-left: 30px;
    padding-right: 40px;
  }
}



  .services {
    background: #f2f2f2;
    padding: 60px 0;
  }
  
  .services-title {
    text-align: center;
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 50px;
  color: #333;
  position: relative;
  }

  .services-title:after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #911103;
  }

  .services-p {
               text-align: center;
  }
  
.services h4 {
              text-align: center;
              padding-bottom: 30px;
 }

  .cards.flex {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    padding: 0;
  }
  
  section .card {
    width: calc(100% / 3 - 20px);
    text-align: center;
    list-style: none;
    background: #fff;
    padding: 40px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 30px;
  }
  
  section .card:hover {
    transform: translateY(-10px);
  }
  
  section .card img {
    height: 240px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    margin-bottom: 20px;
  }
  
  section .card h3 {
    margin-bottom: 15px;
    color: #333;
  }
  
  section .card p {
    color: #666;
    line-height: 1.5;
  }
  
  /* Responsive adjustments */
  @media (max-width: 992px) {
    section .card {
      width: calc(100% / 2 - 15px);
    }
  }
  
  @media (max-width: 768px) {
    section .card {
      width: 100%;
    }
  }

  /* Add these styles to your existing CSS */

.service-locations {
  margin: 40px 0;
  text-align: center;
}

.service-locations h3 {
  margin-bottom: 25px;
  color: #333;
  font-size: 1.5rem;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.location-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.location-item i {
  color: #911103; /* Red color for the location icon */
  font-size: 1.2rem;
}

.location-item span {
  font-weight: 500;
}

/* Responsive adjustments for the locations grid */
@media (max-width: 992px) {
  .locations-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .locations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .locations-grid {
    grid-template-columns: 1fr;
  }
}

.values-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 50px;
  color: #333;
  position: relative;
  }


.values-p {
          padding-top: 30px;
           text-align: center;
}  

/* Corporate Values Section */
.values {
  padding: 80px 0;
}

.values-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
  color: #333;
}

.values-title:after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #911103;
}

.values-p {
  text-align: center;
  margin-bottom: 50px;
  color: #666;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.value-item {
  background-color: white;
  padding: 40px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(37, 34, 34, 0.438);
  text-align: center;
  transition: transform 0.3s ease;
}

.value-item:hover {
  transform: translateY(-10px);
}

.value-item i {
  font-size: 3rem;
  color: #911103; /* Red color for the icons */
  margin-bottom: 20px;
}

.value-item h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #333;
}

.value-item p {
  color: #666;
  line-height: 1.6;
  text-align: left;
}

/* Responsive adjustments for values grid */
@media (max-width: 992px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

.choose-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 50px;
  color: #333;
  position: relative;
}

.choose-title:after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #911103;
}



.contact-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 50px;
  color: #333;
  position: relative;
}

.contact-title:after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #911103;
}

.contact-info {
               text-align: center;
}


/* Estilos mejorados para la sección de contacto */
.contact .row {
  display: flex;
  justify-content: space-between;
  margin: 60px auto 90px;
  max-width: 1200px; /* Limitar el ancho máximo */
  padding: 0 20px; /* Margen a los lados */
  gap: 50px; /* Espacio entre las columnas */
}

.contact .row .col {
  flex: 1; /* Hacer que ambas columnas ocupen el mismo espacio */
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact .row .col.information {
  display: flex;
  flex-direction: column;
  justify-content: left;
}

.contact-details p {
  display: flex;
  align-items: left;
  margin-bottom: 20px;
  font-size: 16px;
  color: #333;
}

.contact-details p i {
  margin-right: 15px;
  font-size: 20px;
  color: #911103; /* Color rojo para los iconos */
  width: 25px; /* Ancho fijo para alinear el texto */
}

/* Mejorar estilos del formulario */
.contact form input,
.contact form textarea {
  width: 100%;
  margin-bottom: 20px;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.3s;
}

.contact form input:focus,
.contact form textarea:focus {
  border-color: #911103;
}

.contact form button {
  padding: 12px 25px;
  border-radius: 6px;
  font-size: 16px;
  color: #fff;
  border: none;
  background: #911103; /* Usar el mismo color rojo */
  cursor: pointer;
  transition: 0.3s;
}

.contact form button:hover {
  background: #7e0f02; /* Versión más oscura para hover */
}

/* Responsive para pantallas pequeñas */
@media (max-width: 768px) {
  .contact .row {
    flex-direction: column;
    gap: 30px;
  }
  
  .contact .row .col {
    width: 100%;
  }
}

/* Footer Styles */
footer {
  background-color: #01051d;
  color: #f2f2f2;
  padding: 70px 0 20px;
  font-family: "Poppins", sans-serif;
}

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

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col {
  flex: 1 1 250px;
}

/* Company section */
.logo-footer {
  width: 200px;
  margin-bottom: 20px;
}

#company p {
  margin-bottom: 25px;
  line-height: 1.6;
  color: #ccc;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: #911103;
  transform: translateY(-3px);
}

/* Column headers */
.footer-col h3 {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background-color: #911103;
}

/* Links sections */
.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer-links a:hover {
  color: #fff;
  padding-left: 5px;
}

.footer-links a::before {
  content: "›";
  position: absolute;
  left: -15px;
  opacity: 0;
  transition: all 0.3s ease;
}

.footer-links a:hover::before {
  opacity: 1;
  left: -10px;
}

/* Contact section */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-item i {
  color: #911103;
  font-size: 18px;
  margin-top: 3px;
}

.contact-item p {
  color: #ccc;
  line-height: 1.6;
  margin: 0;
}

/* Footer bottom */
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: #999;
  font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .footer-content {
    gap: 30px;
  }
  
  .footer-col {
    flex: 1 1 calc(50% - 30px);
  }
}

@media (max-width: 768px) {
  footer {
    padding: 50px 0 20px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 40px;
  }
  
  .footer-col {
    flex: 1 1 100%;
  }
  
  .footer-col h3 {
    margin-bottom: 20px;
  }
  
  .footer-col:not(:last-child) {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

.whatsapp_float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
}
.whatsapp-icon {
  margin-top: 16px;
}

/* for mobile */
@media screen and (max-width: 767px){
  .whatsapp-icon {
    margin-top: 10px;
  }
  .whatsapp_float {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 10px;
    font-size: 22px;
  }
}


