:root {
  --text: #0f172a;
  --muted: #475569;
  --bg-1: #ffffff;
  --bg-2: #e5e7eb;
}

@font-face {
  font-family: "Outfit";
  src: url("./Outfit-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
    "Helvetica Neue", sans-serif;
  font-weight: 300;
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
  color: var(--text);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.topbar {
  position: fixed;
  top: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  pointer-events: none;
}

.topbar > * {
  pointer-events: auto;
}

.icon-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #64748b;
  padding: 0.35rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-btn:hover {
  color: #475569;
}

.icon-btn:focus-visible {
  outline: 3px solid rgba(15, 23, 42, 0.25);
  outline-offset: 4px;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.menu {
  position: relative;
}

.menu > summary {
  list-style: none;
}

.menu > summary::-webkit-details-marker {
  display: none;
}

.hamburger {
  width: 20px;
  height: 14px;
  display: inline-block;
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.hamburger::before {
  top: 0;
  box-shadow: 0 6px 0 currentColor;
}

.hamburger::after {
  bottom: 0;
}

.menu-panel {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  min-width: 180px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 0.4rem;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform-origin: top right;
  animation: popIn 160ms ease-out;
}

.lang-menu .menu-panel {
  transform-origin: top left;
}

.lang-panel {
  left: 0;
  right: auto;
  min-width: 160px;
  max-width: calc(100vw - 2.5rem);
}

.lang-menu-right .lang-panel {
  right: 0;
  left: auto;
}

.menu-item {
  display: block;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.menu-item:hover {
  background: rgba(15, 23, 42, 0.06);
}

.menu-item:focus-visible {
  outline: 3px solid rgba(15, 23, 42, 0.2);
  outline-offset: 2px;
}

.hero {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.75rem;
  padding: 2rem;
}

@media (max-width: 768px) {
  .hero {
    padding-top: 2.75rem;
    padding-bottom: 1.75rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.hero > * {
  animation: fadeUp 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero > :nth-child(1) {
  animation-delay: 40ms;
}

.hero > :nth-child(2) {
  animation-delay: 120ms;
}

.hero > :nth-child(3) {
  animation-delay: 200ms;
}

.hero > :nth-child(4) {
  animation-delay: 280ms;
}

.hero > :nth-child(5) {
  animation-delay: 360ms;
}

/* box-shadow en el contenedor evita el rectángulo gris que Safari dibuja con drop-shadow en <img> PNG */
.hero-logo-wrap {
  display: block;
  width: min(128px, 40vw);
  margin: 0 auto 0.25rem;
  border-radius: 22.37%;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
}

.hero-logo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.legal {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(5.5rem, 8vw, 7.5rem) 1.5rem 4rem;
  color: var(--text);
}

.legal h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  letter-spacing: -0.02em;
}

.legal-meta {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.legal h2 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.legal p,
.legal li {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text);
}

.legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.legal ul {
  margin: 0.6rem 0 0;
  padding-left: 1.2rem;
}

.legal li + li {
  margin-top: 0.35rem;
}

.appstore-btn {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18);
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.appstore-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.22);
}

.appstore-btn:active {
  transform: translateY(0);
  opacity: 0.95;
}

.appstore-btn:focus-visible {
  outline: 3px solid rgba(15, 23, 42, 0.25);
  outline-offset: 4px;
}

.playstore-btn {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.75rem;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  color: #475569;
  border: 1px solid rgba(148, 163, 184, 0.55);
  text-decoration: none;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  opacity: 1;
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.playstore-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

.playstore-btn:active {
  transform: translateY(0);
  opacity: 0.95;
}

.playstore-btn:focus-visible {
  outline: 3px solid rgba(15, 23, 42, 0.18);
  outline-offset: 4px;
}

.playstore-icon {
  display: block;
  height: 18px;
  width: auto;
  opacity: 0.9;
  filter: grayscale(1) saturate(0) brightness(0.55) contrast(1.05);
}

.appstore-icon {
  display: block;
  height: 18px;
  width: auto;
  filter: brightness(0) invert(1);
  transform: translateY(-1px);
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4.25rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 300;
  color: var(--muted);
}

.android-hero {
  text-align: center;
}

.android-content {
  width: min(860px, 100%);
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.android-content > * {
  animation: fadeUp 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.android-content > :nth-child(1) {
  animation-delay: 40ms;
}

.android-content > :nth-child(2) {
  animation-delay: 120ms;
}

.android-content > :nth-child(3) {
  animation-delay: 200ms;
}

.android-content > :nth-child(4) {
  animation-delay: 280ms;
}

.android-content > :nth-child(5) {
  animation-delay: 360ms;
}

.steps .step {
  animation: fadeUp 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.steps .step:nth-child(1) {
  animation-delay: 240ms;
}

.steps .step:nth-child(2) {
  animation-delay: 320ms;
}

.steps .step:nth-child(3) {
  animation-delay: 400ms;
}

.step-left,
.step-connector,
.dot {
  animation: none;
}

.android-hero h1 {
  font-size: clamp(1.7rem, 4.2vw, 3rem);
}

.android-subtitle {
  margin-top: 1.25rem;
  line-height: 1.55;
}

.test-note {
  margin-top: 2.5rem;
  font-size: 0.92rem;
  color: #94a3b8;
  opacity: 0.85;
}

.test-block {
  margin-top: 2.5rem;
  text-align: left;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.test-block:first-of-type {
  margin-top: 2.75rem;
}

.test-title {
  margin: 0 0 0.65rem;
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
}

.test-text {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1rem;
}

.test-text a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.25em;
  text-decoration-color: rgba(15, 23, 42, 0.3);
  transition: text-decoration-color 150ms ease;
}

.test-text a:hover {
  text-decoration-color: var(--text);
}

.test-block .cta-btn,
.test-block .cta-btn-secondary {
  margin-top: 0;
  display: inline-flex;
}

.step-copy .cta-btn {
  margin-top: 0.9rem;
}

.step-copy .cta-btn-secondary {
  margin-top: 0.65rem;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 2.25rem auto 0;
  display: grid;
  gap: 0;
  width: fit-content;
  max-width: min(720px, 100%);
  justify-items: start;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  text-align: left;
  width: 100%;
}

.step-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.step-marker {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.92);
  color: rgba(255, 255, 255, 0.96);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.14);
  flex-shrink: 0;
}

.step-marker-blank {
  color: transparent;
}

.step-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 7px 0;
  height: 100%;
  min-height: 50px;
}

.dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.3);
  flex-shrink: 0;
}

.step-copy {
  padding-top: 0.2rem;
  padding-bottom: 1.35rem;
  max-width: 560px;
}

.step-title {
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.25;
}

.step-subtitle {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.cta-btn {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2.35rem;
  padding: 0.95rem 1.3rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: rgba(255, 255, 255, 0.96);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: -0.01em;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.cta-btn-secondary {
  margin-top: 0.95rem;
  background: rgba(148, 163, 184, 0.14);
  color: #475569;
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1);
}

.cta-btn-secondary:hover {
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
}

@media (max-width: 640px) {
  .steps {
    width: 100%;
    max-width: 100%;
  }

  .step {
    width: 100%;
  }

  .step-copy {
    max-width: none;
  }
}

.cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.22);
}

.cta-btn:active {
  transform: translateY(0);
  opacity: 0.95;
}

.cta-btn:focus-visible {
  outline: 3px solid rgba(15, 23, 42, 0.18);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .hero > * {
    animation: none !important;
  }

  .android-content > *,
  .steps .step {
    animation: none !important;
  }

  .menu-panel {
    animation: none !important;
  }
}
