:root {
  --navy: #0D1240;
  --blue: #0057FF;
  --blue-mid: #3D7BFF;
  --teal: #00C4B8;
  --mint: #23FBC5;
  --text: #353C6B;
  --text-strong: #1B2150;
  --muted: #6B7099;
  --bg-soft: #F4F5F7;
  --bg-blue: #E8EEFF;
  --border: #E2E5EC;
  --brand-gradient: linear-gradient(135deg, #0D1240 0%, #0057FF 58%, #00C4B8 100%);
  --container: 640px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--navy);
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  overflow-x: hidden;
  line-height: 1.5;
}

::selection {
  background: var(--blue);
  color: #fff;
}

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

a {
  color: inherit;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 24px;
  width: 100%;
}

/* ---------- BOTONES ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 15px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 87, 255, .32);
}

.btn--primary:hover {
  background: #0044CC;
}

.btn--white {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 12px 30px rgba(13, 18, 64, .28);
}

.btn--white:hover {
  background: var(--bg-blue);
}

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

.btn--outline:hover {
  background: rgba(255, 255, 255, .1);
}

.btn--block {
  width: 100%;
  height: 56px;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: var(--navy);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url("assets/CTA-header.jpg") center 60% / cover no-repeat;
  opacity: .55;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, #0D1240 6%, rgba(13, 18, 64, .88) 48%, rgba(13, 18, 64, .42) 100%);
}

.hero__inner {
  position: relative;
  padding-block: 28px 48px;
}

.hero__logo {
  height: 40px;
  width: auto;
  margin: 8px 0 32px;
}

.hero__title {
  color: #fff;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.1;
  text-wrap: balance;
  margin: 0 0 24px;
  font-size: clamp(2rem, 6vw, 3.4rem);
  max-width: 16em;
}

.hero__points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, .84);
  margin: 0 0 36px;
  max-width: 30em;
}

.hero__points strong {
  color: #fff;
  font-weight: 500;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- SECCIONES GENERALES ---------- */
.section {
  padding: 56px 0;
}

.section--soft {
  background: var(--bg-soft);
}

.section--dark {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}

.section-head {
  text-align: center;
  max-width: 40em;
  margin: 0 auto 40px;
}

.section-head--wide {
  max-width: 46em;
}

.h2 {
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.14;
  text-wrap: balance;
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 5vw, 2.6rem);
}

.lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

.section--dark .lead {
  color: rgba(255, 255, 255, .78);
}

/* ---------- CÓMO FUNCIONA ---------- */
.process-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.process-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 6px 18px rgba(13, 18, 64, .06);
}

.process-card--highlight {
  background: var(--blue);
  color: #fff;
  border: 0;
  box-shadow: 0 12px 30px rgba(0, 87, 255, .28);
}

.process-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.process-card__num {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--bg-blue);
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.process-card--highlight .process-card__num {
  background: rgba(255, 255, 255, .2);
  color: #fff;
}

.process-card__rule {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(to right, #CCD1DD 0 4px, transparent 4px 8px);
}

.process-card__title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
}

.process-card__desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
}

.process-card--highlight .process-card__desc {
  color: rgba(255, 255, 255, .88);
}

/* ---------- BENEFICIOS ---------- */
.benefits {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.benefits__intro .btn {
  margin-top: 8px;
}

.benefits__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

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

.benefit-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.benefit-card__title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
}

.benefit-card__desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  margin: 0;
}

/* ---------- AUDIENCIA ---------- */
.audience__bg {
  position: absolute;
  inset: 0;
  background: url("assets/CTA-footer.jpg") center / cover no-repeat;
  opacity: .18;
}

.audience__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #0D1240 20%, rgba(13, 18, 64, .82) 100%);
}

.audience__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.audience-tag {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.audience-tag svg {
  color: var(--mint);
}

.audience-tag span {
  font-size: 13.5px;
  font-weight: 500;
}

.section--dark .section-head .h2 {
  color: #fff;
}

/* ---------- SHOWCASE (portal ilustrativo) ---------- */
.showcase {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 40px;
}

.mock-card {
  border-radius: 20px;
  padding: 24px;
}

.mock-card--dark {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 18px 48px rgba(13, 18, 64, .22);
}

.mock-card--light {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 18px 48px rgba(13, 18, 64, .1);
}

.mock-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.mock-card__head-title {
  font-size: 15px;
  font-weight: 600;
}

.mock-card__stats {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.mock-stat {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  padding: 15px;
}

.mock-stat__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
  margin-bottom: 6px;
}

.mock-stat__value {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.mock-stat__value--mint {
  color: var(--mint);
}

.mock-history {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  padding: 16px;
}

.mock-history__title {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}

.mock-history__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
}

.mock-history__row + .mock-history__row {
  margin-top: 12px;
}

.mock-history__row span:first-child {
  color: rgba(255, 255, 255, .72);
}

.mock-history__row span:last-child {
  font-weight: 600;
  color: var(--mint);
}

.mock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 8px 13px;
  border-radius: 999px;
}

.mock-deal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 14px 16px;
}

.mock-deal + .mock-deal {
  margin-top: 8px;
}

.mock-deal__name {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}

.mock-deal__meta {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

.mock-deal__status {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--blue);
  background: var(--bg-blue);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.mock-deal__status--filled {
  color: #fff;
  background: var(--blue);
}

.mock-card__note {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 16px;
}

/* ---------- STATS 4 COL ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 20px;
}

.stat-card__value {
  font-size: 32px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: -.02em;
  line-height: 1;
}

.stat-card__label {
  font-size: 14.5px;
  font-weight: 600;
  margin-top: 12px;
}

.stat-card__sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-soft);
  border-radius: 16px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.faq-question span {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}

.faq-question svg {
  color: var(--blue);
  flex-shrink: 0;
  transition: transform .18s ease;
}

.faq-item.is-open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 20px;
}

.faq-item.is-open .faq-answer {
  display: block;
}

.faq-answer p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

/* ---------- CTA FINAL ---------- */
.cta-final {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  text-align: center;
}

.cta-final__bg {
  position: absolute;
  inset: 0;
  background: url("assets/CTA-footer.jpg") center / cover no-repeat;
  opacity: .3;
}

.cta-final__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 18, 64, .94) 0%, rgba(0, 87, 255, .72) 62%, rgba(0, 196, 184, .6) 100%);
}

.cta-final__inner {
  position: relative;
  padding-block: 56px;
}

.cta-final__title {
  color: #fff;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.015em;
  text-wrap: balance;
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
}

.cta-final__lead {
  color: rgba(255, 255, 255, .86);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 auto 28px;
  max-width: 34em;
}

/* ---------- FORMULARIO ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px 22px;
  box-shadow: 0 18px 48px rgba(13, 18, 64, .1);
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field span {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.form-field input,
.form-field select {
  height: 50px;
  padding: 0 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--navy);
  background: #fff;
  border: 1px solid #CCD1DD;
  border-radius: 12px;
  width: 100%;
  appearance: none;
}

.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20' fill='none' stroke='%236B7099' stroke-width='1.6'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.form-field input:focus-visible,
.form-field select:focus-visible {
  outline: 2px solid #2F73FF;
  outline-offset: 1px;
}

::placeholder {
  color: #6B7099;
}

.form-upload {
  height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px dashed #CCD1DD;
  border-radius: 12px;
  background: var(--bg-soft);
  cursor: pointer;
}

.form-upload span {
  font-size: 13.5px;
  color: var(--muted);
  flex: 1;
  font-weight: 400;
}

.form-upload input[type="file"] {
  display: none;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 22px 0 20px;
  cursor: pointer;
}

.form-consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--blue);
  flex-shrink: 0;
}

.form-consent span {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text);
}

.form-consent a {
  color: var(--blue);
  font-weight: 500;
}

.form-error {
  background: #FDEBEC;
  color: #C42B3B;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0 0 20px;
}

.form-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

/* ---------- ÉXITO ---------- */
.success-card {
  background: #fff;
  border: 1.5px solid var(--blue);
  border-radius: 22px;
  padding: 40px 26px;
  box-shadow: 0 18px 48px rgba(13, 18, 64, .1);
  text-align: center;
}

.success-card__icon {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: var(--bg-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.success-card__icon svg {
  color: var(--blue);
}

.success-card__title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 0 0 14px;
}

.success-card__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  margin: 0 auto 22px;
  max-width: 38em;
}

.success-card__hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 13px;
  color: var(--text);
  flex-wrap: wrap;
  justify-content: center;
}

.success-card__hint a {
  color: var(--blue);
  font-weight: 500;
}

.success-card__reset {
  margin-top: 24px;
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  font-family: inherit;
}

[hidden] {
  display: none !important;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--navy);
  color: #fff;
}

.footer__top {
  padding-block: 44px 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

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

.footer__brand img {
  height: 24px;
  width: auto;
}

.footer__brand .footer__mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.footer__tagline {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .6);
  margin: 12px 0 0;
  max-width: 26em;
}

.footer__label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mint);
  margin: 0 0 10px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__links a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
}

.footer__links a:hover {
  color: #fff;
}

.footer__bottom {
  padding-block: 20px 28px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer__legal {
  font-size: 12px;
  color: rgba(255, 255, 255, .5);
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer__social a {
  color: rgba(255, 255, 255, .6);
}

.footer__social a:hover {
  color: #fff;
}

.footer__powered {
  text-align: center;
  padding: 0 0 24px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--mint);
}

/* ---------- DESKTOP ---------- */
@media (min-width: 480px) {
  .benefits__grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

@media (min-width: 720px) {
  :root {
    --container: 960px;
  }

  .section {
    padding: 80px 0;
  }

  .hero__inner {
    padding-block: 56px 88px;
  }

  .process-grid {
    flex-direction: row;
  }

  .process-card {
    flex: 1;
  }

  .benefits {
    flex-direction: row;
    align-items: flex-start;
    gap: 56px;
  }

  .benefits__intro {
    flex: 0 0 34%;
  }

  .benefits__grid {
    flex: 1;
  }

  .audience__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .showcase {
    flex-direction: row;
    align-items: stretch;
  }

  .mock-card {
    flex: 1;
  }

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

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

  .footer__top {
    flex-direction: row;
    justify-content: space-between;
    padding-block: 64px 32px;
  }

  .footer__nav {
    display: flex;
    gap: 64px;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1080px) {
  :root {
    --container: 1200px;
  }

  .audience__grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

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