/* ============================================================
   EDULAB · Página de inicio
   ============================================================ */

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  padding: clamp(52px, 8vw, 104px) 0 clamp(60px, 8vw, 110px);
  overflow: hidden;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.hero__orb--a {
  width: 460px;
  height: 460px;
  top: -170px;
  left: -130px;
  background: rgba(120, 60, 180, 0.20);
  animation: floatY 11s ease-in-out infinite;
}

.hero__orb--b {
  width: 400px;
  height: 400px;
  bottom: -160px;
  right: -110px;
  background: rgba(0, 100, 220, 0.14);
  animation: floatY 14s ease-in-out infinite reverse;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
}

.hero__badge {
  margin-bottom: 22px;
  animation: fadeUp 0.7s var(--ease) both;
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  letter-spacing: -1.8px;
  margin-bottom: 20px;
  animation: fadeUp 0.7s var(--ease) 0.08s both;
}

.hero__title em {
  font-style: normal;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  color: var(--text-soft);
  max-width: 540px;
  margin-bottom: 32px;
  animation: fadeUp 0.7s var(--ease) 0.16s both;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
  animation: fadeUp 0.7s var(--ease) 0.24s both;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  animation: fadeUp 0.7s var(--ease) 0.32s both;
}

.hero__fact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.hero__fact i {
  color: var(--gold);
  font-size: 1.05rem;
}

/* ---------------- MOCKUP DE PORTADA ---------------- */
.hero__stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
  animation: fadeUp 0.9s var(--ease) 0.2s both;
}

.paper-mock {
  position: relative;
  width: min(340px, 84%);
  aspect-ratio: 1 / 1.414;
  background: #fff;
  border-radius: 6px;
  box-shadow: var(--sh-lg);
  padding: 8% 9%;
  color: #14142b;
  font-family: 'Times New Roman', serif;
  font-size: clamp(6px, 1.1vw, 8.5px);
  line-height: 1.5;
  text-align: center;
  transform: rotate(-3.2deg);
  transition: transform 0.6s var(--ease);
  animation: floatY 8s ease-in-out infinite;
}

.paper-mock:hover {
  transform: rotate(0deg) scale(1.03);
}

.paper-mock::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 62%);
  background-size: 220% 100%;
  animation: shimmer 5.5s linear infinite;
  pointer-events: none;
}

.paper-mock b {
  display: block;
  font-weight: 700;
}

.paper-mock .pm-crest {
  width: 26%;
  aspect-ratio: 1;
  margin: 7% auto;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #9754b2, #311355);
  opacity: 0.9;
}

.paper-mock .pm-title {
  margin: 9% 0 12%;
  font-size: 1.75em;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.paper-mock .pm-cols {
  display: flex;
  justify-content: space-between;
  text-align: left;
  gap: 8%;
}

.paper-mock .pm-cols u {
  font-weight: 700;
}

.paper-mock .pm-foot {
  margin-top: 16%;
}

.paper-mock .pm-line {
  height: 3px;
  border-radius: 3px;
  background: #dcdce8;
  margin: 4px 0;
}

.paper-mock .pm-line.short {
  width: 62%;
}

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: var(--r-md);
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid var(--stroke-strong);
  box-shadow: var(--sh-md);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.float-chip i {
  font-size: 1.15rem;
}

.float-chip--ai {
  top: 8%;
  right: -2%;
  animation: floatY 6s ease-in-out infinite;
}

.float-chip--ai i {
  color: var(--gold);
}

.float-chip--word {
  bottom: 16%;
  left: -4%;
  animation: floatY 7.5s ease-in-out 0.6s infinite;
}

.float-chip--word i {
  color: #2b7cd3;
}

.float-chip--pdf {
  bottom: 3%;
  right: 4%;
  animation: floatY 9s ease-in-out 1.2s infinite;
}

.float-chip--pdf i {
  color: #e2574c;
}

.hero__stage.is-paused .paper-mock,
.hero__stage.is-paused .float-chip { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .hero__stage, .paper-mock, .paper-mock::after, .float-chip { animation: none; }
}

/* ---------------- BANDA DE MÉTRICAS ---------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--stroke);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.stat {
  background: rgba(12, 12, 28, 0.65);
  padding: 26px 18px;
  text-align: center;
}

.stat__num {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
}

.stat__num span {
  color: var(--gold);
}

.stat__label {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* ---------------- PASOS ---------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step {
  position: relative;
  padding-top: 34px;
}

.step__num {
  position: absolute;
  top: -6px;
  left: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--glow);
}

.step h3 {
  font-size: 1.16rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-soft);
  font-size: 0.94rem;
}

/* ---------------- FEATURES (BENTO) ---------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.bento .card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bento .card--wide {
  grid-column: span 2;
}

.feat__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: rgba(120, 60, 180, 0.12);
  border: 1px solid rgba(120, 60, 180, 0.28);
  color: #c9a0f0;
}

.feat__icon.is-gold {
  background: rgba(232, 197, 71, 0.10);
  border-color: rgba(232, 197, 71, 0.26);
  color: var(--gold);
}

.feat__icon.is-blue {
  background: rgba(0, 123, 255, 0.10);
  border-color: rgba(0, 123, 255, 0.26);
  color: #7db6ff;
}

.feat h3 {
  font-size: 1.1rem;
}

.feat p {
  color: var(--text-soft);
  font-size: 0.93rem;
}

/* ---------------- INSTITUCIONES ---------------- */
.logos-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 34px;
}

.logos-strip img {
  height: 58px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(1.9);
  opacity: 0.6;
  transition: filter 0.35s ease, opacity 0.35s ease, transform 0.35s var(--ease);
}

.logos-strip img:hover {
  filter: none;
  opacity: 1;
  transform: translateY(-4px) scale(1.05);
}

.logos-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.86rem;
  margin-top: 22px;
}

/* ---------------- FAQ ---------------- */
.faq {
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.faq__item[open] {
  border-color: rgba(151, 84, 178, 0.5);
  background: var(--glass-strong);
}

.faq__q {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q i {
  color: var(--gold);
  font-size: 1.3rem;
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}

.faq__item[open] .faq__q i {
  transform: rotate(45deg);
}

.faq__a {
  padding: 0 22px 20px;
  color: var(--text-soft);
  font-size: 0.94rem;
}

/* ---------------- CTA FINAL ---------------- */
.cta-final {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--stroke-strong);
  background:
    radial-gradient(700px 320px at 20% 0%, rgba(120, 60, 180, 0.22), transparent 65%),
    radial-gradient(600px 300px at 85% 100%, rgba(232, 197, 71, 0.08), transparent 62%),
    rgba(12, 12, 28, 0.65);
  padding: clamp(38px, 6vw, 70px) clamp(24px, 5vw, 60px);
  text-align: center;
}

.cta-final h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  letter-spacing: -1px;
  margin-bottom: 14px;
}

.cta-final p {
  color: var(--text-soft);
  max-width: 520px;
  margin: 0 auto 28px;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1000px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__stage {
    order: -1;
    min-height: 340px;
    margin-bottom: 8px;
  }

  .paper-mock {
    width: min(270px, 62%);
  }

  .hero__lead {
    margin-inline: auto;
  }

  .hero__grid>div:first-child {
    text-align: center;
  }

  .hero__cta,
  .hero__facts {
    justify-content: center;
  }

  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bento .card--wide {
    grid-column: span 2;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .hero {
    padding-top: 34px;
  }

  .hero__stage {
    min-height: 300px;
    display: flex;
    margin-top: 12px;
  }

  .hero__orb { display: none; }
  .paper-mock::after { animation: none; }
  .paper-mock, .float-chip { will-change: transform; }

  .float-chip {
    font-size: 0.72rem;
    padding: 9px 13px;
    backdrop-filter: none;
    background: #101023;
  }

  .float-chip--ai {
    right: 0;
  }

  .float-chip--word {
    left: 0;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .bento .card--wide {
    grid-column: span 1;
  }

  .logos-strip img {
    height: 44px;
  }
}
