/* Sección Nosotros */
.nosotros {
  padding: 80px 10%;
  background: #f9f9f9;
}

.nosotros h2 {
  font-size: 32px;
  font-weight: 700;
  color: #0A7672;
  margin-bottom: 10px;
  text-align: left;
}

.nosotros .line {
  width: 80px;
  height: 4px;
  background: #0A7672;
  margin-bottom: 40px;
}

.nosotros-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}

.nosotros-text p {
  font-size: 18px;
  line-height: 1.6;
  color: #333;
}

.nosotros-image {
  position: relative;
  display: inline-block; /* asegura que el contenedor se ajuste a la imagen */
}

.nosotros-image img {
  width: 100%; /* que siempre ocupe todo el ancho disponible */
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.experience-circle {
  position: absolute;
  top: -20px;
  right: -20px;
  background: #0A7672;
  color: #fff;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  pointer-events: none;
}

/* Número grande */
.experience-circle strong {
  font-size: 32px; /* más grande */
  line-height: 1;
}

/* Texto más chico */
.experience-circle span {
  font-size: 12px; /* más pequeño */
  display: block;
  line-height: 1.2;
}

.nosotros-text p + p {
  margin-top: 20px; /* ajusta según lo que necesites */
}

.nosotros-text {
  position: relative;
  z-index: 1; /* texto por encima del pseudo-elemento */
}

.nosotros-text::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; /* tamaño del logo */
  height: 1000px;
  background: url("../images/logo1.png") no-repeat center center;
  background-size: contain;
  opacity: 0.1; /* transparencia solo de la imagen */
  z-index: 0; /* detrás del texto */
  pointer-events: none; /* que no interfiera con la selección de texto */
}


/* Animación de entrada desde la izquierda */
.nosotros-content > * {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease-out;
}

.nosotros-content > *.slide-in-left {
  opacity: 1;
  transform: translateX(0);
}


/* Nosotros responsive */
/* Nosotros responsive */
@media (max-width: 1024px) {
  .nosotros {
    padding: 60px 8%;
  }

  .nosotros h2 {
    font-size: 28px;
  }

  .nosotros .line {
    margin-bottom: 30px;
  }

  .nosotros-content {
    gap: 30px;
  }

  .nosotros-text p {
    font-size: 16px;
  }

  .nosotros-text::before {
    width: 400px; /* reduce tamaño del logo de fondo */
    height: 700px;
  }

  .experience-circle {
    width: 100px;
    height: 100px;
    top: -15px;
    right: -15px;
  }

  .experience-circle strong {
    font-size: 28px;
  }

  .experience-circle span {
    font-size: 11px;
  }
}

@media (max-width: 768px) {
  .nosotros-content {
    display: flex;
    flex-direction: column-reverse; /* texto arriba, imagen abajo */
    gap: 25px;
  }

  .nosotros-text {
    text-align: center;
    padding: 0 10px;
  }

  .nosotros-text::before {
    width: 300px;
    height: 500px;
  }

  .nosotros-image {
    display: flex;
    justify-content: center;
  }

  .experience-circle {
    top: -10px;
    right: -10px;
    width: 90px;
    height: 90px;
  }

  .experience-circle strong {
    font-size: 24px;
  }

  .experience-circle span {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .nosotros {
    padding: 50px 5%;
  }

  .nosotros h2 {
    font-size: 24px;
    text-align: center;
  }

  .nosotros .line {
    margin: 20px auto 30px auto;
  }

  .nosotros-text p {
    font-size: 14px;
    line-height: 1.5;
  }

  .nosotros-text::before {
    width: 200px;
    height: 350px;
  }

  .experience-circle {
    top: -8px;
    right: -8px;
    width: 80px;
    height: 80px;
  }

  .experience-circle strong {
    font-size: 20px;
  }

  .experience-circle span {
    font-size: 9px;
  }
}
