/* Acceso "Para mi negocio" (negocio.js): RUC → correo → código. Cuadro sobre la bienvenida, con la misma paleta azul y blanca. */
.ng {
  width: min(448px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 24px);
  margin: auto; padding: 0; border: 0; border-radius: 26px; background: transparent; color: #0d1424; overflow: visible;
  font-family: "Geist", system-ui, sans-serif;
}
.ng::backdrop { background: rgba(13, 20, 36, .6); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.ng[open] { animation: ng-in 240ms cubic-bezier(.23, 1, .32, 1); }
.ng[open]::backdrop { animation: ng-fade 240ms ease-out; }
@keyframes ng-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ng-fade { from { opacity: 0; } to { opacity: 1; } }

.ng__card {
  max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain;
  padding: 10px 28px 28px; border-radius: 26px; background: #fff; box-shadow: 0 30px 80px rgba(13, 20, 36, .35);
}
.ng__bar { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; margin: 0 -14px 6px; min-height: 52px; }
.ng__steps { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ng__steps li { flex: 1; height: 4px; border-radius: 99px; background: #e4eaf4; transition: background-color 240ms ease; }
.ng__steps li.is-on { background: #17345f; }
.ng__icon {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #0d1424;
  font: inherit; font-size: 1.7rem; line-height: 1; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: transform 140ms cubic-bezier(.23, 1, .32, 1), background-color 160ms ease;
}
.ng__icon.is-off { visibility: hidden; }
.ng__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ng__icon:active { transform: scale(.92); background: rgba(13, 20, 36, .07); }
.ng__icon:focus-visible { outline: 2px solid #4d74b8; outline-offset: 2px; }
.ng__x { grid-column: 3; }

.ng__title { margin: 8px 0 8px; font: 700 clamp(1.45rem, 5.4vw, 1.75rem)/1.12 "Geist", system-ui, sans-serif; letter-spacing: -.02em; text-wrap: balance; }
.ng__title:focus { outline: none; }
.ng__lead { margin: 0 0 20px; color: #4c5568; font-size: 1rem; line-height: 1.45; text-wrap: pretty; }
.ng__lead strong { color: #0d1424; }

.ng__form { display: grid; gap: 10px; }
.ng__label { font-size: .95rem; font-weight: 700; }
.ng__input {
  width: 100%; min-height: 54px; padding: .8rem 1rem; border: 1.5px solid rgba(13, 20, 36, .16); border-radius: 16px; background: #fff; color: #0d1424;
  font: 600 16px/1.2 inherit; font-family: inherit; font-variant-numeric: tabular-nums; letter-spacing: .06em;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.ng__input::placeholder { color: #5f6878; font-weight: 500; letter-spacing: 0; }
.ng__input--mail { letter-spacing: 0; }
.ng__input--code { font-size: 1.7rem; font-weight: 700; letter-spacing: .5em; text-align: center; padding-left: calc(1rem + .5em); }
.ng__input--code::placeholder { letter-spacing: .5em; }
.ng__input:focus { outline: none; border-color: #17345f; box-shadow: 0 0 0 4px rgba(23, 52, 95, .16); }
.ng__input:disabled { background: #f3f6fb; color: #4c5568; }

.ng__status { display: grid; gap: .3rem; min-height: 1.3em; font-size: .92rem; line-height: 1.4; color: #4c5568; }
.ng__status:empty { display: none; }
.ng__status[data-state="ok"], .ng__status[data-state="warn"] { padding: .8rem .9rem; border-radius: 16px; background: #eef3fb; color: #0d1424; }
.ng__status[data-state="warn"] { background: #fff4e5; }
.ng__status[data-state="error"] { color: #a1301f; }
.ng__status a, .ng__note a { color: inherit; font-weight: 700; text-underline-offset: 3px; }
.ng__name { font-size: 1rem; line-height: 1.25; }
.ng__tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.ng__tag { padding: .15rem .6rem; border-radius: 99px; background: #dbe8d8; color: #1f5b2a; font-size: .82rem; font-weight: 700; }
.ng__tag.is-warn { background: #fde2bf; color: #8a4b05; }
.ng__addr { color: #3a4357; }
.ng__note { color: #8a4b05; }
.ng__spin { display: inline-block; width: 13px; height: 13px; margin-right: .5rem; vertical-align: -2px; border: 2px solid rgba(23, 52, 95, .2); border-top-color: #17345f; border-radius: 50%; animation: ng-spin .7s linear infinite; }
@keyframes ng-spin { to { transform: rotate(360deg); } }

.ng__btn {
  min-height: 54px; margin-top: 4px; border: 0; border-radius: 99px; background: #17345f; color: #fff;
  font: 700 1.05rem/1 inherit; font-family: inherit; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 10px 26px rgba(23, 52, 95, .28);
  transition: transform 140ms cubic-bezier(.23, 1, .32, 1), background-color 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
}
.ng__btn:active:not(:disabled) { transform: scale(.97); }
.ng__btn:disabled { background: #c9d3e3; box-shadow: none; cursor: default; }
.ng__btn.is-busy { opacity: .8; }
.ng__btn:focus-visible { outline: 2px solid #4d74b8; outline-offset: 3px; }

.ng__aux { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 10px; }
.ng__link {
  min-height: 44px; padding: 0 2px; border: 0; background: none; color: #0d1424; font: inherit; font-size: .95rem; font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; cursor: pointer; touch-action: manipulation;
}
.ng__link:disabled { color: #8a93a5; text-decoration: none; font-weight: 600; cursor: default; }
.ng__link:active:not(:disabled) { opacity: .6; }
.ng__link:focus-visible { outline: 2px solid #4d74b8; outline-offset: 2px; border-radius: 4px; }

.ng__done { display: grid; justify-items: center; gap: 4px; padding: 18px 0 8px; text-align: center; }
.ng__done svg { width: 64px; height: 64px; fill: none; stroke: #17345f; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ng__done .ng__lead { margin: 0; }

.ng__input--texto, .ng__input--mail { letter-spacing: 0; }
.ng__input[aria-invalid="true"] { border-color: #a1301f; box-shadow: 0 0 0 4px rgba(161, 48, 31, .14); }
.ng__field { position: relative; }
.ng__field .ng__input { padding-right: 92px; letter-spacing: 0; }
.ng__ver {
  position: absolute; top: 50%; right: 4px; min-width: 84px; min-height: 44px; padding: 0 12px; transform: translateY(-50%);
  border: 0; border-radius: 12px; background: transparent; color: #17345f; font: inherit; font-size: .92rem; font-weight: 700; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.ng__ver:active { background: rgba(13, 20, 36, .07); }
.ng__ver:focus-visible { outline: 2px solid #4d74b8; outline-offset: 1px; }
.ng__hint { margin: -2px 0 0; color: #4c5568; font-size: .9rem; line-height: 1.4; }
.ng__empresa { display: grid; gap: 4px; padding: 16px; border-radius: 18px; background: #eef3fb; line-height: 1.4; }
.ng__empresa strong { font-size: 1.1rem; line-height: 1.25; }
.ng__empresa span { color: #3a4357; }
.ng__empresa .ng__tags { margin-top: 4px; }
.ng__link--inline { min-height: 0; padding: 0; color: inherit; }
.ng__form .ng__label:not(:first-child) { margin-top: 4px; }

/* Negocio verificado, debajo del texto de la portada */
.au-negocio { margin: -2px 0 0; color: #4c5568; font-size: .95rem; }
.au-negocio strong { color: #0d1424; }
.au-negocio button {
  min-height: 44px; padding: 0 2px; border: 0; background: none; color: #0d1424; font: inherit; font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; cursor: pointer; touch-action: manipulation;
}
.au-negocio button:active { opacity: .6; }
.au-negocio button:focus-visible { outline: 2px solid #4d74b8; outline-offset: 2px; border-radius: 4px; }

@media (max-width: 520px) {
  .ng { margin-top: max(12px, 7dvh); margin-bottom: auto; }
  .ng__card { padding: 8px 20px 22px; }
}
@media (hover: hover) and (pointer: fine) {
  .ng__ver:hover { background: rgba(13, 20, 36, .07); }
  .ng__icon:hover { background: rgba(13, 20, 36, .07); }
  .ng__btn:hover:not(:disabled) { background: #1f4278; }
  .ng__link:hover:not(:disabled), .au-negocio button:hover { text-decoration-thickness: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .ng[open], .ng[open]::backdrop { animation: none; }
  .ng__spin { animation-duration: 2s; }
}
