/* ═══════════════════════════════════════════
   VisionarIAs — Aura Mínima
   Base crema, tinta navy, morado solo como luz
   ═══════════════════════════════════════════ */

:root {
  --bg: #FBFAF8;
  --surface: #FFFFFF;
  --ink: #191F3E;
  --ink-soft: #5C6180;
  --purple: #5341DB;
  --lavanda: #CDC7FF;
  --lavanda-soft: rgba(205, 199, 255, 0.35);
  --border: rgba(25, 31, 62, 0.08);

  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "Figtree", sans-serif;

  --max: 1120px;
  --pad: clamp(1.25rem, 5vw, 3rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-weight: 800;
}

h2 { font-size: clamp(2rem, 5.5vw, 3.5rem); }

/* Los <br> de titulares solo aplican en pantallas anchas */
h2 br { display: none; }

@media (min-width: 720px) {
  h2 br { display: inline; }
}

em.grad {
  font-style: normal;
  background: linear-gradient(100deg, var(--purple) 20%, #8B7CF0 60%, var(--lavanda) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  border-radius: 4px;
}

.sparkle {
  color: var(--purple);
  display: inline-block;
  font-style: normal;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

/* ══════════ Aura ambiental ══════════ */
.aura {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.aura__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.aura__orb--a {
  width: 55vmax; height: 55vmax;
  top: -20vmax; right: -18vmax;
  background: radial-gradient(circle, rgba(205, 199, 255, 0.55), transparent 65%);
}

.aura__orb--b {
  width: 40vmax; height: 40vmax;
  bottom: -15vmax; left: -12vmax;
  background: radial-gradient(circle, rgba(83, 65, 219, 0.14), transparent 65%);
}

main, .footer { position: relative; z-index: 1; }

/* ══════════ Nav ══════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.is-scrolled {
  background: rgba(251, 250, 248, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}

.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__logo { flex-shrink: 0; }
.nav__logo img { width: 121px; }

.nav__links {
  display: none;
  gap: 2rem;
}

.nav__links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.nav__links a:hover { color: var(--purple); }

@media (min-width: 720px) {
  .nav__links { display: flex; }
}

/* ══════════ Botones ══════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85rem 1.75rem;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, background 0.25s ease;
}

.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(83, 65, 219, 0.35);
}

.btn--primary:hover {
  background: var(--purple);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -8px rgba(83, 65, 219, 0.5);
}

.btn--ghost {
  color: var(--ink);
  border: 1.5px solid rgba(25, 31, 62, 0.18);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--purple);
  color: var(--purple);
  transform: translateY(-2px);
}

.btn--nav { padding: 0.6rem 1.35rem; font-size: 0.9rem; }

.btn--big { padding: 1.05rem 2.5rem; font-size: 1.1rem; }

/* ══════════ Hero ══════════ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 7rem var(--pad) 4rem;
  max-width: var(--max);
  margin: 0 auto;
}

.hero__eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}

@media (min-width: 720px) {
  .hero__eyebrow { font-size: 0.85rem; letter-spacing: 0.16em; }
}

.hero__title {
  font-size: clamp(2.6rem, 8.5vw, 6rem);
  margin-bottom: 1.75rem;
}

.hero__line { display: block; }

.hero__sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero__scroll {
  display: none;
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero { position: relative; }

@media (min-width: 720px) and (min-height: 700px) {
  .hero__scroll { display: flex; }
  .hero { padding-bottom: 9rem; }
}

.hero__scroll-line {
  width: 1.5px;
  height: 3rem;
  background: linear-gradient(to bottom, var(--purple), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ══════════ Manifiesto ══════════ */
.manifesto {
  max-width: 56rem;
  margin: 0 auto;
  padding: clamp(6rem, 14vh, 10rem) var(--pad);
}

.manifesto__label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.manifesto__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.75rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.manifesto__text .w {
  opacity: 0.12;
  transition: opacity 0.35s ease;
}

.manifesto__text .w.is-on { opacity: 1; }

/* ══════════ Marquee ══════════ */
.marquee {
  overflow: hidden;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.5);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee__track span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  white-space: nowrap;
  color: var(--ink-soft);
}

.marquee__track i {
  font-style: normal;
  color: var(--lavanda);
  font-size: 0.9rem;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ══════════ Pilares (scrollytelling) ══════════ */
.pillars {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5rem, 12vh, 9rem) var(--pad);
}

@media (min-width: 900px) {
  .pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
  }

  .pillars__sticky {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
  }
}

.pillars__intro h2 { margin-top: 0.5rem; }

.pillars__visual {
  position: relative;
  width: clamp(180px, 22vw, 280px);
  aspect-ratio: 1;
  display: none;
}

@media (min-width: 900px) {
  .pillars__visual { display: block; }
}

.pillars__orb {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--lavanda), var(--purple) 85%);
  filter: blur(2px);
  opacity: 0.85;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), border-radius 0.9s ease;
}

.pillars__orb::after {
  content: "";
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--lavanda-soft), transparent 70%);
  z-index: -1;
}

.pillars__num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.5rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.pillars__steps {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 8vh, 5rem);
  padding-top: clamp(2rem, 6vh, 4rem);
}

@media (min-width: 900px) {
  .pillars__steps {
    padding-top: 12vh;
    padding-bottom: 18vh;
    gap: 16vh;
  }
}

.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px -25px rgba(25, 31, 62, 0.18);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.pillar__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--lavanda-soft);
}

.pillar__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pillar__body {
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
}

.pillar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.pillar h3 {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  margin-bottom: 0.85rem;
}

.pillar p { color: var(--ink-soft); }

.pillar__step {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--purple);
  padding: 0.25rem 0.8rem;
  border: 1px solid var(--lavanda);
  border-radius: 999px;
  background: var(--lavanda-soft);
}

.pillar__icon {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  background: var(--lavanda-soft);
  color: var(--purple);
}

.pillar__icon svg { width: 1.5rem; height: 1.5rem; }

@media (min-width: 900px) {
  .pillar { opacity: 0.35; transform: scale(0.97); }
  .pillar.is-active { opacity: 1; transform: scale(1); }
}

/* ══════════ Comunidad ══════════ */
.community {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5rem, 12vh, 9rem) var(--pad);
  text-align: center;
}

.community .section-label { justify-content: center; }

.community__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 3.5rem;
  text-align: left;
}

@media (min-width: 640px) {
  .community__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1000px) {
  .community__grid { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--lavanda);
  box-shadow: 0 24px 48px -20px rgba(83, 65, 219, 0.25);
}

.card__icon {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: var(--lavanda-soft);
  color: var(--purple);
  font-size: 1.1rem;
  margin-bottom: 1.1rem;
}

.card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }

.card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ══════════ CTA ══════════ */
.cta {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(6rem, 14vh, 10rem) var(--pad);
  text-align: center;
}

.cta .section-label { justify-content: center; }

.cta__glow {
  position: absolute;
  top: 50%; left: 50%;
  width: min(70vw, 700px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(205, 199, 255, 0.5), rgba(83, 65, 219, 0.06) 50%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

.cta__sub {
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 30rem;
  margin: 1.25rem auto 2.5rem;
}

/* ══════════ Footer ══════════ */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  border-radius: 32px 32px 0 0;
  overflow: hidden;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: -40%; left: 50%;
  width: 60vw;
  aspect-ratio: 2;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(83, 65, 219, 0.5), transparent 65%);
  filter: blur(50px);
  pointer-events: none;
}

.footer__inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vh, 5.5rem) var(--pad) 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer__tag {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: #fff;
}

.footer__links {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__links a {
  text-decoration: none;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.footer__links a:hover { color: var(--lavanda); }

.footer__copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 1rem;
}

/* ══════════ Logos ══════════ */
.logo-svg { display: block; height: auto; }

.nav__logo .logo-svg { width: 121px; }

/* ══════════ Modal de unión ══════════ */
.join-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(92vw, 420px);
  max-height: 90svh;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 2.5rem 2rem 2rem;
  background: var(--bg);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 40px 90px -30px rgba(25, 31, 62, 0.45);
}

.join-modal::backdrop {
  background: rgba(25, 31, 62, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.join-modal[open] { animation: modalIn 0.35s cubic-bezier(0.22, 1, 0.36, 1); }

@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.join-modal__label { justify-content: center; margin-bottom: 0.75rem; }

.join-modal h3 {
  font-size: clamp(1.35rem, 4vw, 1.6rem);
  margin-bottom: 0.6rem;
}

.join-modal__sub {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.join-modal__qr {
  width: min(70vw, 260px);
  aspect-ratio: 1 / 1.15;
  object-fit: cover;
  object-position: 50% 42%;
  border-radius: 20px;
  border: 1px solid var(--border);
  margin: 0 auto 1.5rem;
  display: block;
}

.join-modal__link { width: 100%; }

.join-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: var(--lavanda-soft);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.join-modal__close:hover { background: var(--lavanda); color: var(--purple); }

.join-modal__close svg { width: 1.1rem; height: 1.1rem; }

body.modal-open { overflow: hidden; }

/* ══════════ Reveals ══════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════ Modo estático (QA con ?static=1) ══════════ */
html.force-static .reveal { opacity: 1; transform: none; transition: none; }
html.force-static .pillar { opacity: 1; transform: none; }
html.force-static .manifesto__text .w { opacity: 1; }
html.force-static .marquee__track { animation: none; }
html.force-static .hero__scroll-line { animation: none; }

/* ══════════ Reduced motion ══════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal,
  .pillar,
  .aura__orb,
  .pillars__orb,
  .btn,
  .card {
    transition: none !important;
  }

  .reveal { opacity: 1; transform: none; }
  .pillar { opacity: 1 !important; transform: none !important; }
  .manifesto__text .w { opacity: 1; }
  .marquee__track { animation: none; }
  .hero__scroll-line { animation: none; }
  .join-modal[open] { animation: none; }
}
