:root {
  --hero: #87a988;
  --accent: #d7ebd5;
  --ink: #080808;
  --nav: #111915;
  --cream: #fefbf5;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  color: var(--ink);
  background: var(--hero);
  font-family: Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.site-header {
  height: 87px;
  color: white;
  background: var(--nav);
}

.header-inner,
.hero-inner {
  width: min(1118px, calc(100% - 48px));
  height: 100%;
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: Lora, Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 52px;
}

nav a {
  position: relative;
  color: white;
  font-size: 16px;
  text-decoration: none;
}

nav a.active { color: var(--accent); }

nav a.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -12px;
  left: 0;
  height: 2px;
  background: var(--accent);
}

.hero {
  height: min(790px, calc(100vh - 87px));
  min-height: 590px;
  background: var(--hero);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 648px 1fr;
}

.hero-copy {
  align-self: start;
  padding-top: 137px;
}

h1 {
  width: 492px;
  margin: 0;
  font-size: 60px;
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.22;
}

h1 strong {
  color: var(--accent);
  font-weight: inherit;
}

.hero-copy > p {
  margin: 2px 0 0;
  color: var(--cream);
  font-family: Lora, Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.27;
}

.download {
  position: relative;
  width: 318px;
  height: 371px;
  margin-top: 151px;
  justify-self: end;
}

.figma-mascot {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 52px;
  width: 214px;
  height: 198px;
  object-fit: contain;
}

.download > a {
  position: absolute;
  top: 161px;
  left: 0;
  display: block;
  width: 318px;
  height: 111px;
  border-radius: 56px;
  transition: transform .18s ease, filter .18s ease;
}

.download > a:hover {
  filter: brightness(1.08);
  transform: translateY(-3px);
}

.download > a:focus-visible,
.open-app:focus-visible {
  outline: 4px solid white;
  outline-offset: 5px;
}

.google-play {
  display: block;
  width: 318px;
  height: 111px;
  object-fit: contain;
}

.open-app {
  display: inline-flex;
  min-width: 205px;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 0 24px;
  color: white;
  background: var(--nav);
  border-radius: 28px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.site-footer {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  color: white;
  background: var(--nav);
  font-size: 12px;
}

.site-footer img {
  width: 30px;
  height: 30px;
}

.site-footer p { margin: 0; }

[hidden] { display: none !important; }

@media (max-width: 860px) {
  .site-header { height: 72px; }
  .header-inner, .hero-inner { width: min(100% - 40px, 580px); }
  nav { gap: 24px; }
  nav a { font-size: 13px; }
  .hero { height: auto; min-height: calc(100vh - 72px); }
  .hero-inner {
    grid-template-columns: 1fr;
    align-content: start;
    justify-items: center;
    padding: 70px 0 82px;
    text-align: center;
  }
  .hero-copy { padding-top: 0; }
  h1 {
    width: auto;
    max-width: 550px;
    font-size: clamp(44px, 10vw, 60px);
  }
  .hero-copy > p {
    max-width: 500px;
    margin: 16px auto 0;
    font-size: clamp(20px, 5vw, 27px);
  }
  .download {
    justify-self: auto;
    margin-top: 52px;
  }
  .post-hero .download { margin-top: 30px; }
}

@media (max-width: 520px) {
  .header-inner, .hero-inner { width: calc(100% - 34px); }
  .brand { font-size: 25px; }
  nav a:not(.active) { display: none; }
  .hero-inner { padding-top: 56px; }
  h1 { font-size: clamp(39px, 12vw, 54px); line-height: 1.13; }
  .hero-copy > p { font-size: 20px; line-height: 1.45; }
  .download {
    width: 270px;
    height: 310px;
  }
  .figma-mascot {
    left: 44px;
    width: 182px;
    height: 168px;
  }
  .download > a {
    top: 137px;
    width: 270px;
    height: 94px;
  }
  .google-play { width: 270px; height: 94px; }
}

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

/* Landing “Próximamente”, basada en el frame 183:11830. */
.coming-soon {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--cream);
}

.coming-hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .92fr);
  align-items: center;
  gap: clamp(56px, 8vw, 140px);
  padding: clamp(150px, 20vh, 210px) max(7vw, calc((100vw - 1440px) / 2)) 56px;
  overflow: hidden;
}

.coming-hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  right: 0;
  bottom: 0;
  left: 0;
  height: 48%;
  background: #9fc39c;
}

.coming-shape {
  position: absolute;
  z-index: -1;
  width: 205%;
  height: calc(100% - 8px);
  left: -67%;
  top: 8px;
  object-fit: fill;
}

.coming-copy {
  align-self: center;
  justify-self: end;
  width: min(100%, 500px);
}

.coming-copy h1 {
  width: auto;
  font-size: clamp(42px, 3.8vw, 58px);
  line-height: 1.15;
}

.coming-copy p {
  margin: 40px 0 0;
  color: var(--cream);
  font-family: Lora, Georgia, serif;
  font-size: clamp(20px, 1.7vw, 27px);
  font-weight: 600;
  line-height: 1.25;
}

.coming-store {
  align-self: center;
  justify-self: start;
  width: min(100%, 420px);
}

.coming-store h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(100%, 310px);
  margin: 0 0 15px;
  color: rgba(8, 8, 8, .72);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.coming-store h2::before,
.coming-store h2::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(8, 8, 8, .32);
}

.coming-badge {
  width: min(100%, 310px);
  aspect-ratio: 1920 / 670;
}

.coming-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.signature {
  position: absolute;
  right: 24px;
  bottom: 18px;
  margin: 0;
  color: rgba(8, 8, 8, .5);
  font-family: Lora, Georgia, serif;
  font-size: 11px;
  font-style: italic;
  letter-spacing: .04em;
}

@media (max-width: 900px) {
  .coming-hero {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 52px;
    padding: 180px 28px 54px;
  }

  .coming-shape {
    width: 330%;
    height: calc(100% - 7px);
    left: -108%;
    top: 7px;
  }

  .coming-copy,
  .coming-store {
    justify-self: center;
    text-align: center;
  }

  .coming-copy h1 {
    font-size: clamp(36px, 8vw, 50px);
  }

  .coming-copy p {
    margin-top: 26px;
    font-size: clamp(19px, 4vw, 25px);
  }

  .coming-store h2 { margin: 0 auto 14px; font-size: 12px; }
  .coming-badge { width: min(70vw, 290px); margin-inline: auto; }
}

@media (max-width: 520px) {
  .coming-hero {
    min-height: 100svh;
    gap: 44px;
    padding: 160px 20px 40px;
  }

  .coming-shape {
    width: 400%;
    height: calc(100% - 6px);
    left: -133%;
    top: 6px;
  }

  .coming-copy h1 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .coming-copy p { font-size: 18px; }
  .coming-badge { width: min(68vw, 270px); }
  .signature { right: 14px; bottom: 12px; font-size: 10px; }
}
