/* ═══════════════════════════════════════════════════════════════
   lightnest · landing
   Un solo mundo claro. Tipografía grande y hablada, mucho aire, y
   la UI real del panel como protagonista: el color lo aporta el
   producto, no la decoración.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ink: #16151c;        /* casi negro, con sesgo índigo */
  --muted: #7c7a8a;      /* gris malva elegido, no gris puro */
  --faint: #a9a7b6;
  --bg: #ffffff;
  --bg-2: #f4f4f8;       /* gris de sección, sesgado al acento */
  --line: #e7e6ef;
  --accent: #5b62c4;     /* índigo tinta (marca) */
  --accent-soft: #8b93ec;/* índigo de la app */
  --accent-bg: #eef0fd;
  --cool: #6ba6e0;       /* cortinas */
  --ok: #3fa06a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  margin: 0;
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-weight: 700;
  text-wrap: balance;
}
p { margin: 0; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.u-center { text-align: center; }
.u-wrap { max-width: 1020px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ─────────────────────────────────────────────────── */
.nv {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nv-in {
  max-width: 1020px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nv-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
}
.nv-right { display: flex; align-items: center; gap: 16px; }
/* :not(.bt) para que esta regla no le gane al color del botón */
.nv-right a:not(.bt) {
  color: var(--muted);
  font-size: 13.5px;
  text-decoration: none;
  font-weight: 500;
}
.nv-right a:not(.bt):hover { color: var(--ink); }
/* Entrar a la cuenta: es una acción, no una sección. Pesa más que los enlaces
   de navegación y NO se esconde en móvil (es donde más falta hace). */
.nv-right a.nv-login { color: var(--ink); font-weight: 600; }
.nv-right a.nv-login:hover { color: var(--accent); }

.lang { display: inline-flex; gap: 2px; padding: 2px; background: var(--bg-2); border-radius: 8px; }
.lang button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  padding: 4px 7px;
  border-radius: 6px;
  cursor: pointer;
}
.lang button.on { background: #fff; color: var(--accent); box-shadow: 0 1px 3px rgba(20, 18, 40, 0.12); }

/* ── Botones ─────────────────────────────────────────────── */
.bt {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 17px;
  border-radius: 980px;
  transition: background 0.15s ease;
}
.bt:hover { background: #4a51b3; }
.bt-lg { font-size: 17px; padding: 15px 32px; }
.bt-plain { background: transparent; color: var(--accent); padding-left: 4px; }
.bt-plain:hover { background: transparent; text-decoration: underline; }

/* ── Ritmo: el aire es parte del diseño ──────────────────── */
.sec { padding: 120px 0; }
.sec-tight { padding: 90px 0; }
.sec-grey { background: var(--bg-2); }

.kicker {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.h-hero { font-size: clamp(42px, 7vw, 76px); }
.h-sec { font-size: clamp(32px, 4.6vw, 50px); }
.lead {
  font-size: clamp(18px, 2.1vw, 22px);
  color: var(--muted);
  max-width: 30ch;
  margin: 20px auto 0;
  line-height: 1.4;
}
.lead-l { margin-left: 0; margin-right: 0; max-width: 34ch; }
.cta-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-top: 34px;
  flex-wrap: wrap;
}

/* ── Íconos ──────────────────────────────────────────────── */
.ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--accent-bg);
  color: var(--accent);
}
.ic svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic-lg { width: 52px; height: 52px; border-radius: 16px; margin: 0 auto 14px; }
.ic-lg svg { width: 26px; height: 26px; }

/* ── El panel: la UI real, grande ────────────────────────── */
.stage { margin-top: 64px; display: flex; justify-content: center; }
.panel {
  width: 100%;
  max-width: 720px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 22px;
  box-shadow: 0 50px 90px -50px rgba(22, 21, 40, 0.55);
}
.p-head { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 6px 18px; }
.p-greet { color: var(--muted); font-size: 14px; }
.p-clock { font-weight: 700; font-size: 17px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.p-zones { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.zn { background: var(--bg-2); border-radius: 18px; padding: 15px 16px; }
.zn-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.zn-name { font-weight: 600; font-size: 15px; letter-spacing: -0.02em; }
.zn-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  font-size: 14px;
  color: var(--muted);
  text-align: left;
}

/* Controles (los mismos que la app) */
.tg {
  width: 42px; height: 25px; border-radius: 999px; background: #dedce9;
  position: relative; flex: none; transition: background 0.45s ease;
}
.tg::after {
  content: "";
  position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(22, 21, 40, 0.3);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.tg.on { background: var(--accent-soft); }
.tg.on::after { transform: translateX(17px); }
/* Una luz que "respira": muestra el producto vivo sin distraer */
.tg.live { animation: breathe 8s ease-in-out infinite; }
.tg.live::after { animation: breatheK 8s ease-in-out infinite; }
.zn:nth-child(2) .tg.live,
.zn:nth-child(2) .tg.live::after { animation-delay: 4s; }
@keyframes breathe {
  0%, 45% { background: var(--accent-soft); }
  52%, 95% { background: #dedce9; }
  100% { background: var(--accent-soft); }
}
@keyframes breatheK {
  0%, 45% { transform: translateX(17px); }
  52%, 95% { transform: translateX(0); }
  100% { transform: translateX(17px); }
}

.sl { width: 78px; height: 7px; border-radius: 999px; background: #dedce9; flex: none; }
.sl i { display: block; height: 100%; width: 64%; border-radius: 999px; background: var(--accent-soft); animation: slide 10s ease-in-out infinite; }
@keyframes slide { 0%, 100% { width: 64%; } 50% { width: 26%; } }

.cv { width: 50px; height: 25px; border-radius: 7px; background: #dedce9; overflow: hidden; flex: none; }
.cv i { display: block; height: 42%; background: var(--cool); border-radius: 5px 5px 0 0; animation: shade 12s ease-in-out infinite; }
@keyframes shade { 0%, 100% { height: 42%; } 50% { height: 90%; } }

/* ── Bloques alternados ──────────────────────────────────── */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.duo.flip .duo-visual { order: -1; }

/* Tarjetas de apoyo */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 24px 50px -40px rgba(22, 21, 40, 0.5);
  text-align: left;
}
.card + .card { margin-top: 12px; }
.card b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
.card span { font-size: 13px; color: var(--muted); }
.card-flat { box-shadow: none; border-radius: 16px; }

/* Zona en detalle (segunda escena del producto) */
.zone-big {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 40px 80px -50px rgba(22, 21, 40, 0.55);
  text-align: left;
}
.zb-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; }
.zb-top b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -0.03em; }
.zb-top span { font-size: 13px; color: var(--muted); }
.zb-group { background: var(--bg-2); border-radius: 16px; padding: 12px 14px; }
.zb-group + .zb-group { margin-top: 10px; }
.zb-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 4px;
}
.cv-btns { display: flex; gap: 6px; margin-top: 10px; }
.cv-btns span {
  flex: 1;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px 4px;
}

/* Teléfono */
.phone {
  width: 262px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 14px;
  box-shadow: 0 44px 80px -46px rgba(22, 21, 40, 0.6);
}
.phone-notch { width: 74px; height: 5px; border-radius: 999px; background: #e4e2ee; margin: 2px auto 14px; }

/* ── Categorías ──────────────────────────────────────────── */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 54px; }
.cat { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 18px; }
.cat b { font-size: 15px; font-weight: 600; display: block; letter-spacing: -0.02em; }
.cat span { font-size: 13px; color: var(--muted); }

/* ── Privacidad ──────────────────────────────────────────── */
.priv-stat {
  font-size: clamp(28px, 3.6vw, 40px);
  max-width: 22ch;
  margin: 0 auto;
}
.priv-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin-top: 60px;
  text-align: left;
}
.priv-list h3 { font-size: 17px; margin: 14px 0 8px; letter-spacing: -0.025em; }
.priv-list p { font-size: 14.5px; color: var(--muted); }

/* ── Pie ─────────────────────────────────────────────────── */
.ft { border-top: 1px solid var(--line); padding: 34px 0; color: var(--faint); font-size: 13px; }
.ft-in {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.ft a { color: var(--muted); text-decoration: none; font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tg.live, .tg.live::after, .sl i, .cv i { animation: none; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .sec { padding: 84px 0; }
  .sec-tight { padding: 70px 0; }
  .duo { grid-template-columns: 1fr; gap: 44px; }
  .duo.flip .duo-visual { order: 0; }
  .p-zones { grid-template-columns: 1fr; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .priv-list { grid-template-columns: 1fr; gap: 28px; }
  .lead-l { max-width: none; }
  .stage { margin-top: 46px; }
}

@media (max-width: 560px) {
  .nv-in { padding: 10px 16px; gap: 10px; }
  .nv-right { gap: 10px; }
  /* En pantalla angosta no entran las cuatro cosas. El nav se queda con lo que
     no está en ningún otro lado: marca, idioma y ENTRAR. "Crear cuenta" se cae
     de acá porque el hero tiene ese mismo botón, grande, justo debajo. */
  .nv-right a:not(.bt) { display: none; }
  .nv-right a.nv-login { display: inline; }
  .nv-right .bt { display: none; }
  .bt { padding: 8px 14px; font-size: 13px; }
  .bt-lg { font-size: 16px; padding: 14px 26px; }
  .u-wrap, .ft-in { padding: 0 16px; }
  .panel { padding: 14px; border-radius: 20px; }
  .cats { grid-template-columns: 1fr; }
}
