:root {
  --bg: #dce8f4;
  --ink: #132536;
  --muted: #4a6074;
  --blue: #1173c4;
  --blue-dark: #0c5a9c;
  --blue-soft: #e8f2fb;
  --blue-brand: #5ba3f5;
  --navy: #15325c;
  --green: #1e8e5a;
  --line: rgba(17, 115, 196, 0.14);
  --radius: 24px;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
  --font-brand: "Nunito", system-ui, sans-serif;
  --shadow-shot:
    0 2px 4px rgba(19, 55, 90, 0.04),
    0 18px 48px rgba(19, 55, 90, 0.16);
  --max: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1100px 640px at 85% -8%, rgba(17, 115, 196, 0.2), transparent 58%),
    radial-gradient(800px 520px at -5% 25%, rgba(30, 142, 90, 0.1), transparent 55%),
    linear-gradient(180deg, #eaf3fa 0%, var(--bg) 40%, #eef5fb 100%);
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.bg-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(21, 50, 92, 0.08) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

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

/* ——— Wordmark (mismo del logo de la app) ——— */
.wordmark {
  display: block;
  width: 118px;
  height: auto;
  overflow: visible;
}

.wordmark .wm-ia { fill: var(--navy); }
.wordmark .wm-re { fill: var(--blue-brand); }
.wordmark .wm-check {
  color: var(--blue-brand);
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: check-draw 0.9s 0.45s ease forwards;
}

@keyframes check-draw {
  to { stroke-dashoffset: 0; }
}

.wordmark--hero {
  width: min(92vw, 420px);
  filter: drop-shadow(0 8px 24px rgba(17, 115, 196, 0.12));
  animation: brand-pop 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes brand-pop {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.wordmark--cta { width: min(70vw, 220px); margin: 0 auto 14px; }
.wordmark--footer { width: 108px; }

/* ——— Header ——— */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 20;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(234, 243, 250, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(19, 55, 90, 0.08);
  border-radius: 0 0 18px 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(17, 60, 110, 0.18);
}

.nav {
  display: flex;
  gap: 22px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.nav a {
  position: relative;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transition: width 0.2s ease;
}

.nav a:hover { color: var(--blue); }
.nav a:hover::after { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1a84d6 0%, var(--blue) 100%);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 10px 24px rgba(17, 115, 196, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 14px 30px rgba(17, 115, 196, 0.4);
}

.btn-sm { padding: 10px 18px; font-size: 0.9rem; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.45);
  color: var(--blue-dark);
  box-shadow: none;
  border: 1.5px solid rgba(17, 115, 196, 0.28);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(17, 115, 196, 0.08);
  filter: none;
  box-shadow: none;
}

/* ——— Hero ——— */
.hero {
  padding: 0 0 40px;
  min-height: calc(100svh - 72px);
  display: flex;
  flex-direction: column;
}

.hero-stage {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: calc(100svh - 72px);
  overflow: hidden;
}

.hero-devices {
  position: absolute;
  inset: 0 0 28%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 24px 24px 0;
  animation: float-in 1s ease both;
}

.macbook--hero {
  width: min(72%, 620px);
  transform: translateX(-4%);
}

.phone--hero {
  position: absolute;
  right: max(4%, calc(50% - 380px));
  bottom: -4%;
  width: min(34%, 200px);
  z-index: 3;
  transform: rotate(-4deg);
  animation: float 7s 0.8s ease-in-out infinite;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px 36px;
  animation: rise 0.9s 0.1s ease both;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(234, 243, 250, 0.5) 12%,
    rgba(232, 242, 250, 0.94) 48%,
    var(--bg) 100%
  );
}

.brand-hero { margin-bottom: 18px; }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3.2vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 12px;
  max-width: 20ch;
}

.lede {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 36ch;
  margin-bottom: 26px;
}

.hero-copy h1,
.hero-copy .lede,
.hero-copy .cta-row {
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-copy h1 { animation-delay: 0.18s; }
.hero-copy .lede { animation-delay: 0.28s; }
.hero-copy .cta-row { animation-delay: 0.4s; }

.step-badge {
  animation: none;
}

.step.is-visible .step-badge {
  animation: badge-pop 0.55s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes badge-pop {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}

.cta-panel {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.cta-panel.is-visible {
  animation: panel-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ——— Sections ——— */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 24px;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 52px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}

.section-head h2,
.cta-panel h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.2vw, 2.75rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
  margin-bottom: 14px;
}

.section-head p,
.cta-panel > p {
  color: var(--muted);
  font-size: 1.08rem;
}

/* ——— Steps ——— */
.step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 88px;
}

.step:last-child { margin-bottom: 0; }

.step-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
  padding: 8px 14px 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(17, 115, 196, 0.12), rgba(91, 163, 245, 0.22));
  border: 1px solid rgba(17, 115, 196, 0.18);
  box-shadow: 0 8px 20px rgba(17, 115, 196, 0.1);
}

.step-badge span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.step-badge strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.65rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--navy);
  background: linear-gradient(180deg, var(--navy), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step-text h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.step-text p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 38ch;
}

/* ——— Phone frame (screenshot real) ——— */
.phone {
  position: relative;
  margin: 0 auto;
  width: min(100%, 260px);
  justify-self: center;
  padding: 10px;
  border-radius: 36px;
  background: linear-gradient(160deg, #2a2a2e, #111114 55%, #1c1c1f);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 28px 48px rgba(19, 55, 90, 0.28);
  transform: rotate(-2.5deg);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}

.phone--tilt-r { transform: rotate(2.5deg); }

.phone-island {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 14px;
  border-radius: 20px;
  background: #0a0a0a;
  z-index: 2;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 472 / 1024;
  object-fit: cover;
  object-position: top center;
  border-radius: 26px;
  background: #e4eef7;
}

.phone:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 36px 56px rgba(19, 55, 90, 0.34);
}

.reveal-device {
  opacity: 0;
  transform: translateY(40px) scale(0.94) !important;
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease;
}

.step.is-visible .reveal-device {
  opacity: 1;
  transform: rotate(-2.5deg) translateY(0) scale(1) !important;
}

.step.is-visible .phone--tilt-r.reveal-device {
  transform: rotate(2.5deg) translateY(0) scale(1) !important;
}

.step.is-visible .reveal-device:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.02) !important;
}

/* ——— MacBook frame ——— */
.macbook {
  position: relative;
  width: 100%;
  filter: drop-shadow(0 22px 40px rgba(19, 55, 90, 0.22));
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.mac-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, #3a3a3e, #2a2a2e);
}

.mac-chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4a4a4e;
}

.mac-chrome span:nth-child(1) { background: #ff5f57; }
.mac-chrome span:nth-child(2) { background: #febc2e; }
.mac-chrome span:nth-child(3) { background: #28c840; }

.mac-screen {
  background: #111;
  padding: 0 2px 2px;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
}

.mac-screen img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1024 / 646;
  object-fit: cover;
  object-position: top left;
  background: #e4eef7;
}

.mac-base {
  height: 10px;
  margin: 0 auto;
  width: 104%;
  margin-left: -2%;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #c8c8cc, #a8a8ae);
  box-shadow: 0 2px 0 #8e8e94;
}

/* ——— Platforms (Mac + phone esquina) ——— */
.platforms-stage {
  margin-bottom: 40px;
  padding: 8px 0 4px;
}

.duo {
  position: relative;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding-bottom: 28px;
}

.duo .macbook { width: 86%; }

.phone--duo {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(28%, 210px);
  z-index: 2;
  transform: rotate(-3deg);
  margin: 0;
}

.platforms-stage.is-visible .duo .macbook {
  animation: duo-mac-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.platforms-stage.is-visible .phone--duo {
  animation: duo-phone-in 0.9s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes duo-mac-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes duo-phone-in {
  from { opacity: 0; transform: translate(18px, 28px) scale(0.92) rotate(-3deg); }
  to { opacity: 1; transform: translate(0, 0) scale(1) rotate(-3deg); }
}

.duo:hover .macbook { transform: translateY(-4px); }
.duo:hover .phone--duo { transform: translateY(-10px) rotate(0deg) scale(1.03); }

.duo-captions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 920px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.duo-captions span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.plat-pill {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: rgba(17, 115, 196, 0.12);
  border: 1px solid rgba(17, 115, 196, 0.16);
}

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

.platforms-points li {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(17, 115, 196, 0.1);
  backdrop-filter: blur(8px);
}

.platforms-points strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.platforms-points span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ——— Benefits ——— */
.benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.benefit {
  padding: 26px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(17, 115, 196, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(160, 185, 210, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.benefit:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(160, 185, 210, 0.28);
}

.benefit-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 14px;
  color: var(--blue);
  background: linear-gradient(145deg, #fff, var(--blue-soft));
  box-shadow: 4px 4px 10px #c5d4e4, -3px -3px 8px #ffffff;
}

.benefit-icon svg { width: 22px; height: 22px; }

.benefit h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.benefit p {
  color: var(--muted);
  max-width: 42ch;
  font-size: 0.98rem;
}

/* ——— Types ——— */
.type-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.type-grid li {
  display: grid;
  gap: 8px;
  padding: 24px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(232, 242, 251, 0.75));
  border: 1px solid rgba(17, 115, 196, 0.12);
  transition: transform 0.25s ease;
}

.type-grid li:hover { transform: translateY(-3px); }

.type-tag {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--blue-dark);
  background: rgba(17, 115, 196, 0.1);
}

.type-grid strong {
  font-family: var(--font-display);
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.type-grid span:last-child { color: var(--muted); font-size: 0.98rem; }

/* ——— CTA ——— */
.cta-block { padding-top: 24px; padding-bottom: 100px; }

.cta-panel {
  text-align: center;
  padding: clamp(44px, 8vw, 76px) 28px;
  border-radius: 28px;
  background:
    radial-gradient(640px 280px at 50% -10%, rgba(17, 115, 196, 0.22), transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(232, 242, 251, 0.95));
  box-shadow:
    12px 12px 32px rgba(170, 190, 210, 0.4),
    -8px -8px 22px rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.75);
  max-width: 680px;
  margin: 0 auto;
}

.cta-panel > p {
  max-width: 34ch;
  margin: 0 auto 28px;
}

/* ——— Footer ——— */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

/* ——— Motion ——— */
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float-in {
  from { opacity: 0; transform: translateY(36px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--delay, 0) * 90ms);
}

.reveal[data-reveal="left"] { transform: translateX(-28px) translateY(12px); }
.reveal[data-reveal="right"] { transform: translateX(28px) translateY(12px); }

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

.reveal[data-delay="1"] { --delay: 1; }
.reveal[data-delay="2"] { --delay: 2; }
.reveal[data-delay="3"] { --delay: 3; }

/* ——— Responsive ——— */
@media (min-width: 780px) {
  .hero-copy {
    padding: 64px 24px 56px;
    max-width: none;
    width: min(100%, var(--max));
  }

  .hero-copy > *:not(.brand-hero) { max-width: 34rem; }

  .step {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
  }

  .step-reverse .step-text { order: 2; }
  .step-reverse .phone { order: 1; }

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

  .platforms-stage {
    grid-template-columns: unset;
    gap: unset;
    align-items: unset;
    min-height: unset;
  }

  .phone--duo {
    width: min(26%, 220px);
    right: 1%;
    bottom: -2%;
  }

  .platforms-points {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

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

@media (min-width: 1100px) {
  .step {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
  }
}

@media (max-width: 779px) {
  .nav { display: none; }

  .hero,
  .hero-stage { min-height: auto; }

  .hero-stage { min-height: 86svh; }

  .hero-devices {
    inset: 0 0 38%;
    padding-top: 12px;
  }

  .phone--hero {
    width: min(38%, 150px);
    right: 4%;
  }

  .section { padding: 60px 20px; }

  .step { margin-bottom: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy,
  .hero-copy h1,
  .hero-copy .lede,
  .hero-copy .cta-row,
  .hero-devices,
  .phone--hero,
  .wordmark--hero,
  .wordmark .wm-check,
  .reveal,
  .reveal-device,
  .phone,
  .cta-panel,
  .platforms-stage.is-visible .duo .macbook,
  .platforms-stage.is-visible .phone--duo,
  .step.is-visible .step-badge {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
    stroke-dashoffset: 0;
  }
}
