/* Kuepi: tipografía Jost (Google Fonts, licencia libre), servida desde aquí para que funcione sin internet */
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/ankia_pos/fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Página de entrada de las tiendas Kuepi */
:root {
  --marca: #5B2BC4;
  --marca-fuerte: #1E1433;
  --oro: #FF9A1F;
  --crema: #F7F5FC;
  --tinta: #1E1433;
  --suave: #5E5A66;
  --borde: #E7E1F5;
  --error: #b3261e;
  color-scheme: only light;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font: 16px/1.5 "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--tinta); background: var(--crema); -webkit-font-smoothing: antialiased;
}
a { color: var(--marca); }

.entrada { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(360px, 44%) 1fr; }

/* ---------- lado de marca */
.lado-marca {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  padding: 48px 56px; color: #fff;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(201, 164, 92, .22), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(124, 66, 170, .45), transparent 60%),
    linear-gradient(160deg, var(--marca) 0%, var(--marca-fuerte) 100%);
}
.lado-marca::after {
  content: ""; position: absolute; right: -120px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%;
  border: 1px solid rgba(201, 164, 92, .35); pointer-events: none;
}
.marca-logo { height: 34px; width: auto; align-self: flex-start; }
.lado-texto { max-width: 440px; }
.eyebrow { margin: 0 0 10px; color: var(--oro); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.lado-texto h2 { margin: 0 0 26px; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
.lado-texto ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lado-texto li { position: relative; padding-left: 28px; color: rgba(255, 255, 255, .86); }
.lado-texto li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px;
  border-left: 2px solid var(--oro); border-bottom: 2px solid var(--oro); transform: rotate(-45deg);
}
.lado-pie { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .6); }

/* ---------- formulario */
.lado-form { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; gap: 18px; }
.tarjeta {
  width: 100%; max-width: 420px; background: #fff; border-radius: 20px; padding: 34px 32px 26px;
  box-shadow: 0 1px 2px rgba(42, 15, 64, .06), 0 18px 48px -18px rgba(42, 15, 64, .22);
}
.tienda { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.tienda > div { display: flex; flex-direction: column; min-width: 0; }
.tienda strong { font-size: 22px; line-height: 1.2; overflow-wrap: anywhere; }
.sutil { color: var(--suave); font-size: 14px; }
.tienda-logo { width: 52px; height: 52px; object-fit: contain; border-radius: 12px; border: 1px solid var(--borde); background: #fff; flex: none; }
.tienda-inicial {
  width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--marca), var(--marca-fuerte)); color: var(--oro); font-size: 24px; font-weight: 600;
}

.boton-google {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px;
  border: 1px solid #dadce0; border-radius: 12px; background: #fff; color: #3c4043; font-weight: 600; text-decoration: none;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.boton-google:hover { background: #f8f9fa; border-color: #c6c9cf; }
.boton-google:focus-visible { outline: 3px solid rgba(74, 29, 110, .35); outline-offset: 2px; }
.separador { display: flex; align-items: center; gap: 12px; margin: 22px 0 18px; color: var(--suave); font-size: 13px; }
.separador::before, .separador::after { content: ""; flex: 1; height: 1px; background: var(--borde); }

form label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.fila-label { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; }
.fila-label label { margin: 0 0 6px; }
.fila-label a { font-size: 14px; text-decoration: none; font-weight: 500; }
.fila-label a:hover { text-decoration: underline; }
input[type="text"], input[type="password"] {
  width: 100%; height: 48px; padding: 0 14px; font: inherit; color: var(--tinta);
  border: 1px solid var(--borde); border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: #a79fb0; }
input:focus { outline: none; border-color: var(--marca); box-shadow: 0 0 0 4px rgba(74, 29, 110, .12); }
.campo-clave { position: relative; }
.campo-clave input { padding-right: 84px; }
.ver-clave {
  position: absolute; right: 6px; top: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: 8px;
  background: transparent; color: var(--marca); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.ver-clave:hover { background: #F3EFFC; }
.error { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: #fdecea; color: var(--error); font-size: 14px; }
.aviso { margin: 0 0 18px; padding: 10px 12px; border-radius: 10px; background: #fff6e0; color: #7a5200; font-size: 14px; }
.boton-entrar {
  width: 100%; min-height: 50px; margin-top: 22px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--marca); color: #fff; font: inherit; font-weight: 700; font-size: 16px;
  transition: background .15s, transform .05s;
}
.boton-entrar:hover { background: var(--marca-fuerte); }
.boton-entrar:active { transform: translateY(1px); }
.boton-entrar:focus-visible { outline: 3px solid rgba(201, 164, 92, .8); outline-offset: 2px; }
.boton-entrar:disabled { opacity: .75; cursor: progress; }
.ayuda { margin: 18px 0 0; text-align: center; color: var(--suave); font-size: 13px; }
.registro { margin: 0; color: var(--suave); font-size: 14px; text-align: center; }
.registro a { font-weight: 600; }

/* ---------- celular */
@media (max-width: 860px) {
  .entrada { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .lado-marca { padding: 22px 20px; flex-direction: row; align-items: center; }
  .lado-marca::after, .lado-texto, .lado-pie { display: none; }
  .marca-logo { height: 26px; }
  .lado-form { justify-content: flex-start; padding: 24px 16px 32px; }
  .tarjeta { padding: 26px 20px 22px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Kuepi (tableros «Web · Crear tienda» / «Inicio y entrar»): panel violeta plano con burbujas, etiqueta lima */
.lado-marca { background: #5B2BC4; }
.lado-marca::before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; top: -190px; right: -90px; background: rgba(255,255,255,.12); pointer-events: none; }
.lado-marca::after { border: 0; background: #FF9A1F; width: 320px; height: 320px; right: -110px; bottom: -150px; }
.lado-marca > * { position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: #C8F25C; color: #1E1433; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .18em; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #1E1433; }
.lado-texto h2 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.08; }
.lado-texto li { color: #fff; font-size: 17px; }
.lado-texto li::before { border-color: #C8F25C; }
.lado-pie { color: rgba(255,255,255,.8); }
.boton-entrar { border-radius: 14px; min-height: 48px; }
.boton-entrar:hover { background: #4A22A3; }
.tienda-inicial { background: #5B2BC4; color: #fff; }
input { border-radius: 14px; }

/* Kuepi · microanimación «cargando» en el botón Entrar */
:root{--kp-mandarina:#FF9A1F}
/* ── 7 · Cargando: tres puntos que rebotan con squash ─────────────── */
.kp-loader{display:inline-flex;align-items:flex-end;gap:calc(var(--kp-dot,12px)*.6);height:calc(var(--kp-dot,12px)*2.6)}
.kp-loader span{width:var(--kp-dot,12px);height:var(--kp-dot,12px);border-radius:50%;background:var(--kp-mandarina);
  transform-origin:50% 100%;animation:kp-hop .9s cubic-bezier(.45,0,.55,1) infinite}
.kp-loader--claro span{background:#FFFFFF}
.kp-loader span:nth-child(2){animation-delay:.12s}
.kp-loader span:nth-child(3){animation-delay:.24s}
@keyframes kp-hop{0%,100%{transform:translateY(0) scale(1.3,.7)}
  12%{transform:translateY(0) scale(1)}
  45%{transform:translateY(-140%) scale(.9,1.12)}
  78%{transform:translateY(0) scale(1)}
  88%{transform:translateY(0) scale(1.3,.7)}}

.boton-entrar .kp-loader { vertical-align: middle; margin-right: 6px; height: 20px; }
@media (prefers-reduced-motion:reduce){.kp-loader span{animation:none}}
