/* LectuLite — sitio web
   Layout: hoja de cuaderno (renglones tenues y margen rosa) como fondo del encabezado;
   todo lo demás limpio, con la marca de la app (azul marino, rosa, verde). */
:root {
  color-scheme: light;
  --bg: #f7f7fb;
  --surface: #ffffff;
  --surface-2: #f2f1f8;
  --text: #1f1b4d;
  --text-2: #4a4668;
  --muted: #625e80;
  --line: #e7e5f0;
  --rule: rgba(31, 27, 77, 0.07);
  --margin-line: rgba(196, 45, 99, 0.28);
  --rose: #c42d63;
  --rose-text: #c42d63;
  --rose-soft: #fce8ef;
  --teal: #0b7f75;
  --teal-text: #0b6f66;
  --mint: #ddf5ec;
  --amber: #ffd27a;
  --amber-soft: #fff1d6;
  --amber-text: #8a5300;
  --ink: #1f1b4d;
  --on-ink: #ffffff;
  --on-ink-2: #cfcbf0;
  --shadow: 0 1px 2px rgba(31, 27, 77, 0.06), 0 10px 30px rgba(31, 27, 77, 0.08);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --hand: 'Kalam', 'Segoe Print', 'Comic Sans MS', cursive;
  --radius: 18px;
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #121120;
    --surface: #1c1b2e;
    --surface-2: #25243a;
    --text: #edecf7;
    --text-2: #c9c6e0;
    --muted: #a19dc0;
    --line: #2f2d47;
    --rule: rgba(237, 236, 247, 0.05);
    --margin-line: rgba(245, 139, 176, 0.25);
    --rose-text: #f58bb0;
    --rose-soft: #3a2036;
    --teal-text: #5fd3b5;
    --mint: #12342f;
    --amber-soft: #33270f;
    --amber-text: #ffcf70;
    --ink: #2b2668;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.3);
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #121120;
  --surface: #1c1b2e;
  --surface-2: #25243a;
  --text: #edecf7;
  --text-2: #c9c6e0;
  --muted: #a19dc0;
  --line: #2f2d47;
  --rule: rgba(237, 236, 247, 0.05);
  --margin-line: rgba(245, 139, 176, 0.25);
  --rose-text: #f58bb0;
  --rose-soft: #3a2036;
  --teal-text: #5fd3b5;
  --mint: #12342f;
  --amber-soft: #33270f;
  --amber-text: #ffcf70;
  --ink: #2b2668;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.3);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--rose-text);
}
h1,
h2,
h3 {
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.02em;
}
p {
  margin: 0;
}
:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 3px;
  border-radius: 6px;
}
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose-text);
}
.lead {
  font-size: 19px;
  color: var(--text-2);
  max-width: 34em;
}
.section {
  padding-block: 88px;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 44rem;
  margin-bottom: 40px;
}
.section-head h2 {
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 800;
}
.hand {
  font-family: var(--hand);
  font-weight: 400;
  letter-spacing: 0;
}

/* ───────── Barra superior ───────── */
body::before {
  content: '';
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--bg);
}
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.03em;
}
.brand svg {
  width: 36px;
  height: 36px;
  flex: none;
}
.brand .lite {
  color: var(--rose-text);
}
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.nav-links a:hover {
  color: var(--text);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 14px;
  border: 0;
  font: inherit;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: var(--rose);
  color: #fff;
  box-shadow: 0 8px 20px rgba(196, 45, 99, 0.25);
}
.btn-primary:hover {
  box-shadow: 0 10px 26px rgba(196, 45, 99, 0.35);
}
.btn-sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 15px;
  border-radius: 12px;
}
.nav .btn {
  flex: none;
}

/* ───────── Encabezado (hoja de cuaderno) ───────── */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--bg);
  background-image: repeating-linear-gradient(to bottom, transparent 0 35px, var(--rule) 35px 36px);
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: max(8px, calc((100% - var(--wrap)) / 2 - 18px));
  width: 2px;
  background: var(--margin-line);
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding-block: 64px 80px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 66px);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.hero h1 .mark {
  background: linear-gradient(transparent 62%, rgba(255, 210, 122, 0.75) 62% 92%, transparent 92%);
  padding: 0 4px;
  margin: 0 -4px;
}
.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
}
.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-note svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* Formulario de lista de espera */
.signup {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 470px;
}
.signup-row {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.signup input[type='email'] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  padding: 0 12px;
  outline: none;
}
.signup input::placeholder {
  color: var(--muted);
}
.signup {
  scroll-margin-top: 110px;
}
.signup-row:focus-within {
  border-color: var(--rose);
}
.signup-row.flash {
  animation: signup-flash 1.4s ease-out;
}
@keyframes signup-flash {
  0%, 40% {
    border-color: var(--rose);
    box-shadow: 0 0 0 5px var(--rose-soft), var(--shadow);
  }
  100% {
    box-shadow: var(--shadow);
  }
}
.signup .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.signup-msg {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  min-height: 1.5em;
}
.signup-msg.ok {
  color: var(--teal-text);
}
.signup-msg.err {
  color: var(--rose-text);
}

/* Escena: cuaderno → ramas → teléfono */
.stage {
  position: relative;
  min-height: 600px;
}
.notebook {
  position: absolute;
  left: 2%;
  top: 92px;
  width: 38%;
  transform: rotate(-6deg);
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(31, 27, 77, 0.22);
  border: 6px solid #fff;
}
.stage .ann {
  position: absolute;
  font-family: var(--hand);
  font-size: 22px;
  color: var(--rose-text);
  line-height: 1.1;
  white-space: nowrap;
}
.ann-photo {
  left: 2%;
  top: 470px;
  transform: rotate(-4deg);
}
.ann-kit {
  right: 2%;
  top: 0;
  transform: rotate(-3deg);
}
.branches {
  position: absolute;
  left: 38%;
  top: 170px;
  width: 10%;
  height: 260px;
  overflow: visible;
}
.phone {
  position: relative;
  width: 300px;
  max-width: 100%;
  border-radius: 44px;
  padding: 10px;
  background: #15132e;
  box-shadow: 0 30px 60px rgba(31, 27, 77, 0.28), inset 0 0 0 2px #2b2763;
}
.phone img {
  border-radius: 34px;
  width: 100%;
  height: auto;
  aspect-ratio: 780 / 1688;
  background: var(--surface);
}
.stage .phone {
  position: absolute;
  right: 0;
  top: 44px;
  width: 290px;
}

/* ───────── Pasos ───────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--rose-soft);
  color: var(--rose-text);
  font-weight: 800;
  font-size: 18px;
}
.step h3 {
  font-size: 21px;
  font-weight: 800;
}
.step p {
  color: var(--text-2);
  font-size: 16px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
}

/* ───────── Kit: tarjeta azul marino ───────── */
.kit {
  background: var(--ink);
  color: var(--on-ink);
  border-radius: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding: 56px;
  align-items: center;
  overflow: hidden;
}
.kit h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
}
.kit .eyebrow {
  color: #f2a9c3;
}
.kit p {
  color: var(--on-ink-2);
}
.kit-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.kit-parts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.kit-part {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
  font-size: 15.5px;
}
.kit-part i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}
.price-tag {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 800;
}
.price-tag b {
  font-size: 44px;
  letter-spacing: -0.03em;
}
.price-tag s {
  color: var(--on-ink-2);
  opacity: 0.8;
  font-size: 20px;
}
.price-tag span {
  color: var(--on-ink-2);
  font-size: 17px;
}
.kit-phones {
  display: flex;
  gap: 18px;
  justify-content: center;
  min-width: 0;
}
.kit-phones .phone {
  width: 240px;
}
.kit-phones .phone:nth-child(2) {
  margin-top: 56px;
}

/* ───────── Galería ───────── */
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 250px;
  gap: 22px;
  overflow-x: auto;
  padding: 8px 4px 24px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.gallery figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-snap-align: start;
}
.gallery .phone {
  width: 100%;
  border-radius: 38px;
  padding: 8px;
}
.gallery .phone img {
  border-radius: 30px;
}
.gallery figcaption {
  font-size: 15px;
  color: var(--text-2);
}
.gallery figcaption b {
  display: block;
  color: var(--text);
  font-size: 16.5px;
}

/* ───────── Qué puedes crear (con su costo) ───────── */
.types {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}
.type {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  min-width: 0;
}
.type-ic {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.type-ic svg {
  width: 22px;
  height: 22px;
}
.type b {
  display: block;
  font-size: 16.5px;
}
.type p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.45;
}
.cost {
  margin-left: auto;
  flex: none;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-2);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 3px 9px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.t-rose {
  background: var(--rose-soft);
  color: var(--rose-text);
}
.t-teal {
  background: var(--mint);
  color: var(--teal-text);
}
.t-amber {
  background: var(--amber-soft);
  color: var(--amber-text);
}
.t-blue {
  background: color-mix(in srgb, #3b5bdb 14%, var(--surface));
  color: color-mix(in srgb, #3b5bdb 80%, var(--text));
}
.t-violet {
  background: color-mix(in srgb, #6741d9 14%, var(--surface));
  color: color-mix(in srgb, #6741d9 75%, var(--text));
}

/* ───────── Por qué funciona ───────── */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 28px;
}
.feature {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.feature h3 {
  font-size: 19px;
  font-weight: 800;
}
.feature p {
  color: var(--text-2);
  font-size: 16px;
}
.feature .type-ic {
  margin-bottom: 4px;
}
.intervals {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.intervals span {
  font-size: 13px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 8px;
  background: var(--mint);
  color: var(--teal-text);
  font-variant-numeric: tabular-nums;
}

/* ───────── Precios ───────── */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  min-width: 0;
}
.plan.featured {
  border: 2px solid var(--rose);
  box-shadow: var(--shadow);
}
.plan h3 {
  font-size: 21px;
  font-weight: 800;
}
.plan .big {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plan .big small {
  font-size: 16px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0;
}
.plan ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: var(--text-2);
  font-size: 15.5px;
}
.plan li {
  display: flex;
  gap: 10px;
}
.plan li::before {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--mint) no-repeat center / 12px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B7F75' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.fine {
  color: var(--muted);
  font-size: 14px;
  margin-top: 18px;
}

/* ───────── Preguntas ───────── */
.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 820px;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 22px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 800;
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  font-size: 24px;
  line-height: 1;
  color: var(--rose-text);
  flex: none;
}
.faq details[open] summary::after {
  content: '−';
}
.faq details p {
  padding-bottom: 20px;
  color: var(--text-2);
  font-size: 16px;
}

/* ───────── Cierre ───────── */
.final {
  text-align: left;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: 32px;
  padding: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.final h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
}
.final p {
  color: var(--on-ink-2);
  margin-top: 12px;
}
.final .signup-row {
  background: #ffffff;
  border-color: transparent;
}
.final .signup input[type='email'] {
  color: #1f1b4d;
}
.final .signup input::placeholder {
  color: #625e80;
}
.final .signup-msg {
  color: var(--on-ink-2);
}
.final .signup-msg.ok {
  color: #7fe0c8;
}
.final .signup-msg.err {
  color: #f9a8c6;
}

/* ───────── Pie ───────── */
.footer {
  padding-block: 48px 64px;
  color: var(--muted);
  font-size: 15px;
}
.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}
.footer a {
  color: var(--text-2);
  text-decoration: none;
  font-weight: 600;
}
.footer a:hover {
  color: var(--rose-text);
}

/* ───────── Páginas legales ───────── */
.legal {
  max-width: 760px;
  padding-block: 56px 80px;
}
.legal h1 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  margin-bottom: 8px;
}
.legal .updated {
  color: var(--muted);
  margin-bottom: 32px;
  font-size: 15px;
}
.legal h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 36px 0 12px;
}
.legal p,
.legal li {
  color: var(--text-2);
  font-size: 16.5px;
}
.legal p + p {
  margin-top: 12px;
}
.legal ul,
.legal ol {
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.legal .box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  margin-top: 16px;
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
}
.legal th,
.legal td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.legal th {
  color: var(--text);
}
.table-scroll {
  overflow-x: auto;
  margin-top: 12px;
}

/* ───────── Responsivo ───────── */
@media (max-width: 960px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-block: 40px 56px;
  }
  .stage {
    min-height: 0;
    height: 560px;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }
  .kit,
  .final {
    grid-template-columns: minmax(0, 1fr);
    padding: 36px 24px;
    border-radius: 26px;
  }
  .features,
  .pricing,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .nav-links {
    display: none;
  }
  .nav .btn {
    margin-left: auto;
  }
  .section {
    padding-block: 64px;
  }
}
@media (min-width: 640px) and (max-width: 960px) {
  .features,
  .pricing {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  body {
    font-size: 16px;
  }
  .lead {
    font-size: 17px;
  }
  .stage {
    height: 540px;
  }
  .notebook {
    width: 48%;
    left: 3%;
    top: 96px;
  }
  .stage .phone {
    width: 220px;
    right: 0;
    top: 40px;
    border-radius: 36px;
    padding: 8px;
  }
  .stage .phone img {
    border-radius: 28px;
  }
  .branches {
    display: none;
  }
  .ann-photo {
    font-size: 19px;
    left: 2%;
    top: 370px;
  }
  .ann-kit {
    font-size: 19px;
    top: 4px;
  }
  .kit-phones .phone {
    width: 46%;
  }
  .kit-phones .phone:nth-child(2) {
    margin-top: 32px;
  }
  .signup-row {
    flex-direction: column;
  }
  .signup input[type='email'] {
    min-height: 46px;
  }
  .nav .btn {
    padding: 8px 12px;
    font-size: 14px;
  }
}
