/*
 * Lober · hoja común de la web pública (modelo C, «Noche»).
 * La comparten index.html y las páginas que vengan (privacidad, condiciones,
 * newsletter…). Los colores y medidas salen de las variables de :root.
 */

:root {
  --red: #F9032A;
  --red-hover: #ff2748;
  --night: #0c0a0b;
  --surface: #171314;
  --surface-2: #262021;
  --line: #2a2324;
  --text: #f3eeee;
  --text-soft: #b9afb1;
  --text-mute: #8f8587;

  --font-display: "Instrument Serif", Georgia, serif;
  --font-ui: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shell: 1080px;
  --gutter: 20px;
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 400; }

.shell { max-width: var(--shell); margin: 0 auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--red); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.eyebrow {
  font: 700 13px var(--font-body);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
}

/* ---------- Cabecera ---------- */

.site-header { padding-block: 22px; }
.site-header .shell { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 800 22px var(--font-ui); letter-spacing: -.01em; text-decoration: none;
}
.brand img { width: 34px; height: 34px; border-radius: 8px; }

.site-nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.site-nav a { text-decoration: none; color: var(--text-soft); }
.site-nav a:hover { color: var(--text); }
.badge-18 {
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  border: 1px solid var(--line); border-radius: 99px; padding: 3px 9px; color: var(--text-mute);
}

/* ---------- Botón de descarga (CTA común) ---------- */

.cta-play {
  display: inline-flex; align-items: center; gap: 12px;
  background: #fff; color: #000; text-decoration: none;
  border-radius: 14px; padding: 10px 22px 10px 16px;
  transition: transform .15s ease, background-color .15s ease;
}
.cta-play:hover { transform: translateY(-2px); }
.cta-play svg { width: 26px; height: 26px; flex: none; }
.cta-play small {
  display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  opacity: .7; line-height: 1.1;
}
.cta-play b { display: block; font: 700 20px/1.1 var(--font-body); }

.cta-note { margin: 14px 0 0; font-size: 13px; color: var(--text-mute); }

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

.hero { text-align: center; padding-block: 40px 24px; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(46px, 8vw, 104px);
  line-height: .98; letter-spacing: -.01em;
  max-width: 13ch; margin: 14px auto 0;
}
.hero h1 em { color: var(--red); }
.hero .lead { font-size: 19px; color: var(--text-soft); max-width: 40ch; margin: 22px auto 30px; }

/* Conversación de ejemplo */
.chat {
  max-width: 440px; margin: 48px auto 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  padding: 18px; display: grid; gap: 12px; text-align: left;
}
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.chat-head img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.chat-head b { display: block; }
.chat-head small { color: var(--text-mute); }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 18px; font-size: 15px; }
.msg.them { background: var(--surface-2); justify-self: start; border-bottom-left-radius: 6px; }
.msg.me { background: var(--red); color: #fff; justify-self: end; border-bottom-right-radius: 6px; }
.msg.system {
  justify-self: center; border: 1px dashed #3a3132; color: var(--text-soft);
  font-size: 13px; text-align: center;
}

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

.section { padding-block: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(36px, 5vw, 56px); line-height: 1.02; margin-top: 10px; }
.section-head p { color: var(--text-soft); font-size: 18px; margin: 14px 0 0; }

/* Cómo funciona: la foto y el avatar */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.how-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.how-pair figure { margin: 0; }
.how-pair img { border-radius: 18px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.how-pair figcaption { font-size: 13px; color: var(--text-mute); margin-top: 8px; }
.how-pair figure:last-child img { outline: 2px solid var(--red); outline-offset: -2px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: paso; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; counter-increment: paso; }
.steps li::before {
  content: counter(paso);
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--red); color: var(--red); font: 700 15px var(--font-ui);
}
.steps h3 { font: 700 20px var(--font-ui); margin: 5px 0 4px; }
.steps p { margin: 0; color: var(--text-soft); }

/* Tres garantías */
.cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.cols > div { background: var(--night); padding: 28px; }
.cols h3 { font: 700 22px var(--font-ui); margin-bottom: 8px; }
.cols p { margin: 0; color: var(--text-soft); }

/* Cierre */
.closing { text-align: center; padding-block: 104px 88px; }
.closing h2 { font-family: var(--font-display); font-size: clamp(38px, 6vw, 68px); line-height: 1.02; margin-bottom: 28px; }

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

.site-footer { border-top: 1px solid var(--line); color: var(--text-mute); font-size: 14px; }
.site-footer .shell {
  padding-block: 28px; display: flex; flex-wrap: wrap; gap: 12px 24px;
  align-items: center; justify-content: space-between;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ---------- Páginas legales (privacidad, condiciones, cookies…) ---------- */

.legal { max-width: 760px; padding-block: 32px 88px; color: var(--text-soft); }
.legal-head { padding-block: 24px 36px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.legal-head h1 { font-family: var(--font-display); font-size: clamp(42px, 7vw, 72px); line-height: 1; color: var(--text); margin-top: 10px; }
.legal-head p { margin: 14px 0 0; color: var(--text-mute); font-size: 14px; }
.legal h2 {
  font: 700 24px/1.25 var(--font-ui); color: var(--text);
  margin: 56px 0 14px; scroll-margin-top: 24px;
}
.legal h3 { font: 700 18px var(--font-ui); color: var(--text); margin: 28px 0 8px; }
.legal p, .legal li { font-size: 16.5px; line-height: 1.7; }
.legal p { margin: 0 0 16px; }
.legal ul, .legal ol { padding-left: 22px; margin: 0 0 16px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--text); font-weight: 700; }
.legal a { color: var(--text); text-decoration-color: var(--red); text-underline-offset: 3px; }
.legal a:hover { color: var(--red); }

.legal .indice {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; margin: 28px 0 8px;
}
.legal .indice p { font: 700 13px var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.legal .indice ol { columns: 2 240px; column-gap: 32px; margin: 0; }
.legal .indice li { font-size: 15px; break-inside: avoid; }
.legal .indice a { text-decoration: none; color: var(--text-soft); }
.legal .indice a:hover { color: var(--text); }

.legal .nota {
  border-left: 3px solid var(--red); background: var(--surface);
  padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 20px 0;
}
.legal .nota p:last-child { margin-bottom: 0; }

.legal .tabla-envoltorio { overflow-x: auto; margin: 20px 0 24px; border: 1px solid var(--line); border-radius: 14px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.legal th { color: var(--text); background: var(--surface); font-weight: 700; }
.legal tr:last-child td { border-bottom: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .site-nav a { display: none; }
  .how { grid-template-columns: 1fr; gap: 32px; }
  .section { padding-block: 64px 0; }
  .closing { padding-block: 80px 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta-play { transition: none; }
}
