/* TopGallery — web. Misma identidad que la app: negro y un único acento lima. */
:root {
  --ink: #0A0A0A;
  --surface: #171717;
  --surface-2: #222222;
  --line: #2B2B2B;
  --paper: #F2F2F2;
  --soft: #B5B5B5;
  --mute: #9A9A9A;
  --lime: #C6F432;
  --on-lime: #141A00;
  --red: #FF5A5F;
  --radius-l: 28px;
  --radius-m: 18px;
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--lime); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Cabecera */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--paper); font-weight: 700; font-size: 18px; letter-spacing: -0.3px; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.top nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.top nav a { color: var(--soft); }
.top nav a:hover { color: var(--paper); text-decoration: none; }
.lang { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface-2); }
.lang a { padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--mute); }
.lang a[aria-current="true"] { background: var(--paper); color: var(--ink); }
.lang a:hover { text-decoration: none; }
@media (max-width: 640px) { .top nav .hide-sm { display: none; } }

/* Portada */
.hero { padding: 72px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(48px, 7.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
}
.hero p.lead { margin: 0 0 32px; max-width: 30ch; font-size: clamp(19px, 2vw, 22px); line-height: 1.45; color: var(--soft); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 26px; border-radius: 999px;
  background: var(--lime); color: var(--on-lime);
  font-weight: 700; font-size: 17px; border: 0; cursor: pointer;
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn svg { width: 20px; height: 20px; }
.btn.is-soon { cursor: default; }
.note { font-size: 14px; color: var(--mute); }
@media (max-width: 900px) {
  .hero { padding: 40px 0 72px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero p.lead { max-width: 34ch; }
}

/* Demo: pila de fotos que se puede deslizar */
.demo { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.phone {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 340 / 690;
  border-radius: 52px;
  background: var(--ink);
  border: 1px solid #333;
  box-shadow: 0 0 0 10px #151515, 0 40px 120px rgba(198, 244, 50, 0.07);
  padding: 58px 16px 20px;
  display: flex; flex-direction: column; gap: 10px;
  user-select: none; -webkit-user-select: none;
}
.phone .bar { display: flex; justify-content: space-between; font-size: 13px; color: var(--mute); }
.phone .bar b { color: var(--paper); font-weight: 600; }
.progress { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--lime); transition: width .3s ease; }
.hints { display: flex; gap: 6px; }
.hints span { flex: 1; text-align: center; font-size: 11.5px; font-weight: 600; padding: 5px 0; border-radius: 999px; background: var(--surface-2); color: var(--paper); }
.deck { position: relative; flex: 1; }
.card {
  position: absolute; inset: 0;
  border-radius: 26px;
  background-color: var(--surface);
  background-size: cover; background-position: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  touch-action: none; cursor: grab;
  will-change: transform;
}
.card:active { cursor: grabbing; }
.card.behind { transform: scale(0.95) translateY(10px); filter: brightness(0.7); pointer-events: none; }
.card .date { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; font-size: 11px; background: rgba(10, 10, 10, 0.7); color: var(--paper); }
.stamp {
  position: absolute; top: 26px; left: 50%;
  translate: -50% 0; rotate: -12deg;
  padding: 4px 12px; border-radius: 10px; border: 4px solid currentColor;
  background: rgba(10, 10, 10, 0.55);
  font-weight: 900; font-size: 26px; letter-spacing: -0.5px; white-space: nowrap;
  opacity: 0; pointer-events: none;
}
.stamp.keep { color: var(--lime); }
.stamp.delete { color: var(--red); }
.stamp.album { color: var(--paper); }
.controls { display: flex; justify-content: center; align-items: center; gap: 26px; }
.controls button {
  display: grid; place-items: center;
  border: 0; border-radius: 50%; cursor: pointer;
}
.controls .undo { width: 44px; height: 44px; background: var(--surface-2); color: var(--soft); }
.controls .del { width: 58px; height: 58px; background: rgba(255, 90, 95, 0.16); color: var(--red); }
.controls .keep { width: 58px; height: 58px; background: rgba(198, 244, 50, 0.16); color: var(--lime); }
.controls svg { width: 24px; height: 24px; }
.controls .undo svg { width: 20px; height: 20px; }
.demo .try { font-size: 14px; color: var(--mute); text-align: center; max-width: 30ch; }
.tally { display: flex; gap: 14px; font-size: 13px; color: var(--mute); }
.tally b { color: var(--paper); font-variant-numeric: tabular-nums; }
.done { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.done.show { display: flex; }
.done svg { width: 64px; height: 64px; color: var(--lime); }
.done p { margin: 0; font-weight: 700; font-size: 20px; }
.done button { border: 0; border-radius: 999px; padding: 10px 18px; background: var(--surface-2); color: var(--paper); font: inherit; font-size: 15px; cursor: pointer; }

/* Secciones */
section.block { padding: 112px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.block h2 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.02; letter-spacing: -0.035em; font-weight: 800;
  max-width: 16ch;
}
.block p.intro { margin: 0; max-width: 46ch; font-size: 20px; color: var(--soft); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split.flip .shot { order: -1; }
@media (max-width: 900px) {
  section.block { padding: 80px 0; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .split.flip .shot { order: 0; }
}

/* Pasos (es una secuencia real: elegir mes, deslizar, aplicar) */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.steps > li { counter-increment: step; padding-top: 22px; border-top: 2px solid var(--line); }
.steps > li::before { content: counter(step); display: block; margin-bottom: 14px; font-size: 15px; font-weight: 800; color: var(--lime); }
.steps h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.3px; }
.steps p { margin: 0; color: var(--soft); }
.gestures { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; color: var(--soft); }
.gestures kbd { display: inline-block; min-width: 26px; text-align: center; margin-right: 8px; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); color: var(--paper); font: inherit; font-weight: 700; }
@media (max-width: 800px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Capturas */
.shot { display: flex; justify-content: center; }
.screen {
  width: min(100%, 320px); aspect-ratio: 1179 / 2556;
  border-radius: 46px; overflow: hidden;
  background: var(--surface) center / cover no-repeat;
  box-shadow: 0 0 0 9px #151515, 0 0 0 10px #2a2a2a, 0 40px 100px rgba(0, 0, 0, 0.6);
}
.facts { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; color: var(--soft); }
.facts li svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--lime); }
.facts li strong { color: var(--paper); font-weight: 600; }

/* Privacidad */
.privacy-band { text-align: left; }
.privacy-band .big {
  margin: 0; font-size: clamp(40px, 6.4vw, 84px); line-height: 1; letter-spacing: -0.045em; font-weight: 800; max-width: 14ch;
}
.privacy-band .big span { color: var(--mute); }
.pills { margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.pills li { padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; color: var(--paper); }

/* Precios */
.plans { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; align-items: stretch; }
.plan { border-radius: var(--radius-l); padding: 32px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.plan.pro { border: 2px solid var(--lime); background: radial-gradient(120% 80% at 100% 0%, rgba(198, 244, 50, 0.08), transparent 60%); }
.plan h3 { margin: 0; font-size: 26px; letter-spacing: -0.4px; }
.plan .price { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.plan .price small { font-size: 17px; font-weight: 600; color: var(--soft); letter-spacing: 0; }
.plan .sub { margin: -8px 0 0; color: var(--soft); font-size: 15px; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; color: var(--soft); font-size: 16px; }
.plan li svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--lime); }
.plan .alt { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); color: var(--soft); font-size: 15px; }
.plan .alt strong { color: var(--paper); }
.fineprint { margin: 18px 0 0; font-size: 14px; color: var(--mute); max-width: 70ch; }
@media (max-width: 800px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* Preguntas */
.faq { margin-top: 40px; max-width: 760px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 36px 22px 0; position: relative; font-size: 19px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 26px; font-weight: 300; color: var(--mute); transition: rotate .2s ease; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0 0 22px; color: var(--soft); max-width: 62ch; }

/* Cierre */
.closer { padding: 120px 0; text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.closer img { width: 96px; height: 96px; margin: 0 auto 28px; }
.closer h2 { margin: 0 auto 26px; font-size: clamp(36px, 5vw, 60px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; max-width: 16ch; }
.closer .cta-row { justify-content: center; }

/* Pie */
footer { padding: 40px 0 56px; border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: 14px; color: var(--mute); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
footer a { color: var(--soft); }

/* Páginas de texto (privacidad, soporte) */
.doc { padding: 64px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { margin: 0 0 10px; font-size: clamp(38px, 5vw, 56px); letter-spacing: -0.035em; line-height: 1.04; }
.doc .updated { margin: 0 0 40px; color: var(--mute); font-size: 15px; }
.doc h2 { margin: 44px 0 12px; font-size: 24px; letter-spacing: -0.3px; }
.doc p, .doc li { color: var(--soft); }
.doc strong { color: var(--paper); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.contact-card { margin: 32px 0 8px; padding: 26px; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--line); }
.contact-card p { margin: 0 0 14px; }

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