/* Landing — Mi Tienda */
:root {
  --p: #0f766e;
  --p-dark: #0b4f4a;
  --p-soft: rgba(15, 118, 110, 0.1);
  --a: #f59e0b;
  --a-dark: #d97706;
  --ink: #0f172a;
  --body: #334155;
  --soft: #64748b;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 30px 70px rgba(15, 23, 42, 0.18);
  --font: "Segoe UI", Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--ink); margin: 0 0 12px; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: 46px; font-weight: 800; }
h2 { font-size: 34px; font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 14px; }
a { color: var(--p); text-decoration: none; }
img { max-width: 100%; }
.container { width: min(1140px, 100% - 40px); margin: 0 auto; }
.container.narrow { width: min(820px, 100% - 40px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--p); background: var(--p-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 14px;
}
.hl { position: relative; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 12px;
  background: rgba(245, 158, 11, 0.35); z-index: -1; border-radius: 4px;
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; font-weight: 700; font-size: 14.5px;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: inherit; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 24px; font-size: 16px; border-radius: 14px; }
.btn-primary { background: linear-gradient(135deg, var(--p), var(--p-dark)); color: #fff; box-shadow: 0 10px 24px rgba(15, 118, 110, 0.3); }
.btn-primary:hover { box-shadow: 0 14px 30px rgba(15, 118, 110, 0.4); color: #fff; }
.btn-outline { background: #fff; color: var(--p); border-color: var(--p); }
.btn-outline:hover { background: var(--p-soft); }
.btn-ghost { background: transparent; color: var(--body); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f1f5f9; }
.btn-wa { background: #25d366; color: #fff; box-shadow: 0 10px 24px rgba(37, 211, 102, 0.3); }
.btn-wa:hover { background: #1ebe5a; color: #fff; }

/* Nav */
.site-nav {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 18px; }
.nav-brand img { height: 40px; width: auto; max-width: 150px; object-fit: contain; border-radius: 8px; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { color: var(--body); font-weight: 600; padding: 8px 12px; border-radius: 9px; font-size: 14px; }
.nav-links a:hover { background: var(--bg-alt); color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--line); border-radius: 9px; width: 40px; height: 40px; font-size: 16px; color: var(--ink); cursor: pointer; }

/* Hero */
.hero { padding: 70px 0 40px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 85% 10%, rgba(245, 158, 11, 0.16), transparent 32%),
    radial-gradient(circle at 5% 80%, rgba(15, 118, 110, 0.14), transparent 36%),
    linear-gradient(180deg, #f8fafc, #fff 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.lead { font-size: 18px; color: var(--soft); margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-checks { list-style: none; padding: 0; margin: 0; display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--soft); font-weight: 600; }
.hero-checks i { color: #16a34a; margin-right: 6px; }

.hero-visual { position: relative; }
.mock-window {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  overflow: hidden; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.mock-bar span:nth-child(1) { background: #fca5a5; } .mock-bar span:nth-child(2) { background: #fde68a; } .mock-bar span:nth-child(3) { background: #86efac; }
.mock-bar em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--faint); }
.mock-body { display: flex; min-height: 360px; }
.mock-side { width: 64px; background: #0f172a; padding: 14px 10px; display: flex; flex-direction: column; gap: 10px; }
.mock-logo { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--p), var(--a)); margin: 0 auto 8px; }
.mock-item { height: 26px; border-radius: 8px; background: rgba(255, 255, 255, 0.07); }
.mock-item.active { background: var(--p); }
.mock-main { flex: 1; padding: 16px; background: #f4f7fb; display: flex; flex-direction: column; gap: 12px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kpi { border-radius: 12px; padding: 10px 12px; color: #fff; }
.mock-kpi small { display: block; font-size: 10px; opacity: 0.9; }
.mock-kpi strong { display: block; font-size: 16px; font-weight: 800; }
.mock-kpi i { font-style: normal; font-size: 10px; opacity: 0.9; }
.k1 { background: linear-gradient(135deg, #16a34a, #15803d); }
.k2 { background: linear-gradient(135deg, var(--p), var(--p-dark)); }
.k3 { background: linear-gradient(135deg, var(--a), var(--a-dark)); }
.mock-chart { position: relative; height: 96px; background: #fff; border-radius: 12px; border: 1px solid var(--line); padding: 10px; }
.mock-chart .bars { position: absolute; inset: 10px; display: flex; align-items: flex-end; gap: 8px; }
.mock-chart .bars span { flex: 1; height: var(--h); background: rgba(15, 118, 110, 0.18); border-radius: 4px 4px 0 0; animation: grow 1.2s ease both; }
.mock-chart svg { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
@keyframes grow { from { height: 0; } }
.mock-table { background: #fff; border-radius: 12px; border: 1px solid var(--line); font-size: 12px; overflow: hidden; }
.mock-table .row { display: grid; grid-template-columns: 1.6fr 0.7fr 0.8fr; padding: 8px 12px; border-top: 1px solid var(--line); align-items: center; color: var(--body); }
.mock-table .row.head { border-top: 0; background: #f8fafc; color: var(--faint); font-weight: 700; text-transform: uppercase; font-size: 10px; letter-spacing: 0.6px; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-weight: 700; font-size: 11px; width: fit-content; }
.pill.ok { background: #dcfce7; color: #166534; } .pill.low { background: #fef3c7; color: #92400e; } .pill.empty { background: #fee2e2; color: #991b1b; }

.floating-card {
  position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); font-size: 12px; animation: float 5s ease-in-out infinite;
}
.floating-card i { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.floating-card strong { display: block; color: var(--ink); font-size: 13px; }
.floating-card small { color: var(--soft); }
.fc1 { left: -30px; bottom: 40px; } .fc1 i { background: var(--p-soft); color: var(--p); }
.fc2 { right: -20px; top: 30px; animation-delay: 1.4s; } .fc2 i { background: #fef3c7; color: var(--a-dark); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Stats */
.stats { padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { text-align: center; }
.stat strong { display: block; font-size: 30px; font-weight: 800; color: var(--p-dark); letter-spacing: -0.02em; }
.stat span { font-size: 13px; color: var(--soft); font-weight: 600; }

/* Secciones */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--soft); font-size: 16px; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature p { color: var(--soft); font-size: 14px; margin: 0; }
.f-ico { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 14px; }
.c1 { background: #ede9fe; color: #6d28d9; } .c2 { background: #dcfce7; color: #15803d; } .c3 { background: #e0f2fe; color: #0369a1; }
.c4 { background: #fef3c7; color: #b45309; } .c5 { background: var(--p-soft); color: var(--p-dark); } .c6 { background: #fee2e2; color: #b91c1c; }
.c7 { background: #e0e7ff; color: #4338ca; } .c8 { background: #ffe4e6; color: #be123c; } .c9 { background: #ccfbf1; color: #0f766e; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; position: relative; }
.step .n { display: inline-flex; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--p), var(--p-dark)); color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 14px; }
.step p { color: var(--soft); font-size: 14px; margin: 0; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.lead-sm { color: var(--soft); font-size: 16px; }
.check-list { list-style: none; padding: 0; margin: 18px 0 0; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.check-list i { color: var(--p); margin-top: 3px; }
.security-card { background: #0f172a; border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-lg); }
.sec-row { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); color: #e2e8f0; }
.sec-row:last-child { border-bottom: 0; }
.sec-row > i { width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 255, 255, 0.07); display: inline-flex; align-items: center; justify-content: center; color: var(--a); }
.sec-row strong { display: block; font-size: 14px; }
.sec-row small { color: #94a3b8; font-size: 12px; }
.sec-row .ok { margin-left: auto; font-size: 11px; font-weight: 700; color: #86efac; background: rgba(22, 163, 74, 0.18); padding: 4px 10px; border-radius: 999px; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--p); box-shadow: var(--shadow); transform: translateY(-6px); }
.plan .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--a); color: #1f2937; font-size: 11px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.plan-desc { color: var(--soft); font-size: 14px; }
.price { font-size: 22px; font-weight: 800; color: var(--ink); margin: 6px 0 14px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.plan li { padding: 7px 0; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.plan li i { color: #16a34a; margin-top: 3px; }
.plan .btn { width: 100%; }

.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 12px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--p); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--soft); padding-bottom: 12px; margin: 0; font-size: 14.5px; }

.cta { padding: 70px 0; background: linear-gradient(135deg, var(--p), var(--p-dark)); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, 0.85); margin: 0; font-size: 16px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.site-footer { padding: 34px 0; background: #0f172a; color: #94a3b8; font-size: 13px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { height: 38px; width: auto; max-width: 130px; object-fit: contain; border-radius: 8px; background: #fff; padding: 3px; }
.footer-brand strong { display: block; color: #fff; font-size: 15px; }
.footer-brand small { display: block; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: #cbd5e1; font-weight: 600; }
.footer-links a:hover { color: #fff; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.1s; } .delay-2 { transition-delay: 0.2s; } .delay-3 { transition-delay: 0.3s; }

@media (max-width: 1000px) {
  h1 { font-size: 38px; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .features-grid, .plans, .steps { grid-template-columns: 1fr 1fr; }
  .mock-window { transform: none; }
  .fc1 { left: 10px; } .fc2 { right: 10px; }
  .plan.featured { transform: none; }
}
@media (max-width: 720px) {
  h1 { font-size: 32px; } h2 { font-size: 27px; }
  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 12px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-cta .btn-ghost { display: none; }
  .features-grid, .plans, .steps, .stats-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 0; }
  .hero { padding: 40px 0 30px; }
  .floating-card { display: none; }
  .mock-body { min-height: 300px; }
}
