/* Locked In — web. Construida desde cero el 16 oct 2026, después de ver las 10.178 URL de las 38 webs de la
   competencia (docs/investigacion/webs-competencia.md §3). Negra y premium como Opal; un solo gesto propio:
   el trazo rojo a mano que rodea y tacha Reels (SocialLite, Fluid Friction). */

:root {
  --ink: #000;
  --graphite: #161616;
  --rule: #2a2a2a;
  --bone: #f3f1ec;
  --soft: #cfcdc8;
  --ash: #9a9a9f;
  --marker: #ff3b30;
  --shield: #5e5ce6;

  --font: "Archivo", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --measure: 34rem;
  --page: 70rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --space: clamp(5rem, 12vw, 9rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--bone);
  font-family: var(--font); font-size: 1.125rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg, video { display: block; }
:focus-visible { outline: 3px solid var(--bone); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 50; padding: .6rem 1rem;
  background: var(--bone); color: var(--ink); border-radius: 999px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 1rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Cabecera en píldora ---------- */

.bar {
  position: fixed; z-index: 20; top: .75rem; left: 50%; transform: translateX(-50%);
  width: min(var(--page), calc(100% - 1.5rem));
  display: flex; align-items: center; justify-content: space-between;
  padding: .45rem .45rem .45rem 1.1rem;
  background: rgba(0, 0, 0, .86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--rule); border-radius: 999px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 2.6rem;
  text-decoration: none; font-stretch: 75%; font-weight: 800; font-size: 1.35rem; letter-spacing: -.01em; line-height: 1;
}
.wordmark__face { width: 1.75rem; height: 1.75rem; margin: -.2rem -.05rem -.2rem -.25rem; }

/* ---------- Botones y oferta ---------- */

.cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.5rem; padding: 0 1.75rem;
  background: var(--bone); color: var(--ink); border: 1px solid var(--bone); border-radius: 999px;
  font-weight: 700; font-size: 1.05rem; text-decoration: none;
  transition: transform .15s ease;
}
.cta:hover { transform: translateY(-1px); }
.cta--small { min-height: 2.6rem; padding: 0 1.15rem; font-size: .95rem; }
.cta.is-soon { background: transparent; color: var(--bone); border-color: var(--rule); pointer-events: none; }

.offer {
  list-style: none; margin: .95rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1.1rem;
  color: var(--ash); font-size: .95rem;
}
.offer li::before { content: "✓"; margin-right: .4rem; color: var(--bone); font-weight: 700; }

/* QR para quien llega desde el ordenador (solo con la app publicada; lo enciende site.js) */
.qr { display: flex; align-items: center; gap: 1rem; margin: 1.6rem 0 0; max-width: 21rem; color: var(--ash); font-size: .9rem; text-align: left; }
.qr[hidden] { display: none; }
.qr__code { flex: none; width: 5.5rem; height: 5.5rem; padding: .35rem; background: #fff; border-radius: .8rem; }
.qr__code svg { width: 100%; height: 100%; }

/* Antes del lanzamiento no hay adónde mandar: fuera el botón de la cabecera y la barra fija */
.prelaunch .bar .cta, .prelaunch .dock { display: none; }

/* ---------- Secciones ---------- */

main > section { width: min(var(--page), 100%); margin: 0 auto; padding: var(--space) var(--gutter) 0; }
.title {
  margin: 0 0 1.5rem; font-stretch: 70%; font-weight: 800;
  font-size: clamp(2.5rem, 8vw, 4.75rem); line-height: .95; letter-spacing: -.012em; text-wrap: balance;
}
.title > span { display: block; }

/* ---------- Locky, la mascota ----------
   Vídeos con fondo negro puro (#000, medido), así que se funden con la página. Locky ocupa del 12 al 84 % del
   alto en todos los fotogramas: se recorta el negro sobrante con object-fit en vez de solapar con márgenes
   negativos (el vídeo se pinta por encima de lo que tape, bordes incluidos). Los reproduce site.js. */
.locky {
  width: min(15rem, 62vw); height: auto; aspect-ratio: 1 / .76;
  object-fit: cover; object-position: 50% 42%; margin: 0 0 .75rem -.9rem;
}
.locky--lock { margin-bottom: 1.25rem; }
.locky--closing { margin: 0 auto 1.5rem; }

/* ---------- Hero ---------- */

.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: calc(var(--space) + 2rem) !important; }
.hero__title { margin: 0; font-stretch: 62%; font-weight: 900; font-size: clamp(3.6rem, 15vw, 9.5rem); line-height: .86; letter-spacing: -.015em; }
.hero__title > span { display: block; }
.hero__lede { max-width: var(--measure); margin: 1.6rem auto 0; color: var(--soft); font-size: clamp(1.1rem, 2.4vw, 1.3rem); }
.hero__also { max-width: var(--measure); margin: .8rem auto 0; color: var(--ash); font-size: 1rem; }
.hero__also strong { color: var(--bone); font-weight: 600; }
.hero__action { margin-top: 2rem; display: flex; flex-direction: column; align-items: center; }

/* ---------- El iPhone (dibujado, sin marca de Instagram) ---------- */

.phone {
  position: relative; margin: 4rem auto 0; width: min(18.5rem, 78vw); aspect-ratio: 9 / 18;
  padding: .7rem; background: #1c1c1e; border: 1px solid #2c2c2e; border-radius: 2.9rem;
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, .8), 0 0 0 1px #000, 0 0 12rem rgba(243, 241, 236, .06);
}
.phone__screen {
  position: relative; height: 100%; overflow: hidden; border-radius: 2.25rem;
  background: #fff; color: #111; font-size: .8rem; line-height: 1.35; text-align: left;
  display: flex; flex-direction: column;
}
.phone__screen::before {
  content: ""; position: absolute; z-index: 2; top: .6rem; left: 50%; transform: translateX(-50%);
  width: 32%; height: 1.55rem; border-radius: 999px; background: #000;
}
.feed__top { display: flex; justify-content: space-between; align-items: center; padding: 2.6rem 1rem .5rem; font-weight: 800; font-size: 1.05rem; }
.feed__top svg { width: 1.3rem; height: 1.3rem; }
.feed__stories { display: flex; gap: .55rem; padding: .3rem .8rem .7rem; border-bottom: 1px solid #efefef; }
.feed__stories i, .feed__who i {
  display: grid; place-items: center; flex: none; font-style: normal; font-weight: 700; color: #333;
  background: #e9e7e2; border-radius: 50%;
}
.feed__stories i { width: 2.6rem; height: 2.6rem; font-size: .7rem; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #c9c6bf; }
.feed__who { display: flex; align-items: center; gap: .55rem; padding: .6rem 1rem; font-weight: 700; }
.feed__who i { width: 1.6rem; height: 1.6rem; font-size: .55rem; }
.feed__photo {
  aspect-ratio: 5 / 4;
  background:
    radial-gradient(60% 50% at 70% 30%, #f6d6a8 0%, transparent 60%),
    linear-gradient(160deg, #f3a35c 0%, #c95d4a 45%, #59406f 100%);
}
.feed__meta { padding: .5rem 1rem; color: #555; font-size: .72rem; }
.feed__end {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .25rem; padding: .5rem 1.2rem 1rem; text-align: center; color: #555;
}
.feed__end svg { width: 2.4rem; height: 2.4rem; color: #111; margin-bottom: .25rem; }
.feed__end strong { color: #111; font-size: .9rem; }
.feed__end span { font-size: .72rem; }
.feed__tabs { display: flex; align-items: center; justify-content: space-around; padding: .7rem .6rem 1.4rem; border-top: 1px solid #efefef; color: #111; }
.feed__tabs > svg { width: 1.4rem; height: 1.4rem; }
.feed__reels { position: relative; width: 1.4rem; height: 1.4rem; }
.feed__reels-icon { width: 100%; height: 100%; transition: opacity .4s ease 1.25s; }
.is-struck .feed__reels-icon { opacity: .22; }

/* El gesto: un trazo rojo a mano que rodea Reels y lo tacha, una vez, cuando la barra entra en pantalla */
.marker { position: absolute; left: 50%; top: 50%; width: 3.6rem; height: 3.6rem; transform: translate(-50%, -50%) rotate(-8deg); overflow: visible; }
.marker path { fill: none; stroke: var(--marker); stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
.marker__ring { stroke-dasharray: 160; stroke-dashoffset: 160; }
.marker__strike { stroke-dasharray: 54; stroke-dashoffset: 54; }
.is-struck .marker__ring { stroke-dashoffset: 0; transition: stroke-dashoffset .8s cubic-bezier(.6, .05, .3, 1) .15s; }
.is-struck .marker__strike { stroke-dashoffset: 0; transition: stroke-dashoffset .3s ease-out 1s; }

/* ---------- El dolor ---------- */

.scenes__list { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.scenes__list li {
  padding: 1.4rem 0; border-top: 1px solid var(--rule);
  font-stretch: 85%; font-weight: 600; font-size: clamp(1.45rem, 4vw, 2.2rem); line-height: 1.15; letter-spacing: -.01em;
}
.scenes__list li:last-child { border-bottom: 1px solid var(--rule); }
.scenes__turn { margin: 0; padding-top: 1.6rem; max-width: var(--measure); color: var(--ash); }
.scenes__turn strong { color: var(--bone); font-weight: 700; }

/* ---------- Qué se va, qué se queda ---------- */

.split__cols { display: grid; gap: 2.5rem; }
.split__col h3 { margin: 0 0 .75rem; padding-bottom: .75rem; border-bottom: 1px solid var(--rule); font-stretch: 75%; font-weight: 800; font-size: 1.6rem; }
.split__col ul { list-style: none; margin: 0; padding: 0; }
.split__col li { padding: .55rem 0; font-size: 1.2rem; }
.split__col li small { display: block; color: var(--ash); font-size: .9rem; }
.split__col--gone li { color: var(--ash); }
.split__col--gone s { color: var(--soft); text-decoration-color: var(--marker); text-decoration-thickness: .12em; }
.split__note { margin: 2.25rem 0 0; max-width: var(--measure); color: var(--ash); }
.split__note em { color: var(--bone); font-style: normal; font-weight: 700; }

/* ---------- El bloqueo ---------- */

.lock { display: grid; gap: 1rem; align-items: center; }
.lock__copy > p { max-width: var(--measure); margin: 0 0 2rem; color: var(--soft); }

/* Comparativa ✓/✕ con la fila honesta de cómo se salta cada cosa (Unglue, NoScroll, OurPact, Habit Doom) */
.compare { width: 100%; max-width: 40rem; border-collapse: collapse; font-size: .9rem; table-layout: fixed; }
.compare th, .compare td { padding: .8rem .45rem; border-top: 1px solid var(--rule); text-align: center; vertical-align: top; }
.compare thead th { border-top: 0; color: var(--ash); font-weight: 600; font-size: .8rem; line-height: 1.25; vertical-align: bottom; }
.compare tbody th { width: 34%; padding-left: 0; text-align: left; font-weight: 600; line-height: 1.3; }
.compare .us { background: var(--graphite); }
.compare thead .us { color: var(--bone); border-radius: .8rem .8rem 0 0; }
.compare tbody tr:last-child .us { border-radius: 0 0 .8rem .8rem; }
.compare .yes, .compare .no { display: block; font-size: 1.15rem; line-height: 1; }
.compare .yes { color: var(--bone); }
.compare .no { color: var(--marker); }
.compare small { display: block; margin-top: .3rem; color: var(--ash); font-size: .78rem; line-height: 1.3; }
.compare .us small { color: var(--bone); }

.phone--shield { width: min(15.5rem, 66vw); aspect-ratio: 9 / 16; margin-top: 3rem; }
.shield {
  align-items: center; justify-content: center; gap: .6rem; padding: 2rem 1.6rem;
  background: linear-gradient(180deg, #2c2c2e 0%, #1c1c1e 100%); color: #f2f2f7; text-align: center;
}
.shield__lock { width: 2.6rem; height: 3.1rem; color: #f2f2f7; margin-bottom: .6rem; }
.shield strong { font-size: 1.2rem; }
.shield span { font-size: .85rem; color: #aeaeb2; }
.shield__btn { margin-top: 1.4rem; padding: .8rem 1.4rem; border-radius: 999px; background: var(--shield); color: #fff; font-size: .9rem; }

/* ---------- Pasos (son una secuencia de verdad: van numerados) ---------- */

.steps__list { list-style: none; margin: 0; padding: 0; counter-reset: paso; max-width: 46rem; }
.steps__list li {
  counter-increment: paso; display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem; align-items: baseline;
  padding: 1.3rem 0; border-top: 1px solid var(--rule); color: var(--soft);
}
.steps__list li::before { content: counter(paso); font-stretch: 62%; font-weight: 900; font-size: 2.6rem; line-height: 1; color: var(--bone); }
.steps__list li > span { min-width: 0; }
.steps__list strong { color: var(--bone); }

/* ---------- Garantía como línea de tiempo (Opal /trial, Bark) ---------- */

.timeline { list-style: none; margin: 0 0 1.5rem; padding: 0; max-width: 40rem; }
.timeline li { position: relative; display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: 0 0 1.4rem; }
.timeline li::after {
  content: ""; position: absolute; left: .3rem; top: 1.35rem; bottom: 0; width: 1px; background: var(--rule);
}
.timeline li:last-child::after { display: none; }
.timeline b { position: relative; padding-left: 1.3rem; font-weight: 700; color: var(--bone); white-space: nowrap; }
.timeline b::before {
  content: ""; position: absolute; left: 0; top: .45rem; width: .65rem; height: .65rem;
  border-radius: 50%; background: var(--bone);
}
.timeline span { color: var(--soft); }
.guarantee__note { margin: 0; max-width: var(--measure); color: var(--ash); }
.guarantee__note a { color: var(--bone); }

/* ---------- Preguntas ---------- */

.faq details { max-width: 46rem; border-top: 1px solid var(--rule); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 0; font-weight: 700; font-size: 1.15rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-weight: 400; font-size: 1.5rem; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.25rem; max-width: var(--measure); color: var(--soft); }
.faq__more { margin: 1.5rem 0 0; color: var(--ash); }

/* ---------- Cierre ---------- */

.closing { display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: var(--space) !important; }
.closing__title { margin: 0 0 2rem; font-stretch: 62%; font-weight: 900; font-size: clamp(3rem, 12vw, 7rem); line-height: .9; letter-spacing: -.015em; }
.closing__title > span { display: block; }

/* ---------- Pie ---------- */

.foot { width: min(var(--page), 100%); margin: 0 auto; padding: 3rem var(--gutter) 7rem; border-top: 1px solid var(--rule); color: var(--ash); font-size: .9rem; }
.wordmark--foot { color: var(--bone); margin-bottom: 1.5rem; }
.foot__links { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-bottom: 1.5rem; }
.foot__links a { color: var(--bone); text-decoration: none; }
.foot__links a:hover { text-decoration: underline; }
.foot__links a[aria-current] { color: var(--ash); }
.foot__legal { margin: 0 0 .5rem; max-width: 46rem; }

/* ---------- Barra fija de descarga en móvil ---------- */

.dock {
  position: fixed; z-index: 15; left: .75rem; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; padding: .45rem .45rem .45rem 1.1rem;
  background: rgba(22, 22, 22, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--rule); border-radius: 999px;
  transform: translateY(160%); transition: transform .3s ease;
}
.dock__name { font-stretch: 75%; font-weight: 800; font-size: 1.15rem; }
.show-dock .dock { transform: none; }

/* ---------- Páginas de texto (soporte y legales) ---------- */

.doc { width: min(46rem, 100%); margin: 0 auto; padding: 8rem var(--gutter) var(--space); }
.doc h1 { margin: 0 0 .5rem; font-stretch: 70%; font-weight: 900; font-size: clamp(2.75rem, 9vw, 4.5rem); line-height: .95; letter-spacing: -.012em; }
.doc__date { margin: 0 0 2.5rem; color: var(--ash); font-size: .95rem; }
.doc h2 { margin: 2.5rem 0 .75rem; font-stretch: 80%; font-weight: 800; font-size: 1.6rem; line-height: 1.1; }
.doc h3 { margin: 1.75rem 0 .5rem; font-size: 1.1rem; }
.doc p, .doc li { color: #d6d4cf; }
.doc ul, .doc ol { padding-left: 1.2rem; }
.doc li { margin: .35rem 0; }
.doc a { color: var(--bone); }
.doc .faq { padding: 0; }

/* ---------- Escritorio ---------- */

@media (min-width: 46rem) {
  .split__cols { grid-template-columns: 1fr 1fr; gap: 4rem; max-width: 52rem; }
  .dock { display: none; }
  .foot { padding-bottom: 3rem; }
}

@media (min-width: 62rem) {
  .bar { padding-left: var(--gutter); }
  .phone--hero { width: 20.5rem; }

  /* Título a la izquierda, fijo al bajar; contenido a la derecha */
  .twocol { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 4rem; align-items: start; }
  .twocol > .title, .twocol > .twocol__head { grid-column: 1; grid-row: 1 / span 20; position: sticky; top: 7rem; }
  .twocol > :not(.title):not(.twocol__head) { grid-column: 2; }
  .locky { width: 16rem; }

  .lock { grid-template-columns: 1.1fr .9fr; gap: 4rem; }
  .phone--shield { margin: 0 auto; }
}

/* ---------- Sin movimiento ---------- */

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