/* =============================
   SOBRE NOSOTROS - GENERAL
============================= */

.nosotros {
  font-family: 'Montserrat', sans-serif;
  color: #1a1a1a;
  background-color: #fff;
  line-height: 1.6;
}

/* =============================
   HERO CON IMAGEN Y CUADRO
============================= */

.nosotros-hero {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  /*margin-top: 1.5rem;*/
}

.nosotros-hero img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  filter: brightness(92%) contrast(108%);
}

.nosotros-hero-texto {
  position: absolute;
  top: 6rem;
  right: 4rem;
  background: rgba(255, 255, 255, 0.78);
  padding: 2rem 2.5rem;
  border-radius: 1rem;
  max-width: 320px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  text-align: left;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.nosotros-hero-texto h1 {
  font-size: clamp(2.1rem, 5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.nosotros-hero-texto p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.6;
}

/* =============================
   BLOQUES DE CONTENIDO
============================= */

.nosotros-bloque {
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.nosotros-bloque.inverso {
  flex-direction: row-reverse;
}

.nosotros-bloque-img {
  flex: 1 1 500px;
  text-align: center;
}

.nosotros-bloque-img img {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.nosotros-bloque-texto {
  flex: 1 1 500px;
  padding: 1rem;
}

.nosotros-bloque-texto h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: #008c45;
}

.nosotros-bloque-texto p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 1.2rem;
}

/* =============================
   RESPONSIVE AVANZADO
============================= */

@media (max-width: 1024px) {
  .nosotros-hero-texto {
    right: 2rem;
    bottom: 2rem;
    padding: 1.8rem 2rem;
    max-width: 90%;
  }

  .nosotros-hero-texto h1 {
    font-size: 2rem;
  }

  .nosotros-hero-texto p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .nosotros-hero {
    margin-top: 5rem;
  }

  .nosotros-hero-texto {
    position: static;
    margin: 2rem auto 0 auto;
    background: #fffffff2;
    padding: 1.5rem 1.5rem;
    max-width: 95%;
    border-radius: 1rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    text-align: center;
  }

  .nosotros-hero-texto h1 {
    font-size: 1.8rem;
  }

  .nosotros-hero-texto p {
    font-size: 0.95rem;
  }

  .nosotros-bloque {
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 1.5rem;
  }

  .nosotros-bloque.inverso {
    flex-direction: column;
  }

  .nosotros-bloque:not(.inverso) .nosotros-bloque-img {
    order: -1;
    margin-bottom: 0.5rem;
  }

  .nosotros-bloque-img img {
    margin-bottom: 1rem;
  }

  .nosotros-bloque-texto h2 {
    font-size: 1.6rem;
    text-align: center;
  }

  .nosotros-bloque-texto p {
    font-size: 1rem;
    text-align: justify;
  }

  /* ✅ Reducción de espacio entre secciones consecutivas */
  .nosotros-bloque + .nosotros-bloque {
    padding-top: 0.5rem;
    margin-top: -2.5rem;
  }
}
