body {
  font-family: "SFPro", sans-serif;
  margin: 0;
  padding: 0;
}

.hero-nosotros .overlay {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contenido-overlay h1 {
  font-size: 2rem;
  margin-bottom: 15px;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
}

.contenido-overlay p {
  font-size: 1.1rem;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
}

.contenedor {
  max-width: 1100px;
  margin: auto;
  padding: 60px 20px;
}

h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 30px;
  font-weight: 800;
  color: #333;
}

/* Animaciones scroll */
.animar-entrada {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s ease;
}

.animado {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ===========================
   Ajustes generales para imágenes 
   =========================== */
.nuestra-historia img,
.experiencia-servicios img,
.ilustracion img {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  border-radius: 10px;
  margin: 20px auto 0 auto;
  display: block;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}
.nuestra-historia img:hover,
.experiencia-servicios img:hover,
.ilustracion img:hover {
  transform: scale(1.05);
}

/* ===========================
      Hero mejorado
      =========================== */
.hero-nosotros {
  background: url("/assets/images/index/sobre-nosotros-1.jpg") no-repeat center
    center/cover;
  height: 350px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 90px;
  color: #fff;
  text-align: center;
}
.hero-nosotros .overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
  z-index: 1;
}
.contenido-overlay {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
  border-radius: 12px;
  animation: fadeDown 1s ease forwards;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}
.contenido-overlay h1 {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 15px;
}
.contenido-overlay p {
  font-size: 1.3rem;
}

/* ===========================
      Nuestra historia: Layout lado a lado
      =========================== */
.nuestra-historia .contenedor {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
  flex-wrap: wrap;
}
.nuestra-historia .contenedor p {
  flex: 1 1 400px;
  font-size: 1.1rem;
  color: #444;
  line-height: 1.6;
  text-align: justify;
}
.nuestra-historia .contenedor img {
  flex: 1 1 400px;
  max-height: 300px;
}

/* ===========================
      Valores - mejor grid visual
      =========================== */
.valores .grid-valores {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}
.valores .valor {
  background: #f9821c;
  color: white;
  padding: 30px 20px;
  border-radius: 15px;
  flex: 1 1 250px;
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.35);
  transition: background-color 0.3s ease;
  cursor: default;
  text-align: center;
}
.valores .valor:hover {
  background: #f06d00;
}
.valores .valor img {
  width: 70px;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.3));
}
.valores .valor h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  font-weight: 700;
}
.valores .valor p {
  font-size: 1rem;
  line-height: 1.4;
}

/* ===========================
      Compromiso final - botón destacado
      =========================== */
.compromiso-final {
  background-color: #f9821c;
  color: white;
  text-align: center;
  padding: 80px 20px;
}
.compromiso-final h2 {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.compromiso-final p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}
.btn-contacto {
  background-color: white;
  color: #f9821c;
  font-weight: 700;
  border-radius: 10px;
  padding: 18px 40px;
  font-size: 1.2rem;
  box-shadow: 0 8px 18px rgba(255, 255, 255, 0.3);
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
  display: inline-block;
}
.btn-contacto:hover {
  background-color: #ffe3d1;
  color: #d44c00;
}

/* ===========================
      Responsive
      =========================== */
@media (max-width: 900px) {
  .nuestra-historia .contenedor,
  .experiencia-servicios .contenedor {
    flex-direction: column;
    padding: 20px 10px;
  }
  .nuestra-historia .contenedor p,
  .nuestra-historia .contenedor img,
  .experiencia-servicios .items-servicios,
  .experiencia-servicios .ilustracion {
    flex: 1 1 100%;
  }
  .contenido-overlay h1 {
    font-size: 2rem;
  }
  .contenido-overlay p {
    font-size: 1rem;
  }
  .valores .grid-valores {
    flex-direction: column;
  }
  .valores .valor {
    max-width: 300px;
    margin: 0 auto 30px;
  }
}

.trayectoria {
  background-color: #fff;
  text-align: center;
}

.trayectoria h2 {
  font-size: 2.5rem;
  font-weight: 900;
  color: #000;
  margin-bottom: 40px;
}

.grid-trayectoria {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.bloque-trayectoria {
  background: #f9821c;
  color: white;
  padding: 30px 20px;
  border-radius: 15px;
  flex: 1 1 250px;
  max-width: 273px;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.25);
  transition: transform 0.3s ease;
}

.bloque-trayectoria:hover {
  transform: translateY(-5px);
}

.bloque-trayectoria img {
  width: 70px;
  margin-bottom: 20px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.bloque-trayectoria h3 {
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: bold;
}

.bloque-trayectoria p {
  font-size: 1rem;
  line-height: 1.5;
}

.imagen-operario img {
  max-width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
  .grid-trayectoria {
    flex-direction: column;
    align-items: center;
  }
}

.seccion-con-circulos {
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.seccion-con-circulos::before,
.seccion-con-circulos::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 200px;
  height: 400px;
  background-color: #f9821c; /* o el color que combine con la sección */
  border-radius: 50%;
  z-index: -1;
  transform: translateY(-50%);
  opacity: 0.15;
}

.seccion-con-circulos::before {
  left: -100px;
}

.seccion-con-circulos::after {
  right: -100px;
}

@media (max-width: 768px) {
  .seccion-con-circulos::before,
  .seccion-con-circulos::after {
    display: none;
  }
}
