/* Vitrina · pantallas de acceso: panel de marca animado + formulario */
.acceso { background: var(--bg); }
.ac { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }

/* Panel de marca */
.ac-marca { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; color: #fff; isolation: isolate;
  background: radial-gradient(120% 90% at 85% 10%, #3a2049 0%, #24162f 55%, #1a0f22 100%); display: flex; flex-direction: column; }
.ac-marca::after { content: ""; position: absolute; z-index: -1; width: 78vmin; aspect-ratio: 1; border-radius: 50%; right: -26vmin; bottom: -30vmin;
  border: 2px dashed rgba(255,92,147,.28); }
.ac-escena { position: absolute; inset: 0; z-index: -1; --mx: 0; --my: 0; }
.burbuja { position: absolute; left: var(--x); top: var(--y); width: var(--t); aspect-ratio: 1; cursor: pointer;
  transform: translate(-50%, -50%) translate(calc(var(--mx) * var(--d) * 16px), calc(var(--my) * var(--d) * 16px));
  transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.b-flota { position: absolute; inset: 0; animation: flotar var(--v) ease-in-out var(--r) infinite alternate; }
@keyframes flotar { from { transform: translateY(-9px) rotate(-2deg); } to { transform: translateY(9px) rotate(2deg); } }
.b-anillo { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: girar 40s linear infinite; }
.b-anillo circle { fill: none; stroke: #ff5c93; stroke-width: 3.2; stroke-linecap: round; transition: stroke .4s; }
.burbuja:nth-child(3n) .b-anillo circle { stroke: #ffd84d; }
.burbuja.visto .b-anillo circle { stroke: rgba(255,255,255,.3); }
@keyframes girar { to { transform: rotate(360deg); } }
.burbuja .dib { position: absolute; inset: 9%; border-radius: 50%; overflow: hidden; transition: transform .25s; }
.burbuja .dib i { position: absolute; inset: 17%; background: var(--dibujo) center / contain no-repeat; }
.burbuja:hover .dib { transform: scale(1.07); }
.burbuja.toque .dib { animation: toque .45s ease-out; }
@keyframes toque { 40% { transform: scale(.88); } }

.ac-aviso { position: absolute; right: 32px; top: 55%; display: flex; gap: 10px; align-items: center; background: #fff; color: #24162f;
  border-radius: 16px; padding: 10px 14px 10px 10px; box-shadow: 0 20px 40px -18px rgba(0,0,0,.6); max-width: calc(100% - 64px);
  opacity: 0; transform: translateY(12px) scale(.96); transition: .45s cubic-bezier(.2,.8,.2,1); }
.ac-aviso.ver { opacity: 1; transform: none; }
.ac-aviso-ico { width: 36px; height: 36px; border-radius: 12px; background: #25d366; display: grid; place-items: center; font-size: 18px; flex: none; }
.ac-aviso b { display: block; font-size: 14px; }
.ac-aviso small { color: #6c5d78; font-size: 12.5px; }

.ac-top { padding: 24px 28px 0; }
.ac-volver { display: inline-flex; align-items: center; gap: 4px; padding: 7px 13px 7px 8px; border-radius: 999px; font-size: 13.5px; font-weight: 700; text-decoration: none;
  color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(6px); }
.ac-volver:hover { background: rgba(255,255,255,.18); }
.ac-volver svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ac-texto { margin-top: auto; padding: 0 32px 40px; pointer-events: none; }
.ac-texto a { pointer-events: auto; }
.ac-logo { font-family: var(--font-display); font-size: 34px; color: #fff; text-decoration: none; }
.ac-logo b, .ac-logo-movil b { color: #ff5c93; font-weight: 400; }
.ac-frase { font-family: var(--font-display); font-size: clamp(26px, 3vw, 38px); line-height: 1.08; margin: 14px 0 10px; max-width: 15ch; }
.ac-sub { margin: 0; color: #d9c9e6; font-size: 16px; max-width: 38ch; }

/* Formulario */
.ac-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.ac-caja { width: min(440px, 100%); }
.ac-logo-movil { display: none; }
.ac-caja .tarjeta { width: 100%; border-radius: 22px; padding: 28px 24px; box-shadow: 0 24px 48px -32px rgba(36,22,47,.35); }
.ac-caja .tarjeta h1 { font-size: 25px; }
.ac-caja .pie-legal { text-align: center; }
.ac-caja .field input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }

/* Celular: el panel de marca queda arriba como una franja */
@media (max-width: 860px) {
  .ac { grid-template-columns: minmax(0,1fr); grid-template-rows: auto 1fr; }
  .ac-marca { position: relative; height: 260px; }
  .burbuja { left: var(--xm); top: var(--ym); width: calc(var(--t) * .55); }
  .burbuja.solo-grande { display: none; }
  .ac-aviso { right: 14px; top: auto; bottom: 48px; padding: 7px 11px 7px 7px; border-radius: 13px; transform-origin: right; }
  .ac-aviso-ico { width: 30px; height: 30px; font-size: 15px; border-radius: 10px; }
  .ac-aviso b { font-size: 12.5px; } .ac-aviso small { font-size: 11px; }
  .ac-top { padding: 16px 16px 0; }
  .ac-texto { padding: 0 18px 46px; }
  .ac-logo { font-size: 28px; }
  .ac-frase, .ac-sub { display: none; }
  .ac-form { align-items: flex-start; padding: 0 16px 32px; margin-top: -28px; position: relative; z-index: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .burbuja { transition: none; }
  .ac-aviso { transition: none; }
}

/* ---------- formularios de entrar y crear tienda ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.reg-cab { margin-bottom: 18px; }
.reg-cab h1 { font-size: 27px !important; letter-spacing: -.01em; }
.reg-cab p { margin: 4px 0 0; color: var(--muted); }
.sello { display: inline-block; background: var(--tag); color: var(--tag-ink); font-weight: 800; font-size: 12px; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.saludo-mano { display: inline-block; font-size: 30px; margin-bottom: 4px; transform-origin: 70% 80%; animation: saludar 1.6s ease-in-out .4s 2; }
@keyframes saludar { 15%, 45% { transform: rotate(16deg); } 30%, 60% { transform: rotate(-8deg); } 75% { transform: none; } }

.campo { position: relative; }
.campo .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; fill: none; stroke: var(--muted);
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; transition: stroke .15s; }
.ac-caja .field .campo input { padding-left: 42px; height: 48px; }
.campo:focus-within .ico { stroke: var(--accent); }
.campo.wa .ico { stroke: #1faa53; }
.ac-caja .field input, .ac-caja .prefix { transition: border-color .15s, box-shadow .15s; }
.ac-caja .prefix:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.ac-caja .prefix input { height: 45px; }
.ac-caja .prefix input:focus { box-shadow: none !important; }
.con-ojo .ojo { z-index: 1; }

.btn-flecha svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.btn-flecha:hover svg { transform: translateX(4px); }
.ac-caja .btn { height: 50px; font-size: 15.5px; border-radius: 13px; }
.ac-caja .btn.acc { box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--accent) 80%, transparent); }
.ac-caja .btn[aria-busy="true"] { opacity: .8; pointer-events: none; }
.ac-caja .btn[aria-busy="true"]::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: girar .7s linear infinite; }
.mayus { color: var(--warn) !important; font-weight: 700; }
.separador { display: flex; align-items: center; gap: 10px; margin: 20px 0 12px; color: var(--muted); font-size: 13px; font-weight: 600; }
.separador::before, .separador::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sacude { animation: sacudir .45s ease-in-out; }
@keyframes sacudir { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* Pasos del registro */
.reg-pasos { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.reg-pasos li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); padding-bottom: 9px; border-bottom: 3px solid var(--line); transition: .25s; }
.reg-pasos li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 12px; transition: .25s; }
.reg-pasos li.activo { color: var(--ink); border-color: var(--accent); }
.reg-pasos li.activo span { background: var(--accent); color: var(--accent-ink); }
.reg-pasos li.hecho { color: var(--ok); border-color: var(--ok); }
.reg-pasos li.hecho span { background: var(--ok); color: #fff; font-size: 0; }
.reg-pasos li.hecho span::before { content: "✓"; font-size: 13px; }
fieldset.paso { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 14px; }
.registro.js fieldset.paso:not(.activo) { display: none; }
.registro.js fieldset.paso.activo { animation: entraPaso .35s cubic-bezier(.2,.8,.2,1); }
@keyframes entraPaso { from { opacity: 0; transform: translateX(14px); } }
.pasos-botones { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.registro:not(.js) .siguiente, .registro:not(.js) .pasos-botones .ghost { display: none; }
.registro:not(.js) .pasos-botones { grid-template-columns: 1fr; }
.registro:not(.js) .reg-pasos { display: none; }

/* Vista previa de la tienda mientras se escribe */
.vista-previa { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 4px 12px; align-items: center; padding: 14px; border-radius: 16px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #4a2a5c, #24162f 70%); position: relative; overflow: hidden; }
.vista-previa::after { content: "Así se verá"; position: absolute; bottom: 14px; right: 14px; font-size: 10.5px; font-weight: 800; color: #ffd84d; }
.vp-av { grid-row: span 2; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #d6336c; font-family: var(--font-display); font-size: 20px;
  box-shadow: 0 0 0 2.5px #24162f, 0 0 0 5px #ff5c93; }
.vp-txt { display: grid; min-width: 0; }
.vp-txt b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-txt small { color: #d9c9e6; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-txt small i { font-style: normal; color: #ffd84d; font-weight: 700; }
.vp-wa { justify-self: start; background: #25d366; color: #0b2e18; font-weight: 800; font-size: 11.5px; padding: 4px 10px; border-radius: 999px; }
.vista-previa.late .vp-av { animation: toque .35s ease-out; }
#slug-estado.ok { color: var(--ok); font-weight: 700; }
#slug-estado.mal { color: var(--danger); font-weight: 700; }

/* Medidor de contraseña */
.fuerza { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.fuerza i { height: 5px; border-radius: 5px; background: var(--surface-2); transition: background .2s; }
.fuerza[data-nivel="1"] i:nth-child(-n+1) { background: var(--danger); }
.fuerza[data-nivel="2"] i:nth-child(-n+2) { background: var(--warn); }
.fuerza[data-nivel="3"] i:nth-child(-n+3) { background: #c9a227; }
.fuerza[data-nivel="4"] i { background: var(--ok); }
