/*
 * Entrar y dar de alta un negocio (layouts/access): la tarjeta del formulario a la izquierda y el panel violeta a
 * la derecha, como en Fideliar. Con sus propios colores (los de la marca), para no depender del tema del panel:
 * estas páginas siempre van en claro.
 */
.acc-body {
    --a-ink: #17152a; --a-ink-2: #3d3a57; --a-muted: #5b5870; --a-line: #e4e1ea; --a-line-2: #cdc9d9; --a-line-3: #a9a4bb;
    --a-paper: #ffffff; --a-canvas: #ebe9f4; --a-soft: #f3f1fa; --a-violet: #4d32ef; --a-violet-hover: #4126d8; --a-violet-soft: #efecff;
    --a-ring: rgba(77, 50, 239, .22); --a-lime: #c9ff4a; --a-ok: #17703f; --a-ok-soft: #e3f5ea; --a-bad: #c02626; --a-bad-soft: #fdecec;
    --a-display: "Parkinsans", "Archivo", ui-sans-serif, system-ui, sans-serif; --a-text: "Archivo", ui-sans-serif, system-ui, sans-serif;
    color-scheme: light; margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--a-canvas); color: var(--a-ink); font-family: var(--a-text); font-size: 15px; line-height: 1.5;
}
.acc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; min-height: 100vh; min-height: 100dvh; padding: 14px; box-sizing: border-box; }
.acc *, .acc *::before, .acc *::after { box-sizing: border-box; }
.acc-main { display: grid; place-items: center; padding: 40px 24px; }
.acc-card { width: min(540px, 100%); padding: 34px 38px 30px; background: var(--a-paper); border: 1px solid var(--a-line); border-radius: 22px; box-shadow: 0 1px 2px rgba(23, 21, 42, .04), 0 24px 56px -28px rgba(23, 21, 42, .22); }
.acc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 26px; }
.acc-logo { display: inline-block; padding: .12em .42em .24em; border-radius: 10px; background: var(--a-violet); color: var(--a-lime); font-family: "Poppins", var(--a-display); font-size: 1.45rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; text-decoration: none; }
.acc-logo:focus-visible { outline: 3px solid var(--a-ring); outline-offset: 3px; }
.acc-where { color: var(--a-muted); font-size: .86rem; }
.acc-flash { margin: 0 0 18px; padding: 10px 14px; border-radius: 12px; background: var(--a-violet-soft); color: var(--a-ink); font-size: .92rem; }

.acc-steps { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.acc-badge { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px; border-radius: 999px; background: var(--a-violet-soft); color: var(--a-violet); font-size: .8rem; font-weight: 600; }
.acc-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.acc-badge.ok { margin: 0 0 14px; background: var(--a-ok-soft); color: var(--a-ok); }
.acc-step-n { color: var(--a-muted); font-size: .84rem; }
.acc-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 20px; }
.acc-bar span { height: 5px; border-radius: 3px; background: var(--a-line); transition: background-color .3s; }
.acc-bar span.on { background: var(--a-violet); }

.acc-title { margin: 0 0 6px; font-family: var(--a-display); font-size: 1.85rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.12; }
.acc-lead { margin: 0 0 22px; color: var(--a-ink-2); font-size: 1rem; }
.acc-mail { color: var(--a-ink); font-weight: 600; word-break: break-all; }
.acc-form { display: grid; gap: 16px; margin: 0; }
.acc-title + .acc-form { margin-top: 20px; }
.acc-form[hidden] { display: none; }
.acc-field { display: grid; gap: 6px; color: var(--a-ink-2); font-size: .9rem; font-weight: 500; }
.acc-field small { color: var(--a-muted); font-size: .82rem; font-weight: 400; }
.acc input[type=text], .acc input[type=email], .acc input[type=password], .acc input[type=tel], .acc select {
    width: 100%; height: 46px; margin: 0; padding: 0 14px; border: 1.5px solid var(--a-line-2); border-radius: 12px; background: var(--a-paper); color: var(--a-ink);
    font: inherit; font-size: 1rem; transition: border-color .12s, box-shadow .12s;
}
.acc input::placeholder { color: #9a96ad; }
.acc input:hover, .acc select:hover { border-color: var(--a-line-3); }
.acc input:focus, .acc select:focus { outline: none; border-color: var(--a-violet); box-shadow: 0 0 0 3px var(--a-ring); }
.acc input[aria-invalid=true] { border-color: var(--a-bad); }
.acc input[aria-invalid=true]:focus { box-shadow: 0 0 0 3px var(--a-bad-soft); }
.acc-error { display: block; color: var(--a-bad); font-size: .86rem; font-weight: 500; }
.acc-error[hidden] { display: none; }
.acc-error a { color: inherit; font-weight: 700; }

.acc-place { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; color: var(--a-ink-2); font-size: .92rem; }
.acc-select { position: relative; display: inline-flex; align-items: center; }
.acc-select svg { position: absolute; left: 12px; width: 17px; height: 17px; color: var(--a-violet); pointer-events: none; }
.acc .acc-select select { width: auto; height: 40px; padding: 0 34px 0 36px; border-radius: 999px; font-weight: 600; font-size: .95rem; appearance: none; -webkit-appearance: none;
    background: var(--a-paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b5870' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 9 4-4 4 4M8 15l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center / 15px; cursor: pointer; }

.acc-kinds { min-width: 0; margin: 0; padding: 0; border: 0; }
.acc-kinds legend { margin: 0 0 4px; padding: 0; color: var(--a-ink-2); font-size: .9rem; font-weight: 500; }
.acc-group { margin: 10px 0 7px; color: var(--a-muted); font-size: .8rem; font-weight: 600; }
.acc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.acc-chip { position: relative; }
.acc-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.acc-chip span { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 7px 14px 7px 11px; border: 1.5px solid var(--a-line-2); border-radius: 12px; background: var(--a-paper); color: var(--a-ink); font-size: .93rem; font-weight: 500; transition: border-color .12s, background-color .12s, color .12s; }
.acc-chip svg { width: 18px; height: 18px; flex: none; color: var(--a-muted); transition: color .12s; }
.acc-chip:hover span { border-color: var(--a-ink-2); }
.acc-chip input:checked + span { border-color: var(--a-violet); background: var(--a-violet-soft); color: var(--a-violet); font-weight: 600; }
.acc-chip input:checked + span svg { color: var(--a-violet); }
.acc-chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--a-ring); }
.acc-kinds[aria-invalid=true] .acc-chip span { border-color: #e8a3a3; }
/* «¿Qué vas a usar?»: tres casillas grandes, una debajo de otra. */
.acc-uses { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.acc-uses[hidden] { display: none; }
.acc-uses legend { margin: 0 0 2px; padding: 0; color: var(--a-ink-2); font-size: .9rem; font-weight: 500; }
.acc-uses .acc-hint { margin: 0 0 4px; }
.acc-use { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--a-line-2); border-radius: 12px; background: var(--a-paper); cursor: pointer; transition: border-color .12s, background-color .12s; }
.acc-use:hover { border-color: var(--a-ink-2); }
.acc-use input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--a-violet); }
.acc-use span { display: grid; gap: 2px; min-width: 0; }
.acc-use b { color: var(--a-ink); font-size: .95rem; font-weight: 600; }
.acc-use small { color: var(--a-muted); font-size: .85rem; line-height: 1.35; }
.acc-use:has(input:checked) { border-color: var(--a-violet); background: var(--a-violet-soft); }
.acc-use:has(input:checked) b { color: var(--a-violet); }

.acc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; margin: 6px 0 0; padding: 10px 22px; border: 1.5px solid var(--a-violet); border-radius: 999px;
    background: var(--a-violet); color: #fff; font: inherit; font-family: var(--a-display); font-size: 1rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color .12s, border-color .12s; }
.acc-btn:hover { background: var(--a-violet-hover); border-color: var(--a-violet-hover); color: #fff; }
.acc-btn:focus-visible { outline: 3px solid var(--a-ring); outline-offset: 2px; }
.acc-btn:disabled, .acc-btn[aria-busy=true] { opacity: .55; cursor: default; }
.acc-btn.ghost { background: var(--a-paper); border-color: var(--a-line-2); color: var(--a-ink); }
.acc-btn.ghost:hover { border-color: var(--a-ink); background: var(--a-soft); }
.acc-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.acc-actions .acc-btn.ghost { width: auto; padding: 10px 24px; }

.acc-pass { position: relative; display: block; }
.acc .acc-pass input { padding-right: 66px; }
.acc-see { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--a-violet); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.acc-see:hover { background: var(--a-violet-soft); }
.acc-see:focus-visible { outline: 3px solid var(--a-ring); }

.acc-check { display: flex; align-items: flex-start; gap: 10px; color: var(--a-ink-2); font-size: .92rem; cursor: pointer; }
.acc-check input { flex: none; width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--a-violet); }
.acc-check a, .acc-foot a, .acc-center a, .acc-summary a, .acc-error a { color: var(--a-violet); font-weight: 600; text-underline-offset: 3px; }
.acc-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.acc-summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 0 20px; padding: 12px 14px; border-radius: 12px; background: var(--a-soft); color: var(--a-ink-2); font-size: .9rem; line-height: 1.45; }
.acc-summary b { color: var(--a-ink); }
.acc-center { margin: 2px 0 0; text-align: center; font-size: .92rem; }
.acc-foot { margin: 22px 0 0; color: var(--a-muted); font-size: .9rem; }
.acc-foot.center { text-align: center; }
.acc-foot.line { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--a-line); }
.acc-small { margin: 18px 0 4px; color: var(--a-muted); font-size: .88rem; }
.acc-link { padding: 0; border: 0; background: none; color: var(--a-violet); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.acc-link:disabled { color: var(--a-muted); text-decoration: none; cursor: default; }
.acc-link.quiet { color: var(--a-muted); font-weight: 500; }
.acc-resend { margin: 0; font-size: .92rem; }
.acc-fix { margin: -8px 0 20px; padding: 14px; border-radius: 12px; background: var(--a-soft); }

/* El código de 6 cifras en dos grupos de 3 casillas. Debajo hay un campo de verdad (pegar, teclado numérico). */
.acc-code { position: relative; display: inline-flex; width: fit-content; }
.acc-code input { width: 12em; letter-spacing: .35em; font-variant-numeric: tabular-nums; }
.acc-code-cells { display: none; }
.acc-code.ready .acc-code-cells { display: grid; grid-template-columns: repeat(3, 54px) 26px repeat(3, 54px); align-items: center; }
.acc-code.ready .acc-code-cells > span { display: grid; place-items: center; height: 62px; border: 1.5px solid var(--a-line-3); border-left-width: 0; background: var(--a-paper); font-family: var(--a-display); font-size: 1.6rem; font-weight: 700; transition: background-color .12s; }
.acc-code.ready .acc-code-cells > span:first-child, .acc-code.ready .acc-code-cells > i + span { border-left-width: 1.5px; border-radius: 14px 0 0 14px; }
.acc-code.ready .acc-code-cells > span:nth-child(3), .acc-code.ready .acc-code-cells > span:last-child { border-radius: 0 14px 14px 0; }
.acc-code.ready .acc-code-cells > i { justify-self: center; width: 10px; height: 2px; background: var(--a-line-3); }
.acc-code.ready .acc-code-cells > span.on { background: var(--a-violet-soft); }
.acc-code.ready .acc-code-cells > span.on:empty::after { content: ""; width: 2px; height: 26px; background: var(--a-violet); animation: acc-caret 1s steps(1) infinite; }
.acc-code.ready input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0; border: 0; opacity: 0; font-size: 16px; cursor: text; }
.acc-code.ready:focus-within .acc-code-cells > span { border-color: var(--a-violet); }
.acc-code.ready.bad .acc-code-cells > span { border-color: var(--a-bad); }
@keyframes acc-caret { 50% { opacity: 0; } }

/* El panel violeta */
.acc-aside { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: calc(100vh - 28px); min-height: calc(100dvh - 28px); padding: 64px 64px 56px; overflow: hidden; border-radius: 28px; background: var(--a-violet); color: #fff; }
.acc-pitch-title { margin: 0 0 22px; font-family: var(--a-display); font-size: clamp(3rem, 6.2vw, 6rem); font-weight: 800; letter-spacing: -.045em; line-height: .92; }
.acc-pitch-sub { max-width: 23em; margin: 0; color: rgba(255, 255, 255, .84); font-size: 1.12rem; line-height: 1.5; }
.acc-demo { position: relative; align-self: flex-end; width: min(420px, 100%); margin: 0 0 0 auto; }
.acc-toast { position: absolute; top: -52px; left: -46px; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 11px 18px 11px 11px; border-radius: 16px; background: var(--a-ink); color: #fff; box-shadow: 0 18px 40px -18px rgba(10, 8, 30, .6); }
.acc-toast b { display: block; color: var(--a-lime); font-family: var(--a-display); font-size: 1.15rem; font-weight: 800; line-height: 1.1; }
.acc-toast small { color: rgba(255, 255, 255, .78); font-size: .85rem; }
.acc-toast-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .12); }
.acc-toast-icon svg, .acc-reward-icon svg, .acc-reward-tag svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.acc-client { padding: 24px 24px 20px; border-radius: 22px; background: #fff; color: var(--a-ink); }
.acc-client-head { display: flex; align-items: center; gap: 12px; padding: 0 0 16px; border-bottom: 1px solid var(--a-line); }
.acc-avatar { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--a-violet-soft); color: var(--a-violet); font-weight: 700; }
.acc-client-who { display: grid; flex: 1; min-width: 0; }
.acc-client-who b { font-family: var(--a-display); font-size: 1.08rem; }
.acc-client-who small { overflow: hidden; color: var(--a-muted); font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.acc-stamps { color: var(--a-violet); font-family: var(--a-display); font-size: .95rem; font-weight: 700; white-space: nowrap; }
.acc-stamps b { font-size: 1.35rem; }
.acc-visits { position: relative; display: grid; gap: 14px; margin: 16px 0; padding: 0; list-style: none; }
.acc-visits::before { content: ""; position: absolute; top: 10px; bottom: 10px; left: 6px; width: 2px; background: var(--a-violet-soft); }
.acc-visits li { position: relative; display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 8px; padding-left: 26px; color: var(--a-ink-2); font-size: .92rem; }
.acc-visits li::before { content: ""; position: absolute; left: 0; width: 10px; height: 10px; border: 2.5px solid var(--a-violet); border-radius: 50%; background: #fff; }
.acc-visits li > span:first-child { color: var(--a-muted); }
.acc-visits li > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-visits b { color: var(--a-violet); font-size: .88rem; }
.acc-visits b::after { content: " sello"; font-weight: 600; }
.acc-reward { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--a-soft); }
.acc-reward-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--a-lime); color: var(--a-ink); }
.acc-reward-icon svg { width: 22px; height: 22px; }
.acc-reward-text { display: grid; flex: 1; min-width: 0; }
.acc-reward-text small { color: var(--a-muted); font-size: .82rem; }
.acc-reward-text b { overflow: hidden; font-family: var(--a-display); font-size: 1.05rem; text-overflow: ellipsis; white-space: nowrap; }
.acc-reward-tag { display: inline-flex; align-items: center; gap: 5px; flex: none; padding: 6px 12px; border-radius: 999px; background: var(--a-ink); color: #fff; font-size: .8rem; font-weight: 600; }
.acc-reward-tag svg { width: 14px; height: 14px; color: var(--a-lime); }
.acc-demo-note { margin: 10px 4px 0; color: rgba(255, 255, 255, .6); font-size: .78rem; text-align: right; }

@media (max-width: 1100px) {
    .acc-aside { padding: 48px 40px 44px; }
    .acc-toast { left: -18px; }
}
@media (max-width: 900px) {
    .acc { grid-template-columns: 1fr; padding: 0; }
    .acc-main { padding: 20px 14px 12px; }
    .acc-card { padding: 24px 20px 22px; border-radius: 18px; }
    .acc-aside { min-height: 0; margin: 8px 12px 14px; padding: 30px 24px; border-radius: 22px; }
    .acc-pitch-title { font-size: 2.6rem; }
    .acc-pitch-title br { display: none; }
    .acc-demo { display: none; }
}
@media (max-width: 420px) {
    .acc-title { font-size: 1.6rem; }
    .acc-code.ready .acc-code-cells { grid-template-columns: repeat(3, 44px) 18px repeat(3, 44px); }
    .acc-code.ready .acc-code-cells > span { height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
    .acc-code.ready .acc-code-cells > span.on:empty::after { animation: none; }
}

/* «Otro tipo de negocio»: qué es, en sus palabras. */
.acc-field[hidden] { display: none; }
.acc-hint { color: var(--a-muted); font-size: 13px; font-weight: 400; }
