/* Cuenta del usuario en la barra de navegación y ventana de inicio de sesión (todas las páginas). */

.nav-account { display: flex; align-items: center; gap: 8px; }
.nav-acc-link { color: rgba(236, 240, 241, .85); text-decoration: none; font-size: .88rem; font-weight: 500; padding: 8px 12px; border-radius: 4px; white-space: nowrap; }
.nav-acc-link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-acc-btn { color: #fff; text-decoration: none; font-size: .86rem; font-weight: 600; padding: 8px 16px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .3); white-space: nowrap; transition: border-color .2s, background .2s; }
.nav-acc-btn:hover { border-color: rgba(255, 255, 255, .65); background: rgba(255, 255, 255, .08); }
.nav-user { position: relative; }
.nav-user-btn { display: flex; align-items: center; gap: 8px; color: #fff; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); border-radius: 4px; padding: 5px 12px 5px 5px; font-size: .88rem; font-weight: 500; cursor: pointer; font-family: inherit; }
.nav-user-btn:hover { background: rgba(255, 255, 255, .12); }
.nav-avatar { width: 26px; height: 26px; border-radius: 3px; background: linear-gradient(100deg, #f04e1a, #f39c12); display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: #fff; }
.nav-caret { font-size: .7rem; opacity: .7; }
.nav-user-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: #111a28; border: 1px solid rgba(255, 255, 255, .12); border-radius: 4px; padding: 8px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .7); z-index: 2000; }
.nav-user-menu a, .nav-user-menu button { display: block; width: 100%; text-align: left; color: rgba(236, 240, 241, .9); text-decoration: none; background: none; border: 0; padding: 9px 12px; border-radius: 2px; font-size: .9rem; cursor: pointer; font-family: inherit; }
.nav-user-menu a:hover, .nav-user-menu button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-user-email { color: rgba(236, 240, 241, .5); font-size: .78rem; padding: 6px 12px 8px; border-bottom: 1px solid rgba(255, 255, 255, .08); margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; }

/* Ventana de inicio de sesión / registro (página de inicio) */
.site-auth-backdrop { position: fixed; inset: 0; z-index: 3000; background: rgba(5, 8, 14, .72); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; }
.site-auth-backdrop[hidden] { display: none; }
.site-auth { position: relative; width: min(440px, 100%); background: linear-gradient(160deg, #182234, #0d1420); color: #ecf0f1; border: 1px solid rgba(255, 255, 255, .12); border-radius: 6px; padding: 30px 30px 26px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); }
.site-auth::before { content: none; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; background: linear-gradient(140deg, rgba(240, 78, 26, .7), transparent 35%, transparent 70%, rgba(243, 156, 18, .5)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.site-auth h2 { font-size: 1.5rem; letter-spacing: -.02em; margin: 0 0 6px; }
.site-auth .sub { color: rgba(236, 240, 241, .65); font-size: .92rem; margin: 0 0 20px; }
.site-auth label { display: block; font-size: .82rem; font-weight: 600; color: rgba(236, 240, 241, .85); margin: 12px 0 6px; }
.site-auth input { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); color: #fff; font-size: .95rem; font-family: inherit; }
.site-auth input:focus { outline: none; border-color: #f39c12; box-shadow: 0 0 0 3px rgba(243, 156, 18, .2); }
.site-auth .hint { font-size: .78rem; color: rgba(236, 240, 241, .5); margin-top: 5px; }
.site-auth .error { margin-top: 14px; background: rgba(192, 57, 43, .18); border: 1px solid rgba(231, 76, 60, .45); color: #ffb4a8; border-radius: 0; border-left-width: 3px; padding: 10px 12px; font-size: .88rem; }
.site-auth .submit { width: 100%; margin-top: 20px; border: 0; border-radius: 4px; padding: 14px; font-size: .98rem; font-weight: 600; color: #fff; background: linear-gradient(100deg, #f04e1a, #f39c12); cursor: pointer; box-shadow: 0 10px 30px -8px rgba(240, 78, 26, .65); font-family: inherit; }
.site-auth .submit:disabled { opacity: .6; cursor: wait; }
.site-auth .switch { text-align: center; margin-top: 16px; font-size: .88rem; color: rgba(236, 240, 241, .65); }
.site-auth .switch button { background: none; border: 0; color: #ffb59b; font-weight: 600; cursor: pointer; font-size: inherit; font-family: inherit; padding: 0; }
.site-auth .close { position: absolute; top: 14px; right: 16px; background: none; border: 0; color: rgba(236, 240, 241, .6); font-size: 1.6rem; cursor: pointer; line-height: 1; }
.site-auth .close:hover { color: #fff; }
.site-auth .privacy { margin-top: 14px; font-size: .74rem; color: rgba(236, 240, 241, .42); text-align: center; }
body.modal-open { overflow: hidden; }
.site-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 3100; background: #111a28; color: #fff; border: 1px solid rgba(255, 255, 255, .14); border-radius: 4px; padding: 12px 22px; font-size: .92rem; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8); }
.site-toast[hidden] { display: none; }
