/* Ventana de cuenta (js/cuenta.js). Autónoma: sirve en la plataforma y en la página principal. */
#cuenta-dlg { width: min(430px, 94vw); margin: auto; inset: 0; padding: 0; border: 1px solid #e3ddcb; border-radius: 16px; background: #fff; color: #1b2433; font: 15px/1.45 system-ui, -apple-system, 'Segoe UI', sans-serif; overflow: visible; }
#cuenta-dlg::backdrop { background: rgba(15, 21, 34, .55); }
#cuenta-dlg .cu-x { position: absolute; right: 10px; top: 10px; border: 0; background: transparent; font-size: 18px; cursor: pointer; color: #667085; padding: 4px 8px; border-radius: 8px; }
#cuenta-dlg .cu-x:hover { background: #f1eee4; }
#cuenta-dlg .cu-body { padding: 26px 26px 22px; }
#cuenta-dlg h2 { margin: 0 0 6px; font-size: 21px; color: #1250b0; }
#cuenta-dlg .cu-why { margin: 0 0 14px; color: #667085; font-size: 14px; }
#cuenta-dlg .cu-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 14px; border: 1px solid #e3ddcb; border-radius: 10px; overflow: hidden; }
#cuenta-dlg .cu-tabs button { border: 0; background: #f8f6f0; padding: 8px; cursor: pointer; font: inherit; }
#cuenta-dlg .cu-tabs button.on { background: #1250b0; color: #fff; font-weight: 600; }
#cuenta-dlg .cu-google { width: 100%; display: flex; gap: 8px; justify-content: center; align-items: center; padding: 10px; border: 1px solid #d0d5dd; border-radius: 10px; background: #fff; cursor: pointer; font: inherit; font-weight: 600; }
#cuenta-dlg .cu-google:hover { background: #f8f6f0; }
#cuenta-dlg .cu-or { text-align: center; color: #98a2b3; font-size: 13px; margin: 12px 0 10px; display: flex; align-items: center; gap: 10px; }
#cuenta-dlg .cu-or::before, #cuenta-dlg .cu-or::after { content: ''; flex: 1; border-top: 1px solid #e3ddcb; }
#cuenta-dlg .cu-form { display: flex; flex-direction: column; gap: 9px; }
#cuenta-dlg input[type='text'], #cuenta-dlg input[type='email'], #cuenta-dlg input[type='password'] { width: 100%; padding: 10px 12px; border: 1px solid #d0d5dd; border-radius: 10px; font: inherit; box-sizing: border-box; background: #fff; color: inherit; }
#cuenta-dlg input:focus { outline: 2px solid #e6b80d; outline-offset: 1px; }
#cuenta-dlg .cu-terms { font-size: 13px; color: #475467; display: flex; align-items: flex-start; gap: 6px; }
#cuenta-dlg .cu-terms a { color: #1250b0; }
#cuenta-dlg .cu-primary { width: 100%; padding: 11px; border: 0; border-radius: 10px; background: #1250b0; color: #fff; font: inherit; font-weight: 700; cursor: pointer; margin-top: 2px; }
#cuenta-dlg .cu-primary:hover:not(:disabled) { background: #0e3f8c; }
#cuenta-dlg .cu-primary:disabled { opacity: .6; cursor: default; }
#cuenta-dlg .cu-link { border: 0; background: transparent; color: #1250b0; cursor: pointer; font: inherit; font-size: 13.5px; padding: 6px 2px; text-decoration: underline; }
#cuenta-dlg .cu-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
#cuenta-dlg .cu-msg { margin-top: 10px; font-size: 13.5px; min-height: 0; }
#cuenta-dlg .cu-msg.err { color: #b42318; background: #fef3f2; border: 1px solid #fecdca; border-radius: 8px; padding: 8px 10px; }
#cuenta-dlg .cu-msg.ok { color: #067647; background: #ecfdf3; border: 1px solid #abefc6; border-radius: 8px; padding: 8px 10px; }
:root[data-theme='dark'] #cuenta-dlg { background: #18202f; color: #e8ecf4; border-color: #2c384e; }
:root[data-theme='dark'] #cuenta-dlg .cu-google, :root[data-theme='dark'] #cuenta-dlg input { background: #212b3d; border-color: #2c384e; color: #e8ecf4; }
:root[data-theme='dark'] #cuenta-dlg .cu-tabs button { background: #212b3d; color: #e8ecf4; }
:root[data-theme='dark'] #cuenta-dlg h2, :root[data-theme='dark'] #cuenta-dlg .cu-terms a, :root[data-theme='dark'] #cuenta-dlg .cu-link { color: #7ba6f0; }
