/* Glow Within — landing page (ponte campaña → App Store) */

:root {
  --cream: #fcf8f6;
  --sand: #f6f2ee;
  --rose: #e8b4bc;
  --rose-mid: #d99aa8;
  --rose-deep: #b8697d;
  --plum: #190f18;
  --plum-2: #2b1a28;
  --ink: #2a1f26;
  --muted: #8a7378;
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */
.top {
  position: relative;
  z-index: 5;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { border-radius: 11px; box-shadow: 0 6px 18px rgba(25, 15, 24, .22); }
.brand span {
  font-size: 12px;
  letter-spacing: .32em;
  font-weight: 500;
  color: var(--ink);
}
.top-right { display: flex; align-items: center; gap: 10px; }

.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(184, 105, 125, .2);
}
.lang button {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 7px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { background: var(--plum); color: #fff; }

.top-cta {
  font-size: 14px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 999px;
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(135deg, #d98ea0 0%, #b8697d 100%);
  box-shadow: 0 8px 20px rgba(184, 105, 125, .38);
  transition: transform .2s ease, box-shadow .2s ease;
}
.top-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(184, 105, 125, .46); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  margin-top: -84px; /* el degradado pasa por detrás de la cabecera */
  padding: 100px 22px 0;
  overflow: hidden;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}
.glow-1 { width: 520px; height: 520px; left: 50%; top: -120px; margin-left: -460px; background: rgba(232, 180, 188, .55); }
.glow-2 { width: 460px; height: 460px; right: 50%; top: 200px; margin-right: -520px; background: rgba(205, 180, 230, .35); }
.hero > :not(.glow) { position: relative; z-index: 1; }

.eyebrow {
  margin: 12px 0 14px;
  font-size: 12px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

h1 {
  margin: 0 auto;
  max-width: 980px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 7.4vw, 88px);
  line-height: 1.02;
  letter-spacing: -.01em;
  color: var(--ink);
  text-wrap: balance;
}
h1 span { display: block; }
h1 em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(100deg, #d98ea0 0%, #b8697d 55%, #9a5a8c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: .08em;
}

.lead {
  margin: 22px auto 0;
  max-width: 600px;
  font-size: clamp(16px, 2.1vw, 19px);
  color: #6b5a60;
  text-wrap: balance;
}

/* ---------- Botón App Store ---------- */
.cta-wrap { margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(.98); }
.btn .apple { width: 38px; height: 38px; flex: none; }
.btn .arrow { width: 26px; height: 26px; flex: none; opacity: .85; transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-text { display: flex; flex-direction: column; align-items: flex-start; text-align: left; line-height: 1.1; }
.btn-text small { font-size: 14px; font-weight: 400; opacity: .85; letter-spacing: .02em; }
.btn-text strong { font-size: 31px; font-weight: 600; letter-spacing: -.01em; }

.btn-main {
  padding: 22px 38px 22px 32px;
  color: #fff;
  background: linear-gradient(135deg, #2b1a28 0%, #190f18 100%);
  box-shadow: 0 14px 34px rgba(25, 15, 24, .32), 0 0 0 1px rgba(255, 255, 255, .06) inset;
  animation: glow 2.6s ease-in-out infinite;
}
.btn-main:hover { transform: translateY(-2px); }
/* Soft glow that fades in and out */
@keyframes glow {
  0%, 100% { box-shadow: 0 14px 34px rgba(25, 15, 24, .32), 0 0 22px 2px rgba(238, 208, 150, .40), 0 0 50px 6px rgba(230, 196, 130, .20); }
  50%      { box-shadow: 0 14px 34px rgba(25, 15, 24, .32), 0 0 34px 12px rgba(240, 210, 150, 1), 0 0 100px 34px rgba(232, 196, 130, .65); }
}

.micro { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

.chips {
  list-style: none;
  margin: 26px auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 560px;
}
.chips li {
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(184, 105, 125, .18);
  color: #7a5a63;
}

/* ---------- Teléfonos ---------- */
.phone {
  margin: 0;
  border-radius: 9% / 4.2%;
  padding: 2.4%;
  background: #1b1318;
  box-shadow: 0 30px 60px -18px rgba(60, 25, 45, .45), 0 0 0 1px rgba(255, 255, 255, .08) inset;
}
.phone img { border-radius: 7% / 3.3%; width: 100%; }

.stage {
  position: relative;
  width: min(100%, 760px);
  aspect-ratio: 1 / .92;
  margin: 40px auto 0;
  -webkit-mask-image: linear-gradient(#000 78%, transparent 100%);
  mask-image: linear-gradient(#000 78%, transparent 100%);
}
.stage .phone { position: absolute; }
.phone-c { width: 40%; left: 30%; top: 0; z-index: 3; }
.phone-l { width: 34%; left: 6%; top: 9%; transform: rotate(-6deg); z-index: 2; }
.phone-r { width: 34%; right: 6%; top: 9%; transform: rotate(6deg); z-index: 2; }

/* ---------- Galería ---------- */
.gallery {
  max-width: 1120px;
  margin: 0 auto;
  padding: 70px 0 30px;
  text-align: center;
}
h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  padding: 0 22px;
  text-wrap: balance;
}
h2 em { font-style: italic; color: var(--rose-mid); }

.rail {
  margin-top: 36px;
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 10px 22px 34px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }
.rail article {
  flex: 0 0 min(62vw, 230px);
  scroll-snap-align: center;
  text-align: center;
}
.rail h3 {
  margin: 18px 0 4px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
}
.rail article p { margin: 0 auto; max-width: 200px; font-size: 14px; color: var(--muted); }

@media (min-width: 1000px) {
  .rail { justify-content: center; overflow: visible; flex-wrap: nowrap; gap: 18px; }
  .rail article { flex: 1 1 0; min-width: 0; }
}

/* ---------- CTA final ---------- */
.final {
  position: relative;
  max-width: 1076px;
  margin: 30px 22px 0;
  padding: 56px 24px 60px;
  border-radius: 36px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(600px 300px at 85% 0%, rgba(184, 105, 125, .45), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(120, 70, 160, .35), transparent 70%),
    linear-gradient(160deg, #2b1a28, #190f18);
  overflow: hidden;
}
@media (min-width: 1120px) { .final { margin-left: auto; margin-right: auto; } }
.final-logo { margin: 0 auto 22px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.final > *:not(.final-glow) { position: relative; z-index: 1; }
.final-glow {
  position: absolute;
  width: 420px; height: 420px;
  left: 50%; top: -140px; margin-left: -210px;
  border-radius: 50%;
  background: rgba(232, 180, 188, .28);
  filter: blur(70px);
  pointer-events: none;
}
.final .eyebrow { margin: 0 0 14px; }
.eyebrow-light { color: var(--rose); }
.final h2 { font-size: clamp(36px, 6vw, 64px); margin-bottom: 18px; }
.final h2 em { color: var(--rose); }
.final-text {
  margin: 0 auto 34px;
  max-width: 560px;
  font-size: clamp(16px, 2.2vw, 19px);
  color: rgba(255, 255, 255, .78);
  text-wrap: balance;
}
.btn-light {
  padding: 22px 38px 22px 32px;
  background: #fff;
  color: var(--plum);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
  animation: glow-light 2.6s ease-in-out infinite;
}
.btn-light:hover { transform: translateY(-2px); }
@keyframes glow-light {
  0%, 100% { box-shadow: 0 14px 34px rgba(0, 0, 0, .35), 0 0 22px 2px rgba(247, 231, 206, .35), 0 0 50px 6px rgba(232, 200, 140, .20); }
  50%      { box-shadow: 0 14px 34px rgba(0, 0, 0, .35), 0 0 34px 12px rgba(247, 231, 206, 1), 0 0 100px 34px rgba(235, 200, 135, .7); }
}
.micro-light { color: rgba(255, 255, 255, .6); letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }

/* ---------- Footer ---------- */
footer { text-align: center; padding: 38px 22px 60px; font-size: 13px; color: var(--muted); }
footer p { margin: 0; }
.legal { margin-top: 8px !important; font-size: 11px; opacity: .75; max-width: 520px; margin-left: auto !important; margin-right: auto !important; }

/* ---------- Barra fija móvil ---------- */
.sticky {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(252, 248, 246, .96) 60%, rgba(252, 248, 246, 0));
  transform: translateY(110%);
  transition: transform .3s ease;
  pointer-events: none;
  display: none;
}
.sticky.show { transform: none; pointer-events: auto; }
.btn-sticky { width: 100%; justify-content: center; padding: 15px 20px; animation: glow-sticky 2.6s ease-in-out infinite; }
@keyframes glow-sticky {
  0%, 100% { box-shadow: 0 10px 26px rgba(25, 15, 24, .3), 0 0 14px 0 rgba(238, 208, 150, .35); }
  50%      { box-shadow: 0 10px 26px rgba(25, 15, 24, .3), 0 0 26px 6px rgba(240, 210, 150, .95); }
}
.sticky .btn-sticky .btn-text strong { font-size: 17px; }
.sticky .btn-sticky .apple { width: 24px; height: 24px; }

/* ---------- Móvil ---------- */
@media (max-width: 640px) {
  .sticky { display: block; }
  footer { padding-bottom: 100px; }
  .top { padding: 14px 14px; gap: 8px; }
  .brand img { width: 38px; height: 38px; }
  .brand span { display: none; }
  .top-right { gap: 6px; }
  .lang button { font-size: 11px; padding: 6px 8px; }
  .top-cta { font-size: 13px; padding: 10px 14px; }
  .hero { margin-top: -68px; padding: 80px 18px 0; }
  .eyebrow { font-size: 11px; margin-top: 6px; }
  .btn-main, .btn-light { width: 100%; max-width: 380px; justify-content: center; padding: 20px 24px; }
  .btn .apple { width: 34px; height: 34px; }
  .btn-text strong { font-size: 27px; }
  .btn-sticky { max-width: none; padding: 15px 20px; }
  .stage { margin-top: 30px; aspect-ratio: 1 / 1; }
  .phone-c { width: 44%; left: 28%; }
  .phone-l { width: 36%; left: -2%; top: 12%; }
  .phone-r { width: 36%; right: -2%; top: 12%; }
  .final { padding: 44px 20px 48px; border-radius: 28px; }
  .glow-1 { left: 0; margin-left: -260px; }
  .glow-2 { right: 0; margin-right: -280px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* The button glow is only a soft fade (no movement), so it keeps running. */
  * { transition: none !important; }
}
