/* ===== Backdrop ===== */
#aboutBackdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 1000;
}

#aboutBackdrop.open {
  display: block;
}

/* ===== Modal "Quiénes somos" ===== */
#aboutModal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: min(950px, 95%);
  max-height: 90vh;
  overflow-y: auto; /* scroll si contenido muy largo */
  background: #000;
  border-radius: 16px;
  padding: 40px;
  z-index: 1001;
  opacity: 0;
  transition: all 0.4s ease;

  border: 1px solid var(--neon);
  box-shadow: 0 0 10px rgba(0, 255, 128, 0.4);

  color: #fff;
  text-align: center;
  box-sizing: border-box;

  /* Scroll oculto en PC */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

#aboutModal::-webkit-scrollbar {
  width: 0; /* Chrome, Edge, Safari */
}

/* ===== Animación de entrada ===== */
#aboutModal.open {
  animation: modalEnter 0.5s ease forwards;
}

@keyframes modalEnter {
  0% {
    opacity: 0;
    transform: translate(-50%, -40%) scale(0.8);
  }
  60% {
    opacity: 1;
    transform: translate(-50%, -52%) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ===== Contenido interno ===== */
#aboutModal h2 {
  color: var(--neon);
  margin-bottom: 15px;
}

#aboutModal h3 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
}

#aboutModal p {
  font-size: 16px;
  color: #ccc;
  margin-bottom: 25px;
  word-wrap: break-word; /* evita que texto largo se salga */
}

/* Grid de beneficios */
.benefits-grid {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  flex-wrap: wrap; /* se adapta a móviles */
}

.benefit-card {
  flex: 1 1 120px; /* flexible y adaptable */
  background: transparent;
  border: 1px solid #00ff80;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  transition: transform 0.2s ease;
  box-shadow: 0 0 12px rgba(0, 255, 128, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.benefit-card:hover {
  transform: scale(1.05);
}

.benefit-card .icon {
  font-size: 1.8rem;
  margin: 0;
}

.benefit-card h4 {
  font-size: 20px;
  margin: 0;
}

.benefit-card p {
  font-size: 14px;
  margin: 0;
  color: #aaa;
}

.about-card {
  background: transparent;
  border: 1px solid #00ff80;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(0, 255, 128, 0.2);
  text-align: left;
  overflow-wrap: break-word; /* evita desbordes de palabras largas */
  box-sizing: border-box;
}

/* ===== Responsive móviles ===== */
@media (max-width: 600px) {
  #aboutModal {
    width: 90%;
    padding: 20px;
    max-height: 85vh;
    scrollbar-width: thin; /* scroll visible en móviles */
  }

  #aboutModal::-webkit-scrollbar {
    width: 6px;
  }

  #aboutModal::-webkit-scrollbar-thumb {
    background-color: rgba(0,255,128,0.4);
    border-radius: 3px;
  }

  #aboutModal::-webkit-scrollbar-track {
    background: transparent;
  }

  #aboutModal h3 {
    font-size: 18px;
  }

  #aboutModal p {
    font-size: 14px;
    margin-bottom: 15px;
  }

  .about-card {
    padding: 15px;
    font-size: 14px;
  }

  .benefits-grid {
    flex-direction: column;
    gap: 12px;
  }

  .benefit-card {
    width: 100%;
    flex: 1 1 auto;
    padding: 12px;
  }

  .benefit-card h4 {
    font-size: 16px;
  }

  .benefit-card p {
    font-size: 12px;
  }

  .benefit-card .icon {
    font-size: 1.5rem;
  }
}
