/* SECCIÓN QUIÉNES SOMOS */
body {
  overflow-x: hidden;
  font-family: "Outfit", sans-serif;
}

#quien {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 30px 5%;
  box-sizing: border-box;
  min-height: 100vh;
  background: white;
  gap: 30px;
  overflow-x: hidden;
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

/* Caja de texto grande */
.quien-grande {
  width: calc(40% - 50px);
  max-width: 100%;
  padding: 60px;
  border: 5px solid #02a9ff;
  border-radius: 10px;
  color: #02a9ff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.312);
  position: relative;
  z-index: 1;
}

.quien-grande h2 {
  font-size: 52px;
  font-weight: 900;
  color: #02a9ff;
  line-height: 1.3;
  margin: 0;
  text-align: left;
}

/* Grid de tarjetas */
.quien-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  width: 48%;
  max-width: 100%;
  align-content: center;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.quien-card {
  padding: 30px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border: 2px solid #02a9ff;
  border-radius: 10px;
  font-size: 20px;
  font-weight: bold;
  color: #02a9ff;
  background: rgb(255, 255, 255);
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out, background 0.3s, color 0.3s;
  flex-direction: row-reverse;
  text-align: left;
  box-sizing: border-box;
  font-family: "Outfit", sans-serif;
}

.quien-texto {
  flex: 1;
  line-height: 1.2;
  word-break: break-word;
}

.quien-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
  transition: filter 0.3s ease-in-out, transform 0.3s ease-in-out;
  filter: none;
}

.quien-card:hover {
  transform: scale(1.05);
  background: #02a9ff;
  color: white;
}

.quien-card:hover img {
  filter: brightness(0) invert(1);
  transform: scale(1.1);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  #quien {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    min-height: auto;
  }

  .quien-grande {
    width: 90%;
    max-width: 500px;
    text-align: center;
    justify-content: center;
    padding: 40px;
  }

  .quien-grande h2 {
    font-size: 36px;
    text-align: center;
  }

  .quien-grid {
    width: 90%;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .quien-grande {
    font-size: 28px;
    padding: 30px;
  }

  .quien-grande h2 {
    font-size: 28px;
    text-align: left;
  }

  .quien-card {
    font-size: 16px;
    flex-direction: column;
    text-align: center;
    height: auto;
    gap: 15px;
  }

  .quien-card img {
    width: 60px;
    height: 60px;
    margin-top: 10px;
  }

  .quien-texto {
    text-align: center;
  }

  .esferas-fondo {
    display: none !important;
  }
}


.esferas-fondo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.esfera {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, #029effcd 0%, #029eff77 100%);
  opacity: 0.5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.esfera img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  pointer-events: none;
  filter: brightness(0) invert(1);
}

.esfera1 {
  top: 10%;
  left: 15%;
  width: 300px;
  height: 300px;
  animation: orbitar 20s linear infinite;
}

.esfera2 {
  top: 35%;
  left: 45%;
  width: 350px;
  height: 350px;
  animation: orbitar 25s linear infinite reverse;
}


.esfera2 img {
  transform: scaleX(-1);
}

.esfera3 {
  top: 65%;
  left: 30%;
  width: 250px;
  height: 250px;
  animation: orbitar 18s linear infinite;
}

@keyframes orbitar {
  0% {
    transform: rotate(0deg) translateX(30px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(30px) rotate(-360deg);
  }
}

@keyframes aparecer-desde-abajo {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.quien-card.animacion-inicial {
  opacity: 0;
  animation: aparecer-desde-abajo 0.8s ease-out forwards;
}
