/* POS by Erizos — hoja de estilos del sitio.
   Sin framework: la página es chica y así carga rápido y se ve igual en todos lados. */

:root {
    --ink: #17202a;          /* texto y fondos oscuros */
    --ink-soft: #4a5562;     /* texto secundario */
    --paper: #ffffff;
    --counter: #eef0f2;      /* fondo de secciones alternas: el gris del mostrador */
    --ticket: #fbfbf8;       /* papel térmico */
    --line: #d5d9de;
    --tag: #ffce3d;          /* amarillo de cartelito de precio */
    --action: #1f49c7;       /* botones y enlaces */
    --action-dark: #183aa1;
    --ok: #157a4b;
    --error: #b42318;

    --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;

    --wrap: 1120px;
    --gutter: clamp(20px, 4vw, 40px);
    --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
}

img, svg { display: block; max-width: 100%; }

a { color: var(--action); text-underline-offset: 3px; }
a:hover { color: var(--action-dark); }

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

h1, h2, h3 {
    font-stretch: 112%;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.015em;
    margin: 0;
    text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; font-stretch: 105%; letter-spacing: 0; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 62ch; }
.lead { font-size: 1.2rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--ink); color: #fff; padding: 10px 14px;
}
.skip:focus { top: 12px; color: #fff; }

/* ---------- botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 12px 22px;
    font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none;
    border: 2px solid transparent; border-radius: var(--radius); cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--action); color: #fff; }
.btn-primary:hover { background: var(--action-dark); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { border-color: #fff; color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- encabezado ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand {
    display: inline-flex; align-items: baseline; gap: 6px;
    color: var(--ink); text-decoration: none;
    font-weight: 800; font-stretch: 112%; font-size: 1.25rem; letter-spacing: -0.01em;
}
.brand small { font-weight: 500; font-stretch: 100%; font-size: .95rem; color: var(--ink-soft); }
.brand:hover { color: var(--ink); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover { text-decoration: underline; }
.nav .btn { min-height: 42px; padding: 8px 18px; }
.nav .btn-primary, .nav .btn-primary:hover { color: #fff; text-decoration: none; }
.nav .btn:hover { text-decoration: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 820px) {
    .nav-toggle { display: block; }
    .nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 0;
        background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
    }
    .nav.open { display: flex; }
    .nav a { padding: 12px 0; border-bottom: 1px solid var(--counter); }
    .nav .btn { margin-top: 12px; border-bottom: 0; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero .wrap {
    display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 88px); align-items: center;
}
.hero h1 { max-width: 13ch; }
.hero .lead { margin-top: 24px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-facts {
    display: flex; flex-wrap: wrap; gap: 8px 28px;
    margin: 36px 0 0; padding: 0; list-style: none;
    color: var(--ink-soft); font-size: .98rem;
}
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 18px; height: 18px; color: var(--ok); flex: none; }

@media (max-width: 900px) {
    .hero .wrap { grid-template-columns: 1fr; }
    .hero h1 { max-width: 16ch; }
}

/* ---------- el ticket ---------- */
.ticket-stage { position: relative; display: flex; justify-content: center; }
.ticket {
    position: relative;
    width: min(100%, 340px);
    padding: 26px 24px 30px;
    background: var(--ticket);
    color: #1d1d1b;
    font-family: var(--mono); font-size: .82rem; line-height: 1.5;
    box-shadow: 0 1px 0 var(--line), 0 18px 40px -18px rgba(23, 32, 42, .35);
    transform: rotate(1.5deg);
    /* borde cortado del papel */
    --tooth: 8px;
    mask:
        conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--tooth)) 100%;
    -webkit-mask:
        conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--tooth)) 100%;
    padding-bottom: calc(30px + var(--tooth));
}
.ticket p { margin: 0; }
.ticket .t-center { text-align: center; }
.ticket .t-shop { font-weight: 600; font-size: .95rem; letter-spacing: .02em; }
.ticket hr { border: 0; border-top: 1px dashed #8b8b85; margin: 12px 0; }
.ticket .t-row { display: flex; justify-content: space-between; gap: 12px; }
.ticket .t-item { margin-bottom: 4px; }
.ticket .t-qty { color: #5b5b55; }
.ticket .t-total { font-size: 1.05rem; font-weight: 600; margin-top: 4px; }
.ticket .t-cfe { margin-top: 12px; font-size: .74rem; color: #3b3b37; }
.ticket .t-qr { width: 92px; height: 92px; margin: 14px auto 6px; image-rendering: pixelated; }

/* el cartelito de precio */
.price-tag {
    position: absolute; left: max(0px, calc(50% - 235px)); top: 66%;
    transform: rotate(-6deg);
    background: var(--tag); color: var(--ink);
    padding: 12px 16px 12px 22px;
    border-radius: 4px;
    font-weight: 800; font-stretch: 112%; line-height: 1.1;
    box-shadow: 0 10px 20px -12px rgba(23, 32, 42, .5);
}
.price-tag::before {
    content: ""; position: absolute; left: 8px; top: 50%;
    width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%;
    background: var(--paper);
}
.price-tag span { display: block; font-size: .78rem; font-weight: 600; font-stretch: 100%; }
.price-tag strong { font-size: 1.35rem; }
.ticket-caption { margin-top: 18px; text-align: center; font-size: .9rem; color: var(--ink-soft); }

/* el ticket "se imprime" una vez al cargar */
@media (prefers-reduced-motion: no-preference) {
    .ticket.printing { animation: print 1.1s cubic-bezier(.3, .7, .4, 1) .2s both; }
    .price-tag.printing { animation: stick .35s ease-out 1.25s both; }
}
@keyframes print {
    from { clip-path: inset(0 0 100% 0); }
    to   { clip-path: inset(0 0 -40px 0); }
}
@keyframes stick {
    from { opacity: 0; transform: rotate(-14deg) scale(1.15); }
    to   { opacity: 1; transform: rotate(-6deg) scale(1); }
}
@media (max-width: 560px) { .price-tag { left: 0; top: 61%; padding: 8px 12px 8px 20px; } .price-tag strong { font-size: 1.1rem; } }

/* ---------- secciones ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--counter); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark .lead, .section-dark .muted { color: #c3cad3; }
.section-head { max-width: 62ch; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .lead { margin-top: 16px; }

/* filas de "lo que hacés en el mostrador" */
.rows { border-top: 2px solid var(--ink); }
.row {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 16px 48px; padding: 32px 0;
    border-bottom: 1px solid var(--line);
}
.row p + p { margin-top: 10px; }
.row ul { margin: 12px 0 0; padding-left: 1.1em; color: var(--ink-soft); }
.row li + li { margin-top: 4px; }
@media (max-width: 760px) { .row { grid-template-columns: 1fr; } }

/* ---------- rubros (pestañas) ---------- */
.tabs [role="tablist"] {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px;
}
.tabs [role="tab"] {
    font: inherit; font-weight: 600; cursor: pointer;
    padding: 10px 18px; border-radius: 999px;
    border: 2px solid var(--ink); background: transparent; color: var(--ink);
}
.tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: #fff; }
.tabs [role="tab"]:hover:not([aria-selected="true"]) { background: #fff; }
.tab-panel {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px 56px; background: #fff; padding: clamp(24px, 4vw, 44px);
    border-radius: var(--radius);
}
.tab-panel[hidden] { display: none; }
.tab-panel h3 { font-size: 1.6rem; }
.tab-panel .lead { margin-top: 12px; font-size: 1.08rem; }
.tab-panel ul { margin: 0; padding: 0; list-style: none; }
.tab-panel li { padding: 12px 0; border-bottom: 1px solid var(--counter); }
.tab-panel li:first-child { padding-top: 0; }
.tab-panel li strong { display: block; }
.tab-panel li span { color: var(--ink-soft); font-size: .98rem; }
.tab-panel .plan-hint { margin-top: 20px; font-size: .95rem; }
@media (max-width: 760px) { .tab-panel { grid-template-columns: 1fr; } }

/* módulos: lista corrida, no tarjetas */
.modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 40px; margin: 0; padding: 0; list-style: none; }
.modules li { padding: 16px 0; border-top: 1px solid var(--line); }
.modules strong { display: block; }
.modules span { color: var(--ink-soft); font-size: .96rem; }

/* ---------- cómo empezás (es una secuencia: va numerada) ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; }
.steps li::before {
    content: counter(step);
    display: block; margin-bottom: 14px;
    font-weight: 800; font-stretch: 125%; font-size: 2.6rem; line-height: 1;
    color: var(--tag);
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: #c3cad3; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- precios ---------- */
.billing { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; padding: 4px; margin-bottom: 32px; }
.billing button {
    font: inherit; font-weight: 600; border: 0; cursor: pointer;
    padding: 8px 18px; border-radius: 999px; background: transparent; color: var(--ink);
}
.billing button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; }
.plan { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan-featured { background: #f5f7fd; }
.plan h3 { font-size: 1.4rem; }
.plan .for { margin-top: 6px; color: var(--ink-soft); min-height: 3.2em; }
.plan .price { margin-top: 20px; display: flex; align-items: baseline; gap: 6px; }
.plan .amount { font-weight: 800; font-stretch: 112%; font-size: 2.6rem; letter-spacing: -0.02em; line-height: 1; }
.plan .per { color: var(--ink-soft); }
.plan .save { margin-top: 6px; font-size: .92rem; color: var(--ok); min-height: 1.5em; }
.plan ul { margin: 24px 0 28px; padding: 0; list-style: none; }
.plan li { display: flex; gap: 10px; padding: 7px 0; }
.plan li svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--ok); }
.plan .btn { margin-top: auto; }
.plans-note { margin-top: 20px; color: var(--ink-soft); font-size: .96rem; }
@media (max-width: 900px) {
    .plans { grid-template-columns: 1fr; }
    .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
    .plan .for { min-height: 0; }
}

/* ---------- preguntas ---------- */
.faq { border-top: 2px solid var(--ink); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    list-style: none; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 22px 0; font-weight: 700; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.6rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 22px; color: var(--ink-soft); max-width: 68ch; }

/* ---------- contacto ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-ways { margin: 28px 0 0; padding: 0; list-style: none; }
.contact-ways li { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.contact-ways a { color: #fff; font-weight: 600; }
.contact-ways span { display: block; color: #c3cad3; font-size: .95rem; }
.form { background: #fff; color: var(--ink); padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea {
    font: inherit; color: var(--ink);
    width: 100%; min-width: 0;
    padding: 11px 12px; border: 1.5px solid #aab1ba; border-radius: var(--radius); background: #fff;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(31, 73, 199, .35); border-color: var(--action); }
.form .btn { width: 100%; margin-top: 22px; }
.form-note { margin-top: 12px; font-size: .88rem; color: var(--ink-soft); }
.form-status { margin-top: 14px; font-weight: 600; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--error); }
.hp { position: absolute; left: -9999px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- pie ---------- */
.site-footer { padding: 40px 0; border-top: 1px solid var(--line); font-size: .95rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--ink); }

/* WhatsApp flotante */
.wa-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 40;
    width: 56px; height: 56px; border-radius: 50%;
    display: grid; place-items: center;
    background: #1f8f4e; color: #fff;
    box-shadow: 0 8px 20px -8px rgba(23, 32, 42, .6);
}
.wa-float:hover { background: #18733f; color: #fff; }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- páginas de texto (privacidad, términos, 404) ---------- */
.doc { padding: clamp(48px, 7vw, 88px) 0; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.doc .updated { margin-top: 10px; color: var(--ink-soft); }
.doc h2 { font-size: 1.35rem; font-stretch: 105%; letter-spacing: 0; margin: 40px 0 12px; }
.doc p, .doc li { color: #2c3540; }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 16px; padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }

/* Capturas reales del sistema */
.shot { margin: 0; }
.shot img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--ink); border-radius: 6px;
  background: #1e2533;
}
.shot figcaption { margin-top: 10px; font-size: .95rem; color: var(--ink-soft); }
.shot-main { margin-bottom: 40px; }
.shot-pair { display: grid; grid-template-columns: 1fr; gap: 40px; max-width: 900px; }
.shot-pair + .shot-main { margin-top: 40px; margin-bottom: 0; }
@media (max-width: 760px) { .shot-pair { grid-template-columns: 1fr; } }
.demo-note { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-soft); }
.demo-note code { font-family: "IBM Plex Mono", monospace; font-size: .92em; color: var(--ink); background: var(--counter); padding: 1px 6px; border-radius: 3px; }
.demo-note a { color: var(--action); }
