/* Gumi Rewards · sitio de presentación. Colores y fuentes en tokens.css. */

/* ---------- Fuentes (alojadas, OFL en fonts/) ---------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  position: relative;
  overflow-x: clip;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

h1, h2, .display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: var(--track-display);
  line-height: 1.02;
}

:focus-visible {
  outline: 3px solid var(--charcoal);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--charcoal); color: var(--white);
  padding: .75rem 1.1rem; border-radius: var(--radius-s);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(100% - 2.5rem, 1200px);
  margin-inline: auto;
}

/* ---------- Botones y etiquetas ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.5rem; padding: 0 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn--primary {
  background: var(--coral-deep); color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn--primary:hover { background: var(--coral-ink); transform: translateY(-1px); }
.btn--ghost {
  border: 2px solid var(--coral-deep); color: var(--coral-deep);
  background: rgba(255, 255, 255, .55);
}
.btn--ghost:hover { background: var(--white); }
.btn--small { min-height: 3rem; padding: 0 1.4rem; font-size: .95rem; }

.tag {
  display: inline-block;
  background: var(--soft-pink); color: var(--coral-ink);
  font-weight: 700; font-size: .95rem;
  padding: .5rem 1rem; border-radius: var(--radius-pill);
}

.example-tag {
  display: inline-block;
  background: var(--white); color: var(--muted);
  font-size: .8125rem; font-weight: 700;
  padding: .35rem .8rem; border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px -6px rgba(41, 37, 54, .25);
}

.actions { display: flex; flex-wrap: wrap; gap: .875rem; }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex; align-items: center; gap: .55rem;
  text-decoration: none; color: var(--charcoal);
}
.logo__word {
  font-family: var(--font-display); font-weight: 800;
  font-size: 2.4rem; letter-spacing: -0.045em; line-height: 1;
}
.logo__i, .mini-logo__i { position: relative; display: inline-block; }
.logo__i img {
  position: absolute; width: .42em; height: auto;
  left: 50%; top: -.06em; transform: translateX(-46%) rotate(-8deg);
}
.logo__pill {
  background: var(--coral-deep); color: var(--white);
  font-family: var(--font-body); font-weight: 700;
  font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: var(--radius-pill);
  translate: 0 .15rem;
}

/* ---------- Barra superior ---------- */
.bar { position: relative; z-index: 10; }
.bar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 5.5rem;
  border-bottom: 1px solid rgba(41, 37, 54, .08);
}
.bar__nav ul { display: flex; gap: 2.25rem; }
.bar__nav a {
  text-decoration: none; font-size: 1rem; color: var(--charcoal);
  padding: .5rem 0;
}
.bar__nav a:hover { color: var(--coral-deep); text-decoration: underline; text-underline-offset: 6px; }
.only-narrow { display: none; }

/* ---------- Hero ---------- */
.hero-blob {
  position: absolute; z-index: 0; top: 0; right: 0;
  width: min(52vw, 880px); height: 760px;
  background: url("assets/hero-blob.svg") no-repeat right top / 100% 100%;
}
.hero { position: relative; z-index: 1; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  min-height: 640px;
}
.hero__copy { padding-block: 3rem 5rem; }
.hero__copy .tag { margin-bottom: 1.25rem; }
.hero__title {
  font-size: clamp(2.9rem, 5.5vw, 5rem);
  line-height: 1.0;
  margin-bottom: 1.75rem;
}
.hero__line, .hero__accent { display: block; }
.hero__line { white-space: nowrap; }
.hero__accent { color: var(--coral-deep); position: relative; width: max-content; }
.hero__sparks {
  position: absolute; width: .62em; height: auto;
  right: -.78em; top: -.16em;
}
.hero__lead { max-width: 30rem; font-size: 1.2rem; color: var(--charcoal); margin-bottom: 2.25rem; }

/* Visual del hero: escena del teléfono */
.hero__visual {
  position: relative;
  height: 640px;
  /* recorta solo por abajo, como en la maqueta */
  clip-path: inset(-200px -100vw 0 -100vw);
}
.phone {
  --pw: 24em;
  position: absolute;
  font-size: clamp(9px, 1.04vw, 15px);
  width: var(--pw); height: 50em;
  left: 34%; top: 40px;
  rotate: 12deg;
  background: linear-gradient(145deg, #3A3546, #18151F);
  border-radius: 3.6em;
  padding: .7em;
  box-shadow: 0 40px 80px -30px rgba(120, 30, 30, .55), inset 0 0 0 .18em #6A6478;
  z-index: 2;
}
.phone__screen {
  height: 100%;
  background: #FFF9F4;
  border-radius: 3em;
  padding: 1.1em 1.4em;
  overflow: hidden;
  color: var(--charcoal);
}
.phone__status {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 1em; font-weight: 700; padding: .2em .6em 0;
}
.phone__island { width: 7.2em; height: 2em; background: #17141D; border-radius: 2em; }
.phone__icons { display: flex; gap: .25em; align-items: flex-end; }
.phone__icons i { display: block; width: .35em; background: var(--charcoal); border-radius: 1px; }
.phone__icons i:nth-child(1) { height: .5em; }
.phone__icons i:nth-child(2) { height: .75em; }
.phone__icons i:nth-child(3) { height: 1em; }

.app__head { display: flex; align-items: center; gap: .5em; margin: 1.5em 0 1.2em; }
.mini-logo {
  font-family: var(--font-display); font-weight: 800;
  font-size: 2.2em; letter-spacing: -0.045em; line-height: 1;
}
.mini-logo__i img { position: absolute; width: .42em; left: 50%; top: -.06em; transform: translateX(-46%); }
.mini-pill {
  background: var(--coral-deep); color: var(--white);
  font-size: .72em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .25em .6em; border-radius: 2em;
}
.app__points {
  position: relative;
  background: linear-gradient(135deg, var(--coral-deep) 0%, #D93C3C 100%);
  color: var(--white);
  border-radius: 1.6em;
  padding: 1.3em 1.4em 1.1em;
  box-shadow: 0 1.2em 2em -1em rgba(211, 48, 48, .55);
}
.app__label { font-size: 1em; }
.app__balance { font-family: var(--font-display); font-weight: 800; font-size: 3em; letter-spacing: -0.03em; line-height: 1.1; }
.app__balance span { font-size: .5em; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.app__gift { position: absolute; right: .8em; top: .9em; width: 5.4em; }
.app__owner {
  margin-top: .9em; padding-top: .8em;
  border-top: 1px solid rgba(255, 255, 255, .35);
  font-size: 1em;
}
.app__next {
  margin-top: 1em; background: var(--white);
  border-radius: 1.4em; padding: 1.1em 1.3em;
  box-shadow: 0 .8em 1.6em -1em rgba(41, 37, 54, .25);
}
.app__next-row, .app__row { display: flex; justify-content: space-between; align-items: baseline; }
.app__next-title { font-weight: 700; font-size: 1.1em; }
.app__pct { font-weight: 700; font-size: 1em; }
.app__bar { height: .75em; background: #F4E7DC; border-radius: 1em; margin: .7em 0 .5em; overflow: hidden; }
.app__bar-fill { display: block; width: 75%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--coral), var(--peach)); }
.app__hint { font-size: .85em; color: var(--muted); }
.app__row { margin: 1.4em 0 .8em; }
.app__section { font-weight: 700; font-size: 1.25em; }
.app__more { font-size: .85em; color: var(--muted); }
.app__rewards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7em; }
.app__rewards li {
  background: var(--white); border-radius: 1.1em;
  padding: .7em .5em .8em; text-align: center;
  box-shadow: 0 .6em 1.2em -.8em rgba(41, 37, 54, .3);
  font-size: .85em; line-height: 1.25;
}
.app__rewards img { width: 4.6em; margin: 0 auto .3em; }
.app__rewards span { display: block; font-weight: 700; }
.app__rewards b { display: block; color: var(--coral-deep); margin-top: .2em; }
.app__rewards .app__pct-badge {
  width: 3.6em; height: 3.6em; margin: .5em auto .9em;
  display: grid; place-items: center;
  background: var(--coral); color: var(--white);
  border-radius: .9em; font-size: 1.15em; font-family: var(--font-display);
}

/* Objetos flotantes */
.float { position: absolute; z-index: 3; }
.gift { width: clamp(170px, 19vw, 270px); left: 2%; top: 34%; z-index: 3; }
.coin { width: clamp(56px, 6.4vw, 96px); }
.coin--a { left: 21%; top: 16%; rotate: -14deg; z-index: 1; }
.coin--b { left: -2%; top: 69%; rotate: 10deg; width: clamp(64px, 7.4vw, 112px); }
.coin--c { right: -7%; top: 47%; rotate: 18deg; }
.coin--d { right: -3%; top: 69%; rotate: -10deg; width: clamp(48px, 5.4vw, 80px); }

.hero__visual .example-tag { position: absolute; left: 6%; bottom: 1.5rem; z-index: 4; }

/* ---------- Movimiento: solo la entrada del hero ---------- */
@keyframes rise {
  from { opacity: 0; translate: 0 40px; }
  to   { opacity: 1; translate: 0 0; }
}
@keyframes pop {
  0%   { opacity: 0; scale: .4; }
  60%  { opacity: 1; scale: 1.12; }
  80%  { scale: .96; }
  100% { opacity: 1; scale: 1; }
}
@keyframes bob {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -6px; }
}
.phone { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
.gift  { animation: pop .7s cubic-bezier(.3, 1.4, .5, 1) .45s both; }
.coin  { animation: pop .6s cubic-bezier(.3, 1.4, .5, 1) both, bob 6s ease-in-out infinite; }
.coin--a { animation-delay: .6s, 1.4s; }
.coin--b { animation-delay: .7s, 2.2s; }
.coin--c { animation-delay: .8s, 1.8s; }
.coin--d { animation-delay: .9s, 2.6s; }

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

/* ---------- Tableta ---------- */
@media (max-width: 1080px) {
  .bar__nav ul { gap: 1.4rem; }
}

/* ---------- Móvil ---------- */
@media (max-width: 860px) {
  .bar__nav { display: none; }
  .only-wide { display: none; }
  .only-narrow { display: inline; }
  .bar__inner { min-height: 4.5rem; }
  .logo__word { font-size: 2rem; }
  .logo__pill { font-size: .7rem; }

  .hero-blob { display: none; }
  .hero__grid { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero__copy { padding-block: 2rem 1.5rem; }
  .hero__title { font-size: clamp(2.2rem, 10.2vw, 4.4rem); margin-bottom: 1.25rem; }
  .hero__lead { font-size: 1.0625rem; margin-bottom: 1.75rem; }
  .actions .btn { flex: 1 1 14rem; }

  .hero__visual {
    height: 470px;
    margin-inline: -1.25rem;
    clip-path: none;
    overflow: hidden;
  }
  .hero__visual::before {
    content: ""; position: absolute; inset: 30px -10% 0 0;
    background: url("assets/hero-blob.svg") no-repeat center / 100% 100%;
    border-radius: 50% 0 0 0;
  }
  .phone { font-size: 9.6px; left: 38%; top: 46px; }
  .gift { width: 140px; left: 4%; top: 46%; }
  .coin { width: 56px; }
  .coin--a { left: 22%; top: 12%; }
  .coin--b { left: 2%; top: 26%; width: 62px; }
  .coin--c { right: 2%; top: 22%; }
  .coin--d { right: 6%; top: 62%; width: 46px; }
  .hero__visual .example-tag { left: 1.25rem; bottom: 1rem; }
}

@media (max-width: 380px) {
  .phone { left: 34%; }
  .tag { font-size: .875rem; }
}
