/* Barra superior */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 1000;
  background: #3e4095; /* color de fondo */
  color: white;
  font-size: 0.9rem;
  padding: 5px 26px; /* altura aprox 1cm */
}
.topbar .contact-info {
  max-width: 1300px; /* mismo que el contenedor */
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: flex-end;
  gap: 30px;
}
.topbar i {
  margin-right: 8px;
  color: rgb(0, 204, 255); /* color dorado/amarillo para resaltar */
}

/* Estilos generales */
body, html {
  padding-top: 60px;  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #e0e0e0;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%; /* evita que iOS aumente el tamaño del texto automáticamente */
}

/* Navbar */
.navbar {
  position: fixed;
  top: 26px;
  left: 0;
  width: 100%;
  z-index: 1100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  padding: 15px 120px;
  box-sizing: border-box;
}
.logo img {
  width: 160px;
  transition: all 0.3s;
}
.logo img:hover{
  transform: scale(1.1);
}
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}
.nav-links li {
  margin-left: 30px;
  transition: all 0.3s;
}
.nav-links li:hover{
  transform: scale(1.1);
}
.nav-links a {
  text-decoration: none;
  color: #0d0042;
  font-family: Verdana;
}
.nav-links a:hover {
  color: #3e4095;
}

/*INICIO*/
.hero {
  width: 100%;
  height: 60vh; /* altura de la imagen */
  background: url("fotos/inicio.png") no-repeat center center/cover;
}
.inicio {
  text-align: center;
  padding: 40px 20px;
}
@font-face {
  font-family: 'Blippo Stencil';
  src: url('fonts/BlippoStencilW01.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
.inicio h1 {
  font-size: 3rem;
  margin: 0;
  color: #3e4095;
}
.inicio p {
  font-size: 1.2rem;
  margin-top: 10px;
  color: #434343;
}
.espacio {
  height: 25px; /* ajusta según el aire que quieras */
}

/* Contenedor general */
.contenedor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  max-width: 1300px; /* Ancho máximo tipo sitio web */
  margin: 30px auto; /* Centrar y separar del borde superior */
  padding: 0 40px; /* Márgenes internos laterales */
  box-sizing: border-box;
}

/* Caja de texto */
.contenedor .caja {
  flex: 1;
  max-width: 600px;
  background: #f8f9fa; /* Fondo suave */
  padding: 40px;
  border-radius: 10px; /* Bordes redondeados */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); /* Sombra ligera */
}
.contenedor .caja h2 {
  margin-top: 10px;
  margin-bottom: 15px;
  font-size: 2rem;
  color: #3e4095;
}
.contenedor .caja h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
  color: #393939;
}
.contenedor .caja p {
  font-size: 1.1rem;
  color: #434343;
  line-height: 1.6;
}

/* Contenedor de 2 columnas y 2 filas */
.grid-matriz {
  margin-top: 35px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px 0px; /* separación vertical y horizontal */
}

.grid-matriz .servicio,
.grid-matriz .clientes_destacados,
.grid-matriz .unidades {
  font-size: 1rem;
  color: #434343;
  font-weight: 500;
  position: relative;
  padding-left: 40px; /* espacio para el icono */
  display: flex;          /* <-- centra el contenido verticalmente */
  align-items: center;    /* <-- centra el texto con el icono */
}
/* Estilo base de los íconos */
.grid-matriz .servicio::before,
.grid-matriz .clientes_destacados::before,
.grid-matriz .unidades::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: ""; /* cada uno tendrá su icono abajo */
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  width: 32px;
  height: 32px;
  background-color: #3e4095;
  color: white;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-matriz .servicio:nth-child(1)::before {
  content: "\f187"; /* fa-folder */
  color: #ffffff;
}
.grid-matriz .servicio:nth-child(2)::before {
  content: "\f362"; /* fa-exchange-alt */
  color: #ffffff;
}
.grid-matriz .servicio:nth-child(3)::before {
  content: "\f4df"; /* fa-truck-moving */
  color: #ffffff;
}
.grid-matriz .servicio:nth-child(4)::before {
  content: "\f3c5"; /* fa-truck */
  color: #ffffff;
}
.chiapas iframe {
  border-radius: 20px;   /* esquinas redondeadas */
  overflow: hidden;      /* recorta contenido que sobresalga */
}

.grid-matriz .clientes_destacados:nth-child(1)::before {
  content: "\f0f8"; /* fa-hospital */
}
.grid-matriz .clientes_destacados:nth-child(2)::before {
  content: "\f07a"; /* fa-shopping-cart */
}
.grid-matriz .clientes_destacados:nth-child(3)::before {
  content: "\f466"; /* fa-warehouse */
}
.grid-matriz .clientes_destacados:nth-child(4)::before {
  content: "\f0f1"; /* fa-user-md */
}
.clientes img {
  max-width: 555px;  /* límite de ancho */
  /*width: 100%;       /* que se ajuste al contenedor */
  /*height: auto;      /* mantiene proporción */
  border-radius: 20px; /* opcional, igual que los iframes */
  box-shadow: 0 2px 8px rgba(0,0,0,0.3); /* opcional */
  overflow: hidden;      /* recorta contenido que sobresalga */
}

.grid-matriz .unidades:nth-child(1)::before {
  content: "\f48e"; /* fa-fumigacion */
}
.grid-matriz .unidades:nth-child(2)::before {
  content: "\f5ab"; /* fa-placast */
}
.grid-matriz .unidades:nth-child(3)::before {
  content: "\f0ad"; /* fa-mantenimiento */
}
.grid-matriz .unidades:nth-child(4)::before {
  content: "\f46c"; /* fa-checklist */
}
.eurovan img {
  max-width: 555px;  /* límite de ancho */
  /*width: 100%;       /* que se ajuste al contenedor */
  /*height: auto;      /* mantiene proporción */
  border-radius: 20px; /* opcional, igual que los iframes */
  box-shadow: 0 2px 8px rgba(0,0,0,0.3); /* opcional */
  overflow: hidden;      /* recorta contenido que sobresalga */
}

/* ================== FOOTER ================== */
.footer {
  background-color: #3e4095;
  color: #ffffff;
  padding: 30px 20px 10px;
  margin-top: 60px;
}
.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer-logo img {
  width: 140px;
  transition: transform 0.3s;
}
.footer-logo img:hover {
  transform: scale(1.05);
}
.footer-social a {
  color: #ffffff;
  font-size: 1.5rem;
  margin-left: 30px;
  transition: color 0.3s, transform 0.3s;
}
.footer-social a:hover {
  color: rgb(0, 204, 255); /* azul claro al pasar el mouse */
  transform: scale(1.2);
}
.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: #ffffff;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 10px;
}
/* 📱 Responsive */
@media (max-width: 1200px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-social {
    margin-top: 20px;
  }
  .footer-social a {
    margin: 0 15px;
  }
}

/* === MENÚ HAMBURGUESA === */
.hamburger {
  display: none;
  font-size: 1.8rem;
  color: #3e4095;
  cursor: pointer;
}

/* 📱 Responsive navbar */
@media (max-width: 1200px) {
  .navbar {
    padding: 40px 40px;
  }
  /* Oculta el menú por defecto en móvil */
  .nav-links {
    position: absolute;
    top: 70px; /* debajo de la navbar */
    right: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: none;
    border-radius: 0 0 8px 8px;
  }
  .nav-links li {
    margin: 15px 0;
  }
  .nav-links a {
    font-size: 1.3rem; /* texto más grande en el menú */
    padding: 10px 0;
    width: 100%;
    display: block;
  }
  /* Muestra el menú cuando esté activo */
  .nav-links.active {
    display: flex;
  }
  /* Mostrar el ícono hamburguesa en móvil */
  .hamburger {
    display: block;
    font-size: 2.2rem; /* icono más grande */
  }
  .logo img {
    width: 180px; /* más grande en móvil */
  }
}

/* 📱 Topbar responsiva */
@media (max-width: 1200px) {
  .topbar {
    font-size: 0.8rem;
    padding: 8px 12px;
    text-align: center;
  }
  .topbar .contact-info {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0;
  }
  .topbar span {
    display: block;
  }
}

/* 📱 Contenedores responsivos */
@media (max-width: 1200px) {
  .contenedor {
    flex-direction: column;
    padding: 0 20px;
    gap: 20px;
  }
  .contenedor .caja {
    max-width: 100%;
    width: 100%;
    padding: 25px;
    box-sizing: border-box;
  }
  .clientes img,
  .eurovan img {
    max-width: 100%;
    width: 100%;
    height: auto;
  }
}
@media (max-width: 1200px) {
  .chiapas iframe {
    width: 100%;
    height: 300px; /* altura más proporcional en móvil */
  }
}
@media (max-width: 1200px) {
  .inicio h1 {
    font-size: 2.5rem;
  }
  .inicio p {
    font-size: 1.4rem;
  }
  .contenedor .caja h2 {
    font-size: 2.2rem;
  }
  .contenedor .caja h3 {
    font-size: 1.4rem;
  }
  .contenedor .caja p {
    font-size: 1.3rem;
  }
  .grid-matriz .servicio,
  .grid-matriz .clientes_destacados,
  .grid-matriz .unidades {
    font-size: 1.2rem;
  }
}

/* 📱 === Responsive general === */
@media (max-width: 1200px) {
  html, body {
    -webkit-text-size-adjust: 100%;
  }
  /* Topbar */
  .topbar {
    font-size: 0.82rem;
    padding: 8px 12px;
    text-align: center;
  }
  .topbar .contact-info {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0;
  }
  .topbar span {
    display: block;
  }
  /* Navbar */
  .navbar {
    padding: 18px 24px;
  }
  .hamburger {
    display: block;
    font-size: 2rem;
    cursor: pointer;
  }
  .logo img {
    width: 140px;
  }
  .nav-links {
    position: absolute;
    top: 72px;
    right: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    display: none;
    z-index: 1200;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 1.15rem;
    text-align: center;
  }
  /* Contenedor general */
  .contenedor {
    flex-direction: column;
    padding: 0 20px;
    gap: 20px;
  }
  .contenedor .caja {
    max-width: 100%;
    width: 100%;
    padding: 22px;
    box-sizing: border-box;
  }
  /* Map iframe */
  .chiapas iframe {
    width: 100% !important;
    height: 320px !important;
    border-radius: 20px;
  }
  /* Imágenes */
  .clientes img,
  .eurovan img {
    max-width: 100%;
    width: 100%;
    height: auto;
  }
  /* Tipografía */
  .inicio h1 { font-size: 2.5rem; }
  .inicio p { font-size: 1.4rem; }
  .contenedor .caja h2 { font-size: 1.6rem; }
  .contenedor .caja h3 { font-size: 1rem; }
  .contenedor .caja p {
    font-size: 1.05rem;
    line-height: 1.6;
  }
  /* Grid */
  .grid-matriz {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 18px 0;
  }
  .grid-matriz .servicio,
  .grid-matriz .clientes_destacados,
  .grid-matriz .unidades {
    position: relative;
    padding-left: 48px;
    margin-bottom: 14px;
    display: block;
    align-items: flex-start;
    font-size: 1.05rem;
  }
  .grid-matriz .servicio::after,
  .grid-matriz .clientes_destacados::after,
  .grid-matriz .unidades::after {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }
  /* Footer */
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-social {
    margin-top: 20px;
  }
  .footer-social a {
    margin: 0 15px;
  }
  .hero {
  width: 100%;
  }
}

.btn-whatsapp-flotante {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  text-decoration: none;
}
.btn-whatsapp-flotante:hover {
  background-color: #1ebe5d;
  transform: scale(1.1);
}




