/* Landing de Soy Lici: marca en brand/README.md (índigo, Sora en títulos, Inter en texto). */
/* Inter y Sora (SIL Open Font License 1.1), servidas desde el sitio: sin pedirle nada a Google. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/fonts/sora-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/fonts/sora-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --indigo: #4f46e5;
  --indigo-700: #4338ca;
  --indigo-50: #eef2ff;
  --lavender: #a5b4fc;
  --slate: #0f172a;
  --text: #1e293b;
  --muted: #475569;
  --line: #e2e8f0;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --green-bg: #dcfce7;
  --green-text: #166534;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 12px 32px rgba(15, 23, 42, 0.08);
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }  /* que el encabezado fijo no tape el título de #demo */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Sora", "Inter", system-ui, sans-serif;
  color: var(--slate);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0; }
a { color: var(--indigo); }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; justify-content: center; }

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

:focus-visible { outline: 3px solid var(--lavender); outline-offset: 2px; border-radius: 6px; }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  border: 1.5px solid transparent;
}
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: var(--indigo-700); }
.btn-ghost { color: var(--slate); border-color: var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--lavender); color: var(--indigo); }

.btn-whatsapp { background: #25d366; color: #0b3d1f; }
.btn-whatsapp:hover { background: #1fb457; }
.btn svg { width: 20px; height: 20px; }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.25);
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }
@media (prefers-reduced-motion: reduce) { .wa-float { transition: none; } }

/* Barra fija "Solicitar una demo" (solo en el celular; la muestra js/site.js) */
.mobile-cta { display: none; }

/* Encabezado */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand img { height: 36px; width: auto; }
.site-nav { display: flex; gap: 28px; }
/* "Entrar" lleva a la app (app.soylici.com); la demo sigue siendo el botón principal. */
.header-actions { display: flex; align-items: center; gap: 22px; }
.header-login { color: var(--slate); font-weight: 600; font-size: 15px; text-decoration: none; }
.header-login:hover { color: var(--indigo); }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.site-nav a:hover { color: var(--indigo); }

/* Hero */
.hero { padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 14px;
  color: var(--indigo);
  background: var(--indigo-50);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(34px, 5vw, 54px); }
.accent { color: var(--indigo); }
.lead { font-size: 19px; color: var(--muted); margin-top: 20px; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.fine { font-size: 14px; color: var(--muted); margin-top: 18px; }

.hero-visual { position: relative; display: grid; gap: 16px; }
.mock-card, .mock-message {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.mock-card { padding: 22px 24px; position: relative; }
.mock-tag {
  position: absolute;
  top: -11px;
  right: 18px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 10px;
}
.mock-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.verdict { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; border-radius: 999px; padding: 3px 12px; }
.verdict-apta { background: var(--green-bg); color: var(--green-text); }
.verdict .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.verdict .score { border-left: 1px solid rgba(22, 101, 52, 0.3); padding-left: 8px; }
.mock-close { font-size: 14px; color: var(--muted); }
.mock-title { font-size: 19px; margin-top: 14px; }
.mock-meta { font-size: 14px; color: var(--muted); margin-top: 6px; }
.mock-reasons { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; font-size: 15px; }
.mock-reasons li { display: flex; align-items: center; gap: 10px; }
.ok {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-bg);
  color: var(--green-text);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.mock-message { display: flex; gap: 14px; padding: 18px 20px; margin-left: 32px; font-size: 15px; }
.mock-message img { width: 36px; height: 36px; flex-shrink: 0; }
.mock-from { font-weight: 600; color: var(--slate); font-size: 14px; margin-bottom: 2px; }

/* Cifras */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-alt); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.stats strong { display: block; font-family: "Sora", sans-serif; font-size: 26px; color: var(--slate); letter-spacing: -0.02em; }
.stats span { font-size: 15px; color: var(--muted); }

/* Secciones */
.section { padding: 88px 0; }
.section-alt { background: var(--surface-alt); }
.section-title { font-size: clamp(28px, 3.6vw, 38px); text-align: center; }
.section-lead { color: var(--muted); font-size: 18px; text-align: center; margin: 14px auto 0; max-width: 40em; }

.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step-n {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--indigo);
  color: #fff;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  margin-bottom: 16px;
}
.steps h3, .feature h3 { font-size: 20px; margin-bottom: 8px; }
.steps p, .feature p { color: var(--muted); font-size: 16px; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.feature svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--indigo);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 14px;
}

.area-list { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.area-list li {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
}

details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-top: 12px; }
details:first-of-type { margin-top: 36px; }
summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--slate);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--indigo); line-height: 1; }
details[open] summary::after { content: "−"; }
details p { padding: 0 22px 20px; color: var(--muted); }

.cta-final { background: var(--indigo-50); }

/* Solicitud de demo */
.demo-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.demo-copy .section-title, .demo-copy .section-lead { text-align: left; margin-left: 0; }
.demo-points { margin: 24px 0 0; padding-left: 20px; color: var(--text); display: grid; gap: 8px; }
.demo-alt { margin-top: 24px; color: var(--muted); font-size: 15px; }
.demo-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--slate); }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  min-height: 46px;
  width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px var(--indigo-50); }
.field [aria-invalid="true"] { border-color: #dc2626; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px #fee2e2; }
.field-error { margin: 0; font-size: 14px; color: #991b1b; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status { font-size: 15px; border-radius: 10px; padding: 10px 14px; }
.form-status.is-error { background: #fef2f2; color: #991b1b; }
.form-status.is-ok { background: var(--green-bg); color: var(--green-text); }
.demo-form .btn { width: 100%; }
.demo-form .btn:disabled { opacity: 0.7; cursor: progress; }

.not-found { min-height: 60vh; display: flex; align-items: center; }
.not-found h1 { font-size: clamp(30px, 4.4vw, 44px); margin-top: 6px; }
.not-found-mark { margin: 0 auto 22px; width: 96px; height: 96px; }

/* Gracias */
.thanks h1 { font-size: clamp(30px, 4.4vw, 44px); margin-top: 6px; }
.thanks-steps { text-align: left; max-width: 560px; margin: 32px auto 0; padding-left: 22px; display: grid; gap: 12px; color: var(--text); }
.thanks-alt { margin-top: 28px; color: var(--muted); }
.thanks .hero-cta { margin-top: 16px; }

/* Pie */
.site-footer { background: var(--slate); color: #cbd5e1; padding: 48px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 32px 48px; align-items: start; }
.footer-brand p { margin-top: 14px; max-width: 280px; }
.footer-brand .footer-login { margin-top: 10px; }
.footer-login a { color: #fff; font-weight: 600; }
.footer-contact { font-style: normal; display: flex; flex-direction: column; gap: 4px; }
.footer-contact strong { color: #fff; font-weight: 600; }
.footer-contact a { color: #e2e8f0; }
.footer-bottom { border-top: 1px solid rgba(203, 213, 225, 0.18); margin-top: 32px; padding-top: 20px; font-size: 14px; color: #94a3b8; }
.site-footer img { height: 32px; width: auto; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-links a { color: #e2e8f0; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

.footer-link { font: inherit; color: #e2e8f0; background: none; border: 0; padding: 0; cursor: pointer; }
.footer-link:hover { color: #fff; text-decoration: underline; }

/* Aviso de cookies (consentimiento para la analítica; lo maneja js/site.js) */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.1);
  padding: 14px 24px calc(14px + env(safe-area-inset-bottom));
  font-size: 15px;
}
.cookie-banner p { max-width: 720px; }
.cookie-banner[hidden] { display: none; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
body.cookie-open .wa-float { visibility: hidden; }

/* Páginas legales */
.legal { padding: 56px 0 80px; }
.legal h1 { font-size: clamp(30px, 4.4vw, 42px); margin-top: 6px; }
.legal .updated { color: var(--muted); margin: 8px 0 28px; font-size: 15px; }
.legal h2 { font-size: 21px; margin: 36px 0 10px; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; margin: 12px 0 0; display: grid; gap: 10px; }

/* Tableta */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 560px; }
  .steps, .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-grid { grid-template-columns: 1fr; gap: 32px; }
  .site-nav { display: none; }
}

/* Móvil */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 48px; }
  .lead { font-size: 17px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .mock-message { margin-left: 0; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 64px 0; }
  .steps, .features { grid-template-columns: 1fr; }
  .demo-form { grid-template-columns: 1fr; padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .header-row { min-height: 60px; gap: 12px; }
  .header-actions { gap: 14px; }
  .brand img { height: 30px; }

  .mobile-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(1.4) blur(10px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.08);
    transform: translateY(110%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s;
  }
  .mobile-cta .btn { width: 100%; }
  body.cta-bar .mobile-cta { transform: none; visibility: visible; }
  /* el botón de WhatsApp sube para no taparse con la barra */
  .wa-float { transition: transform 0.15s ease, bottom 0.25s ease; }
  body.cta-bar .wa-float { bottom: calc(86px + env(safe-area-inset-bottom)); }
  /* el aviso de cookies ocupa el ancho; mientras está abierto no se muestran la barra ni WhatsApp */
  .cookie-banner {
    display: block;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
    padding: 18px 20px;
  }
  .cookie-actions { margin-top: 14px; }
  .cookie-actions .btn { flex: 1; }
  body.cookie-open .mobile-cta { visibility: hidden; }
  /* que la barra no tape el pie al llegar al final */
  .site-footer { padding-bottom: 104px; }
}
@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
  .mobile-cta, .wa-float { transition: none; }
}
