/* Registro / Ingreso */
body.auth { min-height: 100svh; background:
  radial-gradient(70vmax 50vmax at 15% 20%, rgba(255, 90, 60, .14), transparent 60%),
  radial-gradient(50vmax 40vmax at 90% 100%, rgba(57, 255, 20, .08), transparent 60%), var(--negro2); }
.auth-wrap { min-height: 100svh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-arte { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 120px clamp(24px, 6vw, 90px) 60px; overflow: hidden; }
.auth-arte::before { content: ""; position: absolute; inset: auto -40% -10% -40%; height: 55%;
  background-image: linear-gradient(rgba(57, 255, 20, .13) 1px, transparent 1px), linear-gradient(90deg, rgba(57, 255, 20, .13) 1px, transparent 1px);
  background-size: 56px 56px; transform: perspective(500px) rotateX(60deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 85%); mask-image: linear-gradient(to top, #000, transparent 85%); }
.auth-arte h1 { position: relative; margin: 14px 0 18px; font-weight: 900; font-size: clamp(46px, 6.6vw, 104px); line-height: .88; letter-spacing: -.055em; }
.auth-arte h1 em { font-style: normal; color: var(--coral); text-shadow: 0 0 40px rgba(255, 90, 60, .5); }
.auth-arte ul { position: relative; list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 12px; }
.auth-arte li { display: flex; gap: 12px; align-items: center; font-weight: 600; color: var(--gris); }
.auth-arte li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--neon); box-shadow: 0 0 12px var(--neon); }

/* cubo 3D en CSS */
.cubo3d { position: relative; width: 120px; height: 120px; margin: 0 0 26px 10px; perspective: 700px; }
.cubo3d .giro { position: absolute; inset: 0; transform-style: preserve-3d; animation: girar 14s linear infinite; }
.cubo3d .cara { position: absolute; inset: 0; border: 3px solid var(--neon); border-radius: 6px;
  background: linear-gradient(135deg, #ff8b6a, #c43c1d 70%); box-shadow: 0 0 22px rgba(57, 255, 20, .55), inset 0 0 30px rgba(0, 0, 0, .25); }
.cubo3d .cara::before, .cubo3d .cara::after { content: ""; position: absolute; background: #0a0d08; box-shadow: 0 0 0 1.5px rgba(57, 255, 20, .5); }
.cubo3d .cara::before { left: 28%; right: 28%; top: 26%; height: 14%; }
.cubo3d .cara::after { left: 43.5%; width: 13%; top: 40%; bottom: 25%; }
.cubo3d .c1 { transform: translateZ(60px); } .cubo3d .c2 { transform: rotateY(180deg) translateZ(60px); }
.cubo3d .c3 { transform: rotateY(90deg) translateZ(60px); } .cubo3d .c4 { transform: rotateY(-90deg) translateZ(60px); }
.cubo3d .c5 { transform: rotateX(90deg) translateZ(60px); } .cubo3d .c6 { transform: rotateX(-90deg) translateZ(60px); }
@keyframes girar { from { transform: rotateX(-24deg) rotateY(0); } to { transform: rotateX(-24deg) rotateY(360deg); } }

.auth-form-lado { display: flex; align-items: center; justify-content: center; padding: 110px clamp(16px, 5vw, 70px) 60px; }
.tarjeta-form { width: 100%; max-width: 460px; padding: clamp(24px, 4vw, 40px); border-radius: 28px; background: rgba(13, 11, 8, .82);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 0 0 1px var(--linea) inset, 0 40px 100px -40px rgba(255, 90, 60, .45); }
.tarjeta-form h2 { margin: 0 0 6px; font-weight: 900; font-size: 34px; letter-spacing: -.04em; line-height: 1; }
.tarjeta-form > p { margin: 0 0 24px; color: var(--gris); }
.campo { display: grid; gap: 7px; margin-bottom: 16px; }
.campo label { font: 700 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gris); }
.campo input { width: 100%; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 0; outline: 0; font: 500 17px var(--sans); color: var(--blanco);
  background: rgba(244, 239, 230, .06); box-shadow: 0 0 0 1px var(--linea) inset; transition: box-shadow .25s, background .25s; }
.campo input:focus { background: rgba(244, 239, 230, .09); box-shadow: 0 0 0 1.5px var(--neon) inset, 0 0 24px -6px rgba(57, 255, 20, .5); }
.campo input[aria-invalid="true"] { box-shadow: 0 0 0 1.5px var(--coral) inset; }
.clave-caja { position: relative; }
.clave-caja input { padding-right: 82px; }
.ver-clave { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); min-height: 36px; padding: 0 12px; border: 0; border-radius: 10px; cursor: pointer;
  background: rgba(244, 239, 230, .08); font: 700 11px var(--mono); letter-spacing: .1em; color: var(--gris); }
.ayuda { font-size: 13px; color: var(--gris-2); }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 20px; font-size: 15px; color: var(--gris); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border-radius: 7px; cursor: pointer;
  box-shadow: 0 0 0 1.5px var(--linea) inset; background: rgba(244, 239, 230, .05); display: grid; place-content: center; transition: background .2s, box-shadow .2s; }
.check input::after { content: ""; width: 7px; height: 12px; border: solid #061200; border-width: 0 3px 3px 0; transform: rotate(45deg) scale(0); transition: transform .2s var(--ease); margin-top: -3px; }
.check input:checked { background: var(--neon); box-shadow: 0 0 16px rgba(57, 255, 20, .55); }
.check input:checked::after { transform: rotate(45deg) scale(1); }
.check a { color: var(--blanco); }
.trampa { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.tarjeta-form .btn { width: 100%; min-height: 56px; font-size: 17px; }
.tarjeta-form .btn[disabled] { opacity: .6; cursor: progress; }
.aviso { display: none; margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; font-size: 15px; background: rgba(255, 90, 60, .12); box-shadow: 0 0 0 1px rgba(255, 90, 60, .45) inset; color: #ffd5cb; }
.aviso.ver { display: block; }
.aviso.ok { background: rgba(57, 255, 20, .1); box-shadow: 0 0 0 1px rgba(57, 255, 20, .4) inset; color: #d6ffc9; }
.alterno { margin: 22px 0 0; text-align: center; color: var(--gris); font-size: 15px; }
.alterno a { color: var(--neon); font-weight: 700; }
.olvido { display: block; margin-top: 12px; text-align: center; font-size: 14px; color: var(--gris); }
.olvido a { color: var(--blanco); }
@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-arte { padding: 96px var(--gutter) 6px; }
  .auth-arte ul, .auth-arte::before { display: none; }
  .auth-arte h1 { font-size: clamp(40px, 12vw, 64px); margin-bottom: 6px; }
  .cubo3d { width: 72px; height: 72px; margin-bottom: 14px; }
  .cubo3d .c1 { transform: translateZ(36px); } .cubo3d .c2 { transform: rotateY(180deg) translateZ(36px); }
  .cubo3d .c3 { transform: rotateY(90deg) translateZ(36px); } .cubo3d .c4 { transform: rotateY(-90deg) translateZ(36px); }
  .cubo3d .c5 { transform: rotateX(90deg) translateZ(36px); } .cubo3d .c6 { transform: rotateX(-90deg) translateZ(36px); }
  .auth-form-lado { padding: 20px var(--gutter) 50px; align-items: flex-start; }
}

/* ---------- Face ID / huella ---------- */
.btn-llave { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; margin: 0 0 14px; padding: 10px 18px;
  border: 0; border-radius: 18px; cursor: pointer; text-align: left; color: var(--blanco);
  background: radial-gradient(120% 140% at 0% 0%, rgba(57, 255, 20, .2), transparent 55%), linear-gradient(135deg, rgba(255, 90, 60, .14), rgba(13, 11, 8, .4));
  box-shadow: 0 0 0 1.5px var(--neon) inset, 0 14px 40px -18px rgba(57, 255, 20, .75);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); -webkit-tap-highlight-color: transparent; }
.btn-llave:hover { transform: translateY(-2px); box-shadow: 0 0 0 1.5px var(--neon) inset, 0 18px 50px -14px rgba(57, 255, 20, .9); }
.btn-llave:active { transform: scale(.985); }
.btn-llave[disabled] { opacity: .65; cursor: progress; }
.btn-llave .ico { flex: none; width: 34px; height: 34px; fill: none; stroke: var(--neon); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(57, 255, 20, .6)); }
.btn-llave-txt { display: grid; gap: 2px; }
.btn-llave-txt b { font: 800 17px/1.15 var(--sans); letter-spacing: -.01em; }
.btn-llave-txt small { font: 600 13.5px var(--sans); color: var(--gris); }

/* ---------- botones de Google, Apple, Facebook, TikTok ---------- */
.sociales { display: grid; gap: 10px; margin: 0 0 4px; }
.social { position: relative; display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 52px; border-radius: 14px;
  text-decoration: none; font: 700 16px/1.1 var(--sans); letter-spacing: -.01em; text-align: center;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .2s; -webkit-tap-highlight-color: transparent; }
.social svg { position: absolute; left: 18px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); }
.social small { font-weight: 600; opacity: .62; }
.social:hover { transform: translateY(-2px); }
.social:active { transform: scale(.985); }
.social:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }
.s-google { background: #fff; color: #1f1f1f; box-shadow: 0 10px 30px -16px rgba(255, 255, 255, .5); }
.s-google:hover { box-shadow: 0 14px 36px -14px rgba(255, 255, 255, .6); }
.s-apple { background: #000; color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .32) inset; }
.s-apple:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, .6) inset, 0 14px 36px -16px rgba(255, 255, 255, .35); }
.s-facebook { background: #1877f2; color: #fff; box-shadow: 0 12px 30px -16px rgba(24, 119, 242, .9); }
.s-facebook:hover { filter: brightness(1.06); box-shadow: 0 16px 36px -14px rgba(24, 119, 242, 1); }
.s-tiktok { background: #121212; color: #fff; box-shadow: 0 0 0 1px rgba(37, 244, 238, .3) inset; }
.s-tiktok:hover { box-shadow: 0 0 0 1px rgba(37, 244, 238, .55) inset, 0 14px 36px -16px rgba(254, 44, 85, .8); }
.social.cargando { pointer-events: none; opacity: .7; }
.legal-social { margin: 10px 0 0; font-size: 13px; line-height: 1.4; color: var(--gris-2); text-align: center; }
.legal-social a { color: var(--gris); }

/* «o con tu correo» */
.separador { display: flex; align-items: center; gap: 14px; margin: 22px 0 18px; font: 700 11px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--gris-2); }
.separador::before, .separador::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--linea) 30%, var(--linea) 70%, transparent); }
[hidden] { display: none !important; }

@media (max-width: 420px) {
  .social { padding: 0 44px; font-size: 15.5px; }
  .social svg { left: 15px; }
  .btn-llave { min-height: 60px; padding: 10px 14px; }
}
.auth .nav-cta { margin-left: auto; } /* sin enlaces del menú, el botón va a la derecha */
