/* QSOnet — hoja de estilos */
:root{
  --navy:#0b1f3a; --navy2:#102a4c; --navy3:#16345b; --line-dark:#1d3a5f;
  --amber:#f5a524; --amber-soft:#fff4e0; --amber-ink:#7a4a00;
  --teal:#0f766e; --teal-soft:#e0f5f1; --mint:#7dd3c8;
  --bg:#eef2f6; --card:#ffffff; --ink:#1c2733; --ink2:#3d4b5c; --muted:#5b6b7d; --line:#dfe6ee; --line2:#c9d3df;
  --radius:12px; --shadow:0 1px 2px rgba(11,31,58,.08);
  --sans:"Inter","Segoe UI",system-ui,-apple-system,Roboto,Arial,sans-serif;
  --display:"Space Grotesk","Segoe UI",system-ui,sans-serif;
  --mono:"JetBrains Mono",ui-monospace,"DejaVu Sans Mono",Menlo,Consolas,monospace;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.5 var(--sans)}
a{color:var(--teal)} a:hover{color:#0b5a54}
img{max-width:100%}
h1,h2,h3,h4{margin:0;font-family:var(--display);color:var(--navy);line-height:1.2}
.h1{font-size:30px}.h2{font-size:21px;margin-bottom:12px}.h3{font-size:17px;margin-bottom:10px}.h4{font-size:14px;margin:12px 0 4px}
p{margin:0}
:focus-visible{outline:2px solid var(--amber);outline-offset:2px}
.sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.muted{color:var(--muted)} .small{font-size:13px} .center{text-align:center} .b{font-weight:600}
.mono{font-family:var(--mono)} .up{text-transform:uppercase} .pre{white-space:pre-line}
.call{font-family:var(--mono);font-weight:600;color:var(--navy);text-decoration:none}
.hl{color:var(--amber)}
.grow{flex:1;min-width:0}
.row{display:flex;align-items:center}.gap{gap:12px}.wrap{flex-wrap:wrap}
.row-between{display:flex;justify-content:space-between;align-items:center;gap:12px}
.stack{display:flex;flex-direction:column;gap:14px}.stack-sm{display:flex;flex-direction:column;gap:8px}.stack-lg{display:flex;flex-direction:column;gap:28px}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.grid4{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px}
.plain{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.ellipsis{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.clamp3{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}

/* Formularios */
label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:var(--ink2)}
input,select,textarea{font:inherit;font-size:15px;font-weight:400;color:var(--ink);background:#fff;border:1px solid var(--line2);border-radius:8px;padding:10px 12px;min-height:44px;width:100%}
textarea{resize:vertical;min-height:auto}
input:focus,select:focus,textarea:focus{outline:2px solid var(--amber);outline-offset:0;border-color:var(--amber)}
input[type=file]{padding:8px;min-height:auto}
input[type=checkbox]{width:20px;height:20px;min-height:auto;accent-color:var(--teal)}
input.big{font-size:18px;font-weight:600}
label.check{flex-direction:row;align-items:center;gap:10px;font-size:15px;font-weight:500;color:var(--ink);min-height:44px}
fieldset{border:1px solid var(--line);border-radius:10px;padding:14px;margin:0}
legend{font-size:13px;font-weight:600;color:var(--ink2);padding:0 6px}

/* Botones */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 18px;border-radius:8px;border:1px solid transparent;font:inherit;font-weight:600;cursor:pointer;text-decoration:none;white-space:nowrap}
.btn-primary{background:var(--amber);color:var(--navy)} .btn-primary:hover{background:#e8961a;color:var(--navy)}
.btn-teal{background:var(--teal);color:#fff} .btn-teal:hover{background:#0b5a54;color:#fff}
.btn-soft{background:#e6ebf1;color:var(--ink)} .btn-soft:hover{background:#d8dfe8;color:var(--ink)}
.btn-danger{background:#fde8e8;color:#8a1c1c}
.btn-glass{background:rgba(11,31,58,.65);color:#fff}
.btn-small{min-height:36px;padding:0 12px;font-size:14px}
.btn-big{min-height:50px;font-size:17px}
.btn-block{width:100%}
.linkbtn{background:none;border:0;padding:0;color:var(--muted);font:inherit;cursor:pointer;text-decoration:underline}
form.inline{display:inline}

/* Tarjetas */
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.pad{padding:18px}
.card.dark{background:var(--navy);border-color:var(--navy);color:#e4ebf3}.card.dark h2{color:#fff}
.empty{text-align:center;display:flex;flex-direction:column;gap:6px;padding:32px}
.callout{display:flex;justify-content:space-between;text-decoration:none;color:var(--ink);background:var(--amber-soft);border-color:#f8d9a0}
.pill{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border-radius:999px;background:#e8eef5;color:var(--ink2);font-size:13px}
.pills{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.badge{position:absolute;top:2px;right:2px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#d93636;color:#fff;font:600 11px/18px var(--sans);font-style:normal;text-align:center}
.badge.static{position:static;display:inline-block;margin-left:6px}
.dot{width:10px;height:10px;border-radius:50%;background:var(--amber);flex:0 0 10px}

/* Avatares */
.avatar{border-radius:50%;object-fit:cover;flex:0 0 auto;display:inline-block;vertical-align:middle;background:#dfe6ee}
.avatar-txt{display:inline-flex;align-items:center;justify-content:center;background:var(--navy);color:var(--amber);font-family:var(--mono);font-weight:600}

/* Barra superior */
.topbar{position:sticky;top:0;z-index:20;background:var(--navy);color:#e4ebf3;box-shadow:0 2px 6px rgba(0,0,0,.18)}
.topbar-in{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;max-width:1320px;margin:0 auto;padding:6px 16px}
.brand{display:inline-flex;align-items:center;gap:8px;color:#fff;text-decoration:none;font:700 22px var(--display)}
.brand b{color:var(--amber)} .brand:hover{color:#fff}
.search{flex:1 1 220px;max-width:340px}
.search input{background:var(--navy3);border-color:var(--navy3);color:#fff;border-radius:999px;min-height:40px;padding:0 16px}
.search input::placeholder{color:#9fb0c4}
.mainnav{display:flex;gap:4px;margin:0 auto}
.mainnav a{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:72px;height:52px;padding:0 10px;border-radius:8px;color:#c6d3e2;text-decoration:none;font-size:12px}
.mainnav a:hover{background:var(--navy3);color:#fff}
.mainnav a[aria-current=page]{color:#fff;box-shadow:inset 0 -3px 0 var(--amber)}
.mainnav svg,.iconbtn svg,.chipbtn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tools{display:flex;align-items:center;gap:8px}
.iconbtn{position:relative;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:var(--navy3);color:#fff}
.iconbtn:hover{background:#1f4677;color:#fff}

/* Menús desplegables */
.menu{position:relative}
.menu summary{list-style:none;cursor:pointer;display:flex;border-radius:50%}
.menu summary::-webkit-details-marker{display:none}
.menu-pop{position:absolute;right:0;top:calc(100% + 6px);z-index:30;min-width:240px;padding:6px;border-radius:10px;background:#fff;color:var(--ink);border:1px solid var(--line);box-shadow:0 10px 30px rgba(11,31,58,.18);display:flex;flex-direction:column}
.menu-pop a,.menu-pop button{display:flex;align-items:center;gap:10px;min-height:44px;padding:6px 10px;border-radius:8px;border:0;background:none;color:var(--ink);font:inherit;text-align:left;text-decoration:none;cursor:pointer;width:100%}
.menu-pop a:hover,.menu-pop button:hover{background:#eef2f6}
.menu-pop small{display:block;color:var(--muted)}
.post-menu summary{width:36px;height:36px;align-items:center;justify-content:center;color:var(--muted);font-size:20px}
.post-menu summary:hover{background:#eef2f6}

/* Avisos */
.flashes{max-width:720px;margin:12px auto 0;padding:0 16px;display:flex;flex-direction:column;gap:8px}
.flash{padding:10px 14px;border-radius:8px;font-size:14px}
.flash-error{background:#fde8e8;color:#8a1c1c}.flash-ok,.flash-message{background:var(--teal-soft);color:#0b5a54}

/* Maquetación */
.layout3{display:flex;flex-wrap:wrap;align-items:flex-start;gap:20px;max-width:1320px;margin:0 auto;padding:20px 16px}
.layout3 .side-left{flex:1 1 220px;min-width:0;display:flex;flex-direction:column;gap:14px;position:sticky;top:80px}
.layout3 .col-main{flex:999 1 520px;min-width:0;max-width:680px;display:flex;flex-direction:column;gap:16px;margin:0 auto}
.layout3 .side-right{flex:1 1 260px;min-width:0;display:flex;flex-direction:column;gap:14px}
.layout2{display:flex;flex-wrap:wrap;align-items:flex-start;gap:20px;max-width:1120px;margin:0 auto;padding:20px 16px}
.layout2 .side-left{flex:1 1 300px;min-width:0;display:flex;flex-direction:column;gap:14px}
.layout2 .col-main{flex:999 1 520px;min-width:0;display:flex;flex-direction:column;gap:16px}
.layout2.rev{flex-direction:row-reverse}
.narrow{max-width:720px;margin:0 auto;padding:20px 16px;display:flex;flex-direction:column;gap:16px}
.wide{max-width:1200px;margin:0 auto;padding:20px 16px}
@media (max-width:900px){.layout3 .side-left{position:static;order:2}.layout3 .col-main{order:1}.layout3 .side-right{order:3}.layout3 .sidenav{display:none}}

.sidenav{display:flex;flex-direction:column;gap:2px}
.sidenav a{display:flex;align-items:center;gap:10px;min-height:48px;padding:6px 10px;border-radius:8px;color:var(--ink);text-decoration:none;font-weight:500}
.sidenav a:hover{background:#e2e8ef}
.sidenav span{display:flex;flex-direction:column;line-height:1.2}
.ico{font-style:normal;width:36px;text-align:center;font-size:20px}
.stats3{display:grid;grid-template-columns:repeat(3,1fr);text-align:center}
.stats3 div{display:flex;flex-direction:column}.stats3 b{font-size:20px;font-family:var(--display)}.stats3 small{color:var(--muted);font-size:12px}
.person{display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px solid #eef2f6}
.person:first-of-type{border-top:0}
.person>div{flex:1;min-width:0;display:flex;flex-direction:column}
.event-mini{display:flex;flex-direction:column;padding:10px;margin-bottom:8px;border-radius:8px;background:#f2f5f9;color:var(--ink);text-decoration:none}

/* Publicador */
.composer{padding:14px;display:flex;flex-direction:column;gap:12px}
.composer-top{display:flex;gap:10px;align-items:flex-start}
.composer textarea{border-radius:22px;background:#f0f3f7;border-color:#f0f3f7;padding:12px 16px}
.composer-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding-top:10px;border-top:1px solid #eef2f6}
.composer-bar .btn{margin-left:auto}
.chipbtn{display:inline-flex;flex-direction:row;align-items:center;gap:6px;min-height:40px;padding:0 12px;border-radius:8px;border:0;background:none;color:var(--ink2);font:500 14px var(--sans);cursor:pointer}
.chipbtn:hover{background:#eef2f6}
.tag-select{width:auto;min-height:40px;padding:0 10px;font-size:14px}
.qso-attach{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:10px}
.qso-attach[hidden]{display:none}
.img-preview{max-height:260px;object-fit:contain;border-radius:10px;background:#f0f3f7}

/* Filtros */
.feed-filters{display:flex;flex-direction:column;gap:10px}
.seg{display:inline-flex;align-self:flex-start;padding:4px;border-radius:10px;background:#dfe6ee}
.seg a{padding:8px 14px;border-radius:8px;color:var(--ink2);text-decoration:none;font-weight:500;font-size:14px}
.seg a[aria-current=true]{background:#fff;color:var(--navy);font-weight:600;box-shadow:var(--shadow)}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border-radius:999px;border:1px solid var(--line2);background:#fff;color:var(--ink2);text-decoration:none;font-size:14px;font-weight:500}
.chip[aria-current=true]{background:var(--navy);border-color:var(--navy);color:#fff}

/* Publicación */
.post{display:flex;flex-direction:column}
.post-head{display:flex;align-items:center;gap:10px;padding:14px 16px 8px}
.post-who{flex:1;min-width:0;line-height:1.3}
.post-body{padding:4px 16px 12px;white-space:pre-line;word-wrap:break-word;font-size:16px}
.tag{padding:3px 10px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap;background:#eef2f7;color:var(--ink2)}
.tag-dx{background:var(--amber-soft);color:var(--amber-ink)}.tag-sota{background:var(--teal-soft);color:#0b5a54}
.tag-contest,.tag-ev-contest{background:#e8eefc;color:#1e3a8a}.tag-digi,.tag-ev-net{background:#f1e8fb;color:#5b2a86}
.tag-tech{background:#e9f3e3;color:#2f5a17}.tag-ev-act{background:var(--teal-soft);color:#0b5a54}.tag-ev-meet{background:var(--amber-soft);color:var(--amber-ink)}
.qso-card{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:8px;margin:0 16px 12px;padding:12px;border-radius:10px;background:var(--navy);color:#e4ebf3;font-family:var(--mono);font-size:13px}
.qso-card div{display:flex;flex-direction:column;gap:2px}.qso-card span{font-size:11px;color:#9fb0c4}
.post-img{display:block;background:#0b1f3a}
.post-img img{display:block;width:100%;max-height:560px;object-fit:contain}
.post-stats{display:flex;justify-content:space-between;align-items:center;min-height:36px;padding:6px 16px;font-size:14px;color:var(--muted)}
.emojis{letter-spacing:-2px}
.post-actions{display:flex;gap:4px;margin:0 12px;padding:4px 0;border-top:1px solid #eef2f6;border-bottom:1px solid #eef2f6}
.post-actions>*{flex:1}
.act{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:42px;border:0;border-radius:8px;background:none;color:var(--ink2);font:600 14px var(--sans);cursor:pointer;text-decoration:none}
.act:hover{background:#eef2f6;color:var(--ink)}
.act.on{color:var(--teal)}
.react-wrap{position:relative}
.react-pop{position:absolute;bottom:calc(100% + 4px);left:0;z-index:5;display:none;gap:2px;padding:6px;border-radius:999px;background:#fff;border:1px solid var(--line);box-shadow:0 8px 24px rgba(11,31,58,.18)}
.react-wrap:hover .react-pop,.react-wrap:focus-within .react-pop{display:flex}
.react-pop button{width:44px;height:44px;border:0;border-radius:50%;background:none;font-size:26px;cursor:pointer;transition:transform .12s}
.react-pop button:hover,.react-pop button:focus-visible{transform:scale(1.25)}
.comments{display:flex;flex-direction:column;gap:10px;padding:12px 16px 14px}
.comment{display:grid;grid-template-columns:32px 1fr;gap:4px 8px}
.comment>small{grid-column:2;padding-left:12px;font-size:12px}
.bubble{background:#f0f3f7;border-radius:16px;padding:8px 12px;justify-self:start;max-width:100%}
.bubble p{white-space:pre-line;word-wrap:break-word}
.comment-form{display:flex;align-items:center;gap:8px}
.comment-form input{border-radius:999px;background:#f0f3f7;border-color:#f0f3f7;min-height:40px}

/* Perfil */
.profile-head{background:#fff;border-bottom:1px solid var(--line)}
.cover{position:relative;height:300px;max-width:1120px;margin:0 auto;border-radius:0 0 14px 14px;background:linear-gradient(160deg,var(--navy2),var(--navy)) center/cover;display:flex;align-items:flex-end;justify-content:flex-end;padding:14px}
.cover-club{height:200px;justify-content:flex-start;align-items:center;padding:24px}
.profile-bar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:16px 20px;max-width:1080px;margin:0 auto;padding:0 20px 16px}
.profile-avatar{margin-top:-80px}
.profile-avatar .avatar{border:5px solid #fff;box-shadow:var(--shadow)}
.profile-id{flex:1 1 300px;min-width:0;padding-top:12px}
.profile-id h1.call{font-size:34px}
.lead2{font-size:18px;color:var(--ink2)}
.profile-actions{display:flex;flex-wrap:wrap;gap:8px}
.profile-tabs{display:flex;flex-wrap:wrap;gap:2px;max-width:1080px;margin:0 auto;padding:4px 20px;border-top:1px solid #eef2f6}
.profile-tabs a{display:flex;align-items:center;min-height:48px;padding:0 14px;color:var(--ink2);font-weight:600;text-decoration:none;border-radius:8px}
.profile-tabs a:hover{background:#eef2f6}
.profile-tabs a[aria-current=page]{color:var(--teal);box-shadow:inset 0 -3px 0 var(--teal);border-radius:0}
.friend-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.friend-grid a{display:flex;flex-direction:column;align-items:center;gap:4px;text-decoration:none;color:var(--ink);text-align:center}
.friend-grid.big{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:18px}
.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:8px}
.photo-grid img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;display:block}
.dl{display:grid;grid-template-columns:120px 1fr;gap:10px 16px;margin:0}.dl dt{font-weight:600;color:var(--ink2)}.dl dd{margin:0}

/* Personas y clubs */
.people-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px}
.person-card{padding:14px;display:flex;flex-direction:column;gap:12px}
.person-top{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;text-decoration:none;color:var(--ink)}
.club-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}
.club-card{display:flex;flex-direction:column;gap:12px}
.club-card h2 a{color:var(--navy);text-decoration:none}
.club-badge{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:12px;font:700 18px var(--display);background:var(--navy);color:var(--amber);flex:0 0 auto}
.club-badge.big{width:96px;height:96px;font-size:36px;border:4px solid #fff}
.kind-dxp{background:var(--teal);color:#fff}.kind-award{background:#5b2a86;color:#fff}.kind-group{background:#1e3a8a;color:#fff}

/* Listas */
.list{display:flex;flex-direction:column;overflow:hidden}
.notif{display:flex;align-items:center;gap:12px;padding:12px 16px;border-top:1px solid #eef2f6;color:var(--ink);text-decoration:none}
.notif>span{flex:1;display:flex;flex-direction:column}
.notif:hover{background:#f5f7fa}.notif.unread{background:#f2f8ff}

/* Eventos */
.event{display:flex;flex-wrap:wrap;align-items:center;gap:16px;padding:16px}
.datebox{display:flex;flex-direction:column;align-items:center;justify-content:center;width:72px;height:72px;border-radius:10px;background:var(--navy);color:#fff;flex:0 0 72px}
.datebox span{font-size:12px;font-weight:600;letter-spacing:.08em;color:var(--amber)}.datebox b{font:700 28px/1 var(--display)}
.agenda{padding:8px 0;border-top:1px solid var(--line-dark);font-size:14px}

/* Mensajes */
.chat{display:flex;flex-wrap:wrap;min-height:calc(100vh - 120px);overflow:hidden}
.chat-list{flex:1 1 280px;min-width:0;border-right:1px solid var(--line);max-height:calc(100vh - 120px);overflow-y:auto}
.conv{display:flex;align-items:center;gap:10px;padding:10px 14px;color:var(--ink);text-decoration:none}
.conv:hover{background:#f2f5f9}.conv.on{background:var(--amber-soft);box-shadow:inset 3px 0 0 var(--amber)}
.chat-main{flex:999 1 480px;min-width:0;display:flex;flex-direction:column;max-height:calc(100vh - 120px)}
.chat-head{display:flex;align-items:center;gap:10px;padding:12px 18px;border-bottom:1px solid var(--line)}
.chat-head>div{display:flex;flex-direction:column}
.chat-log{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:8px;padding:18px;background:#f7f9fc;min-height:320px}
.msg{max-width:70%;padding:8px 14px;border-radius:16px;line-height:1.45}
.msg p{white-space:pre-line;word-wrap:break-word}.msg small{display:block;font-size:11px;opacity:.7}
.msg.me{align-self:flex-end;background:var(--navy);color:#fff;border-bottom-right-radius:4px}
.msg.them{align-self:flex-start;background:#fff;border:1px solid var(--line);border-bottom-left-radius:4px}
.chat-form{display:flex;gap:8px;padding:12px 18px;border-top:1px solid var(--line)}
.chat-form input{border-radius:999px}

/* Tablas */
.tablewrap{overflow-x:auto}
.table{width:100%;border-collapse:collapse;font-size:14px;min-width:640px}
.table th{text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);padding:10px 8px;border-bottom:1px solid var(--line)}
.table td{padding:9px 8px;border-top:1px solid #eef2f6;vertical-align:top}

/* Portada (acceso) */
body.landing{background:var(--navy);color:#e4ebf3;min-height:100vh;display:flex;flex-direction:column;overflow-x:hidden}
.landing-bg{position:fixed;inset:0;width:100%;height:100%;pointer-events:none}
.landing .flashes{position:relative;z-index:2}
.landing-main{position:relative;flex:1;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:48px;width:100%;max-width:1200px;margin:0 auto;padding:48px 24px}
.landing-copy{flex:1 1 420px;min-width:0;max-width:600px;display:flex;flex-direction:column;gap:22px}
.landing-copy h1{font:700 clamp(46px,7vw,72px)/1 var(--display);color:#fff;letter-spacing:-.02em}
.landing-copy h1 span{color:var(--amber)}
.lead{font-size:clamp(17px,2vw,21px);color:#d3dde9}
.features{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.features li{padding:12px 14px 12px 40px;border:1px solid #23416a;border-radius:10px;background:rgba(8,26,49,.6);position:relative}
.features li::before{content:"";position:absolute;left:16px;top:50%;width:10px;height:10px;margin-top:-5px;border-radius:50%;background:var(--amber)}
.ticker{overflow:hidden;max-width:100%;min-width:0;border-top:1px dashed #2a4a73;border-bottom:1px dashed #2a4a73;padding:8px 0;font:14px var(--mono);color:var(--mint)}
.ticker div{display:flex;width:max-content;animation:qn-scroll 28s linear infinite}
.ticker span{padding-right:32px;white-space:nowrap}
@keyframes qn-scroll{to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.ticker div{animation:none}}
.auth-card{position:relative;flex:0 1 420px;display:flex;flex-direction:column;gap:16px;padding:32px;border-radius:16px;background:#fff;color:var(--ink);box-shadow:0 24px 60px rgba(0,0,0,.35)}
.auth-logo{align-self:center}
.tabs2{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border-radius:10px;background:#eef2f7}
.tabs2 a{display:flex;align-items:center;justify-content:center;min-height:40px;border-radius:8px;color:#4a5a6d;font-weight:600;text-decoration:none}
.tabs2 a[aria-selected=true]{background:#fff;color:var(--navy);box-shadow:var(--shadow)}
.landing-foot{position:relative;text-align:center;padding:16px;font-size:13px;color:#9fb0c4;border-top:1px solid var(--line-dark)}

@media (max-width:640px){
  .mainnav{order:3;width:100%;justify-content:space-between}
  .mainnav a{min-width:0;flex:1}
  .search{order:2;flex-basis:100%;max-width:none}
  .cover{height:180px;border-radius:0}
  .profile-avatar{margin-top:-60px}
  .msg{max-width:88%}
}

.menu summary .avatar{box-shadow:0 0 0 2px var(--amber)}
.comment>small{text-align:left}

/* Administración */
.admin-tabs{display:flex;flex-wrap:wrap;gap:4px;padding:4px;border-radius:10px;background:#dfe6ee;align-self:flex-start}
.admin-tabs a{display:flex;align-items:center;min-height:40px;padding:0 16px;border-radius:8px;color:var(--ink2);font-weight:600;text-decoration:none}
.admin-tabs a[aria-current=page]{background:#fff;color:var(--navy);box-shadow:var(--shadow)}
.kpis{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
.kpi{display:flex;flex-direction:column;gap:2px;padding:16px;text-decoration:none;color:var(--ink)}
.kpi b{font:700 28px var(--display);color:var(--navy)}.kpi span{font-weight:600}.kpi small{color:var(--muted);font-size:12px}
.kpi.warn{background:var(--amber-soft);border-color:#f8d9a0}
a.kpi:hover{border-color:var(--line2)}
.st-ok{background:var(--teal-soft);color:#0b5a54}.st-pending{background:var(--amber-soft);color:var(--amber-ink)}
.st-blocked{background:#fde8e8;color:#8a1c1c}.st-admin{background:var(--navy);color:#fff}
.actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.admin-table td{vertical-align:middle}
.actions .menu-pop{min-width:300px;right:0}
summary.btn{list-style:none}summary.btn::-webkit-details-marker{display:none}
.menu summary.btn{border-radius:8px;display:inline-flex}

/* ---------- QRV, propagación, mapa ---------- */
.nowrap{white-space:nowrap}
.flag{font-family:"Twemoji Mozilla","Noto Color Emoji","Apple Color Emoji","Segoe UI Emoji",sans-serif;font-size:1.05em}
.qrv{padding:14px 16px;display:flex;flex-direction:column;gap:12px;border-left:4px solid var(--amber)}
.qrv-title{display:flex;align-items:center;gap:8px;margin:0}
.live-dot{width:10px;height:10px;border-radius:50%;background:#e03131;box-shadow:0 0 0 0 rgba(224,49,49,.6);animation:qn-pulse 1.8s infinite}
@keyframes qn-pulse{70%{box-shadow:0 0 0 8px rgba(224,49,49,0)}100%{box-shadow:0 0 0 0 rgba(224,49,49,0)}}
@media (prefers-reduced-motion:reduce){.live-dot{animation:none}}
.qrv-form{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}
.qrv-form[hidden]{display:none}
.qrv-form label{flex:1 1 120px}.qrv-form label.grow{flex:3 1 220px}
.qrv-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:8px}
.qrv-item{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:10px;background:var(--soft);color:var(--ink);text-decoration:none;min-width:0}
.qrv-item:hover{background:var(--soft2)}
.qrv-item .grow{display:flex;flex-direction:column;min-width:0}
.qrv-freq{color:var(--teal);font-weight:600;font-size:14px}
.prop{display:flex;flex-direction:column;gap:10px}
.prop .h3{margin:0}
.prop-idx{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;text-align:center}
.prop-idx div{display:flex;flex-direction:column;padding:8px 2px;border-radius:8px;background:var(--soft)}
.prop-idx b{font:700 18px var(--display);color:var(--navy)}.prop-idx small{font-size:11px;color:var(--muted)}
.prop-table{width:100%;border-collapse:collapse;font-size:13px}
.prop-table th{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);text-align:left;padding:4px}
.prop-table td{padding:4px;border-top:1px solid var(--line)}
.cond{display:inline-block;min-width:64px;padding:2px 8px;border-radius:999px;font-size:12px;font-weight:600;text-align:center}
.cond-good{background:#dcf5e3;color:#14532d}.cond-fair{background:var(--amber-soft);color:var(--amber-ink)}.cond-poor{background:#fde8e8;color:#8a1c1c}.cond-na{background:var(--soft);color:var(--muted)}
.qso-dist{grid-column:1/-1}
.qso-map{height:520px;border-radius:10px;overflow:hidden;background:#aad3df;z-index:0}
@media (max-width:640px){.qso-map{height:380px}}
.theme-float{position:fixed;top:12px;right:12px;z-index:40;width:44px;height:44px;border-radius:50%;border:1px solid #2a4a73;background:rgba(8,26,49,.7);font-size:20px;cursor:pointer}
.theme-light{display:none}
[data-theme=dark] .theme-light{display:inline}[data-theme=dark] .theme-dark{display:none}

/* ---------- Modo oscuro ---------- */
:root{--soft:#f0f3f7;--soft2:#e6ebf1}
[data-theme=dark]{
  color-scheme:dark;
  --bg:#0a1424; --card:#121f33; --ink:#e3eaf3; --ink2:#bccada; --muted:#94a6bb; --line:#22344d; --line2:#33496a;
  --soft:#1a2a42; --soft2:#22365a; --navy:#e8eef6; --teal:#3cc1b2; --teal-soft:#123b38; --amber-soft:#3a2c10; --amber-ink:#f7c56b;
  --shadow:0 1px 2px rgba(0,0,0,.4);
}
[data-theme=dark] body{background:var(--bg)}
:where([data-theme=dark]) a{color:#5fd4c6}
[data-theme=dark] .topbar{background:#07101e}
[data-theme=dark] .search input,[data-theme=dark] .iconbtn{background:#13233b;border-color:#13233b}
[data-theme=dark] .mainnav a:hover{background:#13233b}
[data-theme=dark] .brand,[data-theme=dark] .mainnav a[aria-current=page]{color:#fff}
[data-theme=dark] input,[data-theme=dark] select,[data-theme=dark] textarea{background:#0e1a2c;color:var(--ink);border-color:var(--line2)}
[data-theme=dark] .composer textarea,[data-theme=dark] .comment-form input,[data-theme=dark] .bubble{background:var(--soft);border-color:var(--soft)}
[data-theme=dark] .btn-primary{color:#0b1f3a}
[data-theme=dark] .btn-soft{background:var(--soft2);color:var(--ink)}[data-theme=dark] .btn-soft:hover{background:#2b4470}
[data-theme=dark] .btn-danger{background:#3b1414;color:#ffb4b4}
[data-theme=dark] .chip{background:var(--card);color:var(--ink2);border-color:var(--line2)}
[data-theme=dark] .chip[aria-current=true]{background:#e8eef6;color:#0b1f3a;border-color:#e8eef6}
[data-theme=dark] .seg,[data-theme=dark] .admin-tabs,[data-theme=dark] .tabs2{background:var(--soft)}
[data-theme=dark] .seg a[aria-current=true],[data-theme=dark] .admin-tabs a[aria-current=page]{background:var(--soft2);color:#fff}
[data-theme=dark] .post-actions,[data-theme=dark] .person,[data-theme=dark] .notif,[data-theme=dark] .table td,[data-theme=dark] .composer-bar,[data-theme=dark] .profile-tabs{border-color:var(--line)}
[data-theme=dark] .act:hover,[data-theme=dark] .chipbtn:hover,[data-theme=dark] .sidenav a:hover,[data-theme=dark] .menu-pop a:hover,[data-theme=dark] .menu-pop button:hover,[data-theme=dark] .profile-tabs a:hover,[data-theme=dark] .conv:hover,[data-theme=dark] .notif:hover,[data-theme=dark] .post-menu summary:hover{background:var(--soft)}
[data-theme=dark] .menu-pop,[data-theme=dark] .react-pop{background:#16263e;border-color:var(--line2)}
[data-theme=dark] .menu-pop a,[data-theme=dark] .menu-pop button{color:var(--ink)}
[data-theme=dark] .notif.unread{background:#14283f}
[data-theme=dark] .event-mini,[data-theme=dark] .chat-log{background:#0e1a2c}
[data-theme=dark] .msg.them{background:var(--soft);border-color:var(--line)}
[data-theme=dark] .msg.me{background:#1f4f8a}
[data-theme=dark] .profile-head{background:var(--card);border-color:var(--line)}
[data-theme=dark] .profile-avatar .avatar,[data-theme=dark] .club-badge.big{border-color:var(--card)}
[data-theme=dark] .cover{background-color:#0b1a2e}
[data-theme=dark] .avatar-txt{background:#1f3557}
[data-theme=dark] .pill,[data-theme=dark] .tag{background:var(--soft);color:var(--ink2)}
[data-theme=dark] .tag-dx,[data-theme=dark] .tag-ev-meet,[data-theme=dark] .st-pending{background:#3a2c10;color:#f7c56b}
[data-theme=dark] .tag-sota,[data-theme=dark] .tag-ev-act,[data-theme=dark] .st-ok{background:#123b38;color:#7fe3d6}
[data-theme=dark] .tag-contest,[data-theme=dark] .tag-ev-contest{background:#1a2a55;color:#a9c1ff}
[data-theme=dark] .tag-digi,[data-theme=dark] .tag-ev-net{background:#2e1d47;color:#d4b8ff}
[data-theme=dark] .tag-tech{background:#1d3a17;color:#b5e3a0}
[data-theme=dark] .st-blocked{background:#3b1414;color:#ffb4b4}
[data-theme=dark] .st-admin{background:#e8eef6;color:#0b1f3a}
[data-theme=dark] .callout,[data-theme=dark] .kpi.warn{background:#2c2410;border-color:#5a4410}
[data-theme=dark] .flash-error{background:#3b1414;color:#ffc9c9}
[data-theme=dark] .flash-ok,[data-theme=dark] .flash-message{background:#123b38;color:#a8efe5}
[data-theme=dark] .cond-good{background:#173d24;color:#9de6b3}
[data-theme=dark] .cond-poor{background:#3b1414;color:#ffb4b4}
[data-theme=dark] .card.dark{background:#07101e;border-color:var(--line)}
[data-theme=dark] .qso-card{background:#07101e;border:1px solid var(--line)}
[data-theme=dark] .datebox{background:#07101e;border:1px solid var(--line)}
[data-theme=dark] .auth-card{background:var(--card);color:var(--ink)}
[data-theme=dark] .tabs2 a[aria-selected=true]{background:var(--soft2);color:#fff}
[data-theme=dark] .qso-map .leaflet-tile{filter:invert(1) hue-rotate(180deg) brightness(.9) contrast(.9)}
[data-theme=dark] .leaflet-popup-content-wrapper,[data-theme=dark] .leaflet-popup-tip{background:#16263e;color:var(--ink)}
[data-theme=dark] .img-preview{background:var(--soft)}
[data-theme=dark] body.landing{background:#0b1f3a;color:#e4ebf3}
[data-theme=dark] .club-badge{background:#1f3557;color:#f5a524}
[data-theme=dark] .kind-dxp{background:#0f766e;color:#fff}[data-theme=dark] .kind-award{background:#5b2a86;color:#fff}[data-theme=dark] .kind-group{background:#1e3a8a;color:#fff}

/* ---------- QSL y logros ---------- */
.qsl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.qsl-item{display:flex;flex-direction:column;gap:10px;padding:14px;text-decoration:none;color:var(--ink)}
.qsl-item:hover{border-color:var(--line2)}
.qsl-item .grow{display:flex;flex-direction:column;min-width:0}
.qsl-mini{display:flex;justify-content:space-between;gap:6px;padding:8px 10px;border-radius:8px;background:var(--soft);font-size:13px}
.wide-card{max-width:960px}
.qsl-img{width:100%;height:auto;border-radius:16px;box-shadow:0 12px 32px rgba(11,31,58,.25);background:#0b1f3a}
.badge-row{display:inline-flex;align-items:center;gap:4px;margin-top:8px;text-decoration:none}
.badge-mini{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:var(--amber-soft);font-size:16px}
.badge-row .small{margin-left:6px}
.badge-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px}
.badge-card{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;padding:16px 12px;border-radius:12px;border:1px solid var(--line);background:linear-gradient(180deg,var(--amber-soft),transparent 70%)}
.badge-card.locked{background:var(--soft);opacity:.85}
.badge-card.locked .badge-emoji{filter:grayscale(1);opacity:.5}
.badge-emoji{font-size:40px;line-height:1.2}
.badge-date{color:var(--teal);font-weight:600}
.bar{width:100%;height:6px;border-radius:999px;background:var(--line);overflow:hidden;margin-top:4px}
.bar i{display:block;height:100%;background:var(--teal);border-radius:999px}
@media print{.topbar,.flashes,main.narrow>p,main.narrow>.row{display:none!important}.qsl-img{box-shadow:none}}

/* ---------- Ranking, cluster, mercadillo ---------- */
.rank-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}
.rank-title{margin:0;padding-bottom:6px}
.rank-filters label{flex:0 1 160px}
.rank-list{list-style:none;margin:0;padding:0 8px 10px}
.rank-list li{display:flex;align-items:center;gap:10px;padding:8px;border-radius:10px}
.rank-list li.podium{background:var(--soft)}
.rank-pos{width:30px;text-align:center;font:700 16px var(--display);color:var(--muted)}
.rank-who{flex:1;min-width:0;display:flex;align-items:center;gap:8px;color:var(--ink);text-decoration:none}
.rank-who span{display:flex;flex-direction:column;min-width:0}
.rank-val{font:700 16px var(--mono);color:var(--navy);white-space:nowrap}.rank-val small{font:500 11px var(--sans);color:var(--muted)}
.spots{width:100%;border-collapse:collapse;font-size:13px}
.spots td{padding:5px 2px;border-top:1px solid var(--line-dark)}
.spots td:nth-child(2),.spots td:nth-child(3){text-align:right}
.card.dark .muted-d,.muted-d{color:#9fb0c4}
.card.dark a{color:var(--mint)}
.spot-new td{background:var(--amber-soft)}
.chip-new[aria-current=true]{background:var(--amber);border-color:var(--amber);color:#0b1f3a}
.market-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}
.market-card{display:flex;flex-direction:column;overflow:hidden;text-decoration:none;color:var(--ink)}
.market-card:hover{border-color:var(--line2);transform:translateY(-1px)}
.market-card.is-vendido{opacity:.6}
.market-img{position:relative;aspect-ratio:4/3;background:var(--soft);display:flex;align-items:center;justify-content:center;font-size:48px}
.market-img img{width:100%;height:100%;object-fit:cover}
.market-status{position:absolute;top:10px;left:10px;padding:4px 10px;border-radius:999px;background:var(--navy);color:#fff;font-size:12px;font-weight:700}
[data-theme=dark] .market-status{background:#07101e}
.market-body{display:flex;flex-direction:column;gap:3px;padding:12px 14px 14px}
.market-price{font:700 20px var(--display);color:var(--navy)}.market-price.big{font-size:30px}
.market-title{font-weight:600;line-height:1.3}
.gallery{overflow:hidden}
.gallery-main{display:block;width:100%;max-height:520px;object-fit:contain;background:#0b1f3a}
.gallery-thumbs{display:flex;gap:8px;padding:10px;flex-wrap:wrap}
.gallery-thumbs button{padding:0;border:2px solid transparent;border-radius:8px;overflow:hidden;cursor:pointer;background:none;width:84px;height:64px}
.gallery-thumbs button:focus-visible,.gallery-thumbs button:hover{border-color:var(--amber)}
.gallery-thumbs img{width:100%;height:100%;object-fit:cover;display:block}
.gallery-empty{aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;font-size:96px;background:var(--soft)}
.thumbs{display:flex;gap:10px;flex-wrap:wrap}
.thumb{width:120px;font-weight:500}.thumb img{width:120px;height:90px;object-fit:cover;border-radius:8px}
.thumb span{display:flex;align-items:center;gap:6px}
.seller{color:var(--ink);text-decoration:none;padding:10px;border-radius:10px;background:var(--soft)}
.sep{border:0;border-top:1px solid var(--line);width:100%;margin:4px 0}
@media (max-width:640px){.mainnav a span{display:none}.mainnav a{height:44px}}

/* ---------- Legal ---------- */
.legal-text h1{margin-bottom:8px}.legal-text h2{font-size:18px;margin:22px 0 8px}
.legal-text p,.legal-text li{line-height:1.65}.legal-text ul{padding-left:20px;margin:0 0 8px}
.legal-public{background:var(--bg)}
.app-foot{max-width:1200px;margin:24px auto 0;padding:18px 16px 28px;text-align:center;font-size:13px;color:var(--muted);border-top:1px solid var(--line)}
.app-foot a{color:var(--muted)}
.landing-foot a{color:#c6d3e2}
.terms-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px 16px;padding:10px 16px;background:var(--amber-soft);color:var(--ink);font-size:14px;text-align:center}
.cookie-note{position:fixed;left:16px;right:16px;bottom:16px;z-index:50;max-width:620px;margin:0 auto;display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;padding:12px 16px;border-radius:12px;background:#0b1f3a;color:#e4ebf3;box-shadow:0 10px 30px rgba(0,0,0,.3);font-size:14px}
.cookie-note[hidden]{display:none}
.cookie-note p{flex:1 1 300px}.cookie-note a{color:var(--mint)}
.small-check{font-size:13px;font-weight:500;color:var(--ink2);min-height:auto;align-items:flex-start}
.small-check input{margin-top:2px;flex:0 0 auto}
.danger-zone{border-color:#f3c4c4}
[data-theme=dark] .danger-zone{border-color:#5a2020}
[data-theme=dark] .terms-bar{background:#2c2410}
.small-check span{flex:1;line-height:1.45}

/* ---------- App ---------- */
.offline{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:24px;text-align:center;color:#e4ebf3}
.offline h1{color:#fff;font-size:32px}.offline img{border-radius:22px}
.ticker-mono{font-family:var(--mono);color:var(--mint);font-size:14px}
.install-cta{align-self:flex-start}
.ios-help{position:fixed;left:16px;right:16px;bottom:16px;z-index:60;max-width:520px;margin:0 auto;display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:14px 16px;border-radius:12px;background:#fff;color:#1c2733;box-shadow:0 10px 30px rgba(0,0,0,.3)}
.ios-help[hidden]{display:none}.ios-help p{flex:1 1 260px;font-size:14px}
@media (display-mode: standalone){.topbar{padding-top:env(safe-area-inset-top)}}

/* ---------- Idiomas ---------- */
.lang-menu summary{list-style:none;cursor:pointer;display:flex;align-items:center;min-height:44px;padding:6px 10px;border-radius:8px}
.lang-menu summary::-webkit-details-marker{display:none}
.lang-menu summary:hover{background:#eef2f6}
.lang-list{display:grid;grid-template-columns:1fr 1fr;gap:2px;padding:4px 6px 8px}
.lang-list a{min-height:36px!important;padding:4px 10px!important;font-size:14px}
.lang-list a[aria-current=true],.lang-foot a[aria-current=true]{font-weight:700;color:var(--teal)}
.lang-foot{margin-top:8px;line-height:2}
[data-theme=dark] .lang-menu summary:hover{background:var(--soft)}

/* --- Calendario DX --- */
.tabs-line{display:flex;flex-wrap:wrap;gap:2px;border-bottom:1px solid var(--line2)}
.tabs-line a{display:flex;align-items:center;min-height:44px;padding:0 14px;color:var(--ink2);font-weight:600;text-decoration:none}
.tabs-line a[aria-current=page]{color:var(--teal);box-shadow:inset 0 -3px 0 var(--teal)}
.tag-live{background:#fde8e8;color:#b42318}.tag-src-dx{background:var(--amber-soft);color:var(--amber-ink)}
.tag-src-pota{background:#e3f4e8;color:#1e6b3a}.tag-src-sota{background:var(--teal-soft);color:#0b5a54}
.dxcal-table td{vertical-align:top}.dxcal-table td .tag{margin-top:4px;display:inline-block}
.dxped-mini{display:flex;flex-direction:column;gap:2px;padding:6px 0;border-bottom:1px solid rgba(255,255,255,.08);text-decoration:none;color:inherit}
.dxped-mini:last-of-type{border-bottom:0}.dxped-mini small{line-height:1.3}
[data-theme=dark] .tag-live{background:#4a1c1c;color:#ffb4ab}[data-theme=dark] .tag-src-pota{background:#16351f;color:#8fe0a8}
[data-theme=dark] .tag-src-dx{background:#3a2c10;color:#f7c56b}[data-theme=dark] .tag-src-sota{background:#123b38;color:#7fe3d6}
[data-theme=dark] .tabs-line{border-color:var(--line)}

/* --- Editar y fotos en comentarios y mensajes --- */
.comment-form{flex-wrap:wrap}
.comment-form input[name=body]{flex:1;min-width:0}
.comment-form .iconbtn,.chat-form .iconbtn{flex:none;width:40px;height:40px;min-width:40px;color:var(--muted);background:none;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.comment-form .iconbtn:hover,.chat-form .iconbtn:hover{background:var(--soft);color:var(--teal)}
.comment-preview{flex-basis:100%;max-width:220px;max-height:160px;object-fit:cover;border-radius:10px;margin-left:40px}
.comment-img{display:block;margin-top:6px}.comment-img img{display:block;max-width:min(280px,100%);max-height:260px;border-radius:12px;object-fit:cover}
.comment-edit{grid-column:2;display:flex;flex-direction:column;gap:6px;margin-top:2px}
.comment-edit textarea{border-radius:12px;min-height:60px}
.comment small .linkbtn,.comment small form.inline{display:inline}
.msg-img{display:block;margin:-2px -6px 4px}.msg-img img{display:block;max-width:100%;max-height:300px;border-radius:12px;object-fit:cover}
.msg .msg-edit{background:none;border:0;color:inherit;opacity:.65;font-size:11px;cursor:pointer;padding:0 0 0 6px;text-decoration:underline}
.msg .msg-edit:hover{opacity:1}
.msg form.msg-editing{display:flex;flex-direction:column;gap:6px;min-width:220px}
.msg form.msg-editing textarea{border-radius:10px;min-height:56px;color:var(--ink)}
.chat-preview{max-height:90px;border-radius:10px;margin:0 18px 0 18px}
.edit-thumb{max-width:260px;border-radius:10px;display:block}
[hidden]{display:none!important}
.report-quote{margin:0;padding:10px 14px;border-left:4px solid var(--amber);background:var(--soft);border-radius:8px;white-space:pre-line;word-wrap:break-word}
.report-card{margin-top:12px}
/* Respuestas, me gusta en comentarios, compartir, menciones */
.replies{margin-left:40px;display:flex;flex-direction:column;gap:8px;border-left:2px solid var(--line);padding-left:10px}
.reply-form{margin-left:40px}
.comment .bubble{position:relative}
.clike-count{position:absolute;right:-10px;bottom:-10px;background:var(--card);border:1px solid var(--line);border-radius:999px;padding:0 6px;font-size:12px;box-shadow:var(--shadow)}
.comment-meta .linkbtn.on{color:var(--teal);font-weight:700}
.comment-meta{display:flex;flex-wrap:wrap;gap:2px 4px;align-items:center}
.shared-post{border:1px solid var(--line);border-radius:12px;padding:12px;margin:8px 0;background:var(--soft)}
.shared-post .post-img img{border-radius:10px}
.share-box{display:flex;flex-direction:column;gap:8px;padding:10px 16px;border-top:1px solid var(--line)}
.share-box textarea{border-radius:10px}
a.mention{font-weight:600;color:var(--teal);text-decoration:none}a.mention:hover{text-decoration:underline}
.post-body a,.bubble a:not(.call){word-break:break-all}
/* Diplomas */
.award-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px}
.award-card{border:1px solid var(--line);border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:4px}
.award-bar{position:relative;height:10px;border-radius:99px;background:var(--soft2);overflow:hidden;margin:4px 0}
.award-bar i{position:absolute;left:0;top:0;bottom:0;border-radius:99px}
.award-bar .w{background:#f5c46b}.award-bar .c{background:var(--teal)}
.award-matrix td.c,.award-matrix th{text-align:center}.award-matrix td:first-child{text-align:left}
.award-matrix .ok,.award-card .ok{color:var(--teal);font-weight:700}
.sync-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px}
.qb{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:5px;font:700 11px var(--mono);color:#fff;margin-left:2px;vertical-align:middle}
.qb-l{background:#1d4ed8}.qb-e{background:#b45309}.qb-q{background:#0f766e}
.qsl-cell a{text-decoration:none}
.notif > .avatar,.notif > a > .avatar{flex:none}
/* Chat de club */
.chat-club .chat-main{flex:1 1 100%}
.chat-club .chat-main{min-height:70vh}
.msg-author{display:block;font:600 12px var(--mono);color:var(--teal);text-decoration:none;margin-bottom:2px}
.chat-club .chat-head .club-badge{width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:12px;font-weight:800;text-decoration:none}
.stats-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px}
.stats-row .stat{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:12px;display:flex;flex-direction:column}
.stats-row .stat b{font:800 24px var(--display)}.stats-row .stat span{color:var(--muted);font-size:13px}
.dotc{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:4px;vertical-align:middle}
.contest-row{display:grid;grid-template-columns:120px 1fr auto;gap:10px;align-items:baseline;padding:6px 0;border-bottom:1px solid var(--line)}
.contest-row:last-of-type{border-bottom:0}
/* Ruedas */
.net-mini{display:grid;grid-template-columns:1fr auto;gap:2px 10px;padding:8px 0;border-bottom:1px solid var(--line);color:inherit;text-decoration:none}
.net-mini:last-child{border-bottom:0}.net-mini small{grid-column:1/-1}.net-mini:hover b{color:var(--teal)}
.net-live{border-left:4px solid #dc2626}
.big-freq{font:800 26px var(--mono);color:var(--teal);margin:4px 0}
.net-list{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:6px}
.net-list li{padding:6px 0;border-bottom:1px dashed var(--line)}
.net-list li.ack{opacity:.75}.net-list form.inline{display:inline;margin-left:6px}
.net-join input{flex:1;min-width:200px}
.psk-form{align-items:center}.psk-form input,.psk-form select{width:auto;min-width:0}
.tabs-line a{gap:6px}
/* Mi tarjeta QSL */
.qsl-choice{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px;border:0;padding:0;margin:0}
.qsl-choice legend{margin-bottom:8px}
.qsl-option{display:flex;flex-direction:column;gap:8px;border:2px solid var(--line);border-radius:14px;padding:12px;cursor:pointer}
.qsl-option:has(input:checked){border-color:var(--teal);box-shadow:0 0 0 3px var(--teal-soft)}
.qsl-option img{width:100%;border-radius:10px;display:block}
.qsl-option.disabled{opacity:.7;cursor:default}
.qsl-empty{display:flex;align-items:center;justify-content:center;aspect-ratio:900/560;border:2px dashed var(--line2);border-radius:10px;text-align:center;padding:12px}
.qsl-style-form{align-items:center}
.qsl-option input[type=radio]{width:auto;min-height:0;align-self:flex-start;accent-color:var(--teal);transform:scale(1.3);margin:4px}
.qsl-option>span.b{margin-top:-30px;margin-left:30px}
/* Conectar mi programa / invitar */
.copy-row{display:flex;gap:8px;align-items:center}
.copy-row input{flex:1;min-width:0;font-family:var(--mono);font-size:14px}
.steps{display:flex;flex-direction:column;gap:8px;padding-left:20px;margin:0}
.steps ul{margin:6px 0 0;padding-left:18px;display:flex;flex-direction:column;gap:4px}
.kv{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;margin:0}
.kv dt{color:var(--muted)} .kv dd{margin:0;word-break:break-all}
.kv+.h3{margin-top:12px}
pre.code{background:var(--navy);color:#e4ebf3;border-radius:10px;padding:12px 14px;overflow-x:auto;font-family:var(--mono);white-space:pre-wrap;word-break:break-all;margin:0}
code{font-family:var(--mono);font-size:.92em}
[data-theme=dark] .kv dt{color:#9fb0c4}
.share-row{display:flex;flex-wrap:wrap;gap:8px}
.share-row .btn{color:#fff}
.share-wa{background:#1f8f4e}.share-tg{background:#2a8bc7}.share-fb{background:#1b65d6}
.share-row .btn-soft{color:var(--ink)}
.people-list a{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit}
.invite-note{display:flex;gap:10px;align-items:flex-start;margin:0;padding:12px 14px;border-radius:10px;background:#fff6e5;border:1px solid #f5d28c;font-size:14px;color:var(--ink)}
.exam-cta{display:block;padding:12px 14px;border-radius:10px;border:1px solid #2a4a73;background:rgba(8,26,49,.6);color:#e4ebf3;text-decoration:none;font-size:15px}
.exam-cta b{color:var(--amber)}
.exam-cta:hover{border-color:var(--amber)}
textarea[readonly],input[readonly]{background:var(--bg)}
/* Examen */
.exam-mock{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;border-left:4px solid var(--amber)}
.exam-topics{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.exam-topic{display:flex;flex-direction:column;gap:4px;text-decoration:none;color:inherit;transition:transform .12s,box-shadow .12s}
.exam-topic:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.exam-emoji{font-size:28px}
.exam-hist{min-width:0}
.exam-q{border:1px solid var(--line);display:flex;flex-direction:column;gap:6px;margin:0}
.exam-q legend{font-weight:600;padding:0;margin-bottom:8px;float:left;width:100%}
.exam-q legend+*{clear:both}
.exam-n{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:26px;border-radius:50%;background:var(--navy);color:var(--amber);font:700 13px var(--mono);margin-right:6px}
.exam-opt{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border:1px solid var(--line);border-radius:10px;cursor:pointer}
.exam-opt:hover{border-color:var(--line2)}
.exam-opt:has(input:checked){border-color:var(--teal);background:rgba(15,118,110,.08)}
.exam-opt input{width:auto;min-height:0;margin-top:3px;accent-color:var(--teal)}
.exam-score{display:flex;gap:24px;align-items:center;flex-wrap:wrap;border-left:6px solid var(--teal)}
.exam-score.fail{border-left-color:var(--amber)}
.exam-big{font:700 56px/1 var(--mono);color:var(--navy)}
.exam-big small{font-size:24px;color:var(--muted)}
.exam-q.ok{border-left:4px solid #1f8f4e}.exam-q.bad{border-left:4px solid #c2410c}
.exam-answers li{padding:6px 10px;border-radius:8px}
.exam-answers li.right{background:rgba(31,143,78,.12);font-weight:600}
.exam-answers li.right::before{content:"✓ ";color:#1f8f4e}
.exam-answers li.wrong{background:rgba(194,65,12,.12)}.exam-answers li.wrong>span{text-decoration:line-through}
.exam-why{margin:4px 0 0;padding:10px 12px;border-radius:8px;background:var(--bg);color:var(--ink2)}
.ok-txt{color:#1f8f4e}.bad-txt{color:#c2410c}
[data-theme=dark] .exam-big{color:#fff}
/* Estadísticas (admin) */
.chart{margin:0}
.chart-svg{width:100%;height:auto;display:block;overflow:visible}
.chart-svg .grid{stroke:var(--line);stroke-width:1}
.chart-svg .axis{stroke:var(--line2);stroke-width:1}
.chart-svg .tick{font:11px var(--mono);fill:var(--muted)}
.chart-svg .mark{fill:#00897b}
.chart-svg .hit{fill:transparent}
.chart-svg .bar:hover .mark{fill:#00695c}
.chart-svg .bar:hover .hit{fill:rgba(15,118,110,.07)}
.chart-data summary{cursor:pointer;font-size:13px;color:var(--muted);margin-top:6px}
.chart-table{min-width:0;margin-top:6px}
.hbars{gap:6px}
.hbars li{display:grid;grid-template-columns:minmax(110px,38%) 1fr auto;align-items:center;gap:10px;font-size:14px}
.hb-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hb-track{height:14px;display:block}
.hb-bar{display:block;height:100%;background:#00897b;border-radius:0 4px 4px 0;min-width:2px}
.hbars li:hover .hb-bar{background:#00695c}
.hb-val{font:600 13px var(--mono);min-width:3ch;text-align:right}
.table.compact{min-width:0}.table.compact td{padding:6px 8px}.table .num{text-align:right;font-family:var(--mono)}
.health{gap:6px}
.health li{display:grid;grid-template-columns:24px 250px 1fr;gap:8px;align-items:baseline;padding:8px 10px;border-radius:8px;background:var(--bg)}
.health li.bad{background:#fdecea}
.health small{color:var(--muted);word-break:break-word}
[data-theme=dark] .chart-svg .mark{fill:#1fa595}[data-theme=dark] .hb-bar{background:#1fa595}
[data-theme=dark] .chart-svg .bar:hover .mark{fill:#4fd1c0}[data-theme=dark] .hbars li:hover .hb-bar{background:#4fd1c0}
[data-theme=dark] .health li.bad{background:#3a1d1d}
.anon-brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;font:800 24px var(--display);color:var(--navy);align-self:flex-start}
.anon-brand b{color:var(--amber)}
[data-theme=dark] .anon-brand{color:#fff}
@media (max-width:640px){.health li{grid-template-columns:24px 1fr}.health small{grid-column:2}}
@media (max-width:640px){
  .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kpi b{font-size:24px}
  .chart-svg .tick{font-size:20px}
}
/* Diplomas */
.dip-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}
.dip-thumb{display:flex;flex-direction:column;gap:6px;text-decoration:none;color:inherit}
.dip-thumb img{width:100%;height:auto;border-radius:6px;box-shadow:0 2px 10px rgba(11,31,58,.18);transition:transform .15s}
.dip-thumb:hover img{transform:translateY(-2px) rotate(-.4deg)}
.dip-thumb>span{display:flex;flex-direction:column;font-size:14px}
.dip-levels{display:flex;flex-wrap:wrap;gap:5px;margin:2px 0 4px}
.dip-lv{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:24px;padding:0 6px;border-radius:12px;font:600 12px var(--mono);border:1px solid var(--line2);color:var(--muted);text-decoration:none}
.dip-lv.on{background:linear-gradient(135deg,#f5c86a,#c8952c);border-color:#a8781f;color:#fff}
.dip-lv.next{border:2px solid var(--amber);color:var(--ink)}
.diploma-figure{margin:0}
.diploma-figure img{display:block;width:100%;max-width:1100px;height:auto;margin:0 auto;box-shadow:0 10px 40px rgba(11,31,58,.25);border-radius:4px}
.dip-verify{text-align:center}
@media print{
  @page{size:A4 landscape;margin:0}
  body{background:#fff}
  .topbar,header,footer,.app-foot,.no-print,.flashes,.cookie-note,.theme-float,.terms-bar,.ios-tip,.bottom-nav{display:none!important}
  .diploma-page{padding:0;max-width:none}
  .diploma-figure img{max-width:none;width:100vw;height:100vh;object-fit:contain;box-shadow:none;border-radius:0}
}
/* Conectar mi programa (versión sencilla) */
.conn-head{display:flex;gap:14px;align-items:flex-start}
.conn-head h2{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 4px}
.conn-n{flex:none;width:34px;height:34px;border-radius:50%;background:var(--navy);color:var(--amber);display:grid;place-items:center;font:700 16px var(--mono)}
.conn-opt.best{border:2px solid var(--amber)}
.conn-head .pill{font-size:12px;font-weight:700;padding:3px 10px;border-radius:999px;background:#fff6e5;color:#8a5a00;border:1px solid #f5d28c}
.conn-ok{margin:0;font-size:14px}
.conn-safe{margin:0;padding:10px 12px;border-radius:10px;background:var(--bg);display:flex;gap:8px}
.conn-steps{border:1px solid var(--line);border-radius:10px;padding:10px 14px}
.conn-steps summary{cursor:pointer;font-size:15px}
.conn-steps[open] summary{margin-bottom:10px}
.conn-steps pre{margin:6px 0}
.conn-adv summary{cursor:pointer}
.kv-l{min-width:72px;font-size:13px;color:var(--muted)}
[data-theme=dark] .conn-head .pill{background:#3a2a07;color:#f5c86a;border-color:#6b4d12}
@media (max-width:640px){.connect .copy-row{flex-wrap:wrap}.connect .kv-l{width:100%}.connect .copy-row input{flex:1 1 60%}.conn-head{gap:10px}}
/* Log: editar y buscar */
.log-actions{display:flex;gap:10px;align-items:center}
.log-actions form{margin:0}
.log-search{display:flex;gap:8px;flex-wrap:wrap}
.log-search input{flex:1 1 220px;max-width:360px}
.edit-warn{margin:0;padding:10px 12px;border-radius:10px;background:#fff6e5;border:1px solid #f5d28c;display:flex;gap:8px;color:var(--ink)}
.danger-text{color:#b42318}
[data-theme=dark] .edit-warn{background:#3a2a07;border-color:#6b4d12}
/* Sincronizar todo */
.sync-all{border:2px solid var(--amber)}
.sync-status{gap:6px}
.sync-status li{display:grid;grid-template-columns:110px 1fr;gap:4px 10px;align-items:baseline;padding:8px 10px;border-radius:8px;background:var(--bg)}
.sync-status li b{font-size:14px}
.sync-status li.off b{color:var(--muted)}
.sync-status small{word-break:break-word}
.sync-running{font-weight:700;color:var(--amber);animation:pulse 1.4s ease-in-out infinite}
@keyframes pulse{50%{opacity:.45}}
.btn:disabled,.btn[disabled]{opacity:.5;cursor:not-allowed;filter:grayscale(.3)}
.lotw-auto{display:block;padding:10px 12px;border-radius:10px;background:#fff6e5;border:1px solid #f5d28c;color:var(--ink)}
[data-theme=dark] .lotw-auto{background:#3a2a07;border-color:#6b4d12}
.tqsl-form small .mono{overflow-wrap:anywhere}
/* QSL recibidas */
.qsl-in{gap:12px}
.qsl-in li{display:grid;grid-template-columns:minmax(160px,260px) 1fr;gap:16px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:12px}
.qsl-in-card img{width:100%;height:auto;display:block;border-radius:6px;box-shadow:0 2px 8px rgba(11,31,58,.15)}
.qsl-in-data{display:flex;flex-direction:column;gap:6px}
.qsl-in-data p{margin:0}
.qsl-in-qso{font-size:15px}
.qsl-near{background:#fff7e6;border-left:3px solid #f5a524;padding:6px 10px;border-radius:6px;margin:4px 0}
.qsl-wait{cursor:help}
.qsl-back{text-decoration:none}
.pill-n{display:inline-flex;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:#d92d20;color:#fff;font:700 12px var(--mono);align-items:center;justify-content:center}
@media (max-width:640px){.qsl-in li{grid-template-columns:1fr}}
[data-theme=dark] .qsl-near{background:#3a2c0f}

.check-inline{display:inline-flex !important;flex-direction:row !important;align-items:center;gap:8px;margin:0;font-weight:500}
.check-inline input{width:auto;margin:0}
@media (max-width:700px){.maint-table th:nth-child(3),.maint-table td:nth-child(3){display:none}.maint-table td:first-child{white-space:normal;min-width:0}.maint-table{table-layout:fixed;width:100%}.maint-table th:nth-child(2),.maint-table td:nth-child(2){width:80px;text-align:right}}
.conn-aire{border:1px solid var(--line);border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:8px}.conn-aire h3{margin:0}.qrv-auto{color:var(--teal,#0d9488);font-weight:600}
.qrv-freq{white-space:nowrap}.qrv-auto{display:block}
.qrv-tx{margin-left:4px;font-weight:700;font-size:12px;padding:1px 7px;border-radius:999px}.qrv-tx-none{display:none}.qrv-tx-now{background:#dc2626;color:#fff;animation:txpulse 1.2s ease-in-out infinite}.qrv-tx-recent{background:#fee2e2;color:#991b1b}.qrv-tx-rx{background:#e0f2fe;color:#075985}[data-theme=dark] .qrv-tx-recent{background:#4c1d1d;color:#fecaca}[data-theme=dark] .qrv-tx-rx{background:#0c2d43;color:#bae6fd}@keyframes txpulse{0%,100%{opacity:1}50%{opacity:.55}}@media (prefers-reduced-motion:reduce){.qrv-tx-now{animation:none}}
.cluster-live-bar{align-items:center}.cl-live{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;flex-shrink:0;font-size:14px;font-weight:600}.cl-live .dot{width:10px;height:10px;border-radius:50%;background:#16a34a;animation:livedot 1.6s ease-in-out infinite}.cl-paused .dot{background:#94a3b8;animation:none}.cl-stale .dot,.cl-off .dot{background:#f59e0b;animation:none}@keyframes livedot{0%,100%{box-shadow:0 0 0 0 rgba(22,163,74,.5)}50%{box-shadow:0 0 0 6px rgba(22,163,74,0)}}
.spot-fresh td{animation:spotin 4s ease-out}@keyframes spotin{0%{background:#fde68a}100%{background:transparent}}[data-theme=dark] .spot-fresh td{animation-name:spotin-d}@keyframes spotin-d{0%{background:#5b4a12}100%{background:transparent}}@media (prefers-reduced-motion:reduce){.cl-live .dot,.spot-fresh td{animation:none}}
.cl-mini{vertical-align:middle;margin-right:2px}.cl-mini .dot{width:8px;height:8px}.spots .spot-fresh td{animation:spotin-d 4s ease-out}
[data-theme=dark] pre.code{background:#07101e;color:#e4ebf3;border:1px solid var(--line2)}
[data-theme=dark] .market-status,[data-theme=dark] .exam-n,[data-theme=dark] .conn-n{background:#1f3557}
.challenge-hero{text-align:center;align-items:center}.challenge-emoji{font-size:56px;line-height:1}.meter{width:100%;max-width:480px;height:14px;border-radius:999px;background:var(--soft);overflow:hidden}.meter span{display:block;height:100%;background:linear-gradient(90deg,var(--teal),#16a34a);border-radius:999px}.badges{display:flex;flex-wrap:wrap;gap:6px;font-size:22px}
.year-bars{display:grid;grid-template-columns:repeat(12,1fr);gap:6px;height:140px;align-items:end}.year-bar{display:flex;flex-direction:column;align-items:center;gap:4px;height:100%;justify-content:flex-end}.year-bar span{display:block;width:100%;min-height:3px;background:var(--teal);border-radius:6px 6px 0 0}.year-bar small{font-size:11px;color:var(--muted)}
.year-card-wrap{max-width:420px}.year-card-wrap svg{width:100%;height:auto;border-radius:16px;display:block}
.news-list>li{padding:14px 18px;border-bottom:1px solid var(--line)}.news-list>li:last-child{border-bottom:0}.news-list p{margin:6px 0 0}
.challenge-mini{color:inherit;text-decoration:none}.challenge-mini .meter{max-width:none;height:8px}
.rep-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.rep-filters>input[type=search]{flex:2 1 220px;width:auto}.rep-filters>select{flex:1 1 170px;width:auto}.rep-filters .check{white-space:nowrap}.rep-map{height:380px}
.qc-callout{flex-direction:column;align-items:flex-start;gap:6px}
.layout3 .side-left{max-height:calc(100vh - 96px);overflow-y:auto;scrollbar-width:thin}
.side-group{border-top:1px solid var(--line);padding-top:4px}.side-group>summary{cursor:pointer;list-style:none;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);padding:8px 10px;display:flex;justify-content:space-between}.side-group>summary::-webkit-details-marker{display:none}.side-group>summary::after{content:"▾";transition:transform .15s}.side-group:not([open])>summary::after{transform:rotate(-90deg)}
.side-group a{min-height:38px!important;padding:4px 10px!important;font-size:14.5px}
.menu-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}.menu-tile{display:flex;gap:12px;align-items:center;color:var(--ink);text-decoration:none}.menu-tile:hover{border-color:var(--teal)}.menu-tile span:last-child{display:flex;flex-direction:column;gap:2px}.menu-ico{font-size:28px;line-height:1}
