/* LLOG Logros 0.1.4 — mismo lenguaje visual que LLOG Escritorio: gris neutro, el rojo solo en la acción principal. */
.llogl,.llogl-toast,.llogl-capa,.llogl-vis,.llogl-aviso{--r:#D8232A;--r2:#9B0C23;--ink:#111827;--tx:#374151;--mu:#6B7280;--ln:#E5E7EB;--ln2:#F1F2F4;--bg:#F7F8FA;
  --bronce:#8F4E1E;--plata:#5F6B7A;--oro:#92640E;--platino:#1E40AF;--pend:#9CA3AF;
  font-family:'IBM Plex Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:14px;line-height:1.45;color:var(--ink);box-sizing:border-box}
.llogl *,.llogl-toast *,.llogl-capa *,.llogl-vis *{box-sizing:border-box}
.llogl{display:flex;flex-direction:column;gap:20px}
.llogl a{text-decoration:none}
.llogl h1,.llogl h2{font-family:inherit;letter-spacing:-.01em;margin:0;color:var(--ink);text-transform:none}
.llogl-mu{color:var(--mu);font-size:13px}
.llogl-mini{color:var(--mu);font-size:12px;display:block}
.llogl-k{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--mu);font-weight:600}

/* Cabecera */
.llogl-head{display:flex;flex-wrap:wrap;align-items:center;gap:16px;padding-bottom:20px;border-bottom:1px solid var(--ln)}
.llogl-head .llogl-av,.llogl-head img.avatar{width:52px;height:52px;border-radius:50%;object-fit:cover;flex:none}
.llogl-head-t{flex:1 1 240px;min-width:0;display:flex;flex-direction:column;gap:5px}
.llogl-head h1{font-size:24px;line-height:1.2;font-weight:600}
.llogl-chip{font-size:10.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--platino);border:1px solid var(--platino);border-radius:999px;padding:2px 9px;background:#fff}

/* Botones */
.llogl-btns{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.llogl-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 15px;border:1px solid var(--ln);border-radius:6px;background:#fff;color:var(--ink)!important;font:inherit;font-size:14px;font-weight:600;white-space:nowrap;cursor:pointer;text-decoration:none!important}
.llogl-btn:hover{border-color:#D1D5DB;background:#FAFAFB}
.llogl-btn-p{background:var(--r);border-color:var(--r);color:#fff!important}
.llogl-btn-p:hover{background:var(--r2);border-color:var(--r2)}
.llogl-btn-s{min-height:36px;padding:6px 12px;font-size:13px}
.llogl-enl{background:none;border:0;padding:0;min-height:44px;display:inline-flex;align-items:center;font:inherit;font-size:13px;font-weight:600;color:var(--r)!important;cursor:pointer}
.llogl-btn:focus-visible,.llogl-enl:focus-visible,.llogl summary:focus-visible{outline:2px solid var(--platino);outline-offset:2px}

/* Cifras */
.llogl-met{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.llogl-met-c{background:#fff;border:1px solid var(--ln);border-radius:8px;padding:16px 18px;display:flex;flex-direction:column;gap:8px}
.llogl-met-l{font-size:13px;font-weight:500;color:var(--mu)}
.llogl-met-n{font-size:30px;font-weight:600;line-height:1;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.llogl-met-x{display:flex;align-items:center;gap:6px;font-size:12px}
.llogl-met-x i{width:6px;height:6px;border-radius:50%;background:currentColor}
.llogl-t-bronce{color:var(--bronce)}.llogl-t-plata{color:var(--plata)}.llogl-t-oro{color:var(--oro)}.llogl-t-platino{color:var(--platino)}.llogl-t-pend{color:var(--mu)}

/* Tarjetas y columnas */
.llogl-card{background:#fff;border:1px solid var(--ln);border-radius:8px;overflow:hidden}
.llogl-card-h{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 18px;border-bottom:1px solid var(--ln)}
.llogl-card h2{font-size:16px;font-weight:600}
.llogl-pad{padding:16px 18px;display:flex;flex-direction:column;gap:8px}
.llogl-dos{display:flex;flex-wrap:wrap;gap:20px;align-items:flex-start}
.llogl-col{flex:999 1 460px;min-width:0}
.llogl-lat{flex:1 1 280px;min-width:0;display:flex;flex-direction:column;gap:20px}
.llogl-vacio{margin:0;padding:16px 18px;color:var(--mu);font-size:13px}

/* Sets */
.llogl-set{border-bottom:1px solid var(--ln2)}
.llogl-set:last-child{border-bottom:0}
.llogl-set>summary{display:flex;flex-wrap:wrap;align-items:center;gap:14px;padding:14px 18px;cursor:pointer;list-style:none;min-height:44px}
.llogl-set>summary::-webkit-details-marker{display:none}
.llogl-set[open]>summary{background:var(--bg);border-bottom:1px solid var(--ln2)}
.llogl-set-i{width:44px;height:44px;border-radius:8px;background:var(--ln2);color:var(--mu);display:flex;align-items:center;justify-content:center;overflow:hidden;flex:none}
.llogl-set-i img{width:100%;height:100%;object-fit:cover;display:block}
.llogl-set-t{flex:1 1 180px;min-width:0;display:flex;flex-direction:column;gap:6px}
.llogl-set-t b{font-size:15px;font-weight:600}
.llogl-set-d{margin:0;padding:10px 18px 0;color:var(--mu);font-size:13px}
.llogl-past{font-size:12px;font-weight:600;border-radius:999px;padding:3px 10px;color:var(--tx);background:var(--ln2)}
.llogl-past-ok{color:var(--platino);background:#DBEAFE}
.llogl-barra{display:block;height:6px;background:var(--ln2);border-radius:3px;overflow:hidden;max-width:320px}
.llogl-barra i{display:block;height:6px;border-radius:3px;background:var(--ink)}
.llogl-barra-r i{background:var(--r)}

/* Filas de logro */
.llogl-fila,.llogl-lid,.llogl-ult{display:flex;flex-wrap:wrap;align-items:center;gap:14px;padding:12px 18px;border-bottom:1px solid var(--ln2)}
.llogl-fila:last-child,.llogl-lid:last-child,.llogl-ult:last-child{border-bottom:0}
.llogl-pend .llogl-fila-t b{color:var(--tx)}
.llogl-fila-t{flex:1 1 240px;min-width:0;display:flex;flex-direction:column;gap:3px}
.llogl-fila-t b{font-size:14.5px;font-weight:600}
.llogl-fila-t>span{font-size:13px;color:var(--mu)}
.llogl-fila-d{flex:0 0 150px;display:flex;flex-direction:column;gap:3px;align-items:flex-end;text-align:right}
.llogl-grado{font-size:12px;font-weight:700}
.llogl-med{display:inline-flex;align-items:center;justify-content:center;border-radius:8px;color:#fff;overflow:hidden;flex:none;width:44px;height:44px}
.llogl-med img{width:100%;height:100%;object-fit:cover;display:block}
.llogl-med svg{width:50%;height:50%}
.llogl-g-bronce{background:var(--bronce)}.llogl-g-plata{background:var(--plata)}.llogl-g-oro{background:var(--oro)}.llogl-g-platino{background:var(--platino)}.llogl-g-pend{background:var(--ln2);color:var(--pend)}
.llogl-g-pend img{filter:grayscale(1);opacity:.45}
.llogl-p{width:10px;height:10px;border-radius:50%;flex:none}
.llogl-lid-p{width:24px}
.llogl-yo{background:var(--bg)}
.llogl-chk{display:flex;gap:10px;align-items:center;min-height:44px;font-size:14px;cursor:pointer}
.llogl-chk input{width:18px;height:18px;flex:none}

/* ---- 0.1.4: aspecto más sobrio y a prueba del tema (Avada agranda h1/h2 y cambia botones) ---- */
.llogl h1,.llogl h2{font-family:inherit!important;font-weight:600!important;letter-spacing:-.01em!important;text-transform:none!important;margin:0!important;padding:0!important;color:var(--ink)!important;border:0!important}
.llogl h1{font-size:20px!important;line-height:1.25!important}
.llogl h2{font-size:13px!important;line-height:1.3!important;letter-spacing:.06em!important;text-transform:uppercase!important;color:var(--mu)!important}
.llogl .llogl-pub-c h1{font-size:24px!important}
.llogl p{margin:0;font-size:13px;line-height:1.45}
.llogl b{font-weight:600}
.llogl button,.llogl .llogl-btn{font-family:inherit!important;text-transform:none!important;letter-spacing:0!important;box-shadow:none!important;line-height:1.2!important;border-radius:6px!important}
.llogl summary{outline-offset:-2px}
.llogl-card{border-radius:10px;box-shadow:0 1px 2px rgba(17,24,39,.04)}
.llogl-card-h{padding:12px 18px;background:var(--bg)}

/* Resumen de arriba: una sola tarjeta */
.llogl-hero .llogl-head{padding:18px 20px;border-bottom:1px solid var(--ln);align-items:center}
.llogl-hero .llogl-head-t{gap:6px}
.llogl-hero-b{display:flex;align-items:center;gap:10px;max-width:420px}
.llogl-hero-b .llogl-barra{flex:1;max-width:none;height:8px;border-radius:4px}
.llogl-hero-b .llogl-barra i{height:8px;border-radius:4px;background:var(--r)}
.llogl-hero-b b{font-size:13px;font-variant-numeric:tabular-nums;color:var(--tx);min-width:38px;text-align:right}
.llogl-met{gap:0}
.llogl-met-c{flex-direction:row;align-items:center;gap:12px;border:0;border-right:1px solid var(--ln);border-radius:0;padding:14px 20px;background:transparent}
.llogl-met-c:last-child{border-right:0}
.llogl-met .llogl-med{width:36px;height:36px;border-radius:50%}
.llogl-met-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.llogl-met-n{font-size:22px}
.llogl-met-l{font-size:12px}
.llogl-met-0 .llogl-med{background:var(--ln2);color:var(--pend)}
.llogl-met-0 .llogl-met-n{color:var(--pend)}
.llogl>.llogl-met{background:#fff;border:1px solid var(--ln);border-radius:10px}

/* Sets */
.llogl-set>summary{flex-wrap:nowrap;padding:14px 18px}
.llogl-set>summary:hover{background:var(--bg)}
.llogl-set-i{width:40px;height:40px;border-radius:10px}
.llogl-set-t{flex:1 1 auto;gap:2px}
.llogl-set-p{display:flex;align-items:center;gap:10px;flex:0 1 220px;min-width:90px}
.llogl-set-p .llogl-barra{flex:1;max-width:none}
.llogl-set-p b{font-size:12.5px;color:var(--tx);min-width:38px;text-align:right;font-variant-numeric:tabular-nums}
.llogl-chev{flex:none;color:var(--mu);transition:transform .2s}
.llogl-set[open] .llogl-chev{transform:rotate(180deg)}
.llogl-past{white-space:nowrap}
.llogl-fila{padding:12px 18px 12px 22px;flex-wrap:nowrap}
.llogl-fila .llogl-med{width:40px!important;height:40px!important;border-radius:50%}
.llogl-pend{background:#FCFCFD}
.llogl-pend .llogl-fila-t b{color:var(--mu)}
.llogl-fila-d{flex:0 0 auto;min-width:96px}
.llogl-grado{font-size:11px;letter-spacing:.06em;text-transform:uppercase}
.llogl-med-s{width:32px;height:32px;border-radius:50%}
.llogl-ult{padding:10px 18px;gap:12px;flex-wrap:nowrap}
.llogl-pad{padding:16px 18px;gap:10px}
.llogl-chk{min-height:36px;font-size:13.5px;margin:0;font-weight:400}
.llogl-chk input{margin:0;accent-color:var(--r)}
.llogl-lid{padding:10px 18px}
.llogl-lid-p{width:28px;height:28px;border-radius:50%;background:var(--ln2);display:inline-flex;align-items:center;justify-content:center;font-size:12.5px}

/* Página pública de un logro */
.llogl-pub{align-items:center;padding:40px 16px}
.llogl-pub-c{max-width:640px;width:100%;background:#fff;border:1px solid var(--ln);border-radius:8px;padding:32px 24px;display:flex;flex-direction:column;gap:12px;align-items:center;text-align:center}
.llogl-pub-c h1{font-size:24px;font-weight:600;line-height:1.25}
.llogl-pub-c p{margin:0}
.llogl-pub .llogl-med{border-radius:50%}
.llogl-pub-r{display:flex;align-items:baseline;gap:8px;justify-content:center;flex-wrap:wrap}
.llogl-pub-r b{font-size:30px;font-weight:600;letter-spacing:-.02em}
.llogl-pub-r span{color:var(--mu);font-size:13px}
.llogl-pub-reto{font-weight:600}
.llogl-pub .llogl-btns{justify-content:center}
.llogl-pub-perfil{max-width:860px;margin:0 auto;padding:32px 16px}

/* Notificación */
.llogl-toast{position:fixed;z-index:2147483000;display:flex;align-items:center;gap:14px;width:min(420px,calc(100vw - 24px));padding:14px 16px;background:#1B1D22;color:#fff;border-radius:12px;box-shadow:0 12px 32px rgba(0,0,0,.3);cursor:pointer;opacity:0;transition:opacity .25s,transform .25s}
.llogl-pos-arriba-derecha{top:calc(16px + env(safe-area-inset-top,0px));right:12px;transform:translateY(-14px)}
.llogl-pos-abajo-centro{bottom:calc(84px + env(safe-area-inset-bottom,0px));left:50%;transform:translate(-50%,14px)}
.llogl-toast.llogl-in{opacity:1}
.llogl-pos-arriba-derecha.llogl-in{transform:none}
.llogl-pos-abajo-centro.llogl-in{transform:translate(-50%,0)}
.llogl-toast .llogl-med{width:52px;height:52px}
.llogl-toast-tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.llogl-toast-k,.llogl-toast-r{font-size:12px;color:#C9CDD6}
.llogl-toast-tx b{font-size:16px;font-weight:700;line-height:1.25}
.llogl-toast-b{min-height:44px;padding:0 12px;border-radius:6px;border:1px solid #6B7280;background:transparent;color:#fff;font:inherit;font-size:13px;font-weight:600;cursor:pointer;flex:none}
.llogl-toast-b:hover{border-color:#fff}
@media (max-width:900px){.llogl-pos-arriba-derecha{right:50%;transform:translate(50%,-14px)}.llogl-pos-arriba-derecha.llogl-in{transform:translate(50%,0)}}

/* Ventanas */
.llogl-capa{position:fixed;inset:0;z-index:2147483001;background:rgba(17,24,39,.6);display:flex;align-items:center;justify-content:center;padding:16px;opacity:0;transition:opacity .2s}
.llogl-capa.llogl-in{opacity:1}
.llogl-vent{width:min(520px,100%);max-height:calc(100vh - 32px);overflow:auto;background:#fff;border-radius:12px;padding:24px;display:flex;flex-direction:column;gap:14px}
.llogl-vent h2{margin:0;font-size:18px;font-weight:600;font-family:inherit;color:var(--ink);text-transform:none;line-height:1.3}
.llogl-vent p{margin:0}
.llogl-platino{background:#1B1D22;color:#fff;align-items:center;text-align:center;padding:36px 24px}
.llogl-platino h2{color:#fff;font-size:26px}
.llogl-platino p{color:#C9CDD6}
.llogl-platino .llogl-btns{justify-content:center}
.llogl-platino .llogl-btn:not(.llogl-btn-p){background:transparent;color:#fff!important;border-color:#6B7280}
.llogl-med-xl{width:88px;height:88px;border-radius:50%;box-shadow:0 0 0 3px #C9D8F2}
.llogl-comp-img{width:100%;height:auto;border-radius:8px;border:1px solid var(--ln);display:block}
.llogl-comp-l{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:var(--tx)}
.llogl-comp-l textarea{font:inherit;font-weight:400;padding:10px;border:1px solid #9CA3AF;border-radius:6px;resize:vertical;color:var(--ink);background:#fff;width:100%}
.llogl-redes{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px}
.llogl-comp-op{display:flex;flex-direction:column}
.llogl-comp-op label{display:flex;gap:10px;align-items:center;min-height:44px;font-size:14px;cursor:pointer}
.llogl-comp-op input{width:18px;height:18px}
.llogl-comp .llogl-btns{justify-content:space-between}
.llogl-aviso{position:fixed;z-index:2147483002;left:50%;bottom:calc(96px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:#111827;color:#fff;padding:10px 16px;border-radius:8px;font-size:14px;box-shadow:0 8px 24px rgba(0,0,0,.25)}

/* Primer logro del visitante */
.llogl-vis{position:fixed;z-index:2147483000;right:12px;bottom:calc(88px + env(safe-area-inset-bottom,0px));width:min(400px,calc(100vw - 24px));background:#fff;border:1px solid var(--ln);border-radius:12px;padding:20px;display:flex;flex-direction:column;gap:12px;box-shadow:0 12px 32px rgba(0,0,0,.2);opacity:0;transform:translateY(14px);transition:opacity .25s,transform .25s}
.llogl-vis.llogl-in{opacity:1;transform:none}
.llogl-vis-cab{display:flex;gap:14px;align-items:center}
.llogl-vis-cab b{display:block;font-size:17px;font-weight:700;line-height:1.25}
.llogl-vis-k{font-size:12px;color:var(--mu)}
.llogl-vis p{margin:0}
.llogl-vis ul{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:4px}
.llogl-vis .llogl-btns{gap:4px 14px}

@media (max-width:640px){
  .llogl-met{grid-template-columns:repeat(2,minmax(0,1fr))}
  .llogl-met-c:nth-child(2){border-right:0}
  .llogl-met-c:nth-child(-n+2){border-bottom:1px solid var(--ln)}
  .llogl-set>summary,.llogl-fila{flex-wrap:wrap}
  .llogl-set-p{flex:1 1 100%;order:5}
  .llogl-fila-d{flex:1 1 100%;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-start;text-align:left;gap:6px 12px}
  .llogl-head .llogl-btns,.llogl-head .llogl-btn{width:100%}
}
@media (prefers-reduced-motion:reduce){.llogl-toast,.llogl-capa,.llogl-vis{transition:none}}
