/* ============================================================
   SECCIÓN "NOSOTROS" (texto e imagen principal)
   ============================================================ */
.seccion-nosotros {
  background-color: #e8f0ed;
  padding: 60px 20px;
  text-align: center;
  color: #1a1a1a;
}

.seccion-nosotros h2 {
  font-size: 50px;
  margin-bottom: 20px;
  color: #2f4f4f;
  font-family: "Parisienne", cursive;
}

.seccion-nosotros p {
  max-width: 800px;
  margin: 0 auto 20px auto;
  line-height: 1.6;
  font-size: 16px;
}

/* Imagen principal */
.imagen-nosotros {
  display: block;             /* Asegura bloque */
  margin: 20px auto;          /* Centrado horizontal */
  width: 90%;                 /* Ocupa ancho flexible */
  max-width: 600px;           /* Límite de ancho */
  height: auto;               /* Mantiene proporción */
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
}

/* ============================================================
   SECCIÓN CLIENTES (logos y carrusel)
   ============================================================ */
.clientes {
  background-color: #ffffff82;
  text-align: center;
  padding: 60px 20px;
}

.clientes h2 {
  font-size: 50px;
  margin-bottom: 20px;
  color: #2f4f4f;
  font-family: "Parisienne", cursive;
}

/* Descripción bajo el título */
.clientes-descripcion {
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
  font-size: 18px;
  color: #333;
}

/* Carrusel contenedor */
.carrusel-clientes {
  overflow: hidden;
  width: 100%;
  background-color: rgb(255, 255, 255);
  padding: 20px 0;
}

/* Track con movimiento continuo */
.carrusel-track {
  display: flex;
  width: fit-content;
  animation: scroll 30s linear infinite; /* Desplazamiento automático */
}

/* Cada logo de cliente */
.cliente {
  flex: 0 0 auto;
  margin: 0 40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: #111;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.cliente img {
  width: 100%;
  object-fit: contain;
  filter: brightness(1.2);
}

/* Animación carrusel */
@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   SLIDER HISTORIA (galería de imágenes con texto)
   ============================================================ */
.slider-historia {
  position: relative;
  max-width: 1000px;
  margin: 50px auto 20px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  min-height: 400px;
  background-color: white;
}

/* Cada slide individual */
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: none; /* Ocultas por defecto */
}

/* Slide visible */
.slide.active {
  display: block;
  animation: fade 0.8s ease-in-out;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ajusta imagen sin deformar */
  display: block;
  border-radius: 12px;
}

/* Texto sobre imagen */
.slide-texto {
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  background: rgba(0, 0, 0, 0.6); /* Contraste sobre imagen */
  color: white;
  font-size: 20px;
  padding: 15px;
  font-weight: bold;
  z-index: 2;
  border-radius: 0 0 12px 12px;
}

/* Dots de navegación */
.dots-container {
  text-align: center;
  margin-top: 15px;
}

.dot {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin: 6px;
  border-radius: 50%;
  background-color: #bbb;
  cursor: pointer;
  transition: background-color .3s ease;
}

.dot.active {
  background-color: #2f4f4f;
}

/* Animación transición */
@keyframes fade {
  from {opacity: 0;}
  to   {opacity: 1;}
}
