/* ============================================================
   Design tokens — retheme the whole site from here.
   ============================================================ */
:root {
  --brand-primary: #4c2fbf;
  --brand-primary-dark: #3a2299;
  --brand-ink: #2b2350;
  --brand-heading: #4c2fbf;
  --text: #4c4c4c;
  --text-strong: #0f1729;
  --bg: #ffffff;
  --hero-from: #efeafc;
  --hero-to: #cbbef0;

  --font-heading: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --container: 1200px;
  --radius: 999px;
}

/* ============================================================
   Base
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--brand-heading);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--brand-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-primary-dark);
}
.btn-outline {
  background: #fff;
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}
.btn-lg {
  padding: 0.95rem 2.2rem;
  font-size: 1.05rem;
}

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
}
.nav-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 72px;
  max-width: 1400px;
  margin-inline: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand img {
  height: 32px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.75rem;
  margin-inline: auto;
}
.main-nav a {
  font-size: 1rem;
  color: var(--text-strong);
  font-weight: 400;
  white-space: nowrap;
}
.main-nav a:hover {
  color: var(--brand-primary);
}
.nav-ctas {
  display: flex;
  gap: 0.75rem;
  margin-left: auto;
}

@media (max-width: 900px) {
  .nav-ctas {
    display: none;
  }
  .main-nav {
    margin-inline: 0;
  }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  padding-block: 4rem 5rem;
}
.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.29;
  max-width: 512px;
}
.hero .lead {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  color: #4c4c4c;
  max-width: 34ch;
  margin-bottom: 2rem;
}
.hero-media {
  position: relative;
  width: 100%;
  max-width: 564px;
  margin-inline: auto;
  aspect-ratio: 564 / 500;
}
.hero-phone {
  position: absolute;
  left: 21.6%;
  top: 5.4%;
  width: 49.6%;
  filter: drop-shadow(0 30px 60px rgba(76, 47, 191, 0.25));
  z-index: 2;
}
.hero-person {
  position: absolute;
  border-radius: 16px;
  box-shadow: 0 16px 30px rgba(76, 47, 191, 0.18);
}
.hero-person--tr {
  left: 64.9%;
  top: 4%;
  width: 30%;
  z-index: 1;
}
.hero-person--ml {
  left: 8.3%;
  top: 46%;
  width: 22.9%;
  z-index: 3;
}
.hero-person--br {
  left: 63.7%;
  top: 55.2%;
  width: 22.9%;
  z-index: 3;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding-block: 2.5rem 3rem;
  }
  .hero h1,
  .hero .lead {
    max-width: none;
  }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  padding-block: 3.5rem 2rem;
  border-top: 1px solid #ece9f6;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.footer-col h3 {
  font-size: 1.1rem;
  color: var(--brand-heading);
  margin-bottom: 1rem;
}
.footer-col p {
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.footer-links a:hover {
  color: var(--brand-primary);
}
.footer-reg {
  height: 56px;
  width: auto;
}
.socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}
.social {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
}
.social:hover {
  background: var(--brand-primary-dark);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #ece9f6;
  font-size: 0.9rem;
}
.footer-legal .copy {
  margin-left: auto;
  color: #9ca3af;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Shared section headings
   ============================================================ */
.section-title {
  text-align: center;
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  font-weight: 700;
  color: var(--brand-heading);
}
.section-sub {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  max-width: 46ch;
  margin: 0 auto 2.5rem;
  color: var(--text);
}
.eyebrow {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 0.5rem;
}

/* ============================================================
   Clients marquee
   ============================================================ */
.marquee-section {
  padding-block: 3rem;
}
.marquee-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 2rem;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  animation: marquee-scroll 45s linear infinite;
}
.marquee-track img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; }
}

/* ============================================================
   Section wave dividers
   ============================================================ */
.section-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 7vw;
  min-height: 40px;
  max-height: 120px;
  display: block;
  pointer-events: none;
  z-index: 1;
}
.section-wave--hump {
  margin-top: -1px;
}

/* ============================================================
   Desafíos — purple band, checklist layout (flows into Historia)
   ============================================================ */
.desafios {
  position: relative;
  padding-block: 8vw 4rem;
  background: var(--brand-primary);
  color: #fff;
  overflow: hidden;
}
.desafios .container {
  position: relative;
  z-index: 2;
}
.desafios-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}
.desafios-lead h2 {
  color: #fff;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 600;
  max-width: 15ch;
}
.gauge {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.gauge-ring {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    conic-gradient(#fff calc(var(--gauge-value) * 1%), rgba(255, 255, 255, 0.22) 0);
}
.gauge-ring::before {
  content: "";
  position: absolute;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--brand-primary);
}
.gauge-number {
  position: relative;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
}
.gauge-label {
  font-family: var(--font-heading);
  font-weight: 600;
  color: #fff;
  font-size: 1.2rem;
}
.beneficios-pill {
  display: inline-flex;
  align-items: center;
  margin-top: 2rem;
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.4rem 0.35rem 1.1rem;
  font-family: var(--font-heading);
  font-weight: 600;
}
.pill-brand {
  color: var(--brand-heading);
}
.pill-plus {
  margin-left: 0.5rem;
  background: var(--brand-primary);
  color: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
}
.benefit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}
.benefit-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.benefit-check {
  flex: none;
  width: 28px;
  height: 28px;
  margin-top: 0.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
}
.benefit-item h3 {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}
.benefit-item p {
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin: 0;
}

/* ============================================================
   Historia — same purple band, continues from Desafíos
   ============================================================ */
.historia {
  padding-block: 3rem 5rem;
  background: var(--brand-primary);
  color: #fff;
  text-align: center;
}
.historia h2 {
  color: #fff;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}
.historia-sub {
  max-width: 52ch;
  margin: 0 auto 2.5rem;
  color: rgba(255, 255, 255, 0.85);
}
.video-frame {
  aspect-ratio: 16 / 9;
  max-width: 900px;
  margin: 0 auto 3rem;
  border-radius: 20px;
  background: #000;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.historia-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.stat-value {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem);
}
.stat-label {
  color: rgba(255, 255, 255, 0.85);
}

/* ============================================================
   Tabs (products + testimonials share this)
   ============================================================ */
.tablist {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.tablist-center {
  justify-content: center;
}
.tab {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  border: 2px solid #e5e0f5;
  background: #fff;
  color: var(--text-strong);
  cursor: pointer;
  transition: all 0.15s ease;
}
.tab[aria-selected="true"] {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}
.tabpanel[hidden] {
  display: none;
}

/* ============================================================
   Beneficios / product tabs
   ============================================================ */
.beneficios {
  position: relative;
  padding-block: calc(7vw + 2.5rem) 4.5rem;
  overflow: hidden;
}
.beneficios .container {
  position: relative;
  z-index: 2;
}
.beneficios-title {
  text-align: center;
  max-width: 20ch;
  margin: 0 auto 2.5rem;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}
.product-tabs .tablist {
  justify-content: center;
}
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.product-subtitle {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--brand-primary);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}
.product-features {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 2rem;
  display: grid;
  gap: 0.6rem;
}
.product-features li,
.check-list li {
  position: relative;
  padding-left: 1.75rem;
}
.product-features li::before,
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.2rem;
  height: 1.2rem;
  color: var(--brand-primary);
  font-weight: 700;
}
.product-media video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(76, 47, 191, 0.18);
  background: #efeafc;
}

/* ============================================================
   Dashboard
   ============================================================ */
.dashboard {
  padding-block: 5rem;
  background: var(--brand-primary);
  color: #fff;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.dashboard-media {
  position: relative;
  max-width: 560px;
  margin-inline: auto;
}
.dashboard-media img {
  display: block;
  width: 100%;
}
.dashboard-base {
  margin-top: -1px;
}
.dashboard-copy h2 {
  color: #fff;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
}
.dashboard-copy .lead {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.9rem;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.1rem;
  color: #fff;
}
.check-list li::before {
  color: #fff !important;
}

/* ============================================================
   Testimonials
   ============================================================ */
.testimonios {
  padding-block: 4.5rem;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: #fff;
  border: 1px solid #ece9f6;
  border-radius: 18px;
  padding: 1.8rem;
  box-shadow: 0 8px 24px rgba(76, 47, 191, 0.05);
}
.testimonial-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.stars {
  color: #f5b301;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}
.testimonial-text {
  color: var(--text);
  font-size: 0.95rem;
}
.testimonial-author {
  margin-top: 1.25rem;
}
.author-name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-strong);
}
.author-role {
  font-size: 0.85rem;
  color: #9ca3af;
}

/* ============================================================
   Blog
   ============================================================ */
.blog {
  padding-block: 4.5rem;
  background: #f6f3fe;
}
.blog-fallback {
  text-align: center;
  color: #9ca3af;
}
.blog-cta {
  text-align: center;
  margin-top: 2rem;
}

/* ============================================================
   Saber más
   ============================================================ */
.saber-mas {
  padding-block: 4.5rem;
}
.saber-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: center;
}
.saber-title {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}
.saber-title .highlight {
  color: var(--brand-primary);
}
.saber-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
.saber-links a {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 1.4rem;
  border: 1px solid #ece9f6;
  border-radius: 14px;
  background: #fff;
  transition: all 0.15s ease;
}
.saber-links a:hover {
  border-color: var(--brand-primary);
  transform: translateX(4px);
}
.saber-num {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--brand-primary);
  opacity: 0.5;
}
.saber-label {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-strong);
}
.saber-arrow {
  margin-left: auto;
  color: var(--brand-primary);
}

/* ============================================================
   Referir form
   ============================================================ */
.referir {
  padding-block: 4.5rem;
  background: linear-gradient(180deg, #f6f3fe, #ece7fb);
}
.referir-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.referir-form-wrap h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  margin-bottom: 1.5rem;
}
.referir-form {
  display: grid;
  gap: 1rem;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #d9d2f2;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
}
.field:focus {
  outline: 2px solid var(--brand-primary);
  border-color: transparent;
}
textarea.field {
  resize: vertical;
}
.consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text);
}
.consent input {
  margin-top: 0.2rem;
}
.referir-media img {
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(76, 47, 191, 0.18);
}
.closing-line {
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  color: var(--brand-heading);
  max-width: 20ch;
  margin: 3.5rem auto 0;
}

/* ============================================================
   Responsive collapse for the two-column sections
   ============================================================ */
@media (max-width: 900px) {
  .desafios-grid,
  .product-grid,
  .dashboard-grid,
  .saber-grid,
  .referir-grid {
    grid-template-columns: 1fr;
  }
  .testimonial-grid,
  .historia-stats {
    grid-template-columns: 1fr;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 561px) and (max-width: 900px) {
  .testimonial-grid {
    grid-template-columns: 1fr 1fr;
  }
}
