:root {
  --rojo-principal: #E30613;
  --rojo-claro: #e60000;
  --blanco: #ffffff;
  --gris-claro: #ffeedf;

}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Merriweather', serif;
    background-color: var(--gris-claro);
  color: #333;
  max-width: 100%;
  overflow-x: hidden;
}
.menu-toggle {
  display: none;
}
.navbar {
  font-family: 'Bebas Neue', sans-serif;
  color: gray;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--rojo-principal);
  padding: 0rem 2rem;
  flex-wrap: wrap;
  height: 70px;
    position: relative;

}
#navbar {
  position: fixed;
  width: 100%;
  z-index: 10000;
  transition: top 0.3s ease-in-out;
  top: 0;
}
.logo {
  height: 110%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.logo img {
  height: 155px; 
  width: auto;
  object-fit: cover;
  display: block;
}

.nav-links {
  display: flex;
  gap: 1rem; /*espacio entre ellos*/
  list-style: none;
  padding: 0;
  position: absolute; /* Aseguramos que los enlaces se ubiquen correctamente */
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;

}
.nav-links li {
  position: relative; /* Aseguramos que la línea se posicione correctamente */
  padding: 0 10px;  /* Espaciado alrededor de cada enlace */
}
.nav-links li a {
  color: rgb(0, 0, 0);
  text-decoration: none;
  font-size: 1.5rem;
  padding: 0 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  
}
/* Línea vertical entre elementos */
.nav-links li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 50%;
  width: 1px;
  background-color: gray;
}
.nav-links li a:hover {
  color: var(--rojo-claro);
}
.hero-section {
  display: flex;

  padding: 7rem 2rem 2rem; /* ↑ Top padding agregado */
  height: 100vh;
  background-image: url('images/tractosnoche2.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  color: white;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1); /* oscurece la imagen de fondo */
  z-index: 1;
}

.hero-section .texto {
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: 100%;
  text-align: justify ;
  

}

.hero-section .texto h1 {
  color: #d1d0d0;
  font-size: 3.3rem;
  margin-bottom: 1rem;
  text-shadow:
    -1px -1px 0 black,
     1px -1px 0 black,
    -1px  1px 0 black,
     1px  1px 0 black;
     
}

.hero-section .texto p {
  font-size: 1rem;
  color: #d1d0d0;
}
.carrusel {
  margin-left: 7rem;
  flex: 1;
  max-width: 500px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  padding-left: 0rem;

}

.carrusel-imagenes img {
  display: none;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.carrusel-imagenes img.activa {
  display: block;
}
.carrusel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 1;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.carrusel-btn:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.carrusel-btn.izquierda {
  left: 10px;
}

.carrusel-btn.derecha {
  right: 10px;
}

.texto {
  flex: 1;
  min-width: 280px;
  margin-right: 2rem;

}

.texto h1 {
  color: var(--rojo-principal);
  margin-bottom: 1rem;
}
.servicios-section {
  padding: 4rem 2rem;
  background-color: #ffeedf;

}

.servicios-section h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: var(--rojo-principal);
  margin-bottom: 1rem;
}
.lista-servicios li {
  margin-bottom: 1rem; /* antes estaba en 0.5rem */
}
.cards-servicios {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.card-servicio {
  background-color: white;
  border-radius: 10px;
  padding: 2rem;
  width: 300px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  animation: rebote 0.8s ease-out;
  text-decoration: none;
  color: inherit;
  display: block;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.card-servicio.visible {
  opacity: 1;
  transform: translateY(0);
}

.card-servicio:hover {
  transform: translateY(-10px); /* se eleva un poco */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* sombra más fuerte */
}
.card-servicio i {
  font-size: 2.5rem;
  color: var(--rojo-principal);
  margin-bottom: 1rem;
}
.card-servicio h3 {
  font-size: 1.4rem; /* Título */
  margin-bottom: 0.5rem;
  font-weight: bold;
  word-wrap: break-word; /* Rompe palabras largas */
  word-break: break-word; /* Corta incluso sin espacio */
  overflow-wrap: break-word; /* Lo más moderno */
}

.card-servicio p {
  font-size: 1.2rem; /* Descripción */
  line-height: 1.4;
}

.contenedor {
  max-width: 1000px;
  margin: 0 auto;
}

.imagen {
  flex: 1;
  min-width: 280px;
}

.imagen img {
   flex: 1;
   min-width: 200px;
   width: 100%;
   height: 100vh;
   opacity: 0.7; 
   object-fit: cover;

  }

.nosotros-contenido {
  max-width: 100%;
  margin: auto;
  padding: 2rem 3rem; /* 2rem vertical, 0.5rem lateral (8px aprox) */
  display: flex;
  flex-direction: column;
  
}

.nosotros h2 {
  color: var(--rojo-principal);
  margin-bottom: 1rem;

}
.nosotros-header {
  color: #333;
  text-align: center;
  padding: 5rem 2rem 0rem;
  width: 100%;
}
.nosotros-header h1 {
  font-size: 2rem; 
  text-align: center;
  padding: 1rem;
}

.valores {
  margin-top: 3rem;
}

.valores h2 {
  color: #003366;
  margin-bottom: 1rem;
  text-align: center;
  font-size: 1.6rem;
}

.valores-cards {
  display: flex;
  gap: 1.5rem;
  flex-wrap: nowrap;
  justify-content: space-between;
  min-height: auto;
  max-height: 200px;
}


.card {
  background-color: white;
  border-left: 5px solid var(--rojo-claro);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 1rem;
  flex: 1 1 calc(25% - 1.5rem);
  min-width: 200px;
  text-align: justify;
  position: relative;

}
.card h2 {
  margin-bottom: 0.5rem;
  color: var(--rojo-principal);
  font-size: 2rem; 
}
.card h3 {
  margin-bottom: 0.5rem;
  color: var(--rojo-principal);
  font-size: 2rem; 
}

.card p {
  line-height: 1.5;
  font-size: 1.1rem;
}
.tap-icon {
  position: absolute;
  top: 8rem;
  right: 2rem;
  font-size: 3rem;
  filter: grayscale(100%);

  animation: tap-bounce 1s ease-in-out infinite;
  z-index: 10;
  pointer-events: none;
  opacity: 0.8;
  visibility: visible;

  transition: opacity 0.5s ease, visibility 0.5s ease;
 color: yellow; /* <-- Aquí haces el ícono amarillo */
  filter: none;
}

@keyframes tap-bounce {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-10px) scale(1.2);
    opacity: 1;
  }
}

/*animacion tap*/
@keyframes tap-indicator-strong {
0% {
transform: scale(1);
box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
border: 2px solid rgba(255, 255, 255, 0);
}
40% {
transform: scale(1.05);
box-shadow: 0 0 20px 8px rgba(255, 255, 255, 0.3);
border: 2px solid rgba(255, 255, 255, 0.5);
}
70% {
transform: scale(0.98);
box-shadow: 0 0 10px 4px rgba(255, 255, 255, 0.2);
}
100% {
transform: scale(1);
box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
border: 2px solid rgba(255, 255, 255, 0);
}
}

.card.tap-hint {
animation: tap-indicator-strong 1s ease-in-out;
animation-iteration-count: 2;
border-radius: 10px;
}

.empresas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.clientes-section {
  padding: 4rem 2rem;
  background-color: #ffeedf;
}

.clientes-section h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 3rem;
  color: #333;
}

.sector-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.sector-card h3 {
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  color: #444;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0.5rem;
}

.empresas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columnas por fila */
  gap: 1rem;
  padding: 1rem 0;
}


.empresa {
  display: flex;
  flex-direction: column;
  align-items: first baseline;
  justify-content: flex-end; /* Alinea contenido abajo */
  height: 160px; /* Uniforme para todas las tarjetas */
  text-align: center;
  padding: 1rem;
  box-sizing: border-box;
}

.empresa img {
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 0.5rem; /* Espacio entre imagen y texto */
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.empresa:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}
.empresa p {
  margin-top: 0.5rem;
  font-size: 1.3rem;
  color: #333;
}
@keyframes highlight {
  0% {
    box-shadow: 0 0 0 rgba(255, 215, 0, 0.6);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.9);
  }
  100% {
    box-shadow: 0 0 0 rgba(255, 215, 0, 0.6);
  }
}

.card.highlight {
  animation: highlight 1.5s ease-out;
  border-radius: 12px;
}

.nosotros-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10px 0px; /* para que la imagen y el texto aprovechen más el ancho */
  gap: 20px;
}

/* ==ea= Texto de Quiénes Somos (lado izquierdo) === */
.nosotros-texto {
  flex: 1;
  text-align: justify;
}

.nosotros-texto h1 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.nosotros-texto p {
  font-size: 1rem;
  line-height: 1.6;
}

/* === Línea vertical divisoria === */
.nosotros-linea {
  width: 2px;
  height: 200px;
  background-color: #ccc;
}
.nosotros-linealarga {
  width: 2px;
  height: 520px;
  background-color: #ccc;
}

/* === Imagen del lado derecho === */
.nosotros-imagen {
  flex: 2;
  display: flex;
  justify-content: center;
}

.nosotros-imagen img {
  width: 100%;
  max-width: 720px; /* Ajusta este valor a lo que necesites */
  height: auto;
  border-radius: 20px;
  margin-top: 55px;
}
/*animaciones de nosotros*/

.fade-slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in {
  opacity: 0;
  transition: opacity 1s ease-out;
}

/* Cuando estén visibles */
.visible {
  opacity: 1;
  transform: translateX(0);
}

.texto-en-paralelo {
  display: flex;
  justify-content: space-between;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  color: #333;
}

.footer {
  background-color: var(--rojo-principal);
  color: white;
  padding: 1rem 2rem 1rem;
  font-family: 'Merriweather', serif;
  max-height: 250px; /* Ajusta según tu necesidad */
  overflow: hidden;
  font-size: 0.85rem; 
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
}



.footer-links,
.footer-contacto,
.footer-social {
  flex: 1 1 200px;
}

.footer-links h4,
.footer-contacto h4,
.footer-social h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
  border-bottom: 1px solid white;
  display: inline-block;
  padding-bottom: 2px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}
.footer-links ul li {
  margin-bottom: 1px;
}
.footer-links ul li a {
  color: white;
  text-decoration: none;
}
.footer-links ul li a:hover {
  text-decoration: underline;
}

.footer-contacto p {
  margin-bottom: 1px;
  font-size: 0.95rem;
}

.footer-social .social-icons a {
  margin-right: 10px;
}
.footer-social img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1); /* convierte a blanco */
  transition: transform 0.2s ease;
}
.footer-social img:hover {
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
}
/*CSS SERVICIOS PESTALA*/

.servicios {
  scroll-margin-top: 100px; /* Ajusta según el alto de tu navbar */
  padding-left: 40px;
  padding-right: 40px;
  padding: 1rem 1rem;
  transition: padding-top 0.3s ease;
  background: #ffeedf;
  text-align: center;
}
.servicios-header {
  color: black;
  text-align: center;
  padding: 5rem 2rem 0rem;
}
.with-navbar {
  padding-top: 90px; /* o igual a altura navbar + espacio */
}
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 0.5rem;
  border-radius: 8px; /* Puedes ajustar el valor */
  background-color: #ffeedf; /* Color de fondo suave */

}

.card {
  background: rgb(235, 235, 235);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center center; /* Puedes cambiar esto */
  border-radius: 10px;
}

.card-content {
  padding: 1rem;
}

.card h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #003366;
  text-align: center;
}

.card p {
  font-size: 0.95rem;
  color: #333;
  text-align: justify;
}

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.hidden {
  display: none;
}

.carousel-container {
  position: relative;
  width: 80%;
  max-width: 600px;
  text-align: center;
}

.carousel-img {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  transition: transform 0.3s ease;
  cursor: zoom-in;
  margin: auto;
}
.carousel-img.zoomed {
  transform: scale(1.8);
  transition: transform 0.3s ease;
  cursor: zoom-out;
  z-index: 100;
}

.close {
  position: absolute;
  top: 5rem;
  right: 3rem;
  font-size: 3rem;
  color: white;
  cursor: pointer;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  font-size: 30px;
  color: white;
  user-select: none;
  transform: translateY(-50%);
  padding: 5px 10px;        /* espacio alrededor de la flecha */
  background-color: rgba(0, 0, 0, 0.3); /* opcional: fondo semitransparente */
}

.prev { left: 0; }
.next { right: 0; }

.fade-slide-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/*contacto*/ 

.contacto-hero {
  position: relative;
  height: 300px; /* Ajusta según tu preferencia */
  background-image: url('images/test.jpg'); 
  background-size: cover;
  background-position: center;
  overflow: hidden;
  animation: zoomIn 10s ease-in-out infinite alternate;
  display: flex;
}

.contacto-hero .overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
}

.contacto-hero h1 {
  color: white;
  font-size: 3rem;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}
.contacto-elegante {
  background-size: cover;          /* Escala para cubrir todo */
  background-position: center;     /* Centrado */
  background-repeat: no-repeat;
  padding: 2rem 2rem 2rem 2rem;
  text-align: center;
  font-family: 'Merriweather', serif;
  flex: 1;
  width: 100%; 
}
.contacto-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.contacto-titulo h1 {
  font-family: 'Bebas Neue', cursive;
  font-size: 3rem;
  color: var(--rojo-principal);
  margin-bottom: 0.5rem;
}

.contacto-titulo p {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 3rem;
}

.tarjetas-contacto {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-left: 10rem;
}
.mapa-contacto {
  width: 100%;
  width: 650px;
  height: 500px;
  max-width: 650px; /* o lo que se ajuste a tu diseño */
  max-height: 500px; /* <-- Aquí controlas la altura máxima */
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin: auto;
  margin-right: 3rem;
}

.mapa-contacto iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.tarjeta {
  background-color: rgb(214, 214, 214);
  border-radius: 10px;
  padding: 1rem;
  width: 100%; 
  min-width: 230px;   /* no se haga más estrecha que antes */
  max-width: 325px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.tarjeta i {
  font-size: 2rem;
  color: var(--rojo-principal);
  margin-bottom: 1rem;
}

.tarjeta h3 {
  color: var(--rojo-principal);
  margin: 0 0 0.5rem;
  white-space: normal;         /* permite salto de línea */
  word-wrap: break-word;       /* quiebra palabras largas si es necesario */
  overflow-wrap: anywhere;
}

.tarjeta p {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;

}

.tarjeta:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.mapa-container {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: auto;
}

@keyframes zoomIn {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

html, body {
  height: 100%;
  margin: 0;
}

main {
  flex: 1;
 
}


@media (max-width: 768px) {
  .tarjetas-contacto {
    flex-direction: column;
    align-items: center;
  }
}



/*ainmacion*/ 
@keyframes rebote {
  0% {
    transform: translateY(100px);
    opacity: 0;
  }
  60% {
    transform: translateY(-10px);
    opacity: 1;
  }
  80% {
    transform: translateY(5px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Responsivo */
@media (max-width: 768px) {
  #navbar {
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /*navbar*/
  .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--rojo-principal);
    padding: 1rem;
    position: relative;
    z-index: 1000;
  }

  .menu-toggle {
    display: block !important;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    z-index: 10001;
    position: relative;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%; /* justo debajo del navbar */
    right: 0;
    width: auto;
    min-width: 180px;
    background-color: var(--rojo-principal);
    flex-direction: column;
    align-items:flex-start;
    padding: 1rem 0;
    box-sizing: border-box;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-weight: bold;
    margin: 0.5rem 0;
    font-size: 1.2rem !important;
  }
  
  .nav-links li:not(:last-child)::after {
display: none;
  }
  
 
 /* HERO SECTION */
 .hero-section {
  background-position: bottom center;
  background-size: cover;
  background-repeat: no-repeat;
  flex-direction: column;
  height: 80vh;
     padding: 7rem 1rem 2rem;
  transition: transform 10s ease-in-out;
  transform-origin: center center;
  overflow: hidden;
  position: relative;
  z-index: -1; /* debajo del navbar */
}
.hero-section.zoom-in {
  transform: scale(1.1);
}
.hero-section .texto h1 {
  font-size: 1.5rem;
  text-align:  left;
  text-shadow:
  -1px -1px 0 #000000,
   1px -1px 0 black,
  -1px  1px 0 black,
   1px  1px 0 black;
   position: relative;
   top: -20px !important;
   margin-bottom: -1rem;
   margin-left: 1rem;
}

.hero-section .texto p {
  font-size: 0.9rem;
  text-align: justify;
  text-wrap: nowrap;
  margin-left: 0.6rem ;
}

/* NAVBAR LOGO */
.logo img {
  max-height: 120px;
  width: auto;
  height: auto;
}

/* TEXTO EN PARALELO */
.texto-en-paralelo {
  flex-direction: column;
  font-size: 1rem;
  padding: 1rem;
  gap: 1rem;
}



/*NOSOTROS*/
.nosotros-header{
  padding: 3rem 2rem 0rem;

}
.nosotros-header h1{
  font-size: 1.3rem;
  text-align: center;
  padding: 2.5rem 0rem 0rem 0rem;
}

  .nosotros-contenido {
    max-width: 100%;
    margin: auto;
    padding: 0rem 1rem; /* 2rem vertical, 0.5rem lateral (8px aprox) */
    display: flex;
    
  }
  .nosotros-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  .valores {
    margin-top: 0.5rem;
  }
  .nosotros-texto {
    flex: 1;
    text-align: left;
  }

  .nosotros-texto h1 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
  }

  .nosotros-texto p {
    font-size: 0.8rem;
    line-height: 1.6;
    text-align: justify;
  }

  .nosotros-linea {
    width: 80%;
    height: 2px;
    margin: 10px 0;
    background-color: #ccc;
  }

  .nosotros-imagen {
    flex: 1;
    display: flex;
    justify-content: center;
  }

  .nosotros-imagen img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
  }
  .valores-cards {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0.7rem;
    padding: 1rem;
  }
  .valores-cards::-webkit-scrollbar {
    height: 6px;
  }
  
  .valores-cards::-webkit-scrollbar-thumb {
    background-color: var(--color-primario);
    border-radius: 10px;
  }
  .valores h2 {
  
    font-size: 1.2rem;
  }
   
  .nosotros-linea {
    display: none;

  }
  .card {
    flex: 0 0 80%;
      scroll-snap-align: start;
      min-width: 90%;
      max-width: 90%;
      padding: 0.5rem;
  }

  .card h3 {
    font-size: 1rem; /* Tamaño de encabezado más pequeño */
  }

  .card p {
    font-size: 0.7rem; /* Texto más legible sin ser muy grande */
    line-height: 1.4;
  }
  .tap-icon {

    top: 2.5rem;
    right: 2rem;
    font-size: 1.5rem;
  }

    .listacargas li {
      font-size: 0.7rem;         /* Texto ligeramente más pequeño */
      padding-left: 1.5em;        /* Menor sangría para ajustarse al espacio */
      margin-bottom: 0.5em;       /* Espaciado un poco más compacto */
    }
  
    .listacargas li::before {
      font-size: 1em;             /* Ícono ligeramente más pequeño */
      top: 0.15em;                /* Ajuste fino de alineación vertical */
    }
  
  
  /*empresas de colaboracion */
  .clientes-section {
    padding: 0;
  }
  .sector-card {
    padding: 0.5rem;
    margin-bottom: 0.7rem;
    height: auto;

  }



  .clientes-section h2 {
    font-size: 1rem;
    text-align: left;
    margin-bottom: 0.5rem;
  }

  .sector-card h3 {
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
    text-align: center;
    padding-left: 10px;
    padding-right: 10px;
  }

  .empresas-grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: auto auto;
    grid-auto-columns: minmax(120px, 1fr);
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
  }
  .empresa {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; /* Alínea el contenido a la base */
    padding: 0.5rem;
  }
  
  .empresas-grid:has(.empresa:nth-child(4)) {
    grid-template-rows: auto auto;
  }

  /* Si hay 3 o menos: 1 fila */
  .empresas-grid:not(:has(.empresa:nth-child(4))) {
    grid-template-rows: auto;
  }

  .empresa img {
    width: 100%;
    max-height: 80px;
    object-fit: contain;
  }
  
  .empresa p {
    font-size: 0.85rem;
    margin-top: 0.3rem;
  }
  
  /* CARDS DE SERVICIOS */
  .card-container {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .card {
    flex: 0 0 auto;
    width: 280px;
    scroll-snap-align: start;
  }

  .card-container::-webkit-scrollbar {
    display: none;
  }

  .card-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .cards-servicios {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
    justify-content: flex-start; /* para que inicie desde el borde izquierdo */
  gap: 0.5rem;
  }

  .card-servicio {
    flex: 0 0 auto;
    width: 80%; /* hace que no se vean gigantes */
    max-width: 190px; /* controla que no se estiren de más */
    scroll-snap-align: start;
    padding: 1rem;
    text-align: center;
  }
  .card-servicio h3 {
    font-size: 1rem; /* más pequeño para móviles */
  }

  .card-servicio p {
    font-size: 0.85rem;
  }

  .card-servicio i {
    font-size: 2.5rem; /* icono más pequeño */
  }

  .servicios {

    padding: 1rem 1rem 0rem 1rem;

  }

    .carousel-img.zoomed {
      transform: scale(1.5); /* un poco menos de zoom para pantallas pequeñas */
    }
    

    
  /* QUIÉNES SOMOS TEXTOS */
  .nosotros-container {
    gap: 1rem;
    padding: 1rem;
  }

  .nosotros-texto h1 {
    text-align: center;
  }
.nosotros-linealarga{
  display: none;
}


  /* CONTACTO */
  .contacto-hero {
    height: 180px; /* Altura tipo banner en móvil */
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
  }
  .contacto-hero .overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Cambia el 0.5 por el nivel de oscuridad deseado */
    z-index: 1;
  }
  .contacto-hero h1 {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    padding: 0 1rem;
    color: white;
    font-family: 'Bebas Neue', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 2;
    text-align: center;
  }

  .contacto-elegante {
    background-size: cover;          /* Escala para cubrir todo */
    background-position: center;     /* Centrado */
    background-repeat: no-repeat;
    padding: 2rem 2rem 2rem 2rem;
    text-align: center;
    flex: 1;
    width: 100%; 
  }
  .contacto-layout {
    gap: 0.5rem;
    margin-top: 1.5rem;
  }
  .tarjetas-contacto {
align-items: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-left: 1rem;
  }
  .tarjeta {
    max-width: 70%;
    padding: 0.5rem;
    align-self: center;
    height: auto;
  }
.tarjeta h3{
  font-size: 1rem;
}
.tarjeta p{
  font-size: 0.8rem;
}
  .contacto-titulo h1 {
    font-size: 2rem;
  }

  .contacto-titulo p {
    font-size: 1rem;
    text-align: justify ;
    margin-bottom: 0rem;
  }
  .mapa-contacto {
    width: 500px;
    height: 200px;
    max-width: 700px; /* o lo que se ajuste a tu diseño */
    max-height: 500px; /* <-- Aquí controlas la altura máxima */
    overflow: hidden;
    margin: 1rem;
  }
  .mapa-contacto iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
  /*FOOTER */ 

  .footer {
    padding: 1rem 0.5rem;
    font-size: 0.9rem;
    text-align: center;
    max-height: none; /* Elimina el límite de altura */
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .footer-links,
  .footer-social{
    display: none;
  }
  .footer-contacto {
    flex: 1 1 100%;
    max-width: 100%;
    font-size: 0.8rem;
  }
  .footer-contacto p {
    font-size: 0.7rem;
  }
  .footer-links h4,
  .footer-contacto h4,
  .footer-social h4 {
    border: none;
    padding-bottom: 0;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }

  .footer-links ul li,
  .footer-contacto p {
    margin-bottom: 0.5rem;
  }

  .footer-social .social-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-social .social-icons a {
    margin: 0.5rem;
  }

  .footer-bottom {
    font-size: 0.8rem;
    margin-top: 0rem;
    padding-top: 1rem;
  }
}


