/* Portada de glepi.app: héroe con la semana como una onda que recorre Pompis, recorrido por las
   pantallas reales de la app e insignias oficiales de las tiendas. Usa los tokens de site.css. */

/* ---------------------------------------------------------------- Héroe */
.hx { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: var(--hero); padding: 112px 0 0; }
.hx::before { /* anillo suave, como en la app */
  content: ""; position: absolute; z-index: -1; pointer-events: none; width: 720px; height: 720px; right: -260px; top: -300px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 0 0 90px rgba(255, 255, 255, .03);
}
.hx :focus-visible { outline-color: #fff; }
.hx-copy { position: relative; z-index: 2; }
.hx-eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .78); margin: 0 0 18px; }
.hx h1 {
  margin: 0; font-weight: 650; letter-spacing: -.05em; line-height: .98; text-wrap: balance;
  font-size: clamp(46px, 9.6vw, 104px); max-width: 13ch;
}
.hx h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.015em; font-size: 1.14em; line-height: .7; }
.hx-soft { color: #CDBDFF; }
.hx-lead { max-width: 46ch; margin: 24px 0 0; font-size: clamp(17px, 2.1vw, 19px); line-height: 1.5; color: rgba(255, 255, 255, .9); text-wrap: pretty; }

/* Insignias oficiales (sin modificar; se enlazarán a la ficha cuando esté publicada). */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 30px; }
.badge { display: inline-flex; line-height: 0; }
.badge img { height: 48px; width: auto; }
.badges-note { font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .72); flex-basis: 100%; }
@media (min-width: 560px) { .badges-note { flex-basis: auto; margin-left: 4px; } }

/* La semana: onda + días + Pompis. La onda se estira a todo el ancho. */
.hx-stage { position: relative; height: clamp(230px, 30vw, 330px); margin-top: clamp(8px, 3vw, 28px); }
.hx-wave { position: absolute; inset: 0 0 34px; width: 100%; height: calc(100% - 34px); overflow: visible; }
.hx-path, .hx-path-future { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hx-path { stroke: #fff; stroke-width: 3; }
.hx-path-future { stroke: rgba(255, 255, 255, .42); stroke-width: 1.5; stroke-dasharray: 3 7; }
.hx-area { fill: url(#hxFill); }
.hx-days {
  position: absolute; left: 0; right: 0; bottom: 0; height: 34px; margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid rgba(255, 255, 255, .16);
}
.hx-days li {
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255, 255, 255, .62); padding: 9px 0 0 10px; border-left: 1px solid rgba(255, 255, 255, .10);
}
.hx-days li:first-child { border-left: 0; }
.hx-days li.is-shot { color: #fff; }
.hx-days li span { display: none; }
@media (min-width: 720px) {
  .hx-days li span { display: inline; margin-left: 8px; padding: 2px 6px; border-radius: 6px; background: #FF7A45; color: #1A1523; letter-spacing: .06em; }
}

/* Pompis: se coloca por JS sobre la onda; aquí solo su balanceo propio. */
.hx-pompis { position: absolute; left: 0; top: 0; width: clamp(84px, 11vw, 132px); will-change: transform; transform: translate(-50%, -88%); }
.hx-mascot { display: block; width: 100%; height: auto; transform-origin: 50% 92%; animation: hx-bob 1.9s ease-in-out infinite; filter: drop-shadow(0 18px 18px rgba(20, 0, 80, .35)); }
@keyframes hx-bob {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  45% { transform: translateY(-9%) scale(.97, 1.03); }
  80% { transform: translateY(0) scale(1.04, .96); }
}
/* La tarjeta va al lado de Pompis (a la derecha al empezar la semana, a la izquierda al acabarla). */
.hx-card {
  position: absolute; top: 4%; left: calc(100% + 6px); width: max-content; max-width: 220px;
  padding: 10px 13px; border-radius: 16px 16px 16px 4px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .26);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: opacity .35s ease, transform .35s ease;
}
.hx-pompis.is-late .hx-card { left: auto; right: calc(100% + 6px); border-radius: 16px 16px 4px 16px; }
.hx-card span { display: block; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.hx-card b { display: block; margin-top: 3px; font-size: 14.5px; font-weight: 650; line-height: 1.25; }
.hx-card.is-out { opacity: 0; transform: translateY(6px); }

.hx .trust-strip { margin-top: 0; }

/* ---------------------------------------------------------------- Recorrido por la app */
.tour { padding: 88px 0 40px; }
.tour-head { margin-bottom: 40px; }
.tour-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 56px; }
.tour-step { max-width: 34rem; }
.tour-plan { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--acc); margin: 0 0 10px; }
.tour-step h3 { margin: 0 0 10px; font-size: clamp(26px, 4.4vw, 38px); line-height: 1.05; letter-spacing: -.035em; font-weight: 650; text-wrap: balance; }
.tour-step p:not(.tour-plan) { margin: 0; color: var(--ink2); font-size: 17px; line-height: 1.55; text-wrap: pretty; }

/* El teléfono (marco y pantalla) se comparte entre la versión móvil y la fija. */
.phone, .tour-phone-inline {
  position: relative; margin: 0; aspect-ratio: 600 / 1300; border-radius: 44px; padding: 9px; background: #121016;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 40px 80px -30px rgba(58, 24, 160, .45), 0 18px 36px -18px rgba(22, 19, 28, .35);
}
.phone img, .tour-phone-inline img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 36px; background: #F2F1F6; }
.tour-phone-inline { width: min(78%, 300px); margin: 0 0 26px; }

/* Escritorio: las pantallas se quedan fijas a la derecha y cambian con cada paso. */
.tour-stick { display: none; }
@media (min-width: 960px) {
  .tour-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; align-items: start; }
  .tour-steps { gap: 0; }
  .tour-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .35; transition: opacity .4s ease; }
  .tour-step.is-on { opacity: 1; }
  .tour-phone-inline { display: none; }
  .tour-stick { display: block; position: sticky; top: calc(50vh - 300px); }
  .phone { width: 300px; }
  .phone img { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); opacity: 0; transform: scale(.985); transition: opacity .45s ease, transform .45s ease; }
  .phone img.is-on { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- Llamada final */
.cta { background: var(--hero); color: #fff; padding: 72px 0; overflow: hidden; }
.cta :focus-visible { outline-color: #fff; }
.cta-grid { display: grid; gap: 24px; align-items: center; }
.cta-pompis { width: clamp(140px, 22vw, 220px); height: auto; animation: hx-bob 2.2s ease-in-out infinite; transform-origin: 50% 92%; filter: drop-shadow(0 18px 18px rgba(20, 0, 80, .35)); }
.cta .h2 { color: #fff; margin: 0; }
.cta-sub { margin: 10px 0 0; color: rgba(255, 255, 255, .88); font-size: 18px; }
@media (min-width: 720px) { .cta-grid { grid-template-columns: auto 1fr; gap: 48px; } }

.trademarks { margin: 14px 0 0; font-size: 12px; line-height: 1.5; color: var(--ink2); }

/* Menú: los anclas de la portada solo en pantallas anchas. */
.nav-wide { display: none !important; }
@media (min-width: 640px) { .nav-wide { display: inline-flex !important; } }

/* ---------------------------------------------------------------- Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .hx-mascot, .cta-pompis { animation: none; }
  .hx-card, .tour-step, .phone img { transition: none; }
}
