/* ============ CG Software · GESTION — Landing ============ */
:root {
  --navy: #0b1f4d;
  --navy-2: #122a63;
  --blue: #2563eb;
  --blue-2: #3b82f6;
  --green: #10b981;
  --violet: #7c3aed;
  --orange: #e8820c;
  --ink: #0f172a;
  --muted: #5b6577;
  --line: #e6e9f0;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -18px rgba(11, 31, 77, .28);
  --shadow-sm: 0 8px 24px -12px rgba(11, 31, 77, .25);
  --maxw: 1140px;
  --grad: linear-gradient(100deg, #3b82f6, #10b981);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { font-family: "Sora", "Inter", sans-serif; line-height: 1.15; margin: 0 0 .4em; color: var(--ink); }
p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; font-weight: 600; font-size: .98rem;
  padding: .8rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 22px -10px rgba(37, 99, 235, .8); }
.btn-primary:hover { background: #1d4ed8; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #eef2ff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 92px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); font-family: "Sora", sans-serif; font-weight: 700; }
.brand-logo { height: 64px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-size: 1.05rem; }
.brand-text small { font-size: .62rem; letter-spacing: .22em; font-weight: 600; color: #9fc1ff; margin-top: 3px; }
.nav { display: flex; align-items: center; }
.nav-menu { list-style: none; display: flex; align-items: center; gap: 1.4rem; margin: 0; padding: 0; }
.nav-menu a { color: var(--navy); font-weight: 500; font-size: .95rem; white-space: nowrap; }
.nav-menu a:hover { color: var(--blue); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .25s; }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(16,185,129,.18), transparent 60%),
    radial-gradient(900px 480px at 0% 0%, rgba(59,130,246,.22), transparent 55%),
    linear-gradient(180deg, var(--navy), var(--navy-2));
  color: #eaf0ff; padding: 64px 0 0; overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  color: #9fc1ff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); color: #fff; font-weight: 800; margin-bottom: .6rem; }
.hero .lead { font-size: 1.12rem; color: #c7d3ef; max-width: 36ch; }
.hero .lead strong { color: #fff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1.2rem; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; padding: 0; margin: 0; color: #aebfe2; font-size: .92rem; }

/* Hero mockup */
.hero-art { display: flex; justify-content: center; }
.mock {
  width: 100%; max-width: 480px; background: #fff; color: var(--ink);
  border-radius: 18px; box-shadow: var(--shadow); overflow: hidden;
  transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
}
.mock-bar { display: flex; gap: 6px; padding: 12px 14px; background: #f1f4fa; border-bottom: 1px solid var(--line); }
.mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: #cdd6e6; }
.mock-bar span:first-child { background: #ff6058; }
.mock-bar span:nth-child(2) { background: #ffbd2e; }
.mock-bar span:nth-child(3) { background: #28c840; }
.mock-bar .pos-url { margin-left: 10px; font-size: .7rem; font-style: normal; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Mock de pantalla POS (Pedido / facturación) ── */
.pos-body { display: grid; grid-template-columns: 1.55fr 1fr; }
.pos-main { padding: 12px; border-right: 1px solid var(--line); min-width: 0; }
.pos-search { font-size: .7rem; color: var(--muted); background: var(--bg-alt); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-prod { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 8px; padding: 7px 2px; border-bottom: 1px solid var(--line); }
.pos-prod:last-child { border-bottom: 0; }
.pos-thumb { width: 30px; height: 30px; border-radius: 7px; background: var(--bg-alt); border: 1px solid var(--line); display: grid; place-items: center; font-size: .95rem; }
.pos-info { min-width: 0; }
.pos-info b { display: block; font-size: .76rem; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-info small { display: block; color: var(--muted); font-size: .64rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-price { font-size: .78rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.pos-add { font-size: .64rem; font-weight: 700; color: #fff; background: #16a34a; padding: 4px 9px; border-radius: 6px; white-space: nowrap; }
.pos-ticket { padding: 12px; display: flex; flex-direction: column; background: #fbfcfe; min-width: 0; }
.pos-ticket-head { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; font-weight: 700; color: var(--blue); border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 6px; }
.pos-ticket-head b { background: #eaf1ff; color: var(--blue); border-radius: 999px; padding: 1px 8px; font-size: .68rem; }
.pos-line { display: flex; justify-content: space-between; gap: 8px; font-size: .72rem; padding: 5px 0; color: var(--muted); }
.pos-line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pos-line b { color: var(--ink); white-space: nowrap; }
.pos-total { margin-top: 10px; background: #0f2e23; color: #fff; border-radius: 8px; padding: 9px 11px; display: flex; justify-content: space-between; align-items: center; }
.pos-total small { font-size: .6rem; letter-spacing: .1em; opacity: .8; }
.pos-total b { font-family: "Sora", sans-serif; font-size: 1.02rem; color: #34d399; }
.pos-pay { margin-top: 8px; text-align: center; background: var(--blue); color: #fff; font-size: .68rem; font-weight: 700; padding: 9px; border-radius: 7px; }
.pos-status { display: flex; align-items: center; gap: 7px; font-size: .62rem; color: var(--muted); padding: 8px 12px; border-top: 1px solid var(--line); background: var(--bg-alt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-status .dot { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.18); flex: none; }

.trust { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; padding: 26px 22px; margin-top: 40px; border-top: 1px solid rgba(255,255,255,.1); }
.trust span { color: #8ea3cf; font-size: .85rem; }
.trust strong { color: #cdd9f4; font-weight: 600; font-size: .92rem; opacity: .85; }

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .eyebrow { color: var(--blue); background: #eaf1ff; border-color: #d8e5ff; }
.section-head h2 { font-size: clamp(1.7rem, 3.3vw, 2.4rem); }
.section-head p { color: var(--muted); font-size: 1.06rem; }

/* Cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--muted); margin: 0; }
.ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 16px; }
.ic-blue { background: #eaf1ff; }
.ic-green { background: #e6faf2; }
.ic-violet { background: #f1eaff; }

/* Features grid */
.grid-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; }
.feat-ic { font-size: 1.5rem; line-height: 1; }
.feat-kicker { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--blue); margin-bottom: 3px; }
.feat h4 { font-size: 1.08rem; margin: 0 0 .3em; }
.feat p { color: var(--muted); margin: 0; font-size: .94rem; }
.feat p em { font-style: italic; color: var(--orange); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-copy .lead { font-size: 1.1rem; color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .7rem; }
.check-list li { position: relative; padding-left: 30px; color: var(--ink); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; background: var(--green); color: #fff; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700; }

/* Invoice art */
.invoice { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; max-width: 420px; margin: 0 auto; }
.invoice-top { display: flex; justify-content: space-between; padding-bottom: 14px; border-bottom: 2px solid var(--navy); }
.invoice-top b { font-family: "Sora", sans-serif; display: block; }
.invoice-top small { color: var(--muted); font-size: .78rem; }
.invoice-cae { text-align: right; }
.invoice-cae b { font-size: .9rem; letter-spacing: .02em; }
.invoice-rows { padding: 14px 0; display: grid; gap: 10px; }
.invoice-rows div { display: flex; justify-content: space-between; font-size: .92rem; color: var(--muted); }
.invoice-rows b { color: var(--ink); }
.invoice-total { display: flex; justify-content: space-between; padding: 14px 0; border-top: 1px dashed var(--line); font-size: 1.1rem; }
.invoice-total b { font-family: "Sora", sans-serif; }
.invoice-stamp { margin-top: 8px; text-align: center; color: var(--green); font-weight: 700; background: #e6faf2; border-radius: 10px; padding: 10px; }

/* Plans */
.plans { align-items: stretch; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.plan h3 { font-size: 1.35rem; }
.plan-desc { color: var(--muted); min-height: 44px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: .55rem; color: var(--ink); font-size: .95rem; }
.plan .btn { margin-top: auto; }
.plan-feat { border: 2px solid var(--blue); box-shadow: var(--shadow); transform: translateY(-6px); }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: .74rem; font-weight: 700; padding: .3rem .9rem; border-radius: 999px; letter-spacing: .03em; }

/* CTA band */
.cta-band { background: linear-gradient(110deg, var(--navy), var(--blue)); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 56px 22px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d7e0f4; margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Contact form */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; color: var(--ink); }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea { font: inherit; padding: .7rem .85rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fbfcfe; transition: border .15s ease, box-shadow .15s ease; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.form-note { margin: 0; font-size: .9rem; min-height: 1.2em; }
.form-note.ok { color: var(--green); }
.form-note.err { color: #ef4444; }

/* Footer */
.site-footer { background: var(--navy); color: #c7d3ef; padding: 56px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand-footer { flex-direction: column; align-items: flex-start; gap: 2px; }
.wordmark { font-family: "Sora", sans-serif; font-size: 1.55rem; line-height: 1; letter-spacing: -.01em; }
.wordmark b { color: #fff; font-weight: 800; }
.wordmark i { color: var(--orange); font-style: normal; font-weight: 800; }
.wordmark-sub { color: #9fb1d9; font-size: .74rem; letter-spacing: .02em; }
.footer-brand p { color: #9fb1d9; margin-top: 14px; max-width: 30ch; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-cols h5 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.footer-cols a { display: block; color: #c7d3ef; padding: 4px 0; font-size: .94rem; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; color: #8ea3cf; font-size: .82rem; }

/* Diferenciales */
.diffs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.diff { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; }
.diff .d-ic { font-size: 1.5rem; line-height: 1; }
.diff h4 { margin: 0 0 .25em; font-size: 1.02rem; }
.diff p { margin: 0; color: var(--muted); font-size: .92rem; }

/* Grupos de módulos */
.mod-group { margin-bottom: 44px; }
.mod-group:last-child { margin-bottom: 0; }
.mod-group-title { display: flex; align-items: center; gap: .7rem; font-size: 1.25rem; margin: 0 0 20px; padding-bottom: 12px; border-bottom: 2px solid var(--line); }
.mod-group-title span { width: 38px; height: 38px; display: grid; place-items: center; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px; font-size: 1.15rem; }

/* Tarjetas de módulo con preview visual */
.mods-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.mcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mcard-thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--mcb), #fff); display: grid; place-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.mcard-win { width: 100%; max-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 26px -16px rgba(15,23,42,.5); overflow: hidden; }
.mcard-win-bar { display: flex; gap: 4px; padding: 7px 9px; background: #f1f4fa; border-bottom: 1px solid var(--line); }
.mcard-win-bar i { width: 7px; height: 7px; border-radius: 50%; background: #cdd6e6; }
.mcard-win-body { padding: 14px; display: flex; align-items: center; gap: 12px; }
.mcard-glyph { width: 48px; height: 48px; border-radius: 12px; background: var(--mcb); display: grid; place-items: center; font-size: 1.6rem; flex: none; }
.mcard-rows { display: grid; gap: 7px; flex: 1; min-width: 0; }
.mcard-rows span { height: 9px; border-radius: 5px; background: var(--mcb); }
.mcard-rows span:nth-child(1) { width: 100%; background: var(--mc); opacity: .9; }
.mcard-rows span:nth-child(2) { width: 78%; }
.mcard-rows span:nth-child(3) { width: 55%; }
.mcard-info { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.mcard-info .feat-kicker { color: var(--mc); }
.mcard-info h4 { font-size: 1.12rem; margin: 0 0 .4em; }
.mcard-info > p { color: var(--muted); font-size: .92rem; margin: 0 0 .9rem; }
.mcard-list { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: .45rem; }
.mcard-list li { position: relative; padding-left: 20px; font-size: .86rem; color: var(--ink); }
.mcard-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; color: var(--mc); font-weight: 800; font-size: .82rem; }
.mcard-list li em { font-style: italic; color: var(--orange); }

/* Integraciones */
.integr .chips { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 8px; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .65rem 1.2rem; font-weight: 600; color: var(--navy); box-shadow: var(--shadow-sm); font-size: .95rem; }

/* Rubros */
.rubros { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rubro { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px 16px; text-align: center; transition: transform .2s ease, box-shadow .2s ease; }
.rubro:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.rubro .r-ic { font-size: 1.9rem; display: block; margin-bottom: 10px; }
.rubro b { display: block; font-size: .98rem; color: var(--ink); }
.rubro small { color: var(--muted); font-size: .82rem; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px -6px rgba(37, 211, 102, .7);
  transition: transform .18s ease, box-shadow .2s ease;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 14px 30px -6px rgba(37, 211, 102, .85); }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25d366; animation: wa-pulse 2.2s ease-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.6); opacity: 0; }
}
@media (max-width: 700px) {
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .hero-inner, .split { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .cards-3, .grid-features { grid-template-columns: 1fr 1fr; }
  .mods-grid { grid-template-columns: 1fr 1fr; }
  .diffs { grid-template-columns: 1fr 1fr; }
  .rubros { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 92px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px 22px 18px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm);
    max-height: 0; overflow: hidden; transition: max-height .3s ease; padding-top: 0; padding-bottom: 0;
  }
  .nav-menu.open { max-height: 420px; padding-top: 8px; padding-bottom: 18px; }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-menu .nav-login { margin-top: 10px; text-align: center; border-bottom: 0; }
  .cards-3, .grid-features, .plans, .diffs, .mods-grid { grid-template-columns: 1fr; }
  .rubros { grid-template-columns: 1fr 1fr; }
  .pos-body { grid-template-columns: 1fr; }
  .pos-main { border-right: 0; border-bottom: 1px solid var(--line); }
  .plan-feat { transform: none; }
  .section { padding: 60px 0; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .mock { transform: none; }
  .wa-float::after { animation: none; }
}
