/* adminweb.css: entrada, cabecera, ventanas y usuarios de adminweb (adminweb.dualpos.net, pedido del usuario 2026-10-26).
   la base, la ventana emergente, los avisos y los interruptores son los mismos del superadmin del sistema (superadmin.css);
   el editor de la pagina usa editor_web.css (antes superadmin_web.css). un solo azul de la marca (#3b82f6 -> #6366f1). */

/* ---------- base (igual al superadmin) ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid #e2e8f0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', system-ui, sans-serif; background: #f3f5fb; color: #0f172a; line-height: 1.5; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: transparent; cursor: pointer; text-align: inherit; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:where(i[class^="i_"])::before { display: inline-block; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-style: normal; line-height: 1; }

/* ---------- ventana emergente, avisos e interruptor (igual al superadmin) ---------- */
.div_modal_simple { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 0.75rem; background: rgba(15, 23, 42, 0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.div_cuerpo_modal { width: 100%; max-width: 28rem; min-width: 0; margin: 1.5rem 0; padding: 1.5rem; border-radius: 22px; background: #ffffff; border: 1px solid #e8ecf4; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 30px rgba(15, 23, 42, 0.05); }
.div_cuerpo_modal[data-ancho="lg"] { max-width: 32rem; }
.div_cuerpo_modal[data-ancho="xl"] { max-width: 36rem; }
.div_cuerpo_modal[data-ancho="2xl"] { max-width: 42rem; }
.div_cuerpo_modal[data-ancho="3xl"] { max-width: 48rem; }
.div_cuerpo_modal[data-ancho="4xl"] { max-width: 56rem; }
.div_cuerpo_modal[data-fondo="gris"] { background: #f8fafc; }
.div_toast { position: fixed; bottom: 1.25rem; left: 50%; z-index: 60; display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.25rem; border-radius: 1rem; font-size: 0.875rem; line-height: 1.25rem; font-weight: 700; color: #ffffff; background: #0f172a; transform: translateX(-50%); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }
.i_toast { color: #6ee7b7; }
.i_toast::before { content: '\f058'; }
.div_toast[data-tipo="error"] .i_toast { color: #fda4af; }
.div_toast[data-tipo="error"] .i_toast::before { content: '\f06a'; }
.button_interruptor { position: relative; width: 2.75rem; height: 1.5rem; flex-shrink: 0; border-radius: 9999px; background: #cbd5e1; transition: all 150ms; }
.button_interruptor[data-encendido="si"] { background: #10b981; }
.span_bolita_interruptor { position: absolute; top: 0.125rem; left: 0.125rem; width: 1.25rem; height: 1.25rem; border-radius: 9999px; background: #ffffff; box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1); transition: all 150ms; }
.span_bolita_interruptor[data-encendido="si"] { left: 22px; }

/* ---------- entrada (mismo estilo de la entrada del sistema: azul noche, tarjeta de vidrio, logo) ---------- */
.main_acceso_adminweb { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem; padding: 2rem 1rem; overflow: hidden; color: #e2e8f0;
    background: radial-gradient(120% 70% at 0% 0%, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0) 60%), radial-gradient(120% 70% at 100% 100%, rgba(99, 102, 241, 0.22) 0%, rgba(99, 102, 241, 0) 60%), linear-gradient(180deg, #0b1230 0%, #111a44 50%, #0a1026 100%); }
.span_brillo_acceso { position: absolute; z-index: 0; width: 420px; height: 420px; border-radius: 999px; filter: blur(70px); opacity: 0.35; pointer-events: none; }
.span_brillo_acceso[data-lado="uno"] { top: -120px; left: -100px; background: #3b82f6; }
.span_brillo_acceso[data-lado="dos"] { right: -120px; bottom: -140px; background: #6366f1; }
.form_acceso { position: relative; z-index: 1; width: 100%; max-width: 420px; display: flex; flex-direction: column; padding: 1.75rem 1.75rem 2rem; border-radius: 1.75rem; background: rgba(255, 255, 255, 0.06); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
    border: 1px solid rgba(129, 140, 248, 0.22); box-shadow: 0 30px 70px -30px rgba(2, 6, 23, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.div_marco_logo_acceso { width: fit-content; margin: 0 auto 1.25rem; padding: 0.5rem 1.25rem; border-radius: 1rem; background: rgba(255, 255, 255, 0.95); box-shadow: 0 10px 25px -12px rgba(59, 130, 246, 0.7); }
.img_logo_acceso { height: 56px; width: auto; }
.h1_acceso { font-family: 'Outfit', 'Inter', sans-serif; font-size: 1.6rem; font-weight: 900; text-align: center; color: #ffffff; }
.p_texto_acceso { margin: 0.25rem 0 1.2rem; font-size: 0.95rem; text-align: center; color: #cbd5e1; }
.label_acceso { margin: 0.6rem 0 0.35rem; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: #a5b4fc; }
.input_acceso { width: 100%; padding: 0.85rem 1rem; border-radius: 0.95rem; font-size: 1rem; font-weight: 700; color: #ffffff; background: rgba(15, 23, 42, 0.6); border: 1px solid rgba(129, 140, 248, 0.3); outline: none; }
.input_acceso:focus { border-color: #6366f1; box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25); }
.p_error_acceso { min-height: 1.2rem; margin: 0.6rem 0 0.3rem; font-size: 0.85rem; font-weight: 700; color: #fca5a5; }
.button_acceso { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; padding: 0.9rem 1.3rem; border-radius: 0.95rem; font-weight: 900; color: #ffffff; text-align: center; background: linear-gradient(135deg, #3b82f6, #6366f1); box-shadow: 0 14px 26px -12px #4f46e5; }
.button_acceso:disabled { opacity: 0.7; cursor: wait; }
.i_acceso::before { content: '\f2f6'; }
.p_pie_acceso { position: relative; z-index: 1; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; color: #64748b; }

/* ---------- cabecera del panel ---------- */
.header_adminweb { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 1.25rem; background: linear-gradient(90deg, #0b1440, #1b2a6e); box-shadow: 0 10px 20px -12px rgba(2, 6, 23, 0.6); color: #ffffff; }
.div_marca_adminweb { display: flex; align-items: center; gap: 0.75rem; }
.img_logo_adminweb { height: 38px; width: auto; padding: 0.2rem 0.5rem; border-radius: 0.6rem; background: #ffffff; }
.span_titulo_adminweb { font-family: 'Outfit', 'Inter', sans-serif; font-size: 1.15rem; font-weight: 900; letter-spacing: 0.01em; }
.div_acciones_adminweb { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.a_ver_pagina_adminweb, .button_cabecera_adminweb { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.85rem; border-radius: 0.8rem; font-size: 0.85rem; font-weight: 800; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); }
.a_ver_pagina_adminweb { background: linear-gradient(135deg, #3b82f6, #6366f1); border-color: transparent; }
.a_ver_pagina_adminweb:hover, .button_cabecera_adminweb:hover { filter: brightness(1.1); }
.i_ver_pagina_adminweb::before { content: '\f35d'; }
.i_usuarios_adminweb::before { content: '\f0c0'; }
.i_mi_clave_adminweb::before { content: '\f084'; }
.div_yo_adminweb { display: flex; flex-direction: column; line-height: 1.15; padding: 0 0.25rem; }
.span_nombre_adminweb { font-size: 0.85rem; font-weight: 800; }
.span_rol_adminweb { font-size: 0.7rem; font-weight: 700; color: #a5b4fc; text-transform: uppercase; letter-spacing: 0.06em; }
.button_salir_adminweb { width: 2.25rem; height: 2.25rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 0.8rem; background: rgba(244, 63, 94, 0.18); color: #fecdd3; }
.i_salir_adminweb::before { content: '\f2f5'; }
.main_adminweb { max-width: 1200px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }

/* ---------- ventanas de adminweb (mi clave, usuarios) ---------- */
.h2_modal_adminweb { margin-bottom: 0.5rem; font-family: 'Outfit', 'Inter', sans-serif; font-size: 1.25rem; font-weight: 900; color: #0f172a; }
.h3_modal_adminweb { margin: 1.25rem 0 0.5rem; font-size: 0.95rem; font-weight: 900; color: #0f172a; }
.p_ayuda_modal_adminweb { margin-bottom: 0.75rem; font-size: 0.85rem; color: #64748b; }
.label_modal_adminweb { display: block; margin: 0.6rem 0 0.3rem; font-size: 0.75rem; font-weight: 800; color: #475569; }
.input_modal_adminweb { width: 100%; padding: 0.65rem 0.8rem; border-radius: 0.75rem; font-size: 0.9rem; background: #f8fafc; border: 1px solid #e2e8f0; outline: none; }
.input_modal_adminweb:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18); background: #ffffff; }
.p_error_modal_adminweb { min-height: 1.1rem; margin-top: 0.6rem; font-size: 0.82rem; font-weight: 700; color: #e11d48; }
.div_pie_modal_adminweb { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 0.75rem; }
.button_principal_adminweb, .button_secundario_adminweb { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.6rem 1rem; border-radius: 0.75rem; font-size: 0.875rem; font-weight: 800; }
.button_principal_adminweb { color: #ffffff; background: linear-gradient(135deg, #3b82f6, #6366f1); }
.button_secundario_adminweb { color: #334155; background: #f1f5f9; border: 1px solid #e2e8f0; }
.i_crear_usuario_adminweb::before { content: '\f234'; }
.i_clave_usuario_adminweb::before { content: '\f084'; }
.div_lista_usuarios_adminweb { display: flex; flex-direction: column; gap: 0.5rem; }
.div_usuario_adminweb { display: flex; align-items: center; gap: 0.6rem; padding: 0.65rem 0.75rem; border-radius: 0.9rem; background: #f8fafc; border: 1px solid #e8ecf4; }
.div_usuario_adminweb[data-activo="no"] { opacity: 0.6; }
.div_datos_usuario_adminweb { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.b_nombre_usuario_adminweb { font-size: 0.9rem; font-weight: 800; color: #0f172a; }
.span_usuario_adminweb { font-size: 0.75rem; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select_rol_usuario_adminweb { padding: 0.4rem 0.5rem; border-radius: 0.6rem; font-size: 0.8rem; font-weight: 700; background: #ffffff; border: 1px solid #e2e8f0; }
.div_nuevo_usuario_adminweb { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }

/* celular */
@media (max-width: 640px) {
    .header_adminweb { padding: 0.6rem 0.75rem; }
    .span_cabecera_adminweb, .span_ver_pagina_adminweb { display: none; }
    .div_usuario_adminweb { flex-wrap: wrap; }
    .div_nuevo_usuario_adminweb { grid-template-columns: 1fr; }
}
