/* ==========================================================================
   Sumaq Tecnologia - pagina de venta "Web para tu negocio en 48 horas"
   CSS propio, sin framework ni paso de compilacion. Movil primero.
   ========================================================================== */

:root {
  --ink: #0b1220;
  --ink-2: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --brand: #4f46e5;
  --brand-dark: #3730a3;
  --brand-soft: #eef2ff;
  --wa: #16a34a;
  --wa-dark: #15803d;
  --radius: 16px;
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, .07), 0 2px 4px -2px rgba(15, 23, 42, .05);
  --shadow-lg: 0 24px 40px -12px rgba(15, 23, 42, .25);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink-2); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1rem; }

.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.wrap--narrow { width: min(760px, calc(100% - 2rem)); }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--soft { background: var(--bg-soft); border-block: 1px solid #eef2f7; }
.head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.3rem; border-radius: 12px; font-weight: 700; font-size: .98rem; border: 1px solid transparent; cursor: pointer; transition: background .15s ease, transform .15s ease; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-dark); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: #94a3b8; }
.btn--light { background: #fff; color: var(--brand-dark); }
.btn--light:hover { background: var(--brand-soft); }
.btn--lg { padding: 1rem 1.6rem; font-size: 1.05rem; }
.btn--sm { padding: .55rem .9rem; font-size: .9rem; }
.btn--block { width: 100%; }

/* ---------- Cabecera ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s; }
.top.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -12px rgba(15, 23, 42, .25); }
.top__bar { display: flex; align-items: center; gap: 1rem; height: 68px; }
.logo { display: flex; align-items: center; gap: .65rem; margin-right: auto; font-weight: 800; color: var(--ink); line-height: 1.1; letter-spacing: -.01em; }
.logo small { display: block; font-weight: 600; font-size: .74rem; color: var(--muted); letter-spacing: 0; }
.logo__mark { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 4px 8px rgba(79, 70, 229, .35)); }

/* Menu de escritorio */
.top__nav { display: none; align-items: center; gap: .2rem; font-weight: 600; font-size: .94rem; }
.top__nav > a, .menu-ej > button { position: relative; padding: .55rem .8rem; border: 0; border-radius: 10px; background: none; color: var(--ink-2); font: inherit; cursor: pointer; }
.top__nav > a:hover, .menu-ej > button:hover, .menu-ej.is-open > button { background: var(--bg-soft); color: var(--ink); }
.top__nav > a.is-active { color: var(--brand); }
.top__nav > a.is-active::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 2px; border-radius: 2px; background: var(--brand); }
.menu-ej { position: relative; }
.menu-ej > button svg { display: inline-block; width: 14px; height: 14px; margin-left: .2rem; vertical-align: -2px; transition: transform .2s; }
.menu-ej.is-open > button svg { transform: rotate(180deg); }
.mega { position: absolute; top: calc(100% + 10px); left: 50%; width: 760px; transform: translateX(-38%); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; padding: 1.3rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-lg); }
.mega h4 { margin: 0 0 .5rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.mega ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.mega li a { display: block; padding: .4rem .5rem; margin: 0 -.5rem; border-radius: 8px; font-weight: 600; color: var(--ink); }
.mega li a small { display: block; font-weight: 500; font-size: .78rem; color: var(--muted); }
.mega li a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.mega__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1rem; border-radius: 12px; background: linear-gradient(135deg, #134e4a, #0f766e); color: #ccfbf1; font-size: .9rem; }
.mega__foot b { color: #fff; }
.mega__foot a { color: #fff; font-weight: 800; white-space: nowrap; }

/* Botones de la derecha y menu movil */
.top__wa span { display: none; }
.burger { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; }
.burger svg { width: 22px; height: 22px; }
.burger .x { display: none; }
.burger[aria-expanded="true"] .x { display: block; }
.burger[aria-expanded="true"] .l { display: none; }
.drawer { position: fixed; left: 0; right: 0; top: 68px; bottom: 0; z-index: 39; overflow-y: auto; padding: 1rem 1rem 2rem; background: #fff; border-top: 1px solid var(--line); animation: drop .2s ease-out; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
.drawer nav { display: grid; }
.drawer nav a { display: flex; justify-content: space-between; align-items: center; padding: 1rem .3rem; border-bottom: 1px solid var(--line-soft); font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.drawer nav a::after { content: "›"; color: var(--muted-2); font-size: 1.4rem; }
.drawer h4 { margin: 1.4rem 0 .7rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.drawer__rubros { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.drawer__rubros a { display: grid; gap: .1rem; padding: .85rem; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line-soft); font-weight: 700; color: var(--ink); }
.drawer__rubros a span { font-size: 1.4rem; }
.drawer__rubros a small { font-weight: 500; color: var(--muted); font-size: .78rem; }
.drawer .btn { width: 100%; margin-top: 1.4rem; }
.drawer__mini { margin-top: 1rem; text-align: center; font-size: .9rem; color: var(--muted); }
.drawer__mini a { text-decoration: underline; }

/* ---------- Portada ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem); background: radial-gradient(1000px 500px at 85% -10%, var(--brand-soft), transparent 60%); }
.hero__grid { display: grid; gap: 3rem; align-items: center; }
.eyebrow { display: inline-block; margin-bottom: 1rem; padding: .3rem .8rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; font-size: .85rem; }
.hl { color: var(--brand); white-space: nowrap; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.8rem 0 1.5rem; }
.hero__cta .btn { flex: 1 1 200px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; font-size: .95rem; }
.ticks li { position: relative; padding-left: 1.7rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3rem; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--wa) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 70% no-repeat; }

/* Maqueta de celular */
.phone { justify-self: center; width: min(290px, 80vw); padding: 12px; border-radius: 38px; background: #0b1220; box-shadow: var(--shadow-lg); transform: rotate(-2deg); }
.phone__screen { border-radius: 28px; overflow: hidden; background: #fff; display: grid; gap: 12px; padding: 0 0 14px; }
.mock__hero { padding: 26px 18px 18px; background: linear-gradient(135deg, #b45309, #ea580c); color: #fff; display: grid; gap: 4px; }
.mock__hero b { font-size: 1.15rem; line-height: 1.2; }
.mock__hero small { opacity: .9; font-size: .78rem; }
.mock__logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .2); font-size: 1.4rem; margin-bottom: 6px; }
.mock__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 14px; }
.mock__row span { height: 62px; border-radius: 10px; background: linear-gradient(160deg, #fde68a, #fdba74); }
.mock__row span:nth-child(2) { background: linear-gradient(160deg, #fecaca, #fca5a5); }
.mock__row span:nth-child(3) { background: linear-gradient(160deg, #bbf7d0, #86efac); }
.mock__map { margin: 0 14px; border-radius: 12px; overflow: hidden; background: #f1f5f9; border: 1px solid var(--line); }
.mock__map span { display: block; padding: 6px 10px; font-size: .78rem; font-weight: 600; background: #fff; border-top: 1px solid var(--line); }
.mock__wa { margin: 0 14px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-radius: 10px; background: var(--wa); color: #fff; font-weight: 700; font-size: .85rem; }

/* ---------- Franja de problemas ---------- */
.band { background: var(--ink); color: #cbd5e1; padding: 2.2rem 0; }
.band__grid { display: grid; gap: 1.4rem; }
.band__item b { display: block; color: #fff; font-size: 1.1rem; margin-bottom: .2rem; }
.band__item span { font-size: .95rem; }

/* ---------- Tarjetas ---------- */
.cards { display: grid; gap: 1rem; }
.card { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.card__ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); margin-bottom: 1rem; }
.card__ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card__ico--wa { background: #dcfce7; color: var(--wa); }
.card__ico--wa svg { fill: currentColor; stroke: none; }

/* ---------- Pasos ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; counter-reset: paso; }
.steps li { counter-increment: paso; position: relative; padding: 1.4rem 1.4rem 1.4rem 4.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(paso); position: absolute; left: 1.3rem; top: 1.35rem; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; }
.steps b { display: block; color: var(--ink); font-size: 1.05rem; }
.steps span { color: var(--muted); font-size: .97rem; }
.note { margin: 1.5rem 0 0; padding: 1rem 1.2rem; border-left: 4px solid #f59e0b; background: #fffbeb; border-radius: 0 12px 12px 0; font-size: .95rem; color: #78350f; }
.note--center { border: 0; background: none; color: var(--muted); text-align: center; padding: 0; }

/* ---------- Tipos de negocio ---------- */
.types { display: grid; gap: 1rem; }
.type { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: center; padding: 1.2rem 1.3rem; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid #eef2f7; }
.type > span { grid-row: span 2; font-size: 2rem; }
.type b { color: var(--ink); }
.type small { color: var(--muted); font-size: .92rem; }
.type > span { grid-row: span 3; }
.type em { grid-column: 2; margin-top: .4rem; font-style: normal; font-weight: 700; font-size: .92rem; color: var(--brand); }
.type--link { background: #fff; border-color: var(--line); transition: border-color .15s, box-shadow .15s, transform .15s; }
.type--link:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }

section[id], #sistema { scroll-margin-top: 84px; }
@media (min-width: 640px) { .top__wa span { display: inline; } }
@media (min-width: 1080px) {
  .top__nav { display: flex; }
  .burger, .drawer { display: none !important; }
}

/* Galeria de ejemplos por rubro */
[hidden] { display: none !important; }
.tabs-ej { display: flex; gap: .5rem; overflow-x: auto; margin: -0.5rem 0 1.4rem; padding-bottom: .3rem; justify-content: flex-start; }
.tabs-ej button { flex: none; padding: .6rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 700 .92rem var(--font); color: var(--ink); cursor: pointer; }
.tabs-ej button.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.ej-grid { display: grid; gap: 1.2rem; }
.ej { display: grid; gap: .25rem; padding: .7rem .7rem 1.1rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; transition: transform .15s, box-shadow .15s, border-color .15s; }
.ej:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow); }
.ej__shot { display: block; margin-bottom: .6rem; border-radius: 12px; overflow: hidden; background: var(--bg-soft); aspect-ratio: 16 / 10; border: 1px solid var(--line); }
.ej__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ej__tag { justify-self: start; margin: 0 .3rem; padding: .15rem .6rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: .75rem; font-weight: 700; }
.ej b, .ej small, .ej em { margin: 0 .3rem; }
.ej b { color: var(--ink); font-size: 1.05rem; }
.ej small { color: var(--muted); font-size: .9rem; }
.ej em { margin-top: .3rem; font-style: normal; font-weight: 700; font-size: .9rem; color: var(--brand); }
.pos-card__price { padding: .55rem .8rem; border-radius: 10px; background: rgba(255, 255, 255, .12); color: #fff; font-size: .92rem; }
.pos-card__price b { font-size: 1.15rem; }
@media (min-width: 640px) { .ej-grid { grid-template-columns: repeat(2, 1fr); } .tabs-ej { justify-content: center; } }
@media (min-width: 900px) { .ej-grid { grid-template-columns: repeat(3, 1fr); } }

/* Tarjeta del sistema de ventas */
.pos-card { display: grid; gap: 1.5rem; align-items: center; margin-top: 1rem; padding: 1.6rem; border-radius: 20px; background: linear-gradient(135deg, #134e4a, #0f766e); color: #ccfbf1; transition: transform .15s, box-shadow .15s; }
.pos-card:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -18px rgba(15, 118, 110, .7); }
.pos-card h3 { color: #fff; font-size: 1.5rem; margin: .5rem 0 .4rem; }
.pos-card p { margin: 0 0 .8rem; }
.pos-card em { font-style: normal; font-weight: 800; color: #fff; }
.pos-card__tag { display: inline-block; padding: .2rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .15); font-size: .8rem; font-weight: 700; }
.pos-card__mock { display: grid; gap: .45rem; padding: 1rem; border-radius: 14px; background: #fff; color: var(--ink); font-size: .88rem; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .45); }
.pm__row, .pm__tot { display: flex; justify-content: space-between; gap: 1rem; }
.pm__tot { padding-top: .45rem; border-top: 1px dashed #cbd5e1; font-size: 1.05rem; }
.pm__pay { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.pm__pay i { padding: .45rem; border: 1px solid var(--line); border-radius: 9px; text-align: center; font-style: normal; font-weight: 700; font-size: .82rem; }
.pm__pay i.on { border-color: #0f766e; background: #f0fdfa; color: #134e4a; }
.note--center a { color: var(--brand); font-weight: 700; text-decoration: underline; }
@media (min-width: 900px) { .pos-card { grid-template-columns: 1.3fr 1fr; padding: 2rem 2.2rem; } }

/* ---------- Precios ---------- */
.plans { display: grid; gap: 1.25rem; max-width: 820px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; padding: 2rem 1.6rem 1.6rem; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.plan--hot { border: 2px solid var(--brand); box-shadow: 0 16px 32px -16px rgba(79, 70, 229, .45); }
.plan__tag { position: absolute; top: -.8rem; left: 1.6rem; padding: .2rem .75rem; border-radius: 999px; background: var(--brand); color: #fff; font-size: .8rem; font-weight: 700; }
.plan__for { color: var(--muted); margin-bottom: .8rem; }
.plan__price { display: flex; align-items: baseline; gap: .2rem; font-size: 2.8rem; font-weight: 800; color: var(--ink); line-height: 1; margin-bottom: 1.4rem; }
.plan__price small { font-size: 1.2rem; }
.plan__price span { margin-left: .5rem; font-size: .9rem; font-weight: 600; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .55rem; flex: 1; }
.plan li { position: relative; padding-left: 1.6rem; font-size: .97rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--wa); font-weight: 800; }
.monthly { display: grid; gap: 1rem; max-width: 820px; margin: 1.25rem auto 1.5rem; padding: 1.5rem 1.6rem; border-radius: 20px; background: var(--ink); color: #cbd5e1; }
.monthly__price { display: flex; align-items: baseline; gap: .2rem; margin: 0; font-size: 2.2rem; font-weight: 800; color: #fff; line-height: 1; }
.monthly__price small { font-size: 1rem; }
.monthly__price span { margin-left: .4rem; font-size: .9rem; font-weight: 600; color: #94a3b8; }
.monthly__lbl { margin: .4rem 0 0; font-size: .9rem; }
.monthly ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; font-size: .95rem; }
.monthly li::before { content: "✓ "; color: #4ade80; font-weight: 800; }

/* ---------- Preguntas ---------- */
.faq { display: grid; gap: .75rem; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 3rem 1.1rem 1.25rem; font-weight: 700; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 1.25rem 1.2rem; margin: 0; color: var(--muted); }

/* ---------- Cierre y pie ---------- */
.final { padding: 0 0 clamp(3rem, 7vw, 5rem); }
.final__box { padding: clamp(2.2rem, 5vw, 3.5rem) 1.5rem; border-radius: 24px; text-align: center; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #e0e7ff; }
.final__box h2 { color: #fff; }
.final__box p { font-size: 1.1rem; margin-bottom: 1.6rem; }
.foot { border-top: 1px solid var(--line); padding: 1.5rem 0 5.5rem; font-size: .9rem; color: var(--muted); }
.foot__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
.foot a:hover { color: var(--ink); }
.float-wa { position: fixed; right: 1rem; bottom: 1rem; z-index: 50; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 10px 24px -6px rgba(22, 163, 74, .6); }
.float-wa svg { width: 30px; height: 30px; }

/* ---------- Pantallas medianas y grandes ---------- */
@media (max-width: 420px) {
  .logo small { display: none; }
}
@media (min-width: 640px) {
  .cards, .types, .band__grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .monthly { grid-template-columns: auto 1fr; align-items: center; gap: 2.5rem; }
  .monthly ul { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.15fr .85fr; }
  .cards, .band__grid { grid-template-columns: repeat(3, 1fr); }
  .types, .steps { grid-template-columns: repeat(4, 1fr); }
  .types { grid-template-columns: repeat(2, 1fr); }
  .steps li { padding: 4.2rem 1.4rem 1.4rem; }
  .steps li::before { top: 1.3rem; }
  .foot { padding-bottom: 1.5rem; }
}
