body.entrar {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) 1.15fr;
  min-height: 100dvh;
  background: #fff;
}
.side { position: relative; min-height: 100dvh; }

/* ── Acceso ── */
.side-auth { display: grid; place-items: center; padding: 40px 24px; overflow: hidden; isolation: isolate; }

/* Humo violeta en movimiento detrás del logo */
.smoke { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }

.auth { width: min(380px, 100%); display: grid; gap: 14px; animation: rise 1s var(--ease) both; transition: opacity .4s, transform .4s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.auth-logo img { width: 210px; height: auto; }

/* Versión junto al logo: pastilla de vidrio que muestra las novedades */
.auth-brand { display: flex; align-items: center; gap: 12px; }
.ver-badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 10px 0 8px;
  border: 1px solid rgb(162 89 255 / .35); border-radius: 999px;
  background: rgb(255 255 255 / .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-family: var(--px); font-size: 12px; color: var(--brand-ink);
  transform: translateY(-6px);
  animation: rise .8s .4s var(--ease) both;
  transition: background-color .2s, border-color .2s;
}
.ver-badge:hover, .ver-badge[aria-expanded='true'] { background: #fff; border-color: var(--brand); }
.ver-badge .pxdot { --c: var(--brand); width: 7px; height: 7px; box-shadow: none; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.ver-pop {
  margin: -6px 0 18px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgb(255 255 255 / .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid #fff;
  box-shadow: 0 18px 40px -22px rgb(40 10 80 / .45);
  animation: rise .35s var(--ease) both;
}
.ver-pop h3 { margin: 0; font-size: 15px; font-weight: 600; }
.ver-pop h3 .px { color: var(--brand-ink); font-weight: 400; margin-right: 6px; }
.ver-pop small { color: var(--ink-3); font-size: 12px; }
.ver-pop ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.ver-pop li { display: grid; grid-template-columns: 10px 1fr; gap: 8px; }
.ver-pop li::before { content: ''; width: 6px; height: 6px; margin-top: 6px; background: var(--brand); }
.ver-next { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.ver-next b { color: var(--ink-2); font-weight: 550; }
.auth-sub { margin: 0 0 26px; font-size: 15px; color: var(--ink-3); }
.auth-actions { display: grid; gap: 10px; }
.auth-btn { height: 54px; width: 100%; font-size: 15px; background: rgb(255 255 255 / .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.auth-btn:hover { border-color: var(--brand); background: #fff; }

.auth-more {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 2px; padding: 8px; border: 0; background: none;
  font-size: 13px; color: var(--ink-3);
}
.auth-more:hover { color: var(--ink); }
.auth-more svg { transition: transform .3s var(--ease); }
.auth-more[aria-expanded='true'] svg { transform: rotate(180deg); }
.email-form { display: grid; gap: 8px; animation: rise .45s var(--ease) both; }
.email-form .form-error:empty { min-height: 0; }
.email-form .btn { height: 54px; margin-top: 4px; }
.email-form .input { height: 52px; background: rgb(255 255 255 / .85); }

.auth-note { display: flex; gap: 8px; margin: 22px 0 0; font-size: 12px; line-height: 1.55; color: var(--ink-3); }
.auth-note svg { flex: none; margin-top: 2px; }
.auth-foot { position: absolute; bottom: 22px; margin: 0; font-size: 13px; color: var(--ink-3); }
.auth-foot a { color: var(--ink); font-weight: 550; }
.auth-foot a:hover { color: var(--brand-ink); }

/* ── Panel violeta ── */
/* El fondo toma el color del núcleo que se está contando */
.side-show { --panel: var(--brand); background: var(--panel); color: var(--ink); overflow: hidden; transition: background-color 1.1s var(--ease); }
.ripple { position: absolute; inset: 0; width: 100%; height: 100%; }
.show-nav { position: absolute; top: 18px; right: 24px; z-index: 2; display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 500; }
.show-nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 3px; }

.show-copy { position: absolute; left: 9%; bottom: 12%; z-index: 1; transition: opacity .4s; }
.show-title {
  margin: 0;
  font-size: clamp(64px, 8.2vw, 136px);
  font-weight: 600;
  line-height: .9;
  letter-spacing: -.065em;
  animation: rise 1.1s .15s var(--ease) both;
}
.show-title .px { font-size: .9em; letter-spacing: -.03em; }

.ticker {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 18px;
  row-gap: 12px;
  width: min(380px, 70vw);
  margin-top: 36px;
  animation: rise 1.1s .3s var(--ease) both;
}
.ticker-count { font-size: 13px; opacity: .6; }
.ticker-count b { font-weight: 400; }
.ticker-roll { position: relative; height: 1.3em; overflow: hidden; font-size: 20px; font-weight: 550; letter-spacing: -.02em; }
.ticker-list { display: grid; transition: transform .7s var(--ease); }
.ticker-list span { height: 1.3em; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.ticker-list i { flex: none; width: 10px; height: 10px; background: var(--c); box-shadow: 0 0 0 1px rgb(13 14 16 / .5); }
.ticker-bar { grid-column: 2; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.ticker-bar i { position: relative; height: 3px; border-radius: 3px; background: rgb(13 14 16 / .16); overflow: hidden; }
.ticker-bar i::after { content: ''; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.ticker-bar i.done::after { transform: none; }
.ticker-bar i.run::after { animation: fill var(--dur, 4s) linear forwards; }
@keyframes fill { to { transform: none; } }

/* Al entrar, la X crece hasta llenar el panel */
body.entrar.is-entering .auth { opacity: 0; transform: translateY(-8px); }
body.entrar.is-entering .show-copy, body.entrar.is-entering .show-nav { opacity: 0; }

@media (max-width: 900px) {
  body.entrar { grid-template-columns: 1fr; }
  .side { min-height: 0; }
  .side-show { order: -1; height: 46vh; }
  .show-nav a:not(.btn) { display: none; }
  .show-copy { left: 24px; bottom: 22px; }
  .show-title { font-size: 54px; }
  .ticker { margin-top: 16px; }
  .side-auth { padding: 40px 24px 72px; }
}
