/* Hoja de estilos de la landing page de envait.
   Tokens, layout y secciones del mockup claro aprobado (2026-10-02).
   El sistema visual definitivo (tipografía alternativa, logo magenta, efectos) llega en LP-2. */

/* ── TOKENS ── */
:root {
  --bg:       #ffffff;
  --bg-2:     #F4F2FC;
  --bg-hero:  #EDE9FF;
  --bg-plum:  #2C1228;
  --bg-deep:  #200D1C;
  --fg:       #1A0F18;
  --fg-muted: #6A5868;
  --border:   #E2DDF0;
  --magenta:     #C9116F;
  --magenta-rgb: 201, 17, 111;
  --hot:         #E0147F;
  --plum:     #5A2A4F;
  --plum-900: #3B1B34;
  --gold:     #A67C2A;
  color-scheme: light;
  --font-hero: 'DM Serif Display', Georgia, serif;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  /* overflow-x: hidden en body rompe position:sticky en Safari (WebKit).
     El desbordamiento del héroe lo controla .hero { overflow: hidden } */
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 24px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.s-head {
  margin-bottom: 56px;
}

.s-head h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-top: 12px;
  text-wrap: balance;
  max-width: 520px;
}

/* ── NAV ── */
nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 100;
  height: 60px;
  padding-inline: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@supports not (backdrop-filter: blur(1px)) {
  nav {
    background: rgba(255, 255, 255, 0.98);
  }
}

.nav-logo {
  display: flex;
  align-items: center;
  height: 26px;
  text-decoration: none;
  color: var(--hot);
}

.nav-logo svg {
  height: 100%;
  width: auto;
}

.nav-btn {
  background: var(--magenta);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

/* ── HERO ── */
.hero {
  background: var(--bg-hero);
  position: relative;
  padding: 88px 24px 56px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(201, 17, 111, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 15% 50%, rgba(90, 42, 79, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 17, 111, 0.08);
  border: 1px solid rgba(201, 17, 111, 0.18);
  border-radius: 9999px;
  padding: 5px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 32px;
}

.hero-h1 {
  font-family: var(--font-hero);
  font-size: clamp(48px, 11vw, 96px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--fg);
  max-width: 880px;
  margin: 0 auto 28px;
  text-wrap: balance;
}

.hero-h1 em {
  font-style: italic;
  color: var(--magenta);
}

.hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 500px;
  margin: 0 auto 40px;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--magenta);
  color: #fff;
  border-radius: 12px;
  padding: 0 28px;
  height: 52px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(201, 17, 111, 0.25);
}

.hero-note {
  font-size: 13px;
  color: var(--fg-muted);
}

/* Teléfono del hero */
.hero-phone-wrap {
  display: flex;
  justify-content: center;
}

.phone {
  width: 252px;
  background: #080609;
  border-radius: 40px;
  box-shadow: 0 40px 80px rgba(30, 10, 28, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-7deg) rotateX(3deg);
}

.phone-top {
  display: flex;
  justify-content: center;
  padding: 12px 0 0;
  background: #080609;
}

.pill-notch {
  width: 72px;
  height: 20px;
  background: #080609;
  border-radius: 0 0 14px 14px;
}

.phone-screen {
  background: #3B1B34;
}

.inv-head {
  padding: 26px 20px 20px;
  text-align: center;
}

.inv-kicker {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #E8C87A;
  margin-bottom: 10px;
}

.inv-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 4px;
}

.inv-subtitle {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 13px;
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 255, 255, 0.5);
}

.inv-body {
  background: #F8F5F2;
  padding: 16px 16px 12px;
}

.inv-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.inv-icon {
  width: 28px;
  height: 28px;
  background: #EFE2EB;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.inv-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #6B6068;
  margin-bottom: 2px;
}

.inv-val {
  font-size: 11px;
  font-weight: 500;
  color: #241C22;
  line-height: 1.3;
}

.inv-cta-btn {
  background: #E0147F;
  color: #fff;
  border-radius: 8px;
  text-align: center;
  padding: 10px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
}

.inv-badge {
  text-align: center;
  font-size: 8px;
  color: #6B6068;
  padding: 8px 0 6px;
}

.inv-badge strong {
  color: #5A2A4F;
}

/* ── EL PROBLEMA ── */
.s-problema {
  background: var(--bg);
  padding-block: 100px;
}

.problema-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 700px) {
  .problema-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.p-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
}

.p-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 52px;
  font-weight: 300;
  color: var(--magenta);
  background: linear-gradient(to bottom, var(--magenta) 0%, rgba(var(--magenta-rgb), 0) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 20px;
}

.p-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--fg);
}

.p-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg-muted);
}

/* ── CÓMO FUNCIONA ── */
.s-como {
  background: var(--bg-plum);
  padding-block: 100px;
}

.s-como .s-head h2 {
  color: #fff;
}

.s-como .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 700px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
}

.step-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding-top: 4px;
}

.step-right {
  flex: 1;
  min-width: 0;
}

.step-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 52px;
  font-weight: 300;
  color: rgba(var(--magenta-rgb), 0.9);
  line-height: 1;
  margin-bottom: 8px;
}

.step-icon {
  color: var(--hot);
  display: block;
}

.step-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
  padding-top: 6px;
}

.step-body {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.52);
}

/* ── POR QUÉ ES DIFERENTE ── */
.s-features {
  background: var(--bg-2);
  padding-block: 100px;
}

.s-features .s-head {
  text-align: center;
}

.s-features .s-head h2 {
  max-width: 560px;
  margin-inline: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 72px;
  max-width: 860px;
  margin-inline: auto;
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.feat {
  border-top: 2px solid var(--border);
  padding-top: 24px;
}

.feat-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.feat-icon {
  color: var(--hot);
  flex-shrink: 0;
}

.feat-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 21px;
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 10px;
  line-height: 1.25;
}

.feat-header .feat-title {
  margin-bottom: 0;
}

.feat-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-muted);
}

/* ── PARA QUIÉN ES ── */
.s-casos {
  background: var(--bg-deep);
  padding-block: 100px;
}

.s-casos .s-head h2 {
  color: #fff;
}

.s-casos .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.casos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

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

.caso {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 36px;
}

.caso-tag {
  display: inline-block;
  background: rgba(232, 200, 122, 0.1);
  border: 1px solid rgba(232, 200, 122, 0.2);
  color: #E8C87A;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 9999px;
  padding: 3px 12px;
  margin-bottom: 20px;
}

.caso h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.caso-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.48);
  margin-bottom: 20px;
}

.caso-quote {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 17px;
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
  border-left: 2px solid #E8C87A;
  padding-left: 18px;
}

/* ── LO QUE VAN A DECIR ── */
.s-quotes {
  background: var(--bg);
  padding-block: 100px;
}

.quotes-eyebrow {
  text-align: center;
  margin-bottom: 56px;
}

.quotes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  max-width: 860px;
  margin-inline: auto;
}

@media (min-width: 680px) {
  .quotes-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

.q-text {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 300;
  font-style: italic;
  color: var(--fg);
  line-height: 1.45;
  margin-bottom: 20px;
}

.q-attr {
  font-size: 13px;
  color: var(--fg-muted);
}

.q-attr strong {
  color: var(--plum);
  font-weight: 600;
  font-style: normal;
}

/* ── CTA FINAL ── */
.s-cta {
  background: var(--bg-2);
  padding-block: 120px;
  text-align: center;
}

.cta-line {
  width: 48px;
  height: 3px;
  background: var(--magenta);
  border-radius: 9999px;
  margin: 0 auto 40px;
}

.cta-h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(30px, 5.5vw, 52px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 20px;
  text-wrap: balance;
  max-width: 600px;
  margin-inline: auto;
}

.cta-sub {
  font-size: 17px;
  color: var(--fg-muted);
  margin-bottom: 40px;
}

/* ── FOOTER ── */
footer {
  background: var(--bg-deep);
  padding: 56px 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.footer-logo svg {
  height: 22px;
  width: auto;
  opacity: 0.7;
}

footer p + p {
  margin-top: 10px;
}

footer a {
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
}

.footer-sep {
  margin-inline: 12px;
  opacity: 0.4;
}

/* ── ANIMACIONES (solo si no se prefiere movimiento reducido) ── */
@media (prefers-reduced-motion: no-preference) {
  .phone {
    animation: phone-in 0.9s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  @keyframes phone-in {
    from {
      opacity: 0;
      transform: perspective(1200px) rotateY(-18deg) rotateX(5deg) translateY(32px);
    }
    to {
      opacity: 1;
      transform: perspective(1200px) rotateY(-7deg) rotateX(3deg) translateY(0);
    }
  }

  .hero-kicker { animation: fade-up 0.6s 0.05s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero-h1     { animation: fade-up 0.6s 0.12s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero-sub    { animation: fade-up 0.6s 0.18s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero-cta    { animation: fade-up 0.6s 0.23s cubic-bezier(0.16, 1, 0.3, 1) both; }

  @keyframes fade-up {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
