:root {
  --bg: #f6f7fa;
  --surface: #ffffff;
  --surface-alt: #eef1f6;
  --border: #e3e7ee;
  --text: #172033;
  --text-secondary: #5b667a;
  --brand: #0b7f72;
  --brand-pressed: #096a60;
  --brand-tint: #e3f5f2;
  --now: #ffb938;
  --overlay: rgba(23, 32, 51, 0.45);
  --max: 1120px;
  --radius: 20px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-pressed);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(246, 247, 250, 0.88);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.92);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--brand);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  border: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

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

.btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-pressed);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  color: var(--text);
  background: var(--surface-alt);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(100vh, 880px);
  display: grid;
  align-items: end;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(11, 127, 114, 0.18), transparent 60%),
    radial-gradient(900px 500px at 10% 20%, rgba(255, 185, 56, 0.12), transparent 55%),
    linear-gradient(180deg, #eef8f6 0%, var(--bg) 55%, var(--bg) 100%);
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding: 48px 24px 64px;
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: end;
    padding-top: 72px;
    padding-bottom: 88px;
  }
}

.hero-copy {
  max-width: 34rem;
  animation: rise 700ms ease both;
}

.hero-kicker {
  margin: 0 0 14px;
  color: var(--brand);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0 0 28px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 32rem;
}

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

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.store-badges--center {
  justify-content: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  transition: transform 160ms ease, opacity 160ms ease;
}

.store-badge:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.store-badge:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 8px;
}

.store-badge img {
  height: 50px;
  width: auto;
}

.store-badge--play img {
  /* El PNG oficial de Google lleva margen transparente */
  height: 74px;
  margin: -12px -10px;
}

.store-badge--web {
  min-height: 50px;
  padding: 0 16px 0 12px;
  gap: 10px;
  border-radius: 10px;
  background: #000;
  color: #fff;
  border: 1px solid #a6a6a6;
  line-height: 1.15;
}

.store-badge--web:hover {
  color: #fff;
  opacity: 1;
  background: #111;
}

.store-badge--web img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.store-badge--web span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.store-badge--web small {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}

.product-stage {
  position: relative;
  min-height: 420px;
  animation: rise 900ms 80ms ease both;
}

.product-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(23, 32, 51, 0.08);
  transform-origin: center bottom;
}

.product-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
}

.product-top strong {
  font-size: 1.35rem;
  font-weight: 800;
}

.product-top span {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.timeline {
  position: relative;
  display: grid;
  gap: 14px;
  padding-left: 14px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.now-line {
  position: relative;
  height: 0;
  margin: 4px 0;
}

.now-line::before {
  content: "";
  position: absolute;
  left: -14px;
  right: 0;
  top: 0;
  border-top: 3px solid var(--now);
}

.now-line::after {
  content: "";
  position: absolute;
  left: -20px;
  top: -5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--now);
}

.event {
  position: relative;
  border-radius: 14px;
  padding: 14px 16px 14px 18px;
  background: color-mix(in srgb, var(--event) 14%, white);
  border-left: 4px solid var(--event);
  animation: slide-in 700ms ease both;
}

.event:nth-child(1) {
  --event: #5b6cff;
  animation-delay: 180ms;
}
.event:nth-child(3) {
  --event: #22b07d;
  animation-delay: 280ms;
}
.event:nth-child(4) {
  --event: #f5a524;
  animation-delay: 380ms;
}

.event strong {
  display: block;
  font-weight: 700;
}

.event span {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 24px;
}

.section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
}

.section > .lead {
  margin: 0 0 36px;
  color: var(--text-secondary);
  max-width: 36rem;
}

.feature-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.feature-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.feature-list h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.feature-list p {
  margin: 0;
  color: var(--text-secondary);
}

.cta-band {
  margin: 0 24px 72px;
  border-radius: 28px;
  background: var(--brand-tint);
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--border));
  padding: 40px 28px;
  text-align: center;
  animation: rise 600ms ease both;
}

.cta-band h2 {
  margin: 0 0 10px;
}

.cta-band p {
  margin: 0 auto 22px;
  color: var(--text-secondary);
  max-width: 32rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 36px 24px 48px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

@media (min-width: 760px) {
  .footer-inner {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

.footer-inner p {
  margin: 8px 0 0;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--brand);
}

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal-page h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
}

.legal-page .meta {
  margin: 0 0 32px;
  color: var(--text-secondary);
}

.legal-page h2 {
  margin: 36px 0 12px;
  font-size: 1.25rem;
}

.legal-page p,
.legal-page li {
  color: var(--text-secondary);
}

.legal-page ul {
  padding-left: 1.2rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
