/* Landing de getmemoraapp.com */

/* --- Nav --- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 21px; letter-spacing: -.03em; }
.brand img { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14.5px; }
.nav-links a { text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn { min-height: 40px; padding: 0 18px; font-size: 14px; color: #fff; }
@media (max-width: 760px) { .nav-links .hide-m { display: none; } .nav-links { gap: 14px; font-size: 14px; } .nav-links .btn { padding: 0 14px; } }

/* --- Hero --- */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto auto; width: 900px; height: 900px;
  background: radial-gradient(closest-side, rgba(37, 99, 235, .08), transparent 70%);
  pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; }
.hero h1 {
  font-size: clamp(42px, 6.4vw, 78px); line-height: 1.02; letter-spacing: -.045em;
  font-weight: 600; margin: 18px 0 22px;
}
.hero h1 em { font-style: normal; color: var(--blue); }
.hero p.sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 30em; margin: 0 0 34px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.web-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  color: var(--ink-2); font-size: 14.5px; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px;
}
.web-link:hover { color: var(--blue); border-color: var(--blue); }
@media (max-width: 900px) {
  .hero { padding: 40px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
}

/* --- Phone mockup --- */
.stage { position: relative; display: grid; place-items: center; min-height: 600px; }
.phone {
  position: relative; width: 300px; height: 612px; border-radius: 52px; padding: 12px;
  background: #0B0B0F; box-shadow: var(--shadow-lg), inset 0 0 0 2px #2a2a33;
  transform: rotate(-3deg);
}
.screen { position: relative; width: 100%; height: 100%; border-radius: 41px; overflow: hidden; background: #F4F6FB; color: #0F172A; }
.island { position: absolute; top: 10px; left: 50%; translate: -50% 0; width: 96px; height: 28px; border-radius: 20px; background: #0B0B0F; z-index: 3; }
.scr-cover { height: 168px; position: relative; background: url(img/g1.webp) center 35%/cover; }
.scr-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(0, 0, 0, .6)); }
.scr-title { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; color: #fff; }
.scr-title b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.scr-title span { font-size: 11px; opacity: .9; display: inline-flex; align-items: center; gap: 6px; }
.scr-title span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .3); }
.scr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 6px; }
.scr-grid div { aspect-ratio: 1; border-radius: 6px; background: #dfe4ef center/cover; animation: pop .5s cubic-bezier(.2, .9, .3, 1.3) both; }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }
.scr-fab { position: absolute; right: 16px; bottom: 18px; width: 52px; height: 52px; border-radius: 50%; background: #2563EB; display: grid; place-items: center; box-shadow: 0 10px 20px -6px rgba(37, 99, 235, .8); }
.scr-fab svg { width: 22px; height: 22px; color: #fff; }

.toast {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px; border-radius: 16px; background: var(--card);
  box-shadow: var(--shadow); border: 1px solid var(--line); font-size: 13px; font-weight: 500;
  white-space: nowrap; animation: float 6s ease-in-out infinite;
}
.toast img { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; }
.toast small { display: block; color: var(--muted); font-weight: 400; font-size: 11.5px; }
.toast.t1 { top: 36%; left: -4%; }
.toast.t2 { top: 60%; right: -4%; animation-delay: -2s; }
.toast.t3 { bottom: 8%; left: 4%; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (max-width: 520px) {
  .stage { min-height: 540px; }
  .phone { width: 262px; height: 536px; }
  .toast.t1 { left: 0; } .toast.t2 { right: 0; }
}
@media (prefers-reduced-motion: reduce) { .toast, .scr-grid div { animation: none; } }

/* --- Secciones --- */
section { padding: 104px 0; }
.sec-head { max-width: 680px; margin-bottom: 56px; }
.sec-head h2, .purpose h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -.04em; font-weight: 600; margin: 14px 0 0; }
@media (max-width: 700px) { section { padding: 72px 0; } .sec-head { margin-bottom: 36px; } }

.purpose { padding: 120px 0; background: var(--soft); }
.purpose .wrap { max-width: 920px; text-align: center; }
.purpose h2 { font-size: clamp(30px, 4.2vw, 50px); }
.purpose p { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 36em; margin: 26px auto 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { background: var(--soft); border: 1px solid transparent; border-radius: var(--radius); padding: 32px 28px 30px; position: relative; }
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px;
  background: var(--blue-50); color: var(--blue); font-weight: 600; margin-bottom: 26px;
}
.step h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -.02em; font-weight: 600; }
.step p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feat { background: var(--card); padding: 34px 30px; }
.feat svg { width: 26px; height: 26px; color: var(--blue); margin-bottom: 20px; }
.feat h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.02em; font-weight: 600; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feats { grid-template-columns: 1fr; } }

/* Marquee de tipos de evento */
.types { padding: 40px 0 0; overflow: hidden; }
.types h2 { text-align: center; font-size: 15px; font-weight: 500; color: var(--muted); margin: 0 0 22px; }
.marquee { display: flex; gap: 12px; width: max-content; animation: slide 40s linear infinite; }
.marquee span { padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 500; white-space: nowrap; }
.marquee span:nth-child(4n+1) { background: var(--ink); border-color: var(--ink); color: var(--bg); }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* Invitados y anfitriones */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { border-radius: 28px; padding: 44px 40px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; min-height: 420px; }
.panel h3 { font-size: clamp(28px, 3vw, 38px); line-height: 1.08; letter-spacing: -.035em; font-weight: 600; margin: 4px 0 0; }
.panel p { margin: 0; max-width: 28em; }
.panel .btn { align-self: flex-start; margin-top: auto; }
.panel.guest { background: var(--blue-50); }
.panel.guest p { color: var(--ink-2); }
.panel.guest .btn { background: var(--blue); color: #fff; }
.panel.guest .qr-art { color: var(--blue); }
:root[data-theme="dark"] .panel.guest { background: var(--blue); color: #fff; }
:root[data-theme="dark"] .panel.guest .eyebrow { color: #BFDBFE; }
:root[data-theme="dark"] .panel.guest p { color: #DBEAFE; }
:root[data-theme="dark"] .panel.guest .btn { background: #fff; color: var(--blue); }
:root[data-theme="dark"] .panel.guest .qr-art { color: #fff; }
.panel.host { background: var(--soft); }
.panel.host p { color: var(--muted); }
.qr-art { position: absolute; right: -30px; bottom: -30px; width: 210px; height: 210px; opacity: .14; }
.host-art { position: absolute; right: 28px; bottom: 28px; display: grid; grid-template-columns: repeat(4, 46px); gap: 6px; opacity: .9; }
.host-art div { aspect-ratio: 1; border-radius: 9px; background: center/cover; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } .panel { min-height: 0; padding: 36px 28px; } .host-art, .qr-art { display: none; } }

/* CTA final */
.final { padding: 0 0 104px; }
.final .box {
  border-radius: 32px; padding: 80px 32px; text-align: center; color: #fff; position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
}
:root[data-theme="dark"] .final .box { background: radial-gradient(120% 120% at 50% 0%, #3B82F6 0%, #1D4ED8 55%, #172554 100%); }
.final h2 { font-size: clamp(34px, 5vw, 60px); letter-spacing: -.045em; line-height: 1.04; font-weight: 600; margin: 0 auto 14px; max-width: 14em; }
.final p { color: #CBD5E1; font-size: 18px; margin: 0 0 34px; }
:root[data-theme="dark"] .final p { color: #DBEAFE; }
.final .stores { justify-content: center; }
.final .store { background: #fff; color: #0B0B0F; }

footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 22px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Revelado al hacer scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

:root[data-theme="dark"] .hero::before { background: radial-gradient(closest-side, rgba(59, 130, 246, .22), transparent 70%); }
@media (max-width: 760px) { .nav .prefs .pref-btn { height: 34px; min-width: 34px; padding: 0 8px; } }
