/* ============================================================
   Clover POS · Landing pública (inventario.saas.lifestyle)
   Sistema de diseño SAAS. Sin frameworks.
   ============================================================ */
:root {
  --blue: #2f8cff;
  --violet: #9b7bf0;
  --violet-deep: #7c5ce6;
  --turquoise: #4fc3c9;
  --navy: #0b1a4a;
  --slate: #5b6485;
  --muted: #8a91ad;
  --lavender: #f6f7ff;
  --white: #ffffff;
  --line: #e6e9f7;
  --success: #1fa97c;
  --warning: #e5a23b;
  --danger: #e5484d;
  --gradient: linear-gradient(135deg, #2f8cff 0%, #7c5ce6 52%, #9b7bf0 100%);
  --gradient-soft: linear-gradient(135deg, rgba(47, 140, 255, 0.14), rgba(155, 123, 240, 0.18));
  --shadow-sm: 0 1px 2px rgba(11, 26, 74, 0.06);
  --shadow-md: 0 8px 24px -12px rgba(60, 52, 140, 0.22);
  --shadow-lg: 0 24px 60px -24px rgba(60, 52, 140, 0.3);
  --shadow-glass: 0 18px 50px -18px rgba(102, 84, 190, 0.28);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--navy);
  background: var(--lavender);
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--violet-deep); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--violet-deep);
}
h2.title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.1; letter-spacing: -0.03em; margin-top: 0.6rem; }
.lead { color: var(--slate); font-size: clamp(0.98rem, 1.4vw, 1.08rem); max-width: 62ch; margin-top: 0.8rem; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--slate); }
.small { font-size: 0.84rem; }

/* Fondo decorativo */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(47, 140, 255, 0.18), transparent 60%),
    radial-gradient(760px 480px at 102% 4%, rgba(155, 123, 240, 0.2), transparent 62%),
    radial-gradient(680px 460px at 50% 110%, rgba(79, 195, 201, 0.12), transparent 60%);
}
.bg .bubble { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.5); border: 1px solid rgba(255, 255, 255, 0.8); box-shadow: inset 0 6px 18px rgba(255, 255, 255, 0.9); opacity: 0.55; }
.bubble.b1 { width: 90px; height: 90px; top: 14%; left: 5%; }
.bubble.b2 { width: 46px; height: 46px; top: 62%; left: 10%; }
.bubble.b3 { width: 120px; height: 120px; top: 30%; right: 4%; }
.bubble.b4 { width: 60px; height: 60px; bottom: 12%; right: 14%; }

/* Cristal */
.glass {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-glass);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(255, 255, 255, 0.94); }
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0.7rem 1.15rem; border-radius: var(--radius-pill);
  font-weight: 800; font-size: 0.9rem; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 10px 30px -10px rgba(47, 140, 255, 0.55); }
.btn-secondary { background: rgba(255, 255, 255, 0.72); border-color: rgba(255, 255, 255, 0.9); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--navy); }
.btn-success { background: var(--turquoise); color: var(--navy); }
.btn-lg { min-height: 52px; padding: 0.85rem 1.4rem; font-size: 0.98rem; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Navbar */
.nav { position: sticky; top: 0; z-index: 50; }
.nav-inner {
  display: flex; align-items: center; gap: 1rem; height: 72px;
  padding: 0 1.1rem; margin-top: 0.6rem; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-md);
}
.brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 800; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand small { display: block; font-size: 0.62rem; letter-spacing: 0.16em; color: var(--muted); font-weight: 800; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 1.1rem; margin-left: auto; font-size: 0.86rem; font-weight: 700; color: var(--slate); }
.nav-links a:hover { color: var(--navy); }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.7); cursor: pointer; }
.mobile-menu { display: none; }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5rem); }
.hero-grid { display: grid; gap: 2.4rem; align-items: center; grid-template-columns: 1.04fr 0.96fr; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); line-height: 1.02; letter-spacing: -0.04em; margin-top: 1rem; }
.hero p.lead { max-width: 50ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.trust-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }
.chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.42rem 0.75rem; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.66); border: 1px solid rgba(255, 255, 255, 0.9); font-size: 0.76rem; font-weight: 700; color: var(--slate); }

.mockup-wrap { position: relative; }
.mockup {
  border-radius: var(--radius-xl); padding: 1.1rem; background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: var(--shadow-lg);
}
.mockup-top { display: flex; align-items: center; justify-content: space-between; padding: 0.15rem 0.25rem 0.8rem; }
.mockup-top strong { font-size: 0.82rem; }
.mockup-top span { font-size: 0.7rem; color: var(--success); font-weight: 800; }
.mockup-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.kpi { background: rgba(246, 247, 255, 0.9); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 0.7rem; }
.kpi small { display: block; font-size: 0.64rem; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.kpi b { font-size: 1.02rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi.blue b { color: var(--blue); }
.kpi.violet b { color: var(--violet-deep); }
.mockup-list { margin-top: 0.75rem; display: grid; gap: 0.45rem; }
.mockup-row { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; background: rgba(255, 255, 255, 0.8); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.55rem 0.65rem; font-size: 0.8rem; }
.mockup-row span { color: var(--slate); }
.mockup-row b { font-variant-numeric: tabular-nums; }
.mockup-total { display: flex; align-items: center; justify-content: space-between; margin-top: 0.75rem; padding: 0.85rem 0.9rem; border-radius: var(--radius-md); background: var(--gradient); color: #fff; }
.mockup-total small { opacity: 0.85; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; }
.mockup-total b { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.clover-hero { position: absolute; right: -18px; bottom: -34px; width: 168px; border-radius: 22px; border: 5px solid #fff; box-shadow: var(--shadow-lg); transform: rotate(2deg); }
.hero-badge { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.8rem; border-radius: var(--radius-pill); background: rgba(47, 140, 255, 0.12); color: #1c5fbf; font-size: 0.74rem; font-weight: 800; }

/* Tarjetas */
.grid { display: grid; gap: 1rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: rgba(255, 255, 255, 0.62); border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-lg); padding: 1.2rem; box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { font-size: 1rem; letter-spacing: -0.01em; margin-top: 0.8rem; }
.card p { color: var(--slate); font-size: 0.86rem; margin-top: 0.35rem; }
.icon-tile { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--gradient-soft); color: var(--violet-deep); border: 1px solid rgba(255, 255, 255, 0.8); }
.icon-tile svg { width: 22px; height: 22px; stroke-width: 1.7; }
.problem-card { border-left: 3px solid rgba(229, 72, 77, 0.5); }
.problem-card h3 { margin-top: 0; }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: step; }
.step { position: relative; padding: 1.3rem 1.2rem 1.2rem; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  background: var(--gradient); color: #fff; font-weight: 800; margin-bottom: 0.8rem;
}

/* Planes */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 1.5rem; }
.plan.highlight { border: 1px solid rgba(124, 92, 230, 0.35); box-shadow: 0 24px 60px -24px rgba(124, 92, 230, 0.45); }
.plan .tag { position: absolute; top: -12px; left: 1.4rem; background: var(--gradient); color: #fff; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3rem 0.6rem; border-radius: var(--radius-pill); }
.plan h3 { font-size: 1.15rem; }
.plan .sub { color: var(--slate); font-size: 0.82rem; margin-top: 0.2rem; }
.price { display: flex; align-items: baseline; gap: 0.25rem; margin: 1rem 0 0.2rem; }
.price b { font-size: 2.1rem; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.price span { color: var(--slate); font-size: 0.82rem; font-weight: 700; }
.plan ul { list-style: none; padding: 0; margin: 1rem 0 1.2rem; display: grid; gap: 0.5rem; }
.plan li { display: flex; gap: 0.5rem; font-size: 0.86rem; color: var(--slate); }
.plan li svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--success); stroke-width: 2.2; margin-top: 0.1rem; }
.plan .btn { margin-top: auto; }
.plan-note { font-size: 0.72rem; color: var(--muted); margin-top: 0.6rem; }

.compare { margin-top: 1.6rem; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; min-width: 560px; }
th, td { text-align: left; padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--line); }
th { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
td:first-child { font-weight: 700; }
td.yes { color: var(--success); font-weight: 700; }
td.no { color: var(--muted); }

/* Descargas */
.downloads { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.download { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.3rem; }
.download-head { display: flex; align-items: center; gap: 0.8rem; }
.download-head .icon-tile { width: 52px; height: 52px; }
.download-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; font-size: 0.78rem; color: var(--slate); }
.download-meta b { color: var(--navy); }
.download .btn { margin-top: 0.4rem; }
.download details { margin-top: 0.4rem; font-size: 0.8rem; color: var(--slate); }
.download summary { cursor: pointer; font-weight: 700; color: var(--navy); }

/* Confianza */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
.trust .card { text-align: center; }
.trust .icon-tile { margin-inline: auto; }

/* FAQ */
.faq { display: grid; gap: 0.6rem; max-width: 860px; margin-inline: auto; }
.faq details { background: rgba(255, 255, 255, 0.62); border: 1px solid rgba(255, 255, 255, 0.85); border-radius: var(--radius-md); padding: 0.2rem 1rem; }
.faq summary { cursor: pointer; font-weight: 800; padding: 0.9rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--violet-deep); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { padding-bottom: 0.9rem; color: var(--slate); font-size: 0.88rem; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 1.2rem; align-items: start; }
.form { display: grid; gap: 0.75rem; }
.field { display: grid; gap: 0.3rem; }
.field label { font-size: 0.74rem; font-weight: 800; color: var(--navy); }
.field input, .field select, .field textarea {
  min-height: 44px; padding: 0.6rem 0.75rem; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85); color: var(--navy); font-size: 0.88rem;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(124, 92, 230, 0.18); outline: none; }
.form-status { font-size: 0.82rem; min-height: 1.2rem; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--danger); }
.contact-info { display: grid; gap: 0.8rem; }
.info-line { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.86rem; color: var(--slate); }
.info-line svg { width: 18px; height: 18px; color: var(--violet-deep); flex: 0 0 auto; margin-top: 0.15rem; }

/* Footer */
.footer { border-top: 1px solid rgba(255, 255, 255, 0.8); background: rgba(255, 255, 255, 0.45); padding: 2.2rem 0; margin-top: 2rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: flex-start; }
.footer a { color: var(--slate); font-size: 0.82rem; }
.footer a:hover { color: var(--navy); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.footer small { color: var(--muted); font-size: 0.74rem; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.2s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .mockup-wrap { max-width: 540px; }
  .grid-4, .trust { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-actions .btn-secondary { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .mobile-menu { display: grid; gap: 0.2rem; padding: 0.6rem; margin-top: 0.5rem; border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a { padding: 0.8rem; border-radius: 12px; font-weight: 700; font-size: 0.9rem; }
  .mobile-menu a:hover { background: var(--lavender); }
  .grid-3, .plans, .downloads { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .clover-hero { width: 128px; right: -6px; bottom: -26px; }
}
@media (max-width: 520px) {
  .container { width: min(1180px, 100% - 1.6rem); }
  .grid-4, .trust { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 auto; }
  .mockup-kpis { grid-template-columns: 1fr 1fr; }
}

/* Modo oscuro */
@media (prefers-color-scheme: dark) {
  :root {
    --lavender: #070d24;
    --navy: #ebefff;
    --slate: #a6aecc;
    --muted: #8a91ad;
    --line: rgba(255, 255, 255, 0.12);
    --white: #0c1533;
  }
  body { background: radial-gradient(1200px 700px at 15% -10%, #1d3a8a 0%, transparent 60%), radial-gradient(900px 600px at 100% 10%, #52308f 0%, transparent 55%), #070d24; }
  .bg .bubble { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); box-shadow: none; opacity: 0.5; }
  .glass, .card, .nav-inner, .faq details, .mobile-menu { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); }
  .btn-secondary, .chip, .kpi, .mockup-row, .field input, .field select, .field textarea { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.14); color: var(--navy); }
  .mockup { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); }
  .footer { background: rgba(0, 0, 0, 0.15); border-color: rgba(255, 255, 255, 0.1); }
  .clover-hero { border-color: rgba(255, 255, 255, 0.2); }
}

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* Impresión mínima */
@media print {
  .nav, .wa-float, .bg, .hero-cta, .download .btn { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Legal y 404 */
.legal { max-width: 860px; margin: 6.5rem auto 3rem; padding: 0 1.25rem; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -0.03em; }
.legal h2 { font-size: 1.12rem; margin-top: 1.7rem; }
.legal p, .legal li { color: var(--slate); font-size: 0.92rem; }
.legal ul { padding-left: 1.2rem; display: grid; gap: 0.35rem; }
.legal a { color: var(--violet-deep); font-weight: 700; }
.legal .back { display: inline-flex; margin-bottom: 1.2rem; font-size: 0.82rem; font-weight: 700; color: var(--violet-deep); }
.notfound { min-height: 100dvh; display: grid; place-items: center; padding: 2rem; text-align: center; }
.notfound .card { max-width: 30rem; padding: 2rem; }
.notfound img { width: 96px; height: 96px; margin: 0 auto 1rem; border-radius: 20px; }
