/* Portada de pos.johnleopard.com.mx: registrar la compu como caja. */
:root {
    --cx-bg: #111111;
    --cx-card: #1b1b1b;
    --cx-borde: #2e2e2e;
    --cx-fg: #f2f2f2;
    --cx-muted: #9a9a9a;
    --cx-acento: #6d4c41;
    --cx-acento-2: #8d6e63;
    --cx-error: #f44336;
    --cx-ok: #4CAF50;
    color-scheme: dark;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--cx-bg);
    color: var(--cx-fg);
    font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.cx-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}
.cx-card {
    width: 100%;
    max-width: 440px;
    background: var(--cx-card);
    border: 1px solid var(--cx-borde);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
}
.cx-card h1 { font-size: 1.3rem; margin: 10px 0 6px; }
.cx-card h2 { font-size: 1.02rem; margin: 0 0 2px; }
.cx-logo, .cx-ok { font-size: 2.4rem; }
.cx-ok { color: var(--cx-ok); font-weight: 800; }
.cx-muted { color: var(--cx-muted); margin: 0 0 12px; font-size: .9rem; }
.cx-bloque { text-align: left; margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.cx-bloque .cx-muted { margin: 0 0 4px; }
.cx-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #d0d0d0;
    background: #ffffff;
    color: #111111;
    font: inherit;
}
.cx-input:focus { outline: 2px solid var(--cx-acento-2); outline-offset: 1px; }
.cx-codigo {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: .18em;
    font-weight: 800;
    text-transform: uppercase;
}
.cx-btn {
    width: 100%;
    padding: 13px 14px;
    border: 0;
    border-radius: 10px;
    background: var(--cx-acento);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.cx-btn:hover { background: var(--cx-acento-2); }
.cx-btn.cx-sec { background: transparent; border: 1px solid var(--cx-borde); color: var(--cx-fg); }
.cx-btn.cx-sec:hover { border-color: var(--cx-acento-2); }
.cx-sep {
    margin: 18px 0 0;
    color: var(--cx-muted);
    font-size: .85rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cx-sep::before, .cx-sep::after { content: ""; flex: 1; height: 1px; background: var(--cx-borde); }
.cx-aviso { margin-top: 8px; padding: 10px 12px; border-radius: 10px; font-size: .9rem; text-align: left; }
.cx-aviso.error { background: rgba(229, 57, 53, .12); color: #ff8a80; border: 1px solid rgba(229, 57, 53, .4); }
.cx-aviso.ok { background: rgba(67, 160, 71, .12); color: #a5d6a7; border: 1px solid rgba(67, 160, 71, .4); }
.cx-spin {
    width: 42px;
    height: 42px;
    margin: 0 auto 6px;
    border-radius: 50%;
    border: 4px solid var(--cx-borde);
    border-top-color: var(--cx-acento-2);
    animation: cx-giro 1s linear infinite;
}
@keyframes cx-giro { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cx-spin { animation: none; } }
.cx-grande { font-size: 1.05rem; margin: 6px 0; }
.cx-puntos { display: flex; justify-content: center; gap: 14px; margin: 16px 0 18px; }
.cx-punto { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--cx-muted); }
.cx-punto.lleno { background: var(--cx-fg); border-color: var(--cx-fg); }
.cx-teclado { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 300px; margin: 0 auto; }
.cx-tecla {
    padding: 16px 0;
    font: inherit;
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: 12px;
    border: 1px solid var(--cx-borde);
    background: #232323;
    color: var(--cx-fg);
    cursor: pointer;
}
.cx-tecla:active { background: var(--cx-acento); }

.cx-card-ancha { max-width: 560px; }
/* auto-fit: en celular quedan una debajo de otra sin depender del ancho exacto. */
.cx-opciones { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 18px 0 14px; }
/* Tarjetas tipo Brain (como el menu de Danados): degradado de color, icono
   grande, texto blanco y sombra; crecen tantito al pasar el mouse. */
.cx-opcion {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    min-width: 0;
    min-height: 170px;
    padding: 22px 20px;
    border: 0;
    border-radius: 18px;
    color: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .30);
    transition: transform .18s ease, box-shadow .18s ease;
}
.cx-opcion:hover, .cx-opcion:focus-visible {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .42);
    outline: none;
}
.cx-opcion:focus-visible { box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 8px 22px rgba(0, 0, 0, .42); }
.cx-opcion-cobrar { background: linear-gradient(135deg, #1b5e20 0%, #4CAF50 100%); }
.cx-opcion-devoluciones { background: linear-gradient(135deg, #0d47a1 0%, #2196F3 100%); }
.cx-opcion-ico { font-size: 44px; line-height: 1; }
.cx-opcion-tit { font-size: 1.45rem; font-weight: 800; margin-top: 18px; }
.cx-opcion-desc { font-size: .88rem; color: rgba(255, 255, 255, .88); }
.cx-instalar {
    margin-top: 14px;
    background: none;
    border: 0;
    color: var(--cx-muted);
    font: inherit;
    font-size: .85rem;
    text-decoration: underline;
    cursor: pointer;
}
.cx-instalar:hover { color: var(--cx-fg); }
.cx-volver { margin-top: 14px; }
@media (prefers-reduced-motion: reduce) { .cx-opcion { transition: none; } .cx-opcion:hover { transform: none; } }

/* ── Pantallas touch de las tiendas: todo grande y facil de picar ─────────── */
.cx-card-ancha { max-width: 980px; padding: 34px 32px; }
.cx-card-ancha h1 { font-size: 1.9rem; }
.cx-card-ancha > .cx-muted { font-size: 1.05rem; }
.cx-opciones { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin: 26px 0 18px; }
.cx-opcion { min-height: 300px; padding: 32px 30px; border-radius: 24px; }
.cx-opcion-ico { font-size: 84px; }
.cx-opcion-tit { font-size: 2.4rem; margin-top: 30px; }
.cx-opcion-desc { font-size: 1.15rem; }
/* Teclado del PIN y botones de confirmar */
.cx-card { max-width: 520px; }
.cx-card-ancha { max-width: 980px; }
.cx-puntos { gap: 20px; margin: 22px 0 26px; }
.cx-punto { width: 22px; height: 22px; }
.cx-teclado { max-width: 400px; gap: 14px; }
.cx-tecla { padding: 24px 0; font-size: 2rem; border-radius: 16px; }
.cx-btn { padding: 18px 16px; font-size: 1.15rem; border-radius: 14px; }
.cx-grande { font-size: 1.25rem; }

/* ── Inicio con el look del PDV del Brain (static/pos_v2/style.css) ───────── */
.cx-home { width: 100%; max-width: 1100px; }
.cx-hbar {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    background: var(--cx-card);
    border: 1px solid var(--cx-borde);
    border-radius: 12px;
    padding: 16px 22px;
    margin-bottom: 24px;
}
.cx-hdato { flex: 1; min-width: 160px; }
.cx-hlabel { font-size: .72rem; color: var(--cx-muted); text-transform: uppercase; letter-spacing: .5px; }
.cx-hvalor { font-size: 1.15rem; font-weight: 700; margin-top: 2px; }
.cx-hvalor.tenue { color: var(--cx-muted); font-weight: 500; }
.cx-acciones { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.cx-accion {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 340px;
    padding: 40px 24px;
    background: #121212;
    border: 3px solid var(--cx-borde);
    border-radius: 20px;
    color: var(--cx-fg);
    font: inherit;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.cx-accion:hover, .cx-accion:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); outline: none; }
.cx-accion:active { transform: scale(.99); }
.cx-accion-ico { font-size: 4.5rem; line-height: 1; }
.cx-accion-tit { font-size: 2.1rem; font-weight: 800; letter-spacing: .5px; }
.cx-accion-desc { font-size: 1.05rem; color: var(--cx-muted); }
.cx-accion.cobrar { border-color: #4CAF50; }
.cx-accion.cobrar:hover, .cx-accion.cobrar:focus-visible { background: rgba(76, 175, 80, .08); }
.cx-accion.devs { border-color: #FF9800; background: rgba(255, 152, 0, .06); }
.cx-accion.devs:hover, .cx-accion.devs:focus-visible { background: rgba(255, 152, 0, .12); }
.cx-home-pie { text-align: center; }
@media (prefers-reduced-motion: reduce) { .cx-accion { transition: none; } .cx-accion:hover { transform: none; } }
