:root {
  --ink: #1a0d3d;
  --purple: #2c1a6b;
  --purple-mid: #3d2480;
  --purple-soft: #5b3cb0;
  --yellow: #f4e400;
  --yellow-soft: #fff4a3;
  --magenta: #e2187c;
  --magenta-deep: #b81064;
  --green: #3da83a;
  --green-deep: #2a7a2a;
  --cream: #fbf7ee;
  --cream-2: #f3ece0;
  --white: #ffffff;
  --muted: #6b6480;
  --line: rgba(44, 26, 107, 0.12);
  --shadow: 0 24px 60px rgba(26, 13, 61, 0.16);
  --radius: 22px;
  --max: 1180px;
  --nav-h: 78px;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--magenta);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, var(--yellow) 0 42%, var(--purple) 43% 100%);
  box-shadow: 0 0 0 3px rgba(244, 228, 0, 0.28);
}

h1,
h2,
h3,
.display {
  font-family: var(--display);
  font-optical-sizing: auto;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 58ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  font-weight: 650;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-magenta {
  background: var(--magenta);
  color: #fff;
  box-shadow: 0 12px 28px rgba(226, 24, 124, 0.28);
}

.btn-magenta:hover {
  background: var(--magenta-deep);
}

.btn-yellow {
  background: var(--yellow);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--purple);
  border: 1.5px solid var(--line);
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(251, 247, 238, 0.86);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img,
.brand-lockup {
  height: 56px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-size: 0.98rem;
  color: var(--purple);
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--purple);
}

.nav-links a:hover {
  color: var(--magenta);
}

.nav-wa {
  display: none;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  color: var(--purple);
  cursor: pointer;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--purple);
  position: relative;
}

.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-btn span::before {
  top: -7px;
}

.menu-btn span::after {
  top: 7px;
}

/* HERO */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: end start;
  overflow: hidden;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 40%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 13, 61, 0.15) 0%, rgba(26, 13, 61, 0.35) 38%, rgba(18, 8, 42, 0.88) 100%),
    radial-gradient(circle at 80% 10%, rgba(244, 228, 0, 0.22), transparent 28%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 0 72px;
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.hero h1 {
  font-size: clamp(2.7rem, 7vw, 6.2rem);
  max-width: 14ch;
  margin: 16px 0 18px;
}

.hero p {
  max-width: 54ch;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.82rem;
}

/* STATS */
.stats {
  background: var(--purple);
  color: #fff;
  padding: 28px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat {
  padding: 8px 8px 8px 0;
  border-left: 3px solid var(--yellow);
  padding-left: 16px;
}

.stat b {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

/* SECTIONS */
section {
  padding: 96px 0;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: end;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(2.1rem, 4vw, 3.6rem);
}

/* PROBLEM */
.problem {
  background: var(--cream);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.split img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 28px;
}

.problem-list {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.problem-item {
  background: #fff;
  border-radius: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
}

.problem-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--purple);
}

.marca {
  background: #fff;
  padding-top: 72px;
}

.marca-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.marca-grid img {
  width: 100%;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--cream);
}

.marca-list {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.marca-list li {
  list-style: none;
  padding: 12px 14px;
  background: var(--cream);
  border-radius: 14px;
  font-size: 0.96rem;
}

.partner-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.partner-row span {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--purple);
}

/* PILLARS */
.pillars {
  background: #fff;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--line);
  min-height: 280px;
}

.card .num {
  font-family: var(--display);
  font-size: 2.4rem;
  color: var(--magenta);
}

.card h3 {
  font-size: 1.55rem;
  margin: 8px 0 10px;
}

/* PROCESS */
.process {
  background:
    radial-gradient(circle at 100% 0%, rgba(244, 228, 0, 0.18), transparent 28%),
    var(--ink);
  color: #fff;
}

.process .eyebrow {
  color: var(--yellow);
}

.process .lead {
  color: rgba(255, 255, 255, 0.72);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 22px;
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  margin-bottom: 16px;
}

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

.step p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.96rem;
}

/* SERVICES */
.services .service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 56px;
}

.services .service:nth-child(even) {
  direction: rtl;
}

.services .service:nth-child(even) > * {
  direction: ltr;
}

.services .service img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 26px;
}

.services h3 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.tag {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  margin-bottom: 12px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 18px;
}

/* IMPACT */
.impact {
  background: var(--yellow);
  color: var(--ink);
}

.impact .eyebrow {
  color: var(--purple);
}

.impact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
}

.impact-big {
  background: var(--purple);
  color: #fff;
  border-radius: 28px;
  padding: 36px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.impact-big .n {
  font-family: var(--display);
  font-size: clamp(3.4rem, 8vw, 6.4rem);
  line-height: 0.9;
}

.impact-side {
  display: grid;
  gap: 16px;
}

.impact-side article {
  background: #fff;
  border-radius: 20px;
  padding: 22px;
}

.impact-side .n {
  font-family: var(--display);
  font-size: 2.2rem;
}

/* ALLIES */
.allies {
  background: #fff;
}

.ally-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.ally {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  background: var(--cream);
}

.ally h3 {
  font-size: 1.6rem;
  margin: 8px 0 10px;
}

/* BIOLOOP */
.bioloop {
  background:
    linear-gradient(180deg, #1a0d3d 0%, #2c1a6b 100%);
  color: #fff;
}

.bioloop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.feature-list li {
  list-style: none;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px 16px;
}

.phone {
  background: #0f0826;
  border-radius: 36px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.phone-screen {
  background: linear-gradient(180deg, #2c1a6b, #1a0d3d);
  border-radius: 26px;
  min-height: 460px;
  padding: 22px;
}

.kpi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.kpi div {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
}

.kpi b {
  display: block;
  font-size: 1.4rem;
  color: var(--yellow);
}

/* CONTACT */
.contact {
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
}

.contact-card,
form {
  background: #fff;
  border-radius: 26px;
  padding: 28px;
  border: 1px solid var(--line);
}

.contact-links {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.contact-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  color: var(--purple);
}

label {
  display: block;
  font-size: 0.86rem;
  font-weight: 650;
  margin: 12px 0 6px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  background: var(--cream);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* FOOTER */
footer {
  background: var(--ink);
  color: #fff;
  padding: 48px 0 24px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.foot-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.foot-brand img {
  width: 92px;
  height: auto;
  border-radius: 18px;
  object-fit: contain;
}

footer a:hover {
  color: var(--yellow);
}

.legal {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* MOBILE */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .menu-btn {
    display: grid;
    place-items: center;
  }

  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
  }

  .nav-wa {
    display: inline-flex;
    background: var(--magenta);
    color: #fff !important;
    border-radius: 999px;
    padding: 0.7rem 1rem;
  }

  .stats-grid,
  .cards,
  .steps,
  .section-head,
  .split,
  .marca-grid,
  .services .service,
  .services .service:nth-child(even),
  .impact-grid,
  .ally-grid,
  .bioloop-grid,
  .contact-grid,
  .foot-grid,
  .form-row,
  .gallery {
    grid-template-columns: 1fr;
    direction: ltr;
  }

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

  .nav-cta .btn {
    display: none;
  }

  .split img,
  .services .service img {
    height: 280px;
  }

  section {
    padding: 72px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn:hover {
    transform: none;
  }
}
