/* PosTiendas - registro de negocios: panel de marca con precios + formulario. Sobre el fondo de .login-page. */
.registro {
  width: min(980px, 100%); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  background: var(--panel); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(10, 20, 40, .4);
}

/* Panel de marca */
.registro-info {
  background: linear-gradient(160deg, #2f6fbf 0%, #1d4a85 100%); color: #fff; padding: 36px 34px;
  display: flex; flex-direction: column; gap: 18px;
}
.registro-marca { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-size: 20px; font-weight: 800; }
.registro-marca img { border-radius: 10px; box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
.registro-info h1 { margin: 6px 0 0; font-size: 32px; line-height: 1.15; letter-spacing: -.3px; }
.registro-lead { margin: 0; font-size: 15px; color: #d6e6f3; line-height: 1.5; }

.registro-precios { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.registro-precio {
  position: relative; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px; padding: 16px 14px 14px; display: grid; gap: 2px;
}
.registro-precio-nombre { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: #d6e6f3; font-weight: 600; }
.registro-precio strong { font-size: 25px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.registro-precio small { font-size: 12.5px; color: #d6e6f3; }
.registro-precio-destacado { background: #fff; color: var(--ink); border-color: #fff; }
.registro-precio-destacado .registro-precio-nombre, .registro-precio-destacado small { color: var(--muted); }
.registro-precio-destacado strong { color: var(--brand); }
.registro-precio-tag {
  position: absolute; top: -10px; right: 10px; background: #12a37a; color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}

.registro-incluye { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 9px; font-size: 14.5px; }
.registro-incluye li { display: flex; gap: 10px; align-items: baseline; }
.registro-incluye li::before {
  content: "✓"; flex: none; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.18);
  display: grid; place-items: center; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center;
}

/* Formulario */
.registro-form { padding: 32px 34px; display: grid; gap: 14px; align-content: start; }
.registro-form h2 { margin: 0; font-size: 22px; color: var(--ink); }
.registro-sub { margin: -8px 0 2px; font-size: 13.5px; }
.registro-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.registro-form legend {
  padding: 0; margin-bottom: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; color: var(--brand);
}
.registro-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.registro-grid .span2 { grid-column: 1 / -1; }
.registro-grid input, .registro-grid select { width: 100%; padding: 8px 10px; }
.registro-ayuda { margin: 0; font-size: 12.5px; color: var(--muted); }
.registro-boton { padding: 12px; font-size: 15px; margin-top: 4px; }

@media (max-width: 820px) {
  .registro { grid-template-columns: minmax(0, 1fr); }
  .registro-info { padding: 26px 22px; gap: 14px; }
  .registro-info h1 { font-size: 26px; }
  .registro-incluye { display: none; }      /* en celular: precios arriba y directo al formulario */
  .registro-form { padding: 24px 22px; }
}
@media (max-width: 480px) {
  .registro-grid { grid-template-columns: minmax(0, 1fr); }
  .registro-precio strong { font-size: 21px; }
}

/* Licencia: estado, planes para pagar y pagos recientes */
.licencia-card { width: min(440px, 100%); }
.licencia-estado { margin: 0; font-size: 14px; line-height: 1.5; }
.licencia-estado.vencida { color: var(--err); }
.licencia-planes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.licencia-plan {
  position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 16px 12px 12px;
  display: grid; gap: 4px; justify-items: center; text-align: center; margin: 0;
}
.licencia-plan.destacado { border: 2px solid var(--brand); box-shadow: 0 10px 26px rgba(42,100,173,.14); }
.licencia-plan-nombre { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.licencia-plan strong { font-size: 22px; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.licencia-plan small { font-size: 12px; color: var(--muted); }
.licencia-plan .btn { width: 100%; margin-top: 6px; }
.licencia-tag {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: #12a37a; color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.licencia-pagos { font-size: 13px; }
.licencia-pagos summary { cursor: pointer; color: var(--muted); }
.licencia-pagos ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.pago-resultado {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; font-weight: 800;
  color: #fff; margin: 4px auto 0;
}
.pago-resultado.ok { background: var(--ok); }
.pago-resultado.espera { background: var(--warn); }
.pago-resultado.error { background: var(--err); }
@media (max-width: 400px) { .licencia-planes { grid-template-columns: 1fr; } }

/* Login: boton de acceso de plataforma y aviso de desarrollador */
.login-plataforma {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 2px;
  padding: 9px 12px; border: 1px dashed #b9c4d2; border-radius: 8px; background: #f6f8fb;
  color: #3d4a5c; font-size: 13px; font-weight: 600; text-decoration: none; transition: background .15s, border-color .15s;
}
.login-plataforma svg { color: var(--brand); }
.login-plataforma:hover { background: var(--brand-soft); border-color: var(--brand); border-style: solid; color: var(--brand); }
.aviso-dev {
  width: min(430px, calc(100% - 32px)); border: 2px solid #b42318; border-radius: 12px; padding: 0; overflow: hidden;
  background: #16181d; color: #e8e9ec; box-shadow: 0 0 0 6px rgba(180, 35, 24, .18), 0 30px 80px rgba(0, 0, 0, .6);
}
.aviso-dev-caja { text-align: center; }     /* el clic en el dialogo mismo es solo el fondo */
.aviso-dev::backdrop { background: rgba(8, 10, 14, .82); backdrop-filter: blur(3px); }
.aviso-dev-franja {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 20px 16px; color: #fff;
  background: repeating-linear-gradient(-45deg, #b42318 0 14px, #8f1c13 14px 28px);
}
.aviso-dev-franja h2 { margin: 0; font-size: 22px; letter-spacing: 3px; font-weight: 900; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.aviso-dev-cuerpo { padding: 20px 24px 22px; }
.aviso-dev-cuerpo p { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: #c9ccd3; }
.aviso-dev-fuerte { color: #fff !important; font-weight: 700; font-size: 15px !important; }
.aviso-dev-ip {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 4px 0 14px; padding: 10px 14px;
  border: 1px solid #3a3e47; border-radius: 8px; background: #0e1014; font-size: 13px; color: #9aa0ab;
}
.aviso-dev-ip strong { font-family: var(--mono); color: #ff8a80; font-size: 15px; letter-spacing: .5px; }
.aviso-dev-ley { font-size: 12.5px !important; color: #9aa0ab !important; border-left: 3px solid #b42318; text-align: left;
                 padding-left: 10px; }
.aviso-dev-botones { display: grid; gap: 12px; margin: 18px 0 0; }
.aviso-dev-salir { background: #fff; color: #16181d; border-color: #fff; font-weight: 800; padding: 11px; font-size: 15px; }
.aviso-dev-salir:hover { background: #e8e9ec; }
.aviso-dev-continuar { font-size: 12px; color: #7d838f; text-decoration: underline; }
.aviso-dev-continuar:hover { color: #c9ccd3; }

/* Acceso de plataforma: pantalla tipo terminal (sigue al aviso de area restringida) */
.dev-page {
  height: auto; min-height: 100%; display: grid; place-items: center; padding: 16px; color: #b6f5c6;
  font-family: var(--mono);
  background:
    repeating-linear-gradient(0deg, rgba(0, 255, 120, .035) 0 1px, transparent 1px 3px),
    radial-gradient(1200px 600px at 50% -10%, rgba(0, 120, 60, .25), transparent 70%),
    #05070a;
}
.dev-page .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.dev-terminal {
  width: min(560px, 100%); border: 1px solid #1f5c38; border-radius: 10px; overflow: hidden; background: rgba(4, 12, 8, .94);
  box-shadow: 0 0 0 1px rgba(0, 255, 120, .08), 0 0 40px rgba(0, 255, 120, .12), 0 30px 80px rgba(0, 0, 0, .7);
}
.dev-barra { display: flex; align-items: center; gap: 12px; padding: 9px 14px; background: #0d1a12; border-bottom: 1px solid #1f5c38;
             font-size: 12px; color: #5fae7c; }
.dev-puntos { display: flex; gap: 6px; }
.dev-puntos i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.dev-puntos i:nth-child(2) { background: #febc2e; }
.dev-puntos i:nth-child(3) { background: #28c840; }
.dev-cuerpo { padding: 20px 24px 22px; display: grid; gap: 14px; }
.dev-salida { margin: 0; font-family: var(--mono); font-size: 13px; line-height: 1.65; color: #8fd6a6; white-space: pre-wrap; word-break: break-word; }
.dev-prompt { color: #39ff88; font-weight: 700; }
.dev-ok { color: #39ff88; font-weight: 700; }
.dev-alerta { color: #ff6b5e; }
.dev-cursor { display: inline-block; width: 9px; height: 16px; margin-left: 4px; vertical-align: text-bottom; background: #39ff88;
              animation: dev-parpadeo 1s steps(1) infinite; }
@keyframes dev-parpadeo { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dev-cursor { animation: none; } }
.dev-campo { color: #39ff88; font-size: 13px; font-weight: 700; gap: 6px; }
.dev-campo input {
  width: 100%; font-family: var(--mono); font-size: 16px; letter-spacing: 1px; color: #d8ffe4; background: #020604;
  border: 1px solid #1f5c38; border-radius: 6px; padding: 10px 12px; caret-color: #39ff88;
}
.dev-campo input::placeholder { color: #2c6b45; letter-spacing: 4px; }
.dev-campo input:focus { outline: none; border-color: #39ff88; box-shadow: 0 0 0 3px rgba(57, 255, 136, .15), 0 0 18px rgba(57, 255, 136, .15); }
.dev-campo .pass-toggle { color: #5fae7c; }
.dev-campo .pass-toggle:hover { color: #39ff88; background: rgba(57, 255, 136, .08); }
.dev-boton {
  margin-top: 4px; padding: 12px; border: 1px solid #39ff88; border-radius: 6px; background: rgba(57, 255, 136, .08);
  color: #39ff88; font-family: var(--mono); font-size: 14px; font-weight: 800; letter-spacing: 2px; cursor: pointer;
  transition: background .15s, box-shadow .15s, color .15s;
}
.dev-boton:hover, .dev-boton:focus-visible { background: #39ff88; color: #03140a; box-shadow: 0 0 22px rgba(57, 255, 136, .35); outline: none; }
.dev-nota { margin: 0; font-size: 12px; color: #4f8f67; }
.dev-volver { font-size: 12.5px; color: #5fae7c; text-decoration: none; justify-self: start; }
.dev-volver:hover { color: #39ff88; text-decoration: underline; }
.dev-page .flash { font-family: var(--mono); background: #1a0a0a; border-color: #b42318; color: #ff8a80; }
.dev-page .flash.ok { background: #071a0f; border-color: #1f5c38; color: #39ff88; }
.dev-campo .pass-field input { padding-right: 40px; }
