.quienes-somos-video {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.quienes-somos-video video,
.quienes-somos-video .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.quienes-somos-video video {
  object-fit: cover;
  z-index: -2;
}
.quienes-somos-video .overlay {
  background: rgba(0,0,0,0.5);
  z-index: -1;
}
.quienes-content {
  color: #fff;
  padding: 2rem;
  max-width: 800px;
  z-index: 1;
}
.quienes-content h2,
.historia-texto h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #ffc107;
}
.quienes-content p {
  font-size: 1.2rem;
  line-height: 1.6;
}
.btn-saber-mas {
  margin-top: 1.5rem;
  display: inline-block;
  padding: 10px 25px;
  background: #ffc107;
  color: #222;
  font-weight: bold;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.3s;
}
.btn-saber-mas:hover {
  background: #e0a800;
  color: #fff;
}
.historia-mercomat {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 4rem 2rem;
  background: #990406;
  align-items: center;
  justify-content: center;
}
.historia-texto {
  flex: 1 1 400px;
  max-width: 600px;
  color: #ccc;
}
.historia-texto p {
  font-size: 0.8rem;
  line-height: 1.8;
}
.historia-carrusel {
  flex: 1 1 400px;
  max-width: 600px;
  position: relative;
  overflow: hidden;
}
.carrusel-viewport {
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: #181818;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  margin: 0 auto;
  min-height: 370px;
  position: relative;
}
.carrusel-fotos {
  display: flex;
  transition: transform 0.5s;
  width: 100%;
}
.carrusel-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 600px;
  flex-shrink: 0;
}
.carrusel-item img {
 width: 100%;
  max-width: 600px;
  object-fit: cover;
  border-radius: 12px;
}
.carrusel-item img:hover {
  filter: brightness(1.08) drop-shadow(0 2px 12px #ffc10755);
  transform: scale(1.025) rotate(-0.5deg);
}
.carrusel-caption {
  background: linear-gradient(0deg, #181818 90%, rgba(24,24,24,0.01) 100%);
  color: #ffc107;
  border-radius: 0 0 18px 18px;
  padding: 1.2rem 1.2rem 1.1rem 1.2rem;
  width: 100%;
  text-align: left;
  min-height: 90px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.13);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.carrusel-caption h4 {
  margin: 0 0 0.3rem 0;
  font-size: 1.18rem;
  font-weight: 800;
  color: #ffc107;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px #000a;
}
.carrusel-caption p {
  margin: 0;
  color: #fff;
  font-size: 1.01rem;
  font-weight: 500;
  opacity: 0.93;
  text-shadow: 0 2px 8px #000a;
}
.flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.2rem;
  background: rgba(0,0,0,0.45);
  color: #ffc107;
  border: none;
  padding: 0.5rem 1.1rem;
  cursor: pointer;
  z-index: 2;
  transition: background 0.3s, color 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.13);
  opacity: 0.93;
}
.flecha:hover { background: #ffc107; color: #181818; }
.flecha.izquierda { left: 10px; }
.flecha.derecha { right: 10px; }

@media (max-width: 900px) {
  .historia-mercomat {
    flex-direction: column;
    padding: 2rem 0.5rem;
    gap: 1rem;
  }
  .historia-texto, .historia-carrusel {
    max-width: 100%;
    flex: 1 1 100%;
  }
  .historia-carrusel { max-width: 98vw; min-height: 220px; }
  .carrusel-viewport { min-height: 200px; }
  .carrusel-fotos { height: 200px; }
  .carrusel-item img { height: 120px; border-radius: 12px 12px 0 0; }
  .carrusel-caption { min-height: 60px; padding: 0.7rem 0.7rem 0.7rem 0.7rem; border-radius: 0 0 12px 12px; }
  .carrusel-caption h4 { font-size: 1rem; }
  .carrusel-caption p { font-size: 0.92rem; }
  .flecha { font-size: 1.5rem; left: -10px; right: -10px; }
}
@media (max-width: 600px) {
  .quienes-somos-video { height: 60vh; }
  .quienes-content { padding: 1rem; }
  .carrusel-viewport { min-height: 200px; }
  .historia-mercomat { padding: 1rem 0.2rem; }
  .historia-texto h2, .quienes-content h2 { font-size: 1.3rem; }
  .historia-texto p, .quienes-content p { font-size: 0.95rem; }
  .btn-saber-mas { font-size: 0.95rem; padding: 8px 16px; }
  .carrusel-fotos img { max-width: 100vw; }
  .historia-carrusel { min-height: 170px; }
  .carrusel-fotos { height: 120px; }
  .carrusel-img-wrap { height: 90px; }
  .carrusel-desc-overlay, .carrusel-desc-overlay span { font-size: 0.92rem; padding: 0.3rem 0.5rem; }
  .flecha { font-size: 1.5rem; left: 330px; right: 330px; top: 35%;}
}