:root{
  --ag-primary:#005aa3; --ag-primary-2:#007a96; --ag-primary-dark:#003f77;
  --ag-bg:#e9edf2; --ag-body:#f4f6f8; --ag-text:#071b33; --ag-muted:#64748b;
  --ag-card:#ffffff; --ag-panel:#eeeeee; --ag-border:#c8d0d8; --ag-soft:#f8fafc;
  --ag-danger:#dc2626; --ag-success:#15803d; --ag-warning:#facc15;
  --ag-radius:8px; --ag-shadow:0 8px 24px rgba(0,0,0,.12);
}
*{box-sizing:border-box}html{font-size:16px}body.ag-body{margin:0;font-family:Arial,Helvetica,sans-serif;background:var(--ag-body);color:var(--ag-text);line-height:1.4}a{color:inherit;text-decoration:none}img{max-width:100%}.site-header{background:#0f172a;color:#fff;position:sticky;top:0;z-index:20;box-shadow:0 4px 18px rgba(0,0,0,.25)}.topbar{max-width:1200px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:14px 20px}.logo{font-size:25px;font-weight:900;letter-spacing:.3px}.logo span{color:#38bdf8}nav{display:flex;align-items:center;gap:16px}nav a{font-weight:800;color:#e5e7eb}.btn-small{background:#2563eb;padding:8px 12px;border-radius:8px}.menu-btn{display:none;background:#1e293b;color:#fff;border:0;border-radius:8px;padding:9px 12px;font-weight:800}.footer{margin-top:40px;background:#0f172a;color:#cbd5e1;text-align:center;padding:24px}
button,.btn,.read-more{background:linear-gradient(#0b72c9,#00498d);color:#fff;border:1px solid #003f76;border-radius:6px;padding:10px 18px;font-weight:800;box-shadow:0 2px 4px rgba(0,0,0,.18);cursor:pointer;display:inline-block}button:hover,.btn:hover,.read-more:hover{filter:brightness(1.04)}input,select,textarea{font-family:Arial,Helvetica,sans-serif}.alert{background:#fee2e2;color:#991b1b;border:1px solid #fecaca;padding:10px 12px;border-radius:6px;margin-bottom:12px}.success{background:#dcfce7;color:#166534;border:1px solid #bbf7d0;padding:10px 12px;border-radius:6px;margin-bottom:12px}.muted{color:var(--ag-muted)}.hint{display:block;margin-top:5px;color:var(--ag-muted);font-size:12px}.form-page,.admin{max-width:900px;margin:30px auto;padding:0 15px}.box,.widget,.post-card,.single-post{background:#fff;border:1px solid #d7dde4;border-radius:12px;box-shadow:0 8px 22px rgba(15,23,42,.08)}.box{padding:24px}.box label{display:block;font-weight:800;margin:13px 0 6px}.box input,.box select,.box textarea{width:100%;padding:10px;border:1px solid #b7c0c9;border-radius:6px;background:#fff}.form-row.three{display:grid;grid-template-columns:1fr 1.3fr 1fr;gap:10px}.radio-row{display:flex;gap:18px;flex-wrap:wrap;background:#f8fafc;border:1px solid #d7dde4;border-radius:8px;padding:10px}.radio-row label,.check-line{display:flex!important;align-items:center;gap:8px;margin:6px 0!important;font-weight:700}.radio-row input,.check-line input{width:auto}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.setting-card{background:#f8fafc;border:1px solid #d7dde4;border-radius:12px;padding:16px}.setting-card.full{grid-column:1/-1}.setting-card h3{margin:0 0 10px}.featured-strip{max-width:1200px;margin:22px auto 0;padding:22px;background:linear-gradient(135deg,#0f172a,#1e40af);color:#fff;border-radius:18px;display:flex;align-items:center;justify-content:space-between;gap:20px}.featured-strip strong{color:#facc15}.featured-strip h1{margin:6px 0;font-size:30px}.layout{max-width:1200px;margin:24px auto;display:grid;grid-template-columns:1fr 320px;gap:24px;padding:0 20px}.post-card{display:grid;grid-template-columns:230px 1fr;overflow:hidden;margin-bottom:18px}.cover{width:100%;height:100%;min-height:170px;object-fit:cover;background:#cbd5e1}.post-body{padding:18px}.post-body h2{margin:0 0 9px}.meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:14px;color:var(--ag-muted);margin-bottom:10px}.meta img,.user-mini img{width:28px;height:28px;border-radius:50%;object-fit:cover}.post-body p{line-height:1.6}.sidebar{display:flex;flex-direction:column;gap:16px}.widget{padding:18px}.widget h3{margin:0 0 13px;padding-bottom:8px;border-bottom:2px solid #e5e7eb}.widget ul{list-style:none;margin:0;padding:0}.widget li{padding:8px 0;border-bottom:1px solid #f1f5f9}.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.stats-grid div{background:#f8fafc;border:1px solid #e5e7eb;border-radius:10px;padding:10px;text-align:center}.stats-grid b{display:block;color:#2563eb;font-size:22px}.tags{display:flex;gap:8px;flex-wrap:wrap}.tags span{background:#e0f2fe;color:#0369a1;padding:7px 10px;border-radius:999px;font-weight:800;font-size:13px}
/* Perfil clásico profesional */
.profile-body-spacer{padding-top:0}.portal-shell{max-width:1180px;margin:0 auto 18px;background:#00549b;border-left:14px solid #1d5c93;border-right:14px solid #1d5c93;border-bottom:16px solid #1d5c93;border-radius:0 0 14px 14px;overflow:hidden;box-shadow:0 10px 28px rgba(0,0,0,.18)}.portal-tabs{min-height:36px;background:linear-gradient(#00809b,#006e8b);display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 12px}.portal-tabs-left{display:flex;min-height:36px}.portal-tabs a{color:#fff;font-weight:800;font-size:14px;padding:10px 20px;display:flex;align-items:center;border-left:1px solid rgba(255,255,255,.13)}.portal-tabs a:hover,.portal-tabs a.active{background:rgba(255,255,255,.17)}.portal-filter{display:flex;align-items:center;gap:10px;color:#fff;font-size:13px;font-weight:800;white-space:nowrap}.portal-filter select{width:240px;height:28px;padding:3px 8px;border-radius:4px;border:1px solid #cbd5e1;background:#fff;color:#111}.profile-classic{background:#fff;padding:12px}.profile-classic-grid{display:grid;grid-template-columns:minmax(0,1fr) 294px;gap:22px;align-items:start}.profile-main-panel{background:#e9e9e9;border:1px solid #c8c8c8;min-height:405px;padding:0 0 28px}.profile-tabs{display:flex;align-items:center;border-bottom:1px solid #c7c7c7;margin:0 0 20px;background:#f6f6f6;position:relative;overflow-x:auto}.profile-tabs:after{content:'🔒';margin-left:auto;color:#c9c9c9;font-size:20px;padding-right:14px}.profile-tabs a{padding:12px 22px;font-weight:800;color:#003c76;text-decoration:underline;border-right:1px solid transparent;white-space:nowrap}.profile-tabs a.active{background:#fff;color:#000;text-decoration:none;border:1px solid #c7c7c7;border-bottom-color:#fff;margin-bottom:-1px}.classic-message{max-width:650px;margin:0 auto 12px}.profile-form-classic{max-width:650px;margin:0 auto}.profile-form-classic .field{display:grid;grid-template-columns:185px minmax(0,1fr);gap:14px;align-items:center;margin:14px 0}.profile-form-classic label{font-weight:800;text-align:right;margin:0}.profile-form-classic input,.profile-form-classic select,.profile-form-classic textarea{border:1px solid #999;border-radius:2px;padding:4px 6px;background:#fff;font-size:14px;max-width:100%}.profile-form-classic input[type=email],.profile-form-classic input[type=text],.profile-form-classic input[type=password],.profile-form-classic select{height:25px}.profile-form-classic textarea{height:68px;resize:vertical}.profile-form-classic .radio-row{background:transparent;border:0;padding:0;gap:10px}.profile-form-classic .radio-row label{font-weight:400;text-align:left;display:inline-flex!important;margin:0!important}.profile-form-classic .inline-date{display:flex;gap:4px;flex-wrap:wrap}.profile-form-classic .inline-date select{width:auto}.profile-form-classic .signature-label small{display:block;font-weight:400;font-size:12px}.profile-actions{text-align:center;margin-top:22px}.profile-actions button,.profile-actions a{background:linear-gradient(#086fca,#00498d);color:#fff;border:1px solid #003f76;border-radius:5px;padding:11px 24px;font-weight:800;box-shadow:0 2px 4px rgba(0,0,0,.24);display:inline-block;margin:0 3px}.profile-side{background:#fff}.avatar-card{background:#ffffc9;border:1px solid #f0efb6;margin-bottom:28px}.avatar-card h3{font-size:20px;font-weight:400;margin:8px 10px 14px}.avatar-frame{text-align:center;padding-bottom:10px}.avatar-frame img{width:148px;height:148px;object-fit:cover;border:1px solid #cfcfcf;background:#fff}.avatar-edit{display:block;background:#e8e6ad;border-top:1px solid #eceab8;text-align:center;padding:8px;font-size:13px;color:#004c82}.profile-complete h3{font-size:16px;margin:0 0 8px;color:#000}.progressbar{height:24px;background:#cfcfcf;position:relative;overflow:hidden}.progressbar span{display:block;height:100%;background:repeating-linear-gradient(135deg,#0e9be5 0 16px,#0a74b7 16px 22px);border:1px solid #0870ad}.profile-note{font-size:12px;color:#666;margin-top:10px;line-height:1.4}.classic-footer-links{background:#00549b;color:#fff;text-align:center;padding:10px 8px;font-size:13px}.classic-footer-links a{color:#fff}.classic-powered{text-align:center;color:#666;font-size:12px;margin:10px auto 18px}.profile-empty{padding:25px;text-align:center;color:#555}.blocked-list.classic{max-width:650px;margin:0 auto;display:flex;flex-direction:column;gap:10px}.blocked-item{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:12px;background:#fff;border:1px solid #c8c8c8;padding:12px}.blocked-item img{width:42px;height:42px;border-radius:50%;object-fit:cover}.signature-box{max-width:650px;margin:20px auto 0;padding:12px;background:#f8fafc;border-left:4px solid #005aa3}.single{max-width:900px;margin:30px auto;padding:0 20px}.single-post{padding:24px}.single-cover{width:100%;max-height:380px;object-fit:cover;border-radius:12px}.article-body{font-size:18px;line-height:1.75}
@media(max-width:850px){.menu-btn{display:block}nav{display:none;width:100%;flex-direction:column;align-items:flex-start;background:#111827;margin-top:12px;padding:12px;border-radius:12px}nav.active{display:flex}.topbar{flex-wrap:wrap}.featured-strip{margin:14px 12px;flex-direction:column;align-items:flex-start}.layout{grid-template-columns:1fr}.post-card{grid-template-columns:1fr}.cover{height:210px}.portal-shell{border:0;border-radius:0;margin:0;background:#00549b}.portal-tabs{height:auto;align-items:stretch;flex-direction:column;padding:0}.portal-tabs-left{width:100%;display:grid;grid-template-columns:1fr 1fr}.portal-tabs a{justify-content:center;border-top:1px solid rgba(255,255,255,.12);padding:11px 8px}.portal-filter{width:100%;padding:10px;justify-content:center;flex-direction:column;gap:6px}.portal-filter select{width:100%;max-width:340px}.profile-classic{padding:10px}.profile-classic-grid{grid-template-columns:1fr}.profile-side{order:-1;display:grid;grid-template-columns:1fr 1fr;gap:12px}.avatar-card{margin:0}.profile-main-panel{min-height:auto}.profile-tabs a{padding:12px}.profile-form-classic{max-width:100%;padding:0 12px}.profile-form-classic .field{grid-template-columns:1fr;gap:5px;margin:12px 0}.profile-form-classic label{text-align:left}.profile-actions{text-align:left}.blocked-item{grid-template-columns:42px 1fr}.blocked-item form{grid-column:1/-1}.admin-grid,.form-row.three{grid-template-columns:1fr}}
@media(max-width:520px){.profile-side{grid-template-columns:1fr}.portal-tabs-left{grid-template-columns:1fr}.profile-actions button,.profile-actions a{width:100%;text-align:center;margin:5px 0}.box{padding:18px}.featured-strip h1{font-size:24px}}
/* Mejoras ejecutivas RadioaficionadosClub Platform - auditoría 2026 */
.page-hero.executive{max-width:1200px;margin:24px auto;padding:34px 28px;border-radius:22px;background:linear-gradient(135deg,#071b33,#0b5ea8 58%,#0ea5b7);color:#fff;box-shadow:0 18px 44px rgba(15,23,42,.18)}
.page-hero.executive.compact{margin-top:18px}.eyebrow{display:inline-flex;letter-spacing:.12em;text-transform:uppercase;font-size:12px;font-weight:900;color:#bae6fd;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);padding:6px 10px;border-radius:999px}.page-hero h1{margin:12px 0 8px;font-size:clamp(28px,4vw,44px);line-height:1.05}.page-hero p{max-width:760px;margin:0;color:#e0f2fe;font-size:17px}.executive-wrap{max-width:1200px;margin:24px auto;padding:0 20px}.kpi-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px;margin-bottom:22px}.kpi-grid article{background:#fff;border:1px solid #dce4ec;border-radius:18px;padding:18px;text-align:center;box-shadow:0 10px 28px rgba(15,23,42,.08)}.kpi-grid b{display:block;color:#0b5ea8;font-size:30px;line-height:1}.kpi-grid span{display:block;margin-top:8px;color:#475569;font-weight:800}.two-panels{display:grid;grid-template-columns:1.3fr .9fr;gap:20px}.panel-card{background:#fff;border:1px solid #dce4ec;border-radius:18px;padding:22px;box-shadow:0 10px 28px rgba(15,23,42,.08)}.panel-card h2,.panel-card h1{margin-top:0}.rank-row,.result-card{display:block;border:1px solid #e2e8f0;border-radius:14px;padding:14px;margin:10px 0;background:#f8fafc}.rank-row{display:flex;justify-content:space-between;gap:12px;align-items:center}.rank-row span,.result-card small,.user-row span{color:#64748b;font-weight:700}.result-card p{margin:8px 0 0;color:#334155}.user-row{display:flex;align-items:center;gap:12px;border-bottom:1px solid #eef2f7;padding:12px 0}.user-row img{width:46px;height:46px;border-radius:50%;object-fit:cover;border:2px solid #e2e8f0}.search-form{display:flex;gap:10px}.search-form input{flex:1;border:1px solid #cbd5e1;border-radius:12px;padding:13px 14px;font-size:16px}.action-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.action-grid a{display:block;background:#f8fafc;border:1px solid #dce4ec;border-radius:14px;padding:18px;text-align:center;font-weight:900;color:#0b5ea8}.site-header nav a[href="/buscar"]{color:#bae6fd}.admin-dashboard .admin-actions{margin-top:20px}
@media(max-width:1000px){.kpi-grid{grid-template-columns:repeat(3,1fr)}.two-panels{grid-template-columns:1fr}.action-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.executive-wrap{padding:0 12px}.page-hero.executive{margin:12px;padding:24px 18px;border-radius:16px}.kpi-grid{grid-template-columns:repeat(2,1fr);gap:10px}.kpi-grid article{padding:14px}.search-form{flex-direction:column}.rank-row{display:block}.action-grid{grid-template-columns:1fr}}

/* Integración EXT / BBCode RadioaficionadosClub Platform */
.bbc-content{overflow-wrap:anywhere}.bbc-content a{color:#075fb0;font-weight:800;text-decoration:underline}.bbc-content .bbc_img_container{margin:14px 0;text-align:center}.bbc-content .bbc_img{max-width:100%;border-radius:14px;border:1px solid #dbe3ec;box-shadow:0 8px 22px rgba(15,23,42,.10)}.bbc_quote{margin:14px 0;padding:14px 16px;background:#f8fafc;border-left:5px solid #0b72c9;border-radius:10px;color:#334155}.bbc_quote .cita{font-weight:900;color:#0f172a;margin-bottom:6px}.code-block,.bbc-content pre{display:block;background:#0f172a;color:#e2e8f0;border-radius:12px;padding:14px;overflow:auto;font-size:14px;line-height:1.55}.video-wrapper{position:relative;width:100%;aspect-ratio:16/9;background:#0f172a;border-radius:16px;overflow:hidden;margin:18px 0}.video-wrapper iframe{position:absolute;inset:0;width:100%;height:100%;border:0}.spoiler{background:#f8fafc;border:1px solid #dbe3ec;border-radius:12px;padding:10px 14px;margin:12px 0}.spoiler summary{font-weight:900;cursor:pointer;color:#0b5ea8}.bbcmsg{border-radius:12px;padding:13px 15px;margin:12px 0;border:1px solid transparent;font-weight:700}.bbc_notice{background:#f8fafc;border-color:#dbe3ec}.bbc_info{background:#e0f2fe;border-color:#bae6fd;color:#075985}.bbc_warning{background:#fef3c7;border-color:#fde68a;color:#92400e}.bbc_error{background:#fee2e2;border-color:#fecaca;color:#991b1b}.bbc_success{background:#dcfce7;border-color:#bbf7d0;color:#166534}.bbctab{width:100%;border-collapse:collapse;margin:14px 0}.bbctab td{border:1px solid #dbe3ec;padding:8px}.signature-preview{margin-top:8px;background:#fff;border:1px dashed #b8c4d2;border-radius:8px;padding:10px}.signature-mini{font-size:13px;background:#f8fafc;border-left:3px solid #0b72c9;padding:8px 10px;margin:8px 0;color:#334155}.bbcode-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.bbcode-grid div{background:#f8fafc;border:1px solid #dce4ec;border-radius:12px;padding:12px}.bbcode-grid code{display:block;color:#0b5ea8;font-weight:900;white-space:normal}.bbcode-grid span{display:block;color:#64748b;margin-top:4px}.demo-preview{border-top:1px solid #e2e8f0;margin-top:16px;padding-top:16px}@media(max-width:700px){.bbcode-grid{grid-template-columns:1fr}.article-body{font-size:16px}.bbc-content .bbc_img{border-radius:10px}}
.taxonomy-grid a span{display:block;color:#64748b;margin-top:6px;font-size:13px}.tag-cloud a{display:inline-flex;gap:6px;align-items:center;background:#e0f2fe;color:#075985;padding:9px 13px;border-radius:999px;font-weight:900}.tag-cloud small{background:#fff;border-radius:999px;padding:1px 6px;color:#64748b}

/* Editor de publicaciones RadioaficionadosClub Platform - BBCode responsive */
.nav-publish{background:#16a34a;color:#fff!important;padding:8px 12px;border-radius:8px}.composer-shell{max-width:1120px;margin:22px auto;padding:0 18px}.composer-topbar{background:linear-gradient(135deg,#06284a,#075da4);color:#fff;border-radius:18px;padding:24px;display:flex;justify-content:space-between;gap:18px;align-items:center;box-shadow:0 16px 36px rgba(15,23,42,.18)}.composer-topbar h1{margin:8px 0 6px;font-size:clamp(26px,4vw,40px)}.composer-topbar p{margin:0;color:#dbeafe}.btn.ghost{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.28)}.composer-accordion,.composer-card{background:#fff;border:1px solid #cfd8e3;border-radius:10px;margin:14px 0;box-shadow:0 8px 20px rgba(15,23,42,.07)}.composer-acc-btn{width:100%;display:flex;justify-content:space-between;align-items:center;text-align:left;background:#fff;color:#10233f;border:0;border-radius:10px;padding:13px 16px;box-shadow:none}.composer-acc-btn:before{content:'▣';color:#0b72c9;margin-right:8px}.composer-acc-btn small{background:#fee2e2;color:#b91c1c;border-radius:4px;padding:2px 5px}.composer-acc-body{display:none;border-top:1px solid #e2e8f0;padding:16px}.composer-accordion.open .composer-acc-body{display:block}.image-uploader input{width:100%;border:1px solid #b6c2d1;border-radius:6px;padding:10px}.cover-preview{margin-top:12px;background:#f1f5f9;border:1px dashed #b6c2d1;border-radius:10px;padding:10px;text-align:center}.cover-preview img{max-height:180px;border-radius:8px;object-fit:cover}.composer-form{background:#e9ecef;border:1px solid #d1d5db;border-radius:12px;padding:16px}.composer-card{padding:16px}.composer-label{display:block;font-size:13px;font-weight:900;color:#0f2d50;margin-bottom:8px;text-transform:uppercase}.composer-title,.composer-card input,.composer-card select,.composer-card textarea{width:100%;border:1px solid #aeb9c8;border-radius:5px;background:#fff;padding:10px;font-size:14px}.char-counter{display:block;text-align:right;color:#64748b;font-size:11px;margin-top:6px}.composer-headline{display:flex;justify-content:space-between;align-items:center;gap:10px}.composer-headline span{font-size:11px;background:#f1f5f9;border:1px solid #dbe3ec;border-radius:999px;padding:4px 8px;color:#64748b}.bb-toolbar{display:flex;gap:4px;flex-wrap:wrap;background:#f8fafc;border:1px solid #cbd5e1;border-bottom:0;border-radius:6px 6px 0 0;padding:7px}.bb-toolbar button{background:#fff;color:#0f172a;border:1px solid #cbd5e1;box-shadow:none;padding:6px 8px;border-radius:4px;font-size:12px}#bbEditor{border-radius:0 0 6px 6px;min-height:330px;font-family:Arial,Helvetica,sans-serif;line-height:1.5}.live-preview-title{font-weight:900;color:#0f2d50;margin:14px 0 6px}.composer-preview{min-height:120px;background:#fff;border:1px dashed #aeb9c8;border-radius:8px;padding:14px}.composer-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.composer-grid.bottom{grid-template-columns:.9fr 1fr}.category-scroll{height:170px;overflow:auto;background:#f8fafc;border:1px solid #b6c2d1;border-radius:6px;padding:6px}.category-scroll label{display:block;padding:6px 8px;border-bottom:1px solid #e2e8f0;font-weight:800}.category-scroll label:hover{background:#e0f2fe}.publish-options label{display:flex;align-items:center;gap:9px;background:#f8fafc;margin:9px 0;padding:10px;border:1px solid #e2e8f0;border-radius:6px;font-weight:800}.publish-options input,.category-scroll input{width:auto}.composer-actions{background:#f8fafc;border:1px solid #dbe3ec;border-radius:10px;margin-top:14px;padding:14px;text-align:right;display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}.btn.light{background:linear-gradient(#fff,#edf2f7);color:#0f172a;border-color:#cbd5e1}.btn.blue{background:linear-gradient(#3b82f6,#1d4ed8)}.btn.green{background:linear-gradient(#22c55e,#15803d)}.btn.danger{background:linear-gradient(#ef4444,#b91c1c)}.post-tools{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.post-tools form{display:inline}.post-status-line{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.post-status-line span{background:#e0f2fe;color:#075985;border:1px solid #bae6fd;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:900}.report-box{margin-top:22px;background:#f8fafc;border:1px solid #dbe3ec;border-radius:12px;padding:12px}.report-box summary{cursor:pointer;font-weight:900;color:#0b5ea8}.report-box select,.report-box textarea{width:100%;margin:8px 0;border:1px solid #cbd5e1;border-radius:6px;padding:9px}.bbcode-grid.compact{grid-template-columns:repeat(3,1fr)}
@media(max-width:850px){.composer-topbar{flex-direction:column;align-items:flex-start}.composer-grid,.composer-grid.bottom{grid-template-columns:1fr}.composer-form{padding:10px}.composer-card{padding:12px}.bbcode-grid.compact{grid-template-columns:1fr 1fr}.composer-actions{justify-content:stretch}.composer-actions .btn{flex:1;text-align:center}#bbEditor{min-height:260px}}
@media(max-width:520px){.composer-shell{padding:0 10px;margin-top:12px}.bb-toolbar button{font-size:11px;padding:6px}.bbcode-grid.compact{grid-template-columns:1fr}.composer-actions{display:grid;grid-template-columns:1fr}.composer-topbar{border-radius:12px;padding:18px}}

/* RadioaficionadosClub Platform v5 - estilo ejecutivo unificado y administración editorial */
.page-shell{max-width:1180px;margin:24px auto;padding:0 18px}.site-header nav a.active{color:#fff;background:rgba(255,255,255,.12);padding:8px 10px;border-radius:8px}.wp-hero,.wp-admin-header{background:linear-gradient(135deg,#0f172a,#0b5ea8);color:#fff;border-radius:18px;padding:26px;display:flex;align-items:center;justify-content:space-between;gap:18px;box-shadow:0 18px 42px rgba(15,23,42,.18)}.wp-hero h1,.wp-admin-header h1{font-size:clamp(28px,4vw,42px);margin:6px 0}.wp-hero p,.wp-admin-header p{margin:0;color:#dbeafe}.hub-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0;background:#fff;border:1px solid #dbe3ec;border-radius:14px;padding:8px;box-shadow:0 10px 26px rgba(15,23,42,.08)}.hub-tabs button{background:#f8fafc;color:#0f172a;border:1px solid #dbe3ec;box-shadow:none}.hub-tabs button.active{background:linear-gradient(#0b72c9,#00498d);color:#fff}.hub-panel{display:none;background:#fff;border:1px solid #dbe3ec;border-radius:18px;padding:22px;box-shadow:0 12px 30px rgba(15,23,42,.08);margin-bottom:18px}.hub-panel.active{display:block}.executive-taxonomy{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.executive-taxonomy article{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:16px}.executive-taxonomy b{display:block;color:#0b5ea8;font-size:18px}.executive-taxonomy span{display:block;margin:8px 0;color:#475569}.executive-taxonomy small{font-weight:900;color:#64748b}.wp-kpis{grid-template-columns:repeat(6,1fr)}
.wp-admin-shell{display:grid;grid-template-columns:260px 1fr;min-height:calc(100vh - 120px);background:#f1f5f9}.wp-admin-side{background:#0f172a;color:#e2e8f0;padding:22px 16px}.admin-brand{display:block;color:#fff;font-size:24px;font-weight:900;margin-bottom:18px}.wp-admin-side nav{display:block}.wp-admin-side nav a{display:block;padding:12px 14px;margin:6px 0;border-radius:10px;color:#cbd5e1;font-weight:900}.wp-admin-side nav a.active,.wp-admin-side nav a:hover{background:#1d4ed8;color:#fff}.wp-admin-main{padding:24px;min-width:0}.wp-card{background:#fff;border:1px solid #dbe3ec;border-radius:18px;padding:20px;margin:18px 0;box-shadow:0 10px 28px rgba(15,23,42,.08)}.wp-card-title{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;border-bottom:1px solid #e2e8f0;padding-bottom:12px;margin-bottom:14px}.wp-card-title h2{margin:0}.wp-card-title small{color:#64748b;font-weight:800}.wp-table-wrap{overflow:auto}.wp-table{width:100%;border-collapse:collapse;min-width:860px}.wp-table th{text-align:left;background:#f8fafc;color:#334155;border-bottom:1px solid #dbe3ec;padding:12px}.wp-table td{border-bottom:1px solid #eef2f7;padding:12px;vertical-align:top}.status-pill{display:inline-block;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:900;background:#e2e8f0;color:#334155}.status-published{background:#dcfce7;color:#166534}.status-draft{background:#fef3c7;color:#92400e}.status-hidden{background:#fee2e2;color:#991b1b}.row-actions{min-width:240px}.row-actions a{font-weight:900;color:#075fb0;margin-right:8px}.row-actions form{display:flex;gap:6px;margin-top:8px}.row-actions select,.report-admin-card select{border:1px solid #cbd5e1;border-radius:8px;padding:7px;background:#fff}.mini-btn{padding:7px 10px;border-radius:8px;font-size:12px}.report-admin-card{display:flex;justify-content:space-between;gap:14px;align-items:center;background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:14px;margin:10px 0}.report-admin-card p{margin:6px 0;color:#475569}.report-admin-card form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.composer-shell.wp-mode{max-width:1180px}.composer-shell.wp-mode .composer-topbar{background:linear-gradient(135deg,#0f172a,#1d4ed8)}.composer-shell.wp-mode .composer-topbar .eyebrow:before{content:'● ';color:#22c55e}.composer-shell.wp-mode .composer-form{background:#f1f5f9;border-radius:18px}.composer-shell.wp-mode .composer-card{border-radius:14px}.composer-shell.wp-mode .composer-actions{position:sticky;bottom:0;z-index:5;box-shadow:0 -8px 24px rgba(15,23,42,.08)}
@media(max-width:900px){.wp-admin-shell{grid-template-columns:1fr}.wp-admin-side{position:relative}.wp-admin-side nav{display:grid;grid-template-columns:repeat(2,1fr);gap:6px}.wp-admin-main{padding:14px}.wp-hero,.wp-admin-header{flex-direction:column;align-items:flex-start}.executive-taxonomy{grid-template-columns:1fr 1fr}.wp-kpis{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.page-shell{padding:0 10px}.hub-tabs{display:grid;grid-template-columns:1fr 1fr}.executive-taxonomy{grid-template-columns:1fr}.wp-admin-side nav{grid-template-columns:1fr}.wp-card{padding:14px}.report-admin-card{display:block}.wp-hero,.wp-admin-header{border-radius:14px;padding:20px}}

/* RadioaficionadosClub Platform v6 - administración WordPress-like y perfiles */
.ag-admin-global{min-height:100%;}.admin-user-mini{display:flex;gap:10px;align-items:center;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:10px;margin:0 0 16px}.admin-user-mini img{width:42px;height:42px;border-radius:50%;object-fit:cover;background:#fff}.admin-user-mini strong{display:block;color:#fff}.admin-user-mini small{display:block;color:#94a3b8;text-transform:capitalize}.wp-admin-main .composer-shell{margin:0;max-width:none}.wp-admin-main .composer-topbar{border-radius:16px}.wp-admin-main .composer-actions{border-radius:14px}.account-pro-grid{align-items:start}.account-pro-panel{overflow:hidden}.account-cover-preview{min-height:245px;background-size:cover;background-position:center;border-radius:18px;margin:0 0 18px;padding:22px;display:flex;align-items:flex-end;gap:18px;color:#fff;position:relative;box-shadow:inset 0 -180px 160px rgba(15,23,42,.82)}.account-avatar-wrap{width:118px;height:118px;border-radius:50%;border:5px solid #fff;background:#fff;overflow:hidden;box-shadow:0 14px 35px rgba(15,23,42,.28);flex:0 0 auto}.account-avatar-wrap img{width:100%;height:100%;object-fit:cover}.account-cover-preview span{font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:#bfdbfe}.account-cover-preview h1{margin:4px 0;font-size:clamp(26px,4vw,42px)}.account-cover-preview p{margin:0;color:#e0f2fe}.account-cover-preview a{color:#fff;text-decoration:underline}.profile-section-title{border-top:1px solid #e2e8f0;margin:18px 0 12px;padding-top:16px}.profile-section-title h2{margin:0;color:#0f172a}.profile-section-title p{margin:5px 0 0;color:#64748b}.account-media-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.account-media-grid label{background:#f8fafc;border:1px solid #dbe3ec;border-radius:14px;padding:14px;font-weight:900;color:#0f2d50}.account-media-grid small{display:block;margin:5px 0 10px;color:#64748b;font-weight:700}.account-pro-form input,.account-pro-form select,.account-pro-form textarea,.wp-card input,.wp-card textarea{width:100%;border:1px solid #cbd5e1;border-radius:10px;padding:10px;background:#fff}.birth-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.public-profile-hero{min-height:300px;background-size:cover;background-position:center;border-radius:22px;padding:28px;display:flex;align-items:flex-end;gap:22px;color:#fff;box-shadow:0 20px 45px rgba(15,23,42,.2)}.public-avatar{width:140px;height:140px;border-radius:50%;border:6px solid #fff;object-fit:cover;background:#fff;box-shadow:0 16px 35px rgba(0,0,0,.25)}.public-profile-hero h1{font-size:clamp(32px,5vw,56px);margin:4px 0}.public-profile-hero p{max-width:760px;color:#e0f2fe}.public-badges{display:flex;gap:8px;flex-wrap:wrap}.public-badges span{background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.24);padding:7px 11px;border-radius:999px;font-weight:900;text-transform:capitalize}.public-profile-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:18px}.profile-public-list{display:grid;grid-template-columns:140px 1fr;gap:10px}.profile-public-list dt{font-weight:900;color:#0f2d50}.profile-public-list dd{margin:0;color:#475569;text-transform:capitalize}.public-post-list{display:grid;gap:10px}.public-post-list a{display:block;background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:14px}.public-post-list strong{display:block;color:#0b5ea8}.public-post-list span{display:block;color:#475569;margin:4px 0}.public-post-list small{font-weight:900;color:#64748b}.profile-tabs{gap:6px;flex-wrap:wrap}.profile-tabs a{border-radius:10px}
@media(max-width:900px){.public-profile-grid{grid-template-columns:1fr}.account-media-grid{grid-template-columns:1fr}.account-cover-preview,.public-profile-hero{align-items:center;flex-direction:column;text-align:center}.wp-admin-main .composer-shell{padding:0}.public-avatar{width:116px;height:116px}.account-avatar-wrap{width:100px;height:100px}.profile-public-list{grid-template-columns:1fr}}
@media(max-width:560px){.account-cover-preview,.public-profile-hero{border-radius:14px;padding:18px}.birth-grid{grid-template-columns:1fr}.public-profile-shell{padding:0 10px}.account-pro-form .field{display:block}.account-pro-form .field label{display:block;margin-bottom:6px}}


/* RadioaficionadosClub Platform v7 - corrección de subida de imágenes y administración estándar */
.upload-note{display:block;margin-top:8px;color:#64748b;font-size:12px;font-weight:700}.admin-user-mini.standard{justify-content:flex-start}.admin-user-mini.standard:before{content:'⚙';width:38px;height:38px;border-radius:10px;background:#1d4ed8;color:#fff;display:grid;place-items:center;font-weight:900}.admin-user-mini.standard img{display:none}.account-media-grid input[type=file]{padding:9px;background:#fff}.account-cover-preview img[src=''],.public-avatar[src='']{content:url('/assets/img/avatar-default.svg')}


/* V8 Perfil público/cuenta: editor visual de avatar y portada */
.avatar-profile-link{display:block;text-align:center;padding-bottom:10px}.avatar-profile-link:hover img{outline:3px solid #0b5ea8}.avatar-edit-secondary{background:#f8f7cd;color:#0f2d50;font-size:12px}.image-editor-modal{display:none;position:fixed;inset:0;background:rgba(15,23,42,.72);z-index:9999;align-items:center;justify-content:center;padding:18px}.image-editor-modal.active{display:flex}.image-editor-box{width:min(960px,96vw);background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 30px 90px rgba(0,0,0,.45);border:1px solid #dbe3ec}.image-editor-head{background:linear-gradient(135deg,#0b5ea8,#073763);color:#fff;padding:14px 18px;display:flex;align-items:center;justify-content:space-between}.image-editor-head h3{margin:0;font-size:20px}.image-editor-head button{background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.25);color:#fff;border-radius:10px;font-size:24px;width:40px;height:36px;cursor:pointer}.image-editor-stage{position:relative;background:#eef2ff;overflow:auto;text-align:center}.image-editor-stage canvas{display:block;max-width:100%;margin:auto;cursor:move}.image-crop-box{position:absolute;pointer-events:none;border:3px solid #fff;box-shadow:0 0 0 9999px rgba(15,23,42,.36),0 0 0 1px rgba(0,0,0,.25) inset}.image-editor-tools,.image-editor-actions{display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap;padding:12px 16px;border-top:1px solid #e2e8f0}.editor-help{color:#64748b;font-size:13px;font-weight:700}.image-editor-actions{background:#f8fafc}.btn{border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#0f172a;padding:9px 14px;font-weight:900;cursor:pointer}.btn.blue{background:linear-gradient(#0b74d1,#075ca8);border-color:#075ca8;color:#fff}.account-media-grid input[type=file]{cursor:pointer}@media(max-width:700px){.image-editor-box{width:100vw;border-radius:0}.image-editor-modal{padding:0}.image-editor-tools .btn,.image-editor-actions .btn{flex:1 1 130px}.editor-help{width:100%;text-align:center}.image-editor-stage{max-height:60vh}}

/* RadioaficionadosClub Platform v9 - limpieza lógica, galería y diseño unificado */
.site-header{background:linear-gradient(135deg,#0b2d4a,#075f8f);border-bottom:1px solid rgba(255,255,255,.12)}
.logo{letter-spacing:.2px}.topbar nav a.active,.topbar nav a:hover{background:rgba(255,255,255,.12);border-radius:10px}.topbar nav a{padding:8px 10px;border-radius:10px}
.featured-strip,.wp-admin-header,.wp-hero{background:linear-gradient(135deg,#0b2d4a,#0b74a5)!important;border:1px solid rgba(255,255,255,.12);box-shadow:0 16px 40px rgba(11,45,74,.24)}
.post-card,.wp-card,.profile-main-panel,.profile-side-panel,.photo-upload-card,.photo-card{border:1px solid #d9e2ec;border-radius:18px;box-shadow:0 12px 32px rgba(15,23,42,.08);background:#fff}
.post-card{transition:transform .18s ease,box-shadow .18s ease}.post-card:hover{transform:translateY(-2px);box-shadow:0 18px 42px rgba(15,23,42,.13)}
.post-body h2 a:hover,.public-post-list a:hover strong{color:#075f8f}.btn.green{background:linear-gradient(#13b981,#0f8f63);border-color:#0f8f63;color:#fff}.btn.danger,.mini-btn.danger{background:linear-gradient(#ef4444,#b91c1c);border-color:#991b1b;color:#fff}.mini-btn.danger{margin-top:6px}.empty-state{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:16px;padding:22px;text-align:center;color:#64748b}.empty-state h3{margin:0 0 6px;color:#0f2d50}
.wp-admin-side{background:linear-gradient(180deg,#0b2d4a,#0f172a)}.wp-admin-side nav a{border:1px solid transparent}.wp-admin-side nav a.active,.wp-admin-side nav a:hover{background:#075f8f;border-color:rgba(255,255,255,.15)}
.profile-tabs{background:#fff;border:1px solid #d9e2ec;border-radius:14px;padding:8px;overflow-x:auto}.profile-tabs a{white-space:nowrap}.profile-tabs a.active{background:#075f8f;color:#fff;text-decoration:none}.profile-tabs a:hover{background:#e0f2fe;text-decoration:none}.profile-tabs a.active:hover{background:#075f8f;color:#fff}
.photo-upload-card{padding:18px;margin:16px 0;display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end}.photo-upload-card label{font-weight:900;color:#0f2d50}.photo-upload-card input{display:block;width:100%;margin-top:6px;border:1px solid #cbd5e1;border-radius:10px;padding:10px;background:#fff}.photo-upload-card small{grid-column:1/-1;color:#64748b;font-weight:700}.photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:16px}.photo-card{overflow:hidden}.photo-card img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;background:#e2e8f0}.photo-card div{padding:12px;display:flex;gap:8px;justify-content:space-between;align-items:center}.photo-card strong{font-size:14px;color:#0f2d50}.photo-card form{margin:0}.public-gallery-card{margin-top:18px}.public-photo-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.public-photo-grid a{display:block;border-radius:14px;overflow:hidden;border:1px solid #dbe3ec;background:#e2e8f0}.public-photo-grid img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;transition:transform .18s ease}.public-photo-grid a:hover img{transform:scale(1.04)}
.row-actions form{margin-bottom:0}.admin-brand{letter-spacing:.2px}.admin-user-mini.standard:before{content:'AG'}
@media(max-width:900px){.photo-upload-card{grid-template-columns:1fr}.photo-grid{grid-template-columns:repeat(2,1fr)}.public-photo-grid{grid-template-columns:repeat(2,1fr)}.topbar{align-items:flex-start}.topbar nav a{display:block}}
@media(max-width:560px){.photo-grid,.public-photo-grid{grid-template-columns:1fr}.layout{padding:0 12px}.featured-strip{margin-left:10px;margin-right:10px}.post-card{grid-template-columns:1fr}.post-card .cover{height:190px}.wp-admin-main{padding:10px}.profile-main-panel{padding:10px}}

/* v10: administración separada de cuenta/perfil, estilo WordPress limpio */
.ag-admin-body{background:#f1f5f9;color:#0f172a;}
.admin-only-frame{min-height:100vh;}
.ag-admin-body .wp-admin-shell{min-height:100vh;}
.admin-nav-label{display:block;margin:18px 10px 6px;color:#93c5fd;font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;}
.ag-admin-body .wp-admin-header{border-radius:0 0 18px 18px;}
.ag-admin-body .wp-admin-main{background:#f1f5f9;}
.ag-admin-body .wp-admin-side{box-shadow:8px 0 28px rgba(15,23,42,.14);}
@media(max-width:900px){.ag-admin-body .wp-admin-header{border-radius:16px}.ag-admin-body .wp-admin-side{box-shadow:none}}


/* v11: lógica profesional unificada
   - Publicador igual para usuarios, moderadores y administradores.
   - Administración separada: solo gestión interna, sin cuenta ni perfil.
   - Perfil público y autores enlazados correctamente. */
.author-link{color:#0b5ea8;font-weight:900;text-decoration:none}.author-link:hover{text-decoration:underline}.avatar-link{display:inline-flex;align-items:center}.avatar-link img{transition:transform .15s ease,outline .15s ease}.avatar-link:hover img{transform:scale(1.04);outline:2px solid #0b74a5}.composer-shell{max-width:1180px;margin:26px auto;padding:0 18px}.composer-shell.wp-mode{background:transparent}.composer-topbar{background:linear-gradient(135deg,#0b2d4a,#075f8f);color:#fff;border-radius:22px;padding:24px;display:flex;align-items:center;justify-content:space-between;gap:18px;box-shadow:0 18px 44px rgba(15,23,42,.18);margin-bottom:18px}.composer-topbar h1{margin:4px 0;font-size:clamp(26px,4vw,40px)}.composer-topbar p{margin:0;color:#dbeafe}.composer-topbar .btn.ghost{background:rgba(255,255,255,.12);color:#fff;border-color:rgba(255,255,255,.26)}.composer-card,.composer-accordion{background:#fff;border:1px solid #d9e2ec;border-radius:18px;box-shadow:0 12px 32px rgba(15,23,42,.08);margin-bottom:16px}.composer-acc-btn{width:100%;background:#fff;color:#0f2d50;border:0;border-radius:18px;padding:16px 18px;box-shadow:none;text-align:left;display:flex;justify-content:space-between}.composer-acc-body{padding:0 18px 18px}.composer-form input,.composer-form select,.composer-form textarea{width:100%;border:1px solid #cbd5e1;border-radius:12px;padding:11px;background:#fff}.composer-card{padding:18px}.composer-title{font-size:22px;font-weight:900}.composer-label{display:block;color:#0f2d50;font-weight:900;margin-bottom:8px;letter-spacing:.03em}.bb-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.bb-toolbar button{background:#eef6ff;color:#0b5ea8;border:1px solid #bfdbfe;border-radius:10px;box-shadow:none;padding:8px 10px}.composer-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.composer-grid.bottom{grid-template-columns:1fr 1fr}.category-scroll{max-height:250px;overflow:auto;border:1px solid #e2e8f0;border-radius:12px;padding:8px;background:#f8fafc}.category-scroll label,.publish-options label{display:flex;gap:8px;align-items:center;padding:8px;border-radius:10px;font-weight:800}.category-scroll label:hover,.publish-options label:hover{background:#e0f2fe}.composer-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;background:#fff;border:1px solid #d9e2ec;border-radius:18px;padding:16px;box-shadow:0 12px 32px rgba(15,23,42,.08)}.composer-preview{min-height:120px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:16px}.live-preview-title{margin:12px 0 6px;font-weight:900;color:#0f2d50}.cover-preview img{width:100%;max-height:260px;object-fit:cover;border-radius:14px;border:1px solid #dbe3ec;background:#f1f5f9}.wp-admin-side nav a[href="/publicar"]{display:none}.ag-admin-body .topbar,.ag-admin-body .site-header,.ag-admin-body .footer{display:none}.ag-admin-body .wp-admin-main .composer-shell{max-width:none;margin:0;padding:0}.admin-only-frame .wp-admin-shell{display:grid;grid-template-columns:270px 1fr}.wp-admin-main{min-width:0;padding:22px}.wp-admin-side{min-height:100vh;padding:16px}.wp-admin-side nav{display:block}.wp-admin-side nav a{display:block;margin:5px 0;padding:10px 12px;border-radius:10px;color:#e5e7eb}.admin-brand{display:block;color:#fff;font-size:20px;font-weight:900;margin-bottom:16px}.wp-card{padding:18px}.wp-table-wrap{overflow-x:auto}.wp-table{width:100%;border-collapse:collapse}.wp-table th,.wp-table td{border-bottom:1px solid #e2e8f0;padding:11px;text-align:left;vertical-align:top}.row-actions{display:flex;gap:8px;flex-wrap:wrap}.row-actions form{display:inline-flex;gap:6px;align-items:center}.mini-btn{padding:6px 9px;border-radius:8px;font-size:12px}.user-row{display:flex;gap:10px;align-items:center;padding:10px;border:1px solid #e2e8f0;border-radius:14px;background:#fff;margin-bottom:8px}.user-row:hover{background:#f8fafc}.user-row img{width:46px;height:46px;border-radius:50%;object-fit:cover}.profile-tabs a{font-weight:900}.profile-tabs a[href="/usuario/"]{display:none}@media(max-width:900px){.admin-only-frame .wp-admin-shell{grid-template-columns:1fr}.wp-admin-side{min-height:auto}.wp-admin-main{padding:12px}.composer-topbar{align-items:flex-start;flex-direction:column}.composer-grid,.composer-grid.bottom{grid-template-columns:1fr}.composer-actions{justify-content:stretch}.composer-actions .btn,.composer-actions button{flex:1 1 160px}.row-actions{display:grid}.row-actions form{display:grid}}


/* RadioaficionadosClub Platform - Ajustes administración v12 */
.admin-view-site{display:block;margin:10px 14px 18px;padding:10px 12px;border-radius:10px;background:#eef6ff;color:#0f4f8f;font-weight:700;text-decoration:none;text-align:center}
.btn-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:flex-end}
.admin-form-grid{display:grid;grid-template-columns:1fr 2fr auto;gap:12px;align-items:end}
.admin-form-grid label{display:grid;gap:6px;font-weight:700;color:#1f2937}
.admin-form-grid input,.wp-table input,.wp-table select{width:100%;border:1px solid #d8dee8;border-radius:9px;padding:8px 10px;background:#fff;color:#111827}
.status-banned{background:#fee2e2;color:#991b1b}.status-suspended{background:#fef3c7;color:#92400e}.status-active{background:#dcfce7;color:#166534}
@media(max-width:900px){.admin-form-grid{grid-template-columns:1fr}.wp-table{min-width:850px}.btn-row{justify-content:flex-start}}

/* RadioaficionadosClub Platform v13 - Multimedia, SEO y viralidad */
.help-box{background:#eef6ff;border:1px solid #bfdbfe;border-radius:14px;padding:12px 14px;margin:12px 0;color:#0f172a;line-height:1.55}.admin-form h2{margin-top:22px;border-top:1px solid #e5e7eb;padding-top:18px}.admin-form input[type=file]{padding:12px;background:#fff;border:1px dashed #94a3b8;border-radius:12px;width:100%}.seo-tools-grid{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.viral-actions{border-top:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb;margin:28px 0;padding:16px 0;display:grid;gap:12px}.share-box,.reaction-box{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.share-box a,.reaction-box button{border:1px solid #dbe3ef;background:#fff;border-radius:999px;padding:8px 12px;text-decoration:none;color:#0f172a;font-weight:700}.reaction-box button:hover,.share-box a:hover{background:#eff6ff;border-color:#93c5fd}.post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.post-card img{width:100%;height:170px;object-fit:cover;border-radius:14px}.hero.small{padding:28px 0}.admin-view-site{display:block;background:#16a34a;color:#fff!important;text-align:center;margin:10px 12px;padding:10px;border-radius:10px;text-decoration:none;font-weight:800}.image-uploader input[type=file]{margin-top:10px}.single-cover{background:#f1f5f9}@media(max-width:900px){.post-grid{grid-template-columns:1fr}.share-box,.reaction-box{align-items:stretch}.share-box a,.reaction-box button{width:100%;text-align:center}.seo-tools-grid .btn{width:100%;text-align:center}}

/* RadioaficionadosClub Platform v14 - diseño unificado, privacidad y seguridad visual */
.executive-wrap.trends-wrap{max-width:1200px;margin:24px auto;padding:0 20px}.ag-post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.ag-trend-card{background:#fff;border:1px solid #dbe3ec;border-radius:18px;overflow:hidden;box-shadow:0 12px 32px rgba(15,23,42,.08);display:flex;flex-direction:column}.ag-trend-cover{display:block;background:#e2e8f0}.ag-trend-cover img{display:block;width:100%;height:190px;object-fit:cover}.ag-trend-body{padding:18px;display:flex;flex-direction:column;gap:9px;flex:1}.ag-trend-body h2{margin:0;font-size:20px;line-height:1.2}.ag-trend-body p{margin:0;color:#475569;line-height:1.55}.ag-trend-body small{margin-top:auto;color:#64748b;font-weight:800}.trends-hero{max-width:1200px}.settings-form .wp-card-title.inner{margin-top:26px}.settings-grid{display:grid;gap:14px}.settings-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.settings-grid label{display:block;font-weight:900;color:#0f2d50}.settings-grid input,.settings-grid textarea{margin-top:7px;width:100%;border:1px solid #cbd5e1;border-radius:10px;padding:10px;background:#fff}.form-actions{margin-top:18px}.legal-wrap{max-width:1000px}.legal-card h2{margin-top:22px;color:#0f2d50}.legal-card p{color:#334155;line-height:1.7}.footer{display:flex;gap:12px;align-items:center;justify-content:center;flex-wrap:wrap}.footer-links{display:flex;gap:12px;flex-wrap:wrap}.footer-links a{color:#bae6fd;font-weight:800}.cookie-banner{position:fixed;left:18px;right:18px;bottom:18px;z-index:60;max-width:1120px;margin:auto;background:#0f172a;color:#e2e8f0;border:1px solid rgba(255,255,255,.12);border-radius:18px;padding:16px;box-shadow:0 22px 60px rgba(0,0,0,.35);display:flex;justify-content:space-between;gap:18px;align-items:center}.cookie-banner[hidden]{display:none}.cookie-banner p{margin:4px 0 6px;color:#cbd5e1}.cookie-banner a{color:#7dd3fc;text-decoration:underline}.cookie-actions{display:flex;gap:10px;flex-wrap:wrap}.btn.light{background:#fff;color:#0f172a;border-color:#dbe3ec}.logo-img img{max-height:44px;width:auto;display:block}.wp-admin-header,.wp-card{max-width:100%}.admin-only-frame .wp-admin-shell,.ag-admin-body .wp-admin-shell{width:100%}@media(max-width:1000px){.ag-post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-grid.two,.settings-grid.three{grid-template-columns:1fr}}@media(max-width:620px){.executive-wrap.trends-wrap{padding:0 12px}.ag-post-grid{grid-template-columns:1fr}.cookie-banner{left:10px;right:10px;bottom:10px;display:block}.cookie-actions{margin-top:12px}.cookie-actions .btn,.cookie-actions button{width:100%;text-align:center}.footer{display:block}.footer-links{justify-content:center;margin-top:8px}}

/* RadioaficionadosClub Platform v15 - unificación final, privacidad, seguridad y páginas virales */
.executive,.page-hero.executive,.featured-strip{max-width:1200px;margin:24px auto 0;padding-left:24px;padding-right:24px}.executive-wrap,.layout,.composer-shell,.form-page,.admin,.legal-wrap,.trends-wrap{max-width:1200px!important;margin-left:auto!important;margin-right:auto!important}.unified-page{padding:0 20px}.wp-admin-shell{background:#f3f6f9}.wp-admin-main{max-width:1280px;margin:0 auto;width:100%}.wp-admin-header{background:linear-gradient(135deg,#0f172a,#075985);color:#fff;border-radius:20px;padding:24px;margin-bottom:18px;display:flex;justify-content:space-between;gap:16px;align-items:center;box-shadow:0 18px 46px rgba(15,23,42,.17)}.wp-admin-header h1{margin:4px 0;font-size:clamp(26px,4vw,38px)}.wp-admin-header p{margin:0;color:#dbeafe}.eyebrow{display:inline-block;text-transform:uppercase;letter-spacing:.08em;font-weight:900;color:#38bdf8;font-size:12px}.wp-card{background:#fff;border:1px solid #dbe3ec;border-radius:18px;box-shadow:0 12px 30px rgba(15,23,42,.08);padding:20px;margin-bottom:18px}.wp-card-title{margin:0 0 14px;color:#0f2d50}.ag-admin-grid{display:grid;gap:16px;margin-bottom:18px}.ag-admin-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.metric{text-align:center}.metric b{display:block;font-size:34px;color:#075985}.metric span{color:#64748b;font-weight:800}.metric.warning b{color:#b45309}.metric.danger b{color:#dc2626}.security-checklist{display:grid;gap:10px}.security-checklist label{display:flex;gap:10px;align-items:flex-start;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:12px;font-weight:800;color:#0f2d50}.badge{display:inline-block;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:900}.severity-info{background:#dbeafe;color:#1e40af}.severity-warning{background:#fef3c7;color:#92400e}.severity-critical{background:#fee2e2;color:#991b1b}.full-label{display:block;margin-top:14px;font-weight:900;color:#0f2d50}.full-label textarea,.privacy-request-form textarea{width:100%;margin-top:7px;border:1px solid #cbd5e1;border-radius:10px;padding:10px}.inline-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.request-card{border-left:6px solid #0284c7}.privacy-request-form label{display:block;font-weight:900;color:#0f2d50;margin-top:10px}.privacy-request-form input,.privacy-request-form select{width:100%;margin-top:7px;border:1px solid #cbd5e1;border-radius:10px;padding:10px}.site-header nav a.active,.wp-admin-side nav a.active{background:rgba(56,189,248,.16);color:#fff}.nav-publish{background:#2563eb;padding:8px 12px;border-radius:9px}.single-post,.post-card,.ag-trend-card,.profile-classic,.box{border-radius:18px}.post-card{align-items:stretch}.post-card .cover{border-radius:0}.post-body h2 a,.ag-trend-body h2 a{color:#0f2d50}.status-pill{display:inline-flex;align-items:center;width:max-content;background:#e0f2fe;color:#075985;border-radius:999px;padding:6px 10px;font-weight:900;font-size:12px}.viral-actions{background:#f8fafc;border:1px solid #e2e8f0;border-radius:18px;padding:16px}.footer{margin-top:44px}.settings-grid select{margin-top:7px;width:100%;border:1px solid #cbd5e1;border-radius:10px;padding:10px;background:#fff}.admin-user-mini.standard{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:12px;padding:12px;margin-bottom:12px;color:#e2e8f0}.admin-user-mini small{display:block;color:#bae6fd;margin-top:4px}.admin-nav-label{display:block;color:#93c5fd;text-transform:uppercase;font-size:11px;font-weight:900;letter-spacing:.08em;margin:14px 12px 6px}.wp-table td,.wp-table th{font-size:14px}@media(max-width:900px){.executive,.page-hero.executive,.featured-strip{margin-top:14px;border-radius:0}.layout{grid-template-columns:1fr}.ag-admin-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}.wp-admin-header{align-items:flex-start;flex-direction:column;border-radius:14px}.wp-admin-header .btn{width:100%;text-align:center}.post-card{grid-template-columns:1fr}.post-card .cover{height:210px}.topbar{align-items:flex-start}.site-header nav{display:none;position:absolute;left:0;right:0;top:62px;background:#0f172a;padding:14px 20px;flex-direction:column;align-items:stretch}.site-header nav.open{display:flex}.menu-btn{display:block}}@media(max-width:620px){.ag-admin-grid.four{grid-template-columns:1fr}.unified-page,.executive-wrap.trends-wrap{padding:0 12px}.wp-card{padding:15px}.wp-table{min-width:760px}.settings-grid.two,.settings-grid.three{grid-template-columns:1fr!important}}

/* =========================================================
   RadioaficionadosClub Platform v16 - Portada definitiva tipo WordPress
   Autor: Rodrigo Reyes / RadioaficionadosClub.cl
   Qué corrige: portada adaptativa, avatar redondo, BBCode limpio,
   tarjetas con sombra suave y ancho consistente.
   ========================================================= */
body.ag-body{background:#f5f8fc;color:#092044;font-family:Arial,Helvetica,sans-serif}.site-header{background:linear-gradient(90deg,#061a39,#082b61);box-shadow:0 8px 24px rgba(4,22,49,.18)}.topbar{max-width:1240px;padding:13px 22px}.logo{font-size:28px}.logo:before{content:'◖';display:inline-block;color:#1d8cff;margin-right:8px}.logo span{color:#1d8cff}nav{gap:10px}nav a{padding:11px 13px;border-radius:8px;color:#eaf2ff}nav a.active,nav a:hover{background:rgba(37,99,235,.28);color:#fff}.nav-publish,.btn-small{background:#0b63db!important;color:#fff!important;border-radius:8px;box-shadow:0 5px 14px rgba(11,99,219,.26)}
.featured-strip.ag-hero{max-width:1240px;margin:24px auto 0;padding:34px 30px;border-radius:12px;background:linear-gradient(100deg,#063b9b 0%,#0759d7 54%,#0062ff 100%);box-shadow:0 12px 30px rgba(9,51,130,.18);position:relative;overflow:hidden}.featured-strip.ag-hero:after{content:'';position:absolute;right:0;top:0;bottom:0;width:48%;background:radial-gradient(circle at 70% 35%,rgba(255,255,255,.20),transparent 28%),linear-gradient(135deg,transparent 0 35%,rgba(255,255,255,.08) 35% 100%);pointer-events:none}.ag-hero .hero-copy{position:relative;z-index:1}.featured-strip strong{display:block;color:#d7ff4f;font-size:14px;margin-bottom:6px}.featured-strip h1{font-size:31px;line-height:1.15;margin:0 0 8px}.featured-strip p{font-size:17px;margin:0;font-weight:700;color:#f1f5ff}.featured-strip .hero-btn{position:relative;z-index:2;background:#fff;color:#064ab3;border-radius:8px;padding:15px 26px;font-weight:900;box-shadow:0 8px 18px rgba(0,0,0,.12)}
.layout.ag-home-layout{max-width:1240px;grid-template-columns:minmax(0,1fr) 350px;gap:22px;margin:24px auto;padding:0 20px}.ag-feed,.ag-sidebar .widget{background:#fff;border:1px solid #dde6f1;border-radius:12px;box-shadow:0 8px 24px rgba(10,31,68,.06)}.ag-feed{padding:26px}.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.section-title{font-size:25px;margin:0;color:#061b3d}.section-head a{color:#005bd4;font-weight:900}.section-title:before{content:'▣';color:#005bd4;margin-right:10px;font-size:22px}.ag-post-card{display:grid;grid-template-columns:250px minmax(0,1fr);min-height:270px;border:1px solid #dbe4ef;border-radius:14px;box-shadow:0 8px 28px rgba(8,28,63,.08);overflow:hidden;background:#fff;margin-bottom:26px;transition:transform .18s ease,box-shadow .18s ease}.ag-post-card:hover{transform:translateY(-2px);box-shadow:0 12px 34px rgba(8,28,63,.12)}.post-cover-link{display:block;height:100%;min-height:270px;background:#dbeafe}.post-cover,.cover{display:block;width:100%;height:100%;min-height:270px;object-fit:cover;object-position:center;background:#dbeafe}.ag-post-body{padding:26px 28px;display:flex;flex-direction:column;gap:16px}.post-author-row{display:grid;grid-template-columns:72px minmax(0,1fr);gap:18px;align-items:center}.post-avatar img,.meta .post-avatar img,.meta img{width:64px!important;height:64px!important;border-radius:999px!important;object-fit:cover!important;border:4px solid #fff;box-shadow:0 6px 14px rgba(10,31,68,.18);background:#e8f0ff}.ag-post-body h2{font-size:24px;line-height:1.22;margin:0 0 10px;color:#07295d}.ag-post-body h2 a:hover{color:#005bd4}.post-meta{font-size:14px;color:#55708f;gap:9px}.pill{background:#e8f1ff;color:#005bd4;border-radius:999px;padding:5px 11px;font-weight:800}.post-excerpt{font-size:17px;line-height:1.75;margin:0;color:#16365f}.post-excerpt strong{font-weight:900}.post-excerpt em{font-style:italic}.post-card-footer{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:16px}.post-mini-actions{display:flex;gap:18px;color:#365a89}.read-more{background:linear-gradient(180deg,#0b72ea,#0050b8);border:0;border-radius:7px;padding:13px 22px;box-shadow:0 7px 14px rgba(0,84,184,.25)}.signature-mini{background:#f8fbff;border-left:4px solid #b7d2ff;padding:10px 12px;border-radius:8px;color:#55708f}.widget{border:1px solid #dde6f1!important;border-radius:12px!important;box-shadow:0 8px 24px rgba(10,31,68,.06)!important}.widget h3{font-size:20px;color:#0b244b;border-bottom:1px solid #dbe4ef}.stats-grid{gap:13px}.stats-grid div{padding:16px 10px;background:#f9fbff;border-color:#dbe4ef}.stats-grid b{font-size:24px;color:#005bd4}.user-mini{display:flex;align-items:center;gap:8px}.user-mini img{width:26px;height:26px;border-radius:50%;object-fit:cover}.widget small{display:block;color:#64809e}.tags span{background:#e9eff7;color:#0053bb;border-radius:999px;font-size:12px}.footer{background:#061a39;margin-top:32px}.footer-links{display:flex;justify-content:center;gap:20px;margin-top:8px}.footer-links a{color:#fff}.single{max-width:1040px;margin:24px auto;padding:0 20px}.single-post{padding:0;overflow:hidden}.single-cover{width:100%;height:360px;object-fit:cover;object-position:center;background:#dbeafe}.single-post h1,.single-post .meta,.single-post .post-tools,.single-post .article-body,.single-post .viral-actions,.single-post .signature-box,.single-post .report-box,.single-post .post-status-line{margin-left:32px;margin-right:32px}.article-body{font-size:18px;line-height:1.85}.bbc-content strong{font-weight:900}.bbc-content a{color:#005bd4;text-decoration:underline}.bbc-content blockquote{border-left:4px solid #8fb9ff;background:#f8fbff;margin:16px 0;padding:12px 16px;border-radius:8px}
@media (max-width:980px){.layout.ag-home-layout{grid-template-columns:1fr}.ag-post-card{grid-template-columns:210px 1fr}.ag-sidebar{display:grid;grid-template-columns:1fr 1fr}.featured-strip.ag-hero{margin-left:20px;margin-right:20px}.featured-strip h1{font-size:26px}}@media (max-width:720px){.topbar{align-items:flex-start}.menu-btn{display:block}nav{display:none;width:100%;flex-direction:column;align-items:stretch;margin-top:12px}nav.show{display:flex}.featured-strip.ag-hero{display:block;padding:26px 20px}.featured-strip .hero-btn{display:inline-block;margin-top:18px}.ag-feed{padding:16px}.ag-post-card{grid-template-columns:1fr}.post-cover-link,.post-cover,.cover{min-height:220px;height:220px}.post-author-row{grid-template-columns:56px 1fr}.post-avatar img,.meta img{width:52px!important;height:52px!important}.ag-post-body{padding:20px}.ag-post-body h2{font-size:21px}.post-excerpt{font-size:16px}.post-card-footer{align-items:flex-start;flex-direction:column}.ag-sidebar{display:flex}.layout.ag-home-layout{padding:0 14px}.single-cover{height:240px}.single-post h1,.single-post .meta,.single-post .post-tools,.single-post .article-body,.single-post .viral-actions,.single-post .signature-box,.single-post .report-box,.single-post .post-status-line{margin-left:18px;margin-right:18px}}


/* RadioaficionadosClub Platform v17: corrección de formularios de Cuenta/Perfil y privacidad pública */
.profile-form-classic .field,
.account-pro-form .field{align-items:flex-start;gap:14px;margin-bottom:16px;}
.profile-form-classic .field>label,
.account-pro-form .field>label{padding-top:12px;line-height:1.3;}
.profile-form-classic input,
.profile-form-classic select,
.profile-form-classic textarea,
.account-pro-form input,
.account-pro-form select,
.account-pro-form textarea{
  width:100%;min-height:46px;border:1px solid #cbd5e1;border-radius:12px;background:#fff;color:#0f172a;
  padding:11px 14px;font-size:15px;line-height:1.45;box-sizing:border-box;box-shadow:inset 0 1px 0 rgba(255,255,255,.65);
}
.profile-form-classic select,
.account-pro-form select{
  min-height:48px;line-height:1.45;padding:11px 44px 11px 14px;appearance:none;-webkit-appearance:none;-moz-appearance:none;
  background-image:linear-gradient(45deg,transparent 50%,#0f2d50 50%),linear-gradient(135deg,#0f2d50 50%,transparent 50%),linear-gradient(to right,#e2e8f0,#e2e8f0);
  background-position:calc(100% - 20px) 20px,calc(100% - 14px) 20px,calc(100% - 42px) 10px;
  background-size:6px 6px,6px 6px,1px 28px;background-repeat:no-repeat;
}
.profile-form-classic select:focus,
.account-pro-form select:focus,
.profile-form-classic input:focus,
.account-pro-form input:focus,
.profile-form-classic textarea:focus,
.account-pro-form textarea:focus{outline:3px solid rgba(37,99,235,.18);border-color:#2563eb;}
.birth-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%;}
.privacy-toggle-card{display:flex!important;align-items:flex-start;gap:14px;background:#f8fbff;border:1px solid #dbeafe;border-left:5px solid #2563eb;border-radius:16px;padding:16px 18px;margin:10px 0 22px;box-shadow:0 8px 22px rgba(15,23,42,.06);cursor:pointer;}
.privacy-toggle-card input{width:22px!important;height:22px!important;min-height:22px!important;flex:0 0 22px;margin-top:3px;accent-color:#2563eb;}
.privacy-toggle-card strong{display:block;color:#0f2d50;font-size:16px;margin-bottom:4px;}
.privacy-toggle-card small{display:block;color:#52677f;line-height:1.5;font-weight:600;}
.profile-private-card{max-width:780px;margin:38px auto;padding:34px;text-align:center;}
.profile-private-card h1{color:#0f2d50;margin:8px 0 10px;}
.profile-private-card p{color:#52677f;line-height:1.7;margin-bottom:20px;}
@media(max-width:760px){.profile-form-classic .field,.account-pro-form .field{display:block}.profile-form-classic .field>label,.account-pro-form .field>label{display:block;margin-bottom:7px;padding-top:0}.birth-grid{grid-template-columns:1fr}.privacy-toggle-card{padding:14px}}

/* =========================================================
   RadioaficionadosClub Platform v18 - Móvil profesional y enlaces completos
   Qué corrige: menú hamburguesa en celular, overlay, enlaces de
   Top Usuarios/Categorías/Etiquetas y tarjetas táctiles.
   ========================================================= */
.menu-overlay{position:fixed;inset:0;background:rgba(2,10,23,.48);backdrop-filter:blur(2px);z-index:18}.menu-overlay[hidden]{display:none!important}.menu-is-open{overflow:hidden}.menu-btn{align-items:center;gap:9px}.menu-icon,.menu-icon:before,.menu-icon:after{display:block;width:22px;height:2px;background:#fff;border-radius:2px;content:''}.menu-icon{position:relative}.menu-icon:before{position:absolute;top:-7px}.menu-icon:after{position:absolute;top:7px}#mainMenu a{min-height:42px;display:flex;align-items:center}.stats-grid a{padding:16px 10px;background:#f9fbff;border:1px solid #dbe4ef;border-radius:10px;text-align:center;display:block;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}.stats-grid a:hover{transform:translateY(-1px);box-shadow:0 7px 18px rgba(8,28,63,.08);border-color:#bfdbfe}.widget ul{list-style:none;margin:0;padding:0}.widget li{padding:7px 0;border-bottom:1px solid #eef2f7}.widget li:last-child{border-bottom:0}.widget li a{color:#0b57bf;font-weight:800}.widget li a:hover{text-decoration:underline}.widget .user-mini{display:grid;grid-template-columns:30px minmax(0,1fr) auto;width:100%;color:#0f2d50;border-radius:10px;padding:7px 6px}.widget .user-mini:hover{background:#f2f7ff;text-decoration:none}.widget .user-mini span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:900}.tags{display:flex;gap:8px;flex-wrap:wrap}.tags a,.tags span{background:#e9eff7;color:#0053bb;border-radius:999px;font-size:12px;font-weight:900;padding:7px 10px;display:inline-flex;align-items:center}.tags a:hover{background:#dbeafe;text-decoration:none}.taxonomy-results .ag-feed{min-height:360px}
@media(max-width:900px){.site-header{position:sticky}.topbar{position:relative;align-items:center;flex-wrap:wrap}.logo{font-size:22px}.menu-btn{display:inline-flex!important;margin-left:auto;background:#0b63db;color:#fff;border:1px solid rgba(255,255,255,.18);border-radius:10px;padding:10px 12px;box-shadow:none;position:relative;z-index:22}.site-header nav,#mainMenu{display:none!important;position:fixed;left:12px;right:12px;top:70px;z-index:21;background:#071b3b;border:1px solid rgba(255,255,255,.13);border-radius:16px;padding:12px;box-shadow:0 22px 50px rgba(0,0,0,.32);max-height:calc(100vh - 92px);overflow:auto;flex-direction:column;align-items:stretch;gap:6px;margin:0}.site-header nav.open,.site-header nav.show,.site-header nav.active,#mainMenu.open,#mainMenu.show,#mainMenu.active{display:flex!important}.site-header nav a,#mainMenu a{width:100%;padding:13px 14px;border-radius:12px;background:rgba(255,255,255,.04);color:#f8fbff;justify-content:space-between}.site-header nav a:hover,#mainMenu a:hover,.site-header nav a.active,#mainMenu a.active{background:#0b63db;color:#fff}.nav-publish{justify-content:center!important;background:#0b63db!important}.featured-strip.ag-hero{margin:14px 12px 0;border-radius:14px}.layout.ag-home-layout{margin:14px auto;gap:16px}.ag-sidebar{grid-template-columns:1fr!important;display:flex!important}.widget{margin-bottom:0}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.footer{padding:22px 14px}.footer-links{flex-wrap:wrap}}
@media(max-width:560px){.topbar{padding:10px 12px}.logo{font-size:20px}.logo:before{margin-right:4px}.menu-btn span:last-child{display:none}#mainMenu{left:8px;right:8px;top:58px;border-radius:14px}.featured-strip.ag-hero{padding:22px 18px}.featured-strip h1{font-size:23px}.featured-strip p{font-size:15px}.ag-feed{padding:12px;border-radius:12px}.section-title{font-size:21px}.section-head{align-items:flex-start;gap:8px}.post-cover-link,.post-cover,.cover{height:205px;min-height:205px}.post-author-row{gap:12px}.post-meta{font-size:13px}.post-excerpt{line-height:1.65}.read-more{width:100%;text-align:center}.stats-grid a{padding:14px 8px}.widget h3{font-size:18px}.single{padding:0 12px}.single-post{border-radius:14px}.article-body{font-size:16px}.tags a,.tags span{font-size:12px;padding:8px 10px}}

/* RadioaficionadosClub Platform v24 - Administración BBCode avanzada */
.ag-admin-bbcode .bbcode-admin-intro { border-left: 4px solid var(--primary, #0d6efd); }
.bbcode-admin-form.grid { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:14px; align-items:end; }
.bbcode-admin-form .wide { grid-column: span 2; }
.bbcode-admin-form input,
.bbcode-admin-form textarea,
.bbcode-admin-table input,
.bbcode-admin-table textarea { width:100%; border:1px solid #d9e2ef; border-radius:10px; padding:10px 12px; background:#fff; color:#172033; font:inherit; }
.bbcode-admin-form textarea,
.bbcode-admin-table textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.bbcode-admin-form label,
.bbcode-admin-table label { font-weight:700; font-size:.86rem; color:#334155; display:block; }
.bbcode-admin-form .check,
.bbcode-admin-table .check { display:flex; gap:8px; align-items:center; font-weight:600; }
.bbcode-admin-form .check input,
.bbcode-admin-table .check input { width:auto; }
.bbcode-admin-table td { vertical-align:top; min-width:210px; }
.bbcode-admin-table .bbcode-row-form { display:contents; }
.bbcode-example { margin-top:8px; color:#64748b; }
.admin-actions-col { display:flex; flex-direction:column; gap:10px; }
.bbc-center { text-align:center; }
.bbc-list { margin: 10px 0 10px 22px; }
.bbc-spoiler { border:1px solid #dbeafe; border-radius:12px; padding:10px 12px; background:#f8fbff; }
.bbc-youtube { width:100%; max-width:720px; aspect-ratio:16/9; border:0; border-radius:14px; display:block; margin:12px auto; }
.bbc-size-small { font-size:.86em; }
.bbc-size-normal { font-size:1em; }
.bbc-size-large { font-size:1.25em; }
.bbc-size-x-large { font-size:1.55em; }
.bbc-alert { border-left:4px solid #f59e0b; background:#fffbeb; padding:12px 14px; border-radius:12px; margin:12px 0; }
@media (max-width:900px){ .bbcode-admin-form.grid { grid-template-columns:1fr; } .bbcode-admin-form .wide { grid-column:auto; } .bbcode-admin-table, .bbcode-admin-table tbody, .bbcode-admin-table tr, .bbcode-admin-table td { display:block; width:100%; } .bbcode-admin-table thead { display:none; } }

/* =========================================================
   RadioaficionadosClub Platform v25 - Administración BBCode integrada
   Diseño: tarjetas tipo panel profesional, responsivo y coherente
   con la administración general de RadioaficionadosClub.
   ========================================================= */
.ag-bbcode-pro{padding-bottom:34px}.bbcode-hero-panel{background:linear-gradient(115deg,#06284a,#075da4 55%,#0b63db);color:#fff;border-radius:20px;padding:26px 28px;margin-bottom:18px;box-shadow:0 18px 42px rgba(7,45,91,.24);display:flex;align-items:flex-start;justify-content:space-between;gap:18px;position:relative;overflow:hidden}.bbcode-hero-panel:after{content:'';position:absolute;right:-90px;top:-90px;width:260px;height:260px;border-radius:50%;background:rgba(255,255,255,.12);pointer-events:none}.bbcode-hero-panel .eyebrow{color:#bfdbfe;margin:0 0 6px;font-size:12px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.bbcode-hero-panel h1{margin:0 0 8px;font-size:clamp(28px,4vw,42px);line-height:1.1}.bbcode-hero-panel .muted{color:#e8f2ff;max-width:780px}.bbcode-hero-actions{position:relative;z-index:1;display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.bbcode-flash{border-left:5px solid #22c55e;background:#ecfdf5;color:#065f46;border-radius:14px;padding:14px 16px;margin:0 0 18px;font-weight:800}.bbcode-stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.bbcode-stat-card{background:#fff;border:1px solid #d9e2ef;border-radius:18px;padding:18px;box-shadow:0 12px 28px rgba(15,23,42,.07)}.bbcode-stat-card span{display:block;color:#64748b;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.bbcode-stat-card strong{display:block;color:#0f2d50;font-size:30px;line-height:1.1;margin:6px 0}.bbcode-stat-card small{color:#52677f;font-weight:700}.bbcode-stat-card.warning{border-left:5px solid #f59e0b}.bbcode-section-title{align-items:flex-start;gap:16px}.bbcode-section-title h2{margin:0 0 5px;color:#0f2d50}.bbcode-section-title p{margin:0}.ag-bbcode-pro .admin-card{border-radius:18px;border:1px solid #d9e2ef;box-shadow:0 12px 30px rgba(15,23,42,.08);overflow:hidden}.ag-bbcode-pro code{background:#eef6ff;border:1px solid #dbeafe;color:#0b5ea8;border-radius:7px;padding:2px 6px}.bbcode-create-form{background:#f8fbff;border:1px solid #e2e8f0;border-radius:16px;padding:16px}.bbcode-admin-form.grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.bbcode-admin-form .wide{grid-column:span 2}.bbcode-admin-form .full{grid-column:1/-1}.bbcode-admin-form label,.bbcode-tag-card label{display:block;color:#0f2d50;font-size:13px;font-weight:900;margin:0}.bbcode-admin-form small,.bbcode-tag-card small{display:block;color:#64748b;font-size:12px;font-weight:700;margin-top:5px}.bbcode-admin-form input,.bbcode-admin-form textarea,.bbcode-tag-card input,.bbcode-tag-card textarea{width:100%;margin-top:7px;border:1px solid #cbd5e1;border-radius:12px;padding:11px 12px;background:#fff;color:#0f172a;font:inherit;box-shadow:inset 0 1px 0 rgba(255,255,255,.7)}.bbcode-admin-form textarea,.bbcode-tag-card textarea{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;line-height:1.45}.bbcode-admin-form input:focus,.bbcode-admin-form textarea:focus,.bbcode-tag-card input:focus,.bbcode-tag-card textarea:focus{outline:3px solid rgba(37,99,235,.16);border-color:#2563eb}.bbcode-switches{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.switch-line{display:inline-flex!important;align-items:center;gap:9px;background:#fff;border:1px solid #dbeafe;border-radius:999px;padding:9px 12px!important;cursor:pointer}.switch-line input{width:18px!important;height:18px;margin:0!important;accent-color:#2563eb}.switch-line span{font-size:13px;color:#0f2d50;font-weight:900}.bbcode-form-actions{display:flex;justify-content:flex-end}.bbcode-search{min-width:280px;border:1px solid #cbd5e1;border-radius:12px;padding:12px;background:#fff}.bbcode-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.bbcode-tag-card{background:#fff;border:1px solid #dbe3ec;border-radius:18px;padding:16px;box-shadow:0 10px 24px rgba(15,23,42,.06);transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}.bbcode-tag-card:hover{transform:translateY(-1px);box-shadow:0 16px 32px rgba(15,23,42,.1);border-color:#bfdbfe}.bbcode-tag-card.is-disabled{background:#f8fafc;opacity:.92}.bbcode-tag-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px;border-bottom:1px solid #edf2f7;padding-bottom:12px}.bbcode-tag-head h3{margin:7px 0 0;color:#0f2d50;font-size:20px}.bbcode-tag-pill{display:inline-flex;background:#0b63db;color:#fff;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:900;letter-spacing:.03em}.bbcode-status-stack{display:flex;flex-direction:column;gap:6px;align-items:flex-end}.status-dot{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:900;text-transform:uppercase;white-space:nowrap}.status-dot:before{content:'';width:8px;height:8px;border-radius:999px;background:currentColor}.status-dot.ok{background:#dcfce7;color:#166534}.status-dot.off{background:#fee2e2;color:#991b1b}.status-dot.muted-dot{background:#e2e8f0;color:#475569}.bbcode-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}.bbcode-tag-card label{margin-bottom:12px}.bbcode-example-box{background:#f8fbff;border:1px dashed #bfdbfe;border-radius:14px;padding:12px;margin:4px 0 14px}.bbcode-example-box strong{display:block;color:#0f2d50;margin-bottom:7px}.bbcode-example-box code{display:block;white-space:normal;overflow-wrap:anywhere}.bbcode-switches.compact{margin:6px 0 14px}.bbcode-card-actions{display:flex;justify-content:flex-end;border-top:1px solid #edf2f7;padding-top:12px}.bbcode-delete-form{margin-top:10px;display:flex;justify-content:flex-end}.bbcode-delete-form .btn{padding:9px 12px}.bbcode-safe-card h2{margin-top:0;color:#0f2d50}.bbcode-safe-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.bbcode-safe-grid>div{background:#f8fbff;border:1px solid #dbeafe;border-radius:16px;padding:15px}.bbcode-safe-grid strong{display:block;color:#0b5ea8;margin-bottom:6px}.bbcode-safe-grid p{margin:0;color:#52677f;line-height:1.6}.bbc-center{text-align:center}.bbc-list{margin:10px 0 10px 22px}.bbc-spoiler{border:1px solid #dbeafe;border-radius:12px;padding:10px 12px;background:#f8fbff}.bbc-youtube{width:100%;max-width:720px;aspect-ratio:16/9;border:0;border-radius:14px;display:block;margin:12px auto}.bbc-size-small{font-size:.86em}.bbc-size-normal{font-size:1em}.bbc-size-large{font-size:1.25em}.bbc-size-x-large{font-size:1.55em}.bbc-alert{border-left:4px solid #f59e0b;background:#fffbeb;padding:12px 14px;border-radius:12px;margin:12px 0}@media(max-width:1180px){.bbcode-card-grid{grid-template-columns:1fr}.bbcode-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:900px){.bbcode-hero-panel{display:block;padding:22px}.bbcode-hero-actions{justify-content:flex-start;margin-top:14px}.bbcode-admin-form.grid{grid-template-columns:1fr}.bbcode-admin-form .wide,.bbcode-admin-form .full{grid-column:auto}.bbcode-search{width:100%;min-width:0}.bbcode-safe-grid{grid-template-columns:1fr}.bbcode-edit-grid{grid-template-columns:1fr}.bbcode-status-stack{align-items:flex-start;flex-direction:row;flex-wrap:wrap}.bbcode-tag-head{display:block}.bbcode-stats-grid{grid-template-columns:1fr}.bbcode-card-actions,.bbcode-delete-form,.bbcode-form-actions{justify-content:stretch}.bbcode-card-actions .btn,.bbcode-delete-form .btn,.bbcode-form-actions .btn{width:100%;text-align:center}.switch-line{width:100%;border-radius:12px}}

/* RadioaficionadosClub Platform v27 - Administración BBCode compacta */
.ag-bbcode-compact .bbcode-library-card{padding-bottom:10px}.bbcode-list-title{align-items:center}.bbcode-compact-list{border:1px solid #dbe3ec;border-radius:16px;overflow:hidden;background:#fff}.bbcode-compact-head,.bbcode-compact-row{display:grid;grid-template-columns:120px minmax(220px,1.5fr) 110px 170px 70px 150px;gap:12px;align-items:center}.bbcode-compact-head{background:#f8fbff;color:#64748b;font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;padding:11px 14px;border-bottom:1px solid #dbe3ec}.bbcode-compact-row{padding:10px 14px;border-bottom:1px solid #edf2f7;transition:background .15s ease}.bbcode-compact-row:last-child{border-bottom:0}.bbcode-compact-row:hover{background:#f8fbff}.bbcode-compact-row.is-editing{background:#eff6ff;box-shadow:inset 4px 0 0 #2563eb}.bbcode-row-tag code{display:inline-flex;font-weight:900}.bbcode-row-tag small,.bbcode-row-label small{display:block;color:#64748b;font-size:11px;font-weight:700;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bbcode-row-label strong{display:block;color:#0f2d50;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bbcode-row-button span{display:inline-flex;background:#eef6ff;color:#0b5ea8;border:1px solid #dbeafe;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:900;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bbcode-row-status{display:flex;gap:5px;flex-wrap:wrap}.mini-status{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:5px 8px;font-size:10px;font-weight:900;text-transform:uppercase;white-space:nowrap}.mini-status:before{content:'';width:7px;height:7px;border-radius:999px;background:currentColor}.mini-status.ok{background:#dcfce7;color:#166534}.mini-status.off{background:#fee2e2;color:#991b1b}.mini-status.muted-dot{background:#e2e8f0;color:#475569}.bbcode-row-order{color:#475569;font-weight:900;font-size:13px}.bbcode-row-actions{display:flex;gap:6px;justify-content:flex-end;align-items:center}.bbcode-row-actions form{margin:0}.btn.tiny{padding:6px 9px!important;border-radius:10px!important;font-size:11px!important;line-height:1!important;min-height:auto!important}.bbcode-editor-panel{margin-top:16px}.bbcode-empty-editor{margin-top:16px;background:#f8fbff;border-style:dashed!important}.bbcode-empty-editor h2{margin:0 0 6px;color:#0f2d50}.bbcode-empty-editor p{margin:0}.ag-bbcode-compact .bbcode-form-actions{gap:10px}.ag-bbcode-compact .bbcode-card-grid,.ag-bbcode-compact .bbcode-tag-card{display:none!important}@media(max-width:1180px){.bbcode-compact-head{display:none}.bbcode-compact-row{grid-template-columns:1fr;gap:8px;padding:13px}.bbcode-row-actions{justify-content:flex-start}.bbcode-row-status{margin-top:2px}.bbcode-row-order:before{content:'Orden: ';color:#64748b}.bbcode-row-button:before{content:'Botón: ';color:#64748b;font-size:12px;font-weight:900}.bbcode-row-button{display:flex;align-items:center;gap:6px}.bbcode-row-label small{white-space:normal}.bbcode-row-actions .btn{flex:0 0 auto}}@media(max-width:640px){.bbcode-row-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.bbcode-row-actions .btn,.bbcode-row-actions form,.bbcode-row-actions button{width:100%;text-align:center}.bbcode-list-title{display:block}.bbcode-list-title .bbcode-search{margin-top:12px}}

/* RadioaficionadosClub Platform v28 - BBCode admin listado ancho tipo módulo WP.
   Motivo: en v27 el breakpoint de 1180px convertía las etiquetas en columna dentro del admin con sidebar. */
.ag-bbcode-compact .ag-bbcode-list-wide{width:100%;overflow:hidden}.ag-bbcode-compact .ag-bbcode-list-wide .wp-card-title{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;border-bottom:1px solid #e2e8f0;padding-bottom:12px;margin-bottom:14px}.ag-bbcode-compact .ag-bbcode-list-wide .wp-card-title h2{margin:0;color:#0f2d50}.ag-bbcode-compact .ag-bbcode-list-wide .wp-card-title small{display:block;color:#64748b;font-weight:800;margin-top:4px}.ag-bbcode-compact .bbcode-filterbar{margin:0;min-width:280px}.ag-bbcode-compact .bbcode-table-wrap{width:100%;overflow-x:auto;border:1px solid #dbe3ec;border-radius:14px;background:#fff}.ag-bbcode-compact .bbcode-table{width:100%;min-width:920px;border-collapse:collapse}.ag-bbcode-compact .bbcode-table th{background:#f8fafc;color:#334155;font-size:12px;text-transform:uppercase;letter-spacing:.06em}.ag-bbcode-compact .bbcode-table th,.ag-bbcode-compact .bbcode-table td{padding:10px 12px;border-bottom:1px solid #eef2f7;vertical-align:middle;text-align:left}.ag-bbcode-compact .bbcode-table tbody tr:hover{background:#f8fbff}.ag-bbcode-compact .bbcode-table tbody tr.is-editing{background:#eff6ff;box-shadow:inset 4px 0 0 #2563eb}.ag-bbcode-compact .bbcode-row-tag code{display:inline-flex;font-weight:900;background:#eef6ff;color:#0b5ea8;border:1px solid #dbeafe;border-radius:8px;padding:4px 7px}.ag-bbcode-compact .bbcode-row-tag small,.ag-bbcode-compact .bbcode-row-label small{display:block;color:#64748b;font-size:11px;font-weight:700;margin-top:3px;max-width:420px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ag-bbcode-compact .bbcode-row-label strong{display:block;color:#0f2d50;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:360px}.ag-bbcode-compact .bbcode-row-button span{display:inline-flex;background:#eef6ff;color:#0b5ea8;border:1px solid #dbeafe;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:900;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-bbcode-compact .bbcode-row-status{display:flex;gap:5px;flex-wrap:wrap}.ag-bbcode-compact .mini-status{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:5px 8px;font-size:10px;font-weight:900;text-transform:uppercase;white-space:nowrap}.ag-bbcode-compact .mini-status:before{content:'';width:7px;height:7px;border-radius:999px;background:currentColor}.ag-bbcode-compact .mini-status.ok{background:#dcfce7;color:#166534}.ag-bbcode-compact .mini-status.off{background:#fee2e2;color:#991b1b}.ag-bbcode-compact .mini-status.muted-dot{background:#e2e8f0;color:#475569}.ag-bbcode-compact .bbcode-row-order{color:#475569;font-weight:900;font-size:13px}.ag-bbcode-compact .bbcode-row-actions{display:flex;gap:6px;justify-content:flex-end;align-items:center;white-space:nowrap}.ag-bbcode-compact .bbcode-row-actions form{margin:0;display:inline-flex}.ag-bbcode-compact .bbcode-row-actions .mini-btn{padding:6px 9px;border-radius:8px;font-size:12px;line-height:1.1;text-decoration:none}.ag-bbcode-compact .bbcode-empty-editor{margin-top:16px;background:#f8fbff;border-style:dashed!important}@media(max-width:900px){.ag-bbcode-compact .ag-bbcode-list-wide .wp-card-title{display:block}.ag-bbcode-compact .bbcode-filterbar{margin-top:12px;min-width:0}.ag-bbcode-compact .bbcode-search{width:100%}.ag-bbcode-compact .bbcode-table{min-width:860px}.ag-bbcode-compact .bbcode-table th,.ag-bbcode-compact .bbcode-table td{padding:9px 10px}}

/* ==========================================================
   RadioaficionadosClub v30 - Perfil/cuenta unificado
   Objetivo: eliminar marco clásico, links duplicados y segundo pie.
   El header/footer global vive en layouts/main.php.
   ========================================================== */
.profile-account-shell{max-width:1180px;margin:24px auto;padding:0 18px}.profile-unified{background:transparent}.profile-account-shell .profile-classic-grid{display:grid;grid-template-columns:minmax(0,1fr) 294px;gap:22px;align-items:start}.profile-account-shell .profile-main-panel{background:#fff;border:1px solid #e5e7eb;border-radius:18px;box-shadow:0 12px 30px rgba(15,23,42,.08);min-height:auto;padding:0 0 28px;overflow:hidden}.profile-account-shell .profile-tabs{display:flex;align-items:center;gap:6px;border-bottom:1px solid #e5e7eb;margin:0 0 22px;background:#f8fafc;padding:12px;overflow-x:auto}.profile-account-shell .profile-tabs:after{display:none}.profile-account-shell .profile-tabs a{padding:10px 14px;font-weight:800;color:#0f172a;text-decoration:none;border:1px solid transparent;border-radius:999px;white-space:nowrap}.profile-account-shell .profile-tabs a:hover{background:#eaf2ff;color:#0b5ea8}.profile-account-shell .profile-tabs a.active{background:#0b5ea8;color:#fff;border-color:#0b5ea8;margin:0}.profile-account-shell .classic-message,.profile-account-shell .profile-form-classic{max-width:760px}.profile-account-shell .profile-form-classic .field{grid-template-columns:190px minmax(0,1fr);gap:16px}.profile-account-shell .profile-form-classic label{color:#334155}.profile-account-shell .profile-form-classic input,.profile-account-shell .profile-form-classic select,.profile-account-shell .profile-form-classic textarea{border:1px solid #cbd5e1;border-radius:10px;padding:9px 11px;background:#fff;font-size:14px}.profile-account-shell .profile-form-classic input[type=email],.profile-account-shell .profile-form-classic input[type=text],.profile-account-shell .profile-form-classic input[type=password],.profile-account-shell .profile-form-classic select{height:42px}.profile-account-shell .profile-form-classic textarea{min-height:92px;height:auto}.profile-account-shell .profile-actions button,.profile-account-shell .profile-actions a{background:#0b5ea8;color:#fff;border:0;border-radius:12px;padding:12px 22px;font-weight:900;box-shadow:0 8px 18px rgba(11,94,168,.18)}.profile-account-shell .profile-side{background:transparent}.profile-account-shell .avatar-card,.profile-account-shell .profile-complete{background:#fff;border:1px solid #e5e7eb;border-radius:18px;box-shadow:0 10px 24px rgba(15,23,42,.06);overflow:hidden}.profile-account-shell .avatar-card h3{font-size:18px;font-weight:900;margin:14px 16px}.profile-account-shell .avatar-frame img{width:138px;height:138px;border-radius:50%;border:4px solid #fff;box-shadow:0 8px 18px rgba(15,23,42,.15)}.profile-account-shell .avatar-edit{background:#f8fafc;border-top:1px solid #e5e7eb;color:#0b5ea8;font-weight:800;text-decoration:none}.profile-account-shell .profile-empty{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:14px;margin:18px;padding:24px}.profile-account-shell .blocked-list.classic{max-width:760px;padding:0 16px}.profile-account-shell .blocked-item{border:1px solid #e5e7eb;border-radius:14px;box-shadow:0 8px 18px rgba(15,23,42,.05)}.profile-account-shell .blocked-item img{border-radius:50%}.classic-footer-links,.classic-powered{display:none!important}
@media(max-width:850px){.profile-account-shell{margin:14px auto;padding:0 12px}.profile-account-shell .profile-classic-grid{grid-template-columns:1fr}.profile-account-shell .profile-side{order:-1;display:grid;grid-template-columns:1fr 1fr;gap:12px}.profile-account-shell .profile-form-classic{padding:0 14px}.profile-account-shell .profile-form-classic .field{grid-template-columns:1fr;gap:6px}.profile-account-shell .profile-form-classic label{text-align:left}.profile-account-shell .profile-tabs{padding:10px}.profile-account-shell .profile-tabs a{padding:9px 12px}}
@media(max-width:520px){.profile-account-shell .profile-side{grid-template-columns:1fr}.profile-account-shell .profile-tabs{align-items:stretch}.profile-account-shell .profile-actions button,.profile-account-shell .profile-actions a{width:100%;text-align:center;margin:5px 0}}

/* RadioaficionadosClub Platform v31 - Panel SEO y Google administrable */
.seo-admin-pro .wp-card-title.inner{margin-top:28px;padding-top:20px;border-top:1px solid #e2e8f0}
.seo-admin-pro select{margin-top:7px;width:100%;border:1px solid #cbd5e1;border-radius:10px;padding:10px;background:#fff;color:#0f172a;font-weight:700}
.seo-admin-pro .field-note{display:block;margin-top:6px;color:#64748b;font-size:12px;line-height:1.4}
.seo-consent-row{display:flex;gap:10px;align-items:flex-start;margin:18px 0;padding:14px;border:1px solid #dbe3ec;border-radius:14px;background:#f8fafc;color:#334155;font-weight:800}
.seo-consent-row input{margin-top:3px;width:auto}
.seo-tools-grid.compact{align-self:end;display:flex;gap:10px;flex-wrap:wrap;margin-top:25px}
.seo-preview-box{margin-top:18px;padding:16px;border:1px solid #bfdbfe;border-radius:16px;background:#eff6ff;color:#0f2d50}
.seo-preview-box ul{margin:10px 0 0 18px;padding:0;line-height:1.7}
@media(max-width:760px){.seo-tools-grid.compact{margin-top:8px}.seo-consent-row{display:block}.seo-consent-row input{margin-right:8px}}


/* RadioaficionadosClub Platform v33 - ajustes visuales del publicador.
   Autor: Rodrigo Reyes / RadioaficionadosClub.cl
   Objetivo: selectores BBCode siempre en fila en escritorio y categorías tipo lista compacta como el mockup enviado. */
.composer-shell.wp-mode{background:#e9e9e9;border-radius:12px;padding:0 0 18px}.composer-card{background:#fff;border:1px solid #d5dce5;border-radius:8px;box-shadow:none}.bb-toolbar-pro{border:1px solid #d7dee8;border-radius:10px;background:#f8fafc;padding:8px;overflow:hidden}.bb-tool-row{display:flex;flex-wrap:wrap;gap:6px}.bb-select-row{display:flex;flex-direction:row;flex-wrap:nowrap;gap:8px;margin-top:8px;align-items:end}.bb-select-row label{flex:1 1 0;min-width:0;font-size:11px;font-weight:900;color:#24364f;text-transform:uppercase}.bb-select-row select{width:100%;height:36px;margin-top:4px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#0f172a;font-weight:700}.image-uploader{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:14px;align-items:start}.image-uploader p,.image-uploader small{grid-column:1/2}.image-uploader input{grid-column:1/2}.cover-preview{position:relative;grid-column:2/3;grid-row:1/5;border:1px solid #cbd5e1;border-radius:12px;background:#f8fafc;padding:8px;min-height:150px;display:flex;align-items:center;justify-content:center}.cover-preview img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:8px;background:#e5e7eb}.cover-preview.has-local-preview:before{content:'Preliminar local';position:absolute;top:12px;left:12px;background:#0d6efd;color:#fff;padding:4px 8px;border-radius:8px;font-size:11px;font-weight:900}.tags-panel-pro{margin-top:16px}.tags-panel-pro input{height:35px}.tag-suggestions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.tag-suggestions span{font-size:11px;padding:4px 10px;border:1px solid #d5dce5;border-radius:4px;background:#f8fafc;color:#24527a}.seo-panel-pro{display:none}.composer-bottom-pro{display:grid;grid-template-columns:255px minmax(280px,1fr);gap:26px;align-items:start}.composer-bottom-pro .category-tree,.composer-bottom-pro .publish-options{background:transparent;border:0;box-shadow:none;padding:0}.composer-bottom-pro .composer-label{display:block;margin:0 0 10px;font-size:14px;color:#19304f;font-weight:900}.category-scroll{height:278px;border:1px solid #d0d0d0;background:#fff;overflow:auto;padding:0}.category-scroll label{display:block;position:relative;padding:4px 7px 4px 18px;font-size:12px;line-height:1.22;text-transform:uppercase;font-weight:900;color:#0d6efd;cursor:pointer;white-space:nowrap}.category-scroll label:before{content:'◆';position:absolute;left:5px;top:4px;font-size:10px;color:currentColor}.category-scroll label:hover{background:#eef5ff}.category-scroll label:first-child{background:#7b7b7b;color:#e5e5e5}.category-scroll label:nth-child(3n+1){color:#7c3aed}.category-scroll label:nth-child(3n+2){color:#f97316}.category-scroll label:nth-child(3n+3){color:#0d6efd}.category-scroll label:nth-child(5n){color:#16a34a}.category-scroll label:nth-child(7n){color:#e11d48}.category-scroll input{position:absolute;opacity:0;pointer-events:none}.category-scroll input:checked + span{background:rgba(13,110,253,.12);outline:1px solid rgba(13,110,253,.35);border-radius:3px;padding:1px 4px}.publish-options label{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #e5e7eb;margin-bottom:7px;min-height:38px;padding:8px 12px;font-size:12px;font-weight:900;color:#111827}.publish-options input[type=checkbox]{width:14px;height:14px}.composer-actions{position:sticky;bottom:0;background:#f8fafc;border:1px solid #dde6f0;border-radius:10px;margin-top:14px;padding:12px;display:flex;justify-content:flex-end;gap:10px;z-index:20}.composer-actions .btn{border-radius:7px;padding:11px 18px;font-weight:900}.composer-actions .btn.light:before{content:'▣ ';}.composer-actions .btn.blue:after{content:'  ⊙';}.composer-actions .btn.green:before{content:'✈ ';}.bbc-heading{font-size:1.45rem;line-height:1.25;margin:1.2em 0 .55em;color:#0f2d50;border-bottom:1px solid #dbe4ef;padding-bottom:.35em}.bbc-font-arial{font-family:Arial,Helvetica,sans-serif}.bbc-font-verdana{font-family:Verdana,Geneva,sans-serif}.bbc-font-georgia{font-family:Georgia,'Times New Roman',serif}.bbc-font-mono{font-family:Consolas,Monaco,monospace}.bbc-size-small{font-size:.88em}.bbc-size-normal{font-size:1em}.bbc-size-large{font-size:1.25em}.bbc-size-x-large{font-size:1.55em}.bbc-img{margin:14px auto;text-align:center}.bbc-img img,.bbc-img-inline{max-width:100%;height:auto;border-radius:10px}.bbc-img-small{max-width:280px}.bbc-img-medium{max-width:520px}.bbc-img-large{max-width:760px}.bbc-img-full{max-width:100%}
@media(max-width:900px){.bb-select-row{flex-wrap:wrap}.bb-select-row label{flex:1 1 calc(50% - 8px)}}
@media(max-width:760px){.image-uploader{grid-template-columns:1fr}.image-uploader p,.image-uploader small,.image-uploader input,.cover-preview{grid-column:auto;grid-row:auto}.composer-bottom-pro{grid-template-columns:1fr;gap:14px}.composer-actions{position:static;flex-direction:column}.composer-actions .btn{width:100%}}
@media(max-width:480px){.bb-select-row{display:grid;grid-template-columns:1fr}.bb-select-row label{min-width:100%}}

/* RadioaficionadosClub v35 - toolbar BBCode profesional en una sola fila responsiva */
.bb-toolbar-pro{overflow:visible}
.bb-toolbar-pro .bb-tool-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 6px;width:100%}
.bb-toolbar-pro button,.bb-toolbar-pro .bb-inline-select{height:42px;min-height:42px;display:inline-flex;align-items:center;flex:0 0 auto;margin:0}
.bb-toolbar-pro .bb-inline-select{width:auto;min-width:128px;max-width:150px;padding:0 12px;border:1px solid #b7d4f8;border-radius:10px;background:#fff;color:#111827;font-size:14px;font-weight:600;letter-spacing:0;text-transform:none;box-shadow:none;cursor:pointer}
.bb-toolbar-pro .bb-inline-select-wide{min-width:150px;max-width:170px}
@media(max-width:900px){.bb-toolbar-pro .bb-tool-row{gap:6px}.bb-toolbar-pro .bb-inline-select{flex:1 1 145px;max-width:none}}
@media(max-width:520px){.bb-toolbar-pro button{height:38px;min-height:38px;padding:0 10px;font-size:12px}.bb-toolbar-pro .bb-inline-select{flex:1 1 calc(50% - 6px);min-width:0;height:40px;min-height:40px;font-size:13px}.bb-toolbar-pro .bb-inline-select-wide{flex-basis:100%}}

/* RadioaficionadosClub.cl - categorías editables en administración */
.category-edit-field[readonly]{background:#f8fafc;color:#475569;border-color:#e2e8f0;cursor:default;}
.category-edit-field.is-editing{background:#fff;color:#0f172a;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.12);}
.row-actions .mini-btn[hidden]{display:none!important;}

/* RadioaficionadosClub.cl - editor único de categorías */
.admin-form-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.inline-form{display:inline}.btn.ghost{background:#f3f4f6;color:#111827;border:1px solid #d1d5db}.is-edit-mode{border-left:4px solid #16a34a;padding-left:12px}

/* RadioaficionadosClub.cl - Fila seleccionada al editar categoría */
.wp-table tr.row-selected{outline:2px solid rgba(13,110,253,.35);}
.wp-card.is-edit-mode{outline:2px solid rgba(25,135,84,.22);}


/* Widget Discord beta testers - RadioaficionadosClub.cl */



/* ============================================================
   RadioaficionadosClub Platform - Comentarios profesionales en publicaciones
   Autor: Rodrigo Reyes / RadioaficionadosClub.cl
   ============================================================ */
.comments-shell{
  margin-top:28px;
  padding:22px;
  border:1px solid rgba(15,23,42,.10);
  border-radius:22px;
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
  box-shadow:0 14px 35px rgba(15,23,42,.07);
}
.comments-header{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
  margin-bottom:18px;
}
.comments-header h2{
  margin:.15rem 0 .35rem;
  font-size:clamp(1.35rem,2.8vw,2rem);
}
.comments-header p{margin:0;color:#64748b}
.comment-form{
  display:grid;
  gap:14px;
  padding:18px;
  border:1px solid rgba(37,99,235,.14);
  border-radius:18px;
  background:#fff;
  margin-bottom:20px;
}
.comment-form h3{margin:0}
.comment-form label{
  display:grid;
  gap:7px;
  font-weight:700;
  color:#0f172a;
}
.comment-form input,
.comment-form textarea{
  width:100%;
  border:1px solid #cbd5e1;
  border-radius:14px;
  padding:12px 14px;
  font:inherit;
  background:#fff;
  color:#0f172a;
}
.comment-form textarea{resize:vertical;min-height:120px}
.comment-form input:focus,
.comment-form textarea:focus{
  outline:3px solid rgba(37,99,235,.16);
  border-color:#2563eb;
}
.guest-comment-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.comment-form-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.comment-form-footer small,.comment-form .hint{color:#64748b}
.comment-list{
  display:grid;
  gap:14px;
}
.comment-card{
  display:grid;
  grid-template-columns:48px 1fr;
  gap:12px;
  padding:14px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:18px;
  background:#fff;
}
.comment-avatar img{
  width:48px;
  height:48px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid #e2e8f0;
}
.comment-content header{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:6px;
}
.comment-content time{
  color:#64748b;
  font-size:.9rem;
}
.comment-content p{
  margin:0;
  line-height:1.65;
  color:#1e293b;
  word-break:break-word;
}
.empty-comments{
  padding:18px;
  border-radius:18px;
  background:#f1f5f9;
  color:#334155;
}
.error-box{
  padding:12px 14px;
  border-radius:14px;
  background:#fef2f2;
  color:#991b1b;
  border:1px solid #fecaca;
}
@media (max-width:720px){
  .comments-shell{padding:16px;border-radius:18px}
  .comments-header{display:block}
  .guest-comment-grid{grid-template-columns:1fr}
  .comment-card{grid-template-columns:40px 1fr}
  .comment-avatar img{width:40px;height:40px}
}

/* RadioaficionadosClub Platform v37 - comentarios anidados, alertas y campana */
.nav-bell{position:relative;display:inline-flex;align-items:center}
.nav-bell summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:4px;padding:8px 10px;border-radius:999px;background:rgba(15,23,42,.06)}
.nav-bell summary::-webkit-details-marker{display:none}
.nav-bell summary span{min-width:18px;height:18px;border-radius:999px;background:#dc2626;color:#fff;font-size:.72rem;display:inline-flex;align-items:center;justify-content:center;font-weight:800}
.nav-bell-menu{position:absolute;right:0;top:calc(100% + 10px);width:min(340px,90vw);padding:12px;border-radius:18px;background:#fff;border:1px solid rgba(15,23,42,.12);box-shadow:0 22px 60px rgba(15,23,42,.18);z-index:60;display:grid;gap:8px}
.nav-bell-menu a{display:grid;gap:2px;padding:10px;border-radius:12px;background:#f8fafc;color:#0f172a;text-decoration:none}
.nav-bell-menu a:hover{background:#eef2ff}
.nav-bell-menu small{font-weight:800}.nav-bell-menu em{font-style:normal;color:#64748b;font-size:.88rem}.nav-bell-menu p{margin:0;color:#64748b}
.warning-box{padding:14px;border-radius:16px;background:#fffbeb;border:1px solid #fde68a;color:#92400e;margin:12px 0}
.warning-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}.checkline{display:flex!important;align-items:center;gap:8px;font-weight:600}.checkline input{width:auto!important}
.replying-to{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#eff6ff;border:1px solid #bfdbfe;color:#1d4ed8;padding:10px 12px;border-radius:14px;margin-bottom:10px}.replying-to button{border:0;background:transparent;color:#1d4ed8;font-weight:800;cursor:pointer}
.comment-card{margin-left:calc(var(--level,0) * 28px);position:relative}.comment-card.is-reply:before{content:"";position:absolute;left:-18px;top:0;bottom:0;width:3px;border-radius:999px;background:#dbeafe}.guest-pill{font-size:.78rem;font-weight:800;color:#475569;background:#f1f5f9;border-radius:999px;padding:3px 8px}.comment-reply-btn{margin-top:8px;border:0;background:#eef2ff;color:#3730a3;font-weight:800;border-radius:999px;padding:7px 12px;cursor:pointer}.comment-reply-btn:hover{background:#dbeafe}
@media (max-width:720px){.nav-bell{display:block}.nav-bell-menu{position:static;width:100%;box-shadow:none;margin-top:8px}.comment-card{margin-left:calc(var(--level,0) * 12px)}.comment-card.is-reply:before{left:-8px}.replying-to{align-items:flex-start;flex-direction:column}.warning-actions .btn{width:100%;text-align:center}}

/* RadioaficionadosClub Platform v38 - Estadísticas en vivo y footer comunitario */
.ag-online-panel,.ag-birthday-panel{
  background:#fff;
  border:1px solid rgba(15,23,42,.09);
  border-radius:24px;
  padding:22px;
  box-shadow:0 18px 45px rgba(15,23,42,.06);
  margin:22px 0;
}
.ag-online-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;flex-wrap:wrap}
.ag-online-head h2,.ag-birthday-panel h2{margin:0 0 6px;color:#0f172a}
.ag-online-head p,.ag-birthday-panel p,.muted{margin:0;color:#64748b;line-height:1.55}
.ag-live-dot{display:inline-flex;align-items:center;gap:7px;border-radius:999px;background:#ecfdf5;color:#047857;font-weight:900;padding:7px 12px;border:1px solid #bbf7d0}
.ag-live-dot:before{content:"";width:9px;height:9px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 5px rgba(34,197,94,.12)}
.ag-online-grid{display:flex;flex-wrap:wrap;gap:14px;margin-top:18px;align-items:stretch}
.ag-online-user,.ag-online-bot,.ag-birthday-user{
  display:flex;align-items:center;gap:9px;text-decoration:none;background:#f8fafc;border:1px solid #e2e8f0;color:#0f172a;border-radius:16px;padding:10px 12px;min-height:58px
}
.ag-online-user img,.ag-birthday-user img{width:42px;height:42px;border-radius:14px;object-fit:cover;border:2px solid #fff;box-shadow:0 6px 16px rgba(15,23,42,.12)}
.ag-online-user span,.ag-birthday-user strong{font-weight:900}.ag-online-bot{flex-direction:column;justify-content:center;align-items:flex-start;gap:2px}.ag-online-bot small{color:#64748b}.bot-orb{font-weight:900;color:#2563eb}.ag-birthday-list{display:flex;flex-wrap:wrap;gap:12px;margin-top:14px}.ag-birthday-user span{color:#64748b}
.footer.ag-footer-live{display:block;background:linear-gradient(180deg,#f8fafc,#eef2ff);border-top:1px solid rgba(15,23,42,.08);padding:0;margin-top:40px;color:#0f172a;text-align:center}
.ag-footer-online,.ag-footer-birthdays{padding:18px 18px;border-bottom:1px solid rgba(15,23,42,.08)}
.ag-footer-online h2,.ag-footer-birthdays h2{font-size:1.05rem;margin:0 0 6px;color:#0f172a}.ag-footer-online h2 a{font-weight:700;color:#2563eb;text-decoration:none}.ag-footer-online p,.ag-footer-birthdays p{margin:0 0 12px;color:#334155;font-size:.94rem}
.ag-footer-people{display:flex;flex-wrap:wrap;justify-content:center;gap:14px;max-width:1200px;margin:0 auto}.ag-footer-people.centered{justify-content:center}
.ag-mini-person,.ag-mini-bot{display:inline-flex;flex-direction:column;align-items:center;gap:5px;text-decoration:none;color:#0f172a;font-size:.88rem;min-width:84px}.ag-mini-person img{width:58px;height:58px;border-radius:12px;object-fit:cover;background:#fff;border:1px solid #cbd5e1;box-shadow:0 8px 18px rgba(15,23,42,.10)}
.ag-mini-person span{display:inline-flex;align-items:center;gap:4px;background:#16a34a;color:#fff;border-radius:7px;padding:4px 8px;font-weight:900;box-shadow:0 6px 14px rgba(22,163,74,.22)}.ag-mini-person span:before{content:"♟";font-size:.75rem}.ag-mini-person.birthday span{background:#0ea5e9}.ag-mini-bot i{display:flex;align-items:center;justify-content:center;width:58px;height:58px;border-radius:12px;background:#fff;border:1px solid #cbd5e1;color:#2563eb;font-style:normal;font-size:1.7rem}.ag-mini-bot span{font-weight:700;color:#334155}.ag-footer-bottom{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:18px;max-width:1180px;margin:0 auto}.ag-footer-bottom .footer-links{display:flex;gap:14px;flex-wrap:wrap}.ag-footer-bottom a{color:#2563eb;text-decoration:none;font-weight:700}
@media(max-width:720px){.ag-online-panel,.ag-birthday-panel{padding:16px;border-radius:18px}.ag-online-user,.ag-online-bot,.ag-birthday-user{width:100%}.ag-footer-people{gap:10px}.ag-mini-person,.ag-mini-bot{min-width:72px;font-size:.78rem}.ag-mini-person img,.ag-mini-bot i{width:48px;height:48px}.ag-footer-bottom{justify-content:center;text-align:center}}

/* RadioaficionadosClub Platform v41 - Cargador de imágenes internas para publicaciones.
   Mantiene el diseño de tarjetas azul/blanco de RadioaficionadosClub y funciona en PC/móvil. */
.ag-inline-image-uploader{margin:14px 0 16px;background:linear-gradient(135deg,#f8fbff,#eef6ff);border:1px solid #d9e8f8;border-radius:18px;padding:14px;box-shadow:0 10px 28px rgba(15,23,42,.06)}
.ag-inline-image-main{display:flex;align-items:center;gap:12px;color:#0f2d50}.ag-inline-image-main strong{display:block;font-size:16px}.ag-inline-image-main p{margin:4px 0 0;color:#64748b;font-size:13px;line-height:1.45}.ag-inline-image-icon{width:46px;height:46px;border-radius:15px;display:grid;place-items:center;background:#0b72c9;color:#fff;font-weight:950;letter-spacing:.03em;box-shadow:0 10px 20px rgba(11,114,201,.22);flex:0 0 auto}.ag-inline-image-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0}.ag-inline-image-actions .bb-inline-select{min-width:150px}.ag-inline-image-drop{border:2px dashed #9cc7ef;border-radius:16px;background:#fff;padding:18px;text-align:center;color:#0b5ea8;font-weight:900;transition:.18s ease}.ag-inline-image-drop small{display:block;margin-top:4px;color:#64748b;font-weight:700}.ag-inline-image-drop.is-dragover{background:#e0f2fe;border-color:#0b72c9;transform:translateY(-1px)}.ag-inline-image-status{min-height:22px;margin-top:10px;color:#475569;font-weight:800;font-size:13px}.ag-inline-image-status.is-error{color:#b91c1c}.ag-inline-image-status.is-ok{color:#166534}.ag-inline-image-results{display:grid;gap:10px;margin-top:10px}.ag-inline-image-result{display:grid;grid-template-columns:76px 1fr auto;gap:12px;align-items:center;background:#fff;border:1px solid #dbe3ec;border-radius:14px;padding:10px}.ag-inline-image-result img{width:76px;height:56px;object-fit:cover;border-radius:10px;background:#f1f5f9;border:1px solid #e2e8f0}.ag-inline-image-result code{display:block;background:#f8fafc;border:1px solid #e2e8f0;border-radius:9px;padding:8px;color:#0f2d50;font-weight:800;white-space:normal;overflow-wrap:anywhere}.ag-inline-image-result .ag-mini-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.ag-inline-image-result button{border:0;border-radius:10px;padding:9px 11px;font-weight:900;cursor:pointer}.ag-inline-image-result .insert{background:#16a34a;color:#fff}.ag-inline-image-result .copy{background:#e2e8f0;color:#0f172a}.bbc-content .bbc-img{margin:18px auto;text-align:center}.bbc-content .bbc-img img{max-width:100%;height:auto;border-radius:16px;border:1px solid #dbe3ec;box-shadow:0 10px 26px rgba(15,23,42,.10)}.bbc-content .bbc-img-small{max-width:320px}.bbc-content .bbc-img-medium{max-width:640px}.bbc-content .bbc-img-large{max-width:900px}.bbc-content .bbc-img-full{max-width:100%;}.bbc-content .bbc-img-inline{display:block;max-width:100%;height:auto;margin:16px auto;border-radius:16px;border:1px solid #dbe3ec;box-shadow:0 10px 26px rgba(15,23,42,.10)}
@media(max-width:700px){.ag-inline-image-main{align-items:flex-start}.ag-inline-image-actions{display:grid;grid-template-columns:1fr;}.ag-inline-image-actions .btn,.ag-inline-image-actions select{width:100%}.ag-inline-image-result{grid-template-columns:64px 1fr}.ag-inline-image-result img{width:64px;height:52px}.ag-inline-image-result .ag-mini-actions{grid-column:1/-1;justify-content:stretch}.ag-inline-image-result .ag-mini-actions button{flex:1}.ag-inline-image-drop{padding:14px}.bbc-content .bbc-img-small,.bbc-content .bbc-img-medium,.bbc-content .bbc-img-large{max-width:100%}}


/* RadioaficionadosClub Platform v42 - Cargador interno de imágenes más profesional e intuitivo */
.ag-inline-image-uploader-pro{
  margin:16px 0 18px;
  padding:0;
  overflow:hidden;
  border:1px solid #d7e4f3;
  border-radius:18px;
  background:#ffffff;
  box-shadow:0 14px 38px rgba(15,23,42,.07);
}
.ag-inline-image-uploader-pro .ag-inline-image-header{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:center;
  padding:16px 18px;
  background:linear-gradient(135deg,#f8fbff,#eef6ff);
  border-bottom:1px solid #dbe8f6;
}
.ag-inline-image-titlewrap{min-width:0;color:#0f2d50}
.ag-inline-image-titlewrap strong{display:block;font-size:17px;font-weight:950;letter-spacing:-.01em}
.ag-inline-image-titlewrap p{margin:5px 0 0;color:#64748b;font-size:13px;line-height:1.45;max-width:760px}
.ag-inline-image-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-bottom:7px;
  padding:5px 10px;
  border-radius:999px;
  background:#dbeafe;
  color:#075ca8;
  font-size:12px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.ag-inline-image-control{display:grid;gap:6px;min-width:190px}
.ag-inline-image-control label{font-size:12px;color:#475569;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.ag-inline-image-control .bb-inline-select{width:100%;min-width:0;margin:0;background:#fff}
.ag-inline-image-uploader-pro .ag-inline-image-drop{
  margin:16px 18px 0;
  padding:18px;
  display:grid;
  grid-template-columns:54px 1fr auto;
  align-items:center;
  gap:14px;
  text-align:left;
  border:2px dashed #9cc7ef;
  border-radius:16px;
  background:#fbfdff;
  color:#0f2d50;
}
.ag-inline-image-uploader-pro .ag-inline-image-drop strong{display:block;font-size:16px;font-weight:950;color:#0f2d50}
.ag-inline-image-uploader-pro .ag-inline-image-drop span{display:block;margin-top:2px;color:#475569;font-weight:750}
.ag-inline-image-uploader-pro .ag-inline-image-drop small{display:block;margin-top:4px;color:#64748b;font-weight:700}
.ag-inline-image-dropicon{
  width:54px;height:54px;border-radius:16px;display:grid;place-items:center;
  background:#0b72c9;color:#fff;font-size:30px;font-weight:900;
  box-shadow:0 10px 24px rgba(11,114,201,.22);
}
.ag-inline-image-pick{white-space:nowrap;box-shadow:0 10px 22px rgba(11,114,201,.18)}
.ag-inline-image-uploader-pro .ag-inline-image-drop.is-dragover{background:#e0f2fe;border-color:#0b72c9;transform:translateY(-1px)}
.ag-inline-image-uploader-pro .ag-inline-image-status{padding:0 18px;margin-top:10px;min-height:22px}
.ag-inline-image-uploader-pro .ag-inline-image-results{padding:0 18px 18px;margin-top:10px;display:grid;gap:10px}
.ag-inline-image-uploader-pro .ag-inline-image-result{
  grid-template-columns:82px 1fr auto;
  border:1px solid #dbe3ec;
  border-radius:15px;
  box-shadow:0 8px 18px rgba(15,23,42,.04);
}
.ag-inline-image-result .ag-result-help{display:block;margin:2px 0 6px;color:#64748b;font-size:12px;font-weight:800}
.ag-inline-image-result .ag-mini-actions button{border-radius:11px;padding:9px 12px}
@media(max-width:760px){
  .ag-inline-image-uploader-pro .ag-inline-image-header{display:grid;gap:12px;padding:14px}
  .ag-inline-image-control{min-width:0;width:100%}
  .ag-inline-image-uploader-pro .ag-inline-image-drop{margin:14px;grid-template-columns:44px 1fr;gap:12px;padding:14px}
  .ag-inline-image-dropicon{width:44px;height:44px;border-radius:14px;font-size:25px}
  .ag-inline-image-pick{grid-column:1/-1;width:100%}
  .ag-inline-image-uploader-pro .ag-inline-image-results{padding:0 14px 14px}
  .ag-inline-image-uploader-pro .ag-inline-image-result{grid-template-columns:68px 1fr}
  .ag-inline-image-uploader-pro .ag-inline-image-result .ag-mini-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:8px}
}

/* RadioaficionadosClub Platform v44 - Notificaciones, footer y estados finales */
.ag-notifications-page{max-width:1100px;margin:0 auto;padding:24px 16px}.ag-notification-list{display:grid;gap:12px}.ag-notification-item{display:grid;grid-template-columns:34px 1fr;gap:12px;padding:16px;border:1px solid #dbe7f5;border-radius:18px;background:#fff;text-decoration:none;color:#0b2545;box-shadow:0 10px 24px rgba(13,38,76,.06)}.ag-notification-item.unread{border-color:#8cc4ff;background:linear-gradient(180deg,#fff,#f4f9ff)}.ag-notification-item strong{display:block;font-size:1rem}.ag-notification-item p{margin:5px 0;color:#516174}.ag-notification-item small{color:#7a8796}.ag-notification-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#eef6ff;color:#006dcc;font-weight:900}.nav-bell-all{border-top:1px solid #e6eef8;margin-top:8px;padding-top:10px;font-weight:800}.ag-empty-state{text-align:center;padding:30px}.ag-footer-live{background:#071f3d;color:#eaf4ff;margin-top:36px}.ag-footer-wrap{max-width:1180px;margin:0 auto;padding:28px 16px;display:grid;gap:18px}.ag-footer-card{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:20px;padding:18px;box-shadow:0 16px 36px rgba(0,0,0,.16)}.ag-footer-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.ag-footer-card h2{margin:0;color:#fff;font-size:1.15rem}.ag-footer-card a{color:#dcecff}.ag-online-count{margin:0 0 12px;line-height:1.55;color:#d9e9ff}.ag-footer-people{display:flex;flex-wrap:wrap;gap:10px}.ag-mini-person{display:inline-flex;align-items:center;gap:7px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.12);border-radius:999px;padding:6px 10px;text-decoration:none}.ag-mini-person img{width:28px;height:28px;border-radius:50%;object-fit:cover;background:#fff}.ag-mini-bot,.ag-empty-footer{display:inline-flex;align-items:center;border-radius:999px;padding:7px 11px;background:rgba(255,255,255,.08);color:#eaf4ff}.ag-footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid rgba(255,255,255,.12);padding-top:16px;color:#d5e7ff}.footer-links{display:flex;gap:14px;flex-wrap:wrap}.footer-links a{font-weight:800;color:#fff;text-decoration:none}@media(max-width:760px){.ag-footer-bottom,.ag-footer-card-head{align-items:flex-start;flex-direction:column}.ag-footer-wrap{padding:22px 12px}.ag-notification-item{grid-template-columns:28px 1fr}.ag-footer-card{padding:15px}}

/* RadioaficionadosClub Platform v45 - contraste, footer ordenado y modo oscuro de usuario */
:root{
  --ag-footer-bg:#071a33;
  --ag-footer-card:#0c2547;
  --ag-footer-text:#eaf3ff;
  --ag-footer-muted:#b9cbea;
  --ag-footer-border:rgba(186,211,255,.22);
}
html[data-theme="dark"]{
  --ag-bg:#0b1220;
  --ag-body:#0f172a;
  --ag-text:#e5eefb;
  --ag-muted:#a8b5c7;
  --ag-card:#111c2f;
  --ag-panel:#18243a;
  --ag-border:#334155;
  --ag-soft:#162033;
  --ag-primary:#38bdf8;
  --ag-primary-2:#22d3ee;
  --ag-primary-dark:#0ea5e9;
  --ag-footer-bg:#030b18;
  --ag-footer-card:#0c1628;
  --ag-footer-text:#f4f8ff;
  --ag-footer-muted:#adc2df;
  --ag-footer-border:rgba(148,163,184,.25);
  color-scheme:dark;
}
html[data-theme="dark"] body.ag-body{background:linear-gradient(180deg,#0b1220,#111827);color:var(--ag-text)}
html[data-theme="dark"] .box,html[data-theme="dark"] .widget,html[data-theme="dark"] .post-card,html[data-theme="dark"] .single-post,html[data-theme="dark"] .wp-card,html[data-theme="dark"] .comments-shell,html[data-theme="dark"] .comment-card,html[data-theme="dark"] .setting-card{background:var(--ag-card)!important;border-color:var(--ag-border)!important;color:var(--ag-text)!important;box-shadow:0 12px 30px rgba(0,0,0,.28)}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#0b1220!important;color:var(--ag-text)!important;border-color:#41506a!important}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#94a3b8}
html[data-theme="dark"] .post-body p,html[data-theme="dark"] .single-post,html[data-theme="dark"] .content,html[data-theme="dark"] .meta,html[data-theme="dark"] .hint,html[data-theme="dark"] small{color:var(--ag-text)}
html[data-theme="dark"] .wp-table th{background:#111c2f;color:#dbeafe}html[data-theme="dark"] .wp-table td{border-color:#27364e;color:#e5eefb}html[data-theme="dark"] .wp-table tr{background:#0f172a}
.theme-toggle{background:rgba(255,255,255,.08);color:#e5e7eb;border:1px solid rgba(255,255,255,.2);border-radius:999px;padding:8px 12px;display:inline-flex;align-items:center;gap:7px;font-weight:800;box-shadow:none;line-height:1}.theme-toggle:hover{background:rgba(255,255,255,.16)}
.ag-footer-live.footer{background:var(--ag-footer-bg)!important;color:var(--ag-footer-text)!important;text-align:left;padding:34px 18px;margin-top:44px}.ag-footer-wrap{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:1.2fr .8fr;gap:18px}.ag-footer-card{background:var(--ag-footer-card);border:1px solid var(--ag-footer-border);border-radius:18px;padding:18px;box-shadow:0 16px 35px rgba(0,0,0,.22)}.ag-footer-card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}.ag-footer-card h2{font-size:22px;line-height:1.2;margin:0;color:var(--ag-footer-text)!important}.ag-footer-card a{color:#93c5fd!important;font-weight:800}.ag-online-count,.ag-empty-footer{color:var(--ag-footer-muted)!important;margin:10px 0 0;line-height:1.55}.ag-online-count strong{color:#fff}.ag-footer-people{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.ag-footer-people.centered{justify-content:center}.ag-mini-person,.ag-mini-bot,.ag-mini-guest{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.08);border:1px solid var(--ag-footer-border);border-radius:999px;padding:7px 10px;color:var(--ag-footer-text)!important}.ag-mini-person img{width:28px;height:28px;border-radius:50%;object-fit:cover;background:#fff}.ag-mini-bot i,.ag-mini-guest i{width:20px;height:20px;border-radius:50%;display:inline-grid;place-items:center;background:#1d4ed8;color:#fff;font-style:normal}.ag-footer-bottom{grid-column:1/-1;border-top:1px solid var(--ag-footer-border);padding-top:18px;margin-top:6px;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;color:var(--ag-footer-muted)!important}.footer-links{display:flex;gap:14px;flex-wrap:wrap}.footer-links a{color:var(--ag-footer-text)!important;font-weight:900}.footer-links a:hover,.ag-footer-card a:hover{text-decoration:underline}.footer-theme-inline{display:flex;align-items:center;gap:8px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.moderation-reason{display:block;margin-top:8px;color:#854d0e;background:#fef3c7;border:1px solid #fde68a;border-radius:8px;padding:6px}.comment-actions-cell{min-width:280px}.comment-moderation-form,.comment-delete-form{display:grid;gap:8px;min-width:260px}.comment-moderation-form textarea,.comment-delete-form input{width:100%;font-size:13px}.status-deleted{background:#111827!important;color:#fff!important}.status-spam{background:#fee2e2!important;color:#991b1b!important}.status-hidden{background:#fef3c7!important;color:#854d0e!important}.status-banned{background:#111827!important;color:#fff!important}.status-suspended{background:#fef3c7!important;color:#854d0e!important}.moderation-grid{grid-template-columns:1fr 1fr;margin-bottom:18px}.admin-live-filter{max-width:420px}.wp-table-wrap{overflow:auto}.comments-admin-table td{vertical-align:top}
@media (max-width:800px){.ag-footer-wrap{grid-template-columns:1fr}.ag-footer-bottom{align-items:flex-start;flex-direction:column}.ag-footer-live.footer{padding:26px 14px}.ag-footer-card h2{font-size:19px}.theme-toggle-text{display:none}.moderation-grid{grid-template-columns:1fr}.comment-actions-cell{min-width:220px}.comment-moderation-form,.comment-delete-form{min-width:220px}}

/* RadioaficionadosClub Platform v46 - FIX real modo oscuro + footer con contraste y selector en footer */
:root{
  --ag-footer-bg:#071a33;
  --ag-footer-card:#0c2547;
  --ag-footer-text:#f4f8ff;
  --ag-footer-muted:#c9d9f2;
  --ag-footer-border:rgba(186,211,255,.24);
}
html[data-theme="dark"]{
  --ag-bg:#0b1220;
  --ag-body:#0f172a;
  --ag-text:#eaf2ff;
  --ag-muted:#b7c6d9;
  --ag-card:#101b2f;
  --ag-panel:#142238;
  --ag-border:#334155;
  --ag-soft:#162033;
  --ag-footer-bg:#030b18;
  --ag-footer-card:#0b1628;
  --ag-footer-text:#f8fbff;
  --ag-footer-muted:#c1d3eb;
  --ag-footer-border:rgba(148,163,184,.28);
  color-scheme:dark;
}
body.ag-body{transition:background-color .18s ease,color .18s ease;background:var(--ag-body)!important;color:var(--ag-text)!important}
html[data-theme="dark"] body.ag-body{background:linear-gradient(180deg,#0b1220 0%,#0f172a 45%,#111827 100%)!important;color:var(--ag-text)!important}
html[data-theme="dark"] .featured-strip,html[data-theme="dark"] .site-header{background:linear-gradient(135deg,#020617,#0f2748)!important}
html[data-theme="dark"] .box,html[data-theme="dark"] .widget,html[data-theme="dark"] .post-card,html[data-theme="dark"] .single-post,html[data-theme="dark"] .wp-card,html[data-theme="dark"] .comments-shell,html[data-theme="dark"] .comment-card,html[data-theme="dark"] .setting-card,html[data-theme="dark"] .composer-card,html[data-theme="dark"] .composer-accordion,html[data-theme="dark"] .composer-actions,html[data-theme="dark"] .composer-preview,html[data-theme="dark"] .ag-notification-item{background:var(--ag-card)!important;border-color:var(--ag-border)!important;color:var(--ag-text)!important;box-shadow:0 12px 30px rgba(0,0,0,.32)!important}
html[data-theme="dark"] .sidebar .widget,html[data-theme="dark"] .category-scroll,html[data-theme="dark"] .publish-options label,html[data-theme="dark"] .radio-row,html[data-theme="dark"] .stats-grid div,html[data-theme="dark"] .report-box{background:var(--ag-soft)!important;border-color:var(--ag-border)!important;color:var(--ag-text)!important}
html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3,html[data-theme="dark"] h4,html[data-theme="dark"] .composer-label,html[data-theme="dark"] .live-preview-title,html[data-theme="dark"] .post-body h2,html[data-theme="dark"] .article-body{color:var(--ag-text)!important}
html[data-theme="dark"] p,html[data-theme="dark"] li,html[data-theme="dark"] td,html[data-theme="dark"] .meta,html[data-theme="dark"] .hint,html[data-theme="dark"] small,html[data-theme="dark"] .muted{color:var(--ag-muted)!important}
html[data-theme="dark"] a:not(.btn):not(.read-more):not(.btn-small){color:#93c5fd}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#07111f!important;color:var(--ag-text)!important;border-color:#42526b!important}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#94a3b8!important}
html[data-theme="dark"] .wp-table th{background:#0b1628!important;color:#dbeafe!important}html[data-theme="dark"] .wp-table td{border-color:#27364e!important;color:#e5eefb!important}html[data-theme="dark"] .wp-table tr{background:#101b2f!important}
.ag-footer-live.footer{background:var(--ag-footer-bg,#071a33)!important;color:var(--ag-footer-text,#f4f8ff)!important;text-align:left!important;padding:34px 18px!important;margin-top:44px!important}
.ag-footer-live *{color:inherit}.ag-footer-wrap{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:1.2fr .8fr;gap:18px}.ag-footer-card{background:var(--ag-footer-card,#0c2547)!important;border:1px solid var(--ag-footer-border,rgba(186,211,255,.24))!important;border-radius:18px;padding:18px;box-shadow:0 16px 35px rgba(0,0,0,.24)}.ag-footer-card h2{font-size:22px;line-height:1.2;margin:0;color:var(--ag-footer-text,#f4f8ff)!important}.ag-footer-card-head a,.ag-footer-card a{color:#bfdbfe!important;font-weight:800}.ag-online-count,.ag-empty-footer{color:var(--ag-footer-muted,#c9d9f2)!important;margin:10px 0 0;line-height:1.55}.ag-online-count strong{color:#fff!important}.ag-mini-person,.ag-mini-bot,.ag-mini-guest{background:rgba(255,255,255,.09)!important;border:1px solid var(--ag-footer-border,rgba(186,211,255,.24))!important;color:var(--ag-footer-text,#f4f8ff)!important}.ag-footer-bottom{grid-column:1/-1;border-top:1px solid var(--ag-footer-border,rgba(186,211,255,.24))!important;padding-top:18px;margin-top:6px;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;color:var(--ag-footer-muted,#c9d9f2)!important}.ag-footer-copy{color:var(--ag-footer-muted,#c9d9f2)!important}.ag-footer-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.footer-links{display:flex;gap:14px;flex-wrap:wrap}.footer-links a{color:var(--ag-footer-text,#f4f8ff)!important;font-weight:900}.footer-links a:hover,.ag-footer-card a:hover{text-decoration:underline}.theme-toggle.footer-theme-toggle{background:rgba(255,255,255,.10)!important;color:var(--ag-footer-text,#f4f8ff)!important;border:1px solid var(--ag-footer-border,rgba(186,211,255,.24))!important;border-radius:999px;padding:8px 13px;display:inline-flex;align-items:center;gap:7px;font-weight:900;box-shadow:none!important;line-height:1}.theme-toggle.footer-theme-toggle:hover{background:rgba(255,255,255,.18)!important}
@media (max-width:800px){.ag-footer-wrap{grid-template-columns:1fr}.ag-footer-bottom{align-items:flex-start;flex-direction:column}.ag-footer-actions{align-items:flex-start;flex-direction:column}.ag-footer-live.footer{padding:26px 14px!important}.ag-footer-card h2{font-size:19px}.theme-toggle-text{display:inline}}

/* RadioaficionadosClub Platform v48 - Modo oscuro público estilo portal profesional tipo Microsoft/Bing.
   - Se aplica solo a la vista pública.
   - No altera la administración.
   - Mejora contraste, tarjetas, widgets, formularios, footer y responsive. */
html[data-theme="dark"]{
  --ag-body:#1b1b1b;
  --ag-bg:#1b1b1b;
  --ag-card:#252525;
  --ag-panel:#2b2b2b;
  --ag-soft:#303030;
  --ag-border:#3a3a3a;
  --ag-text:#f1f3f5;
  --ag-muted:#c7cbd1;
  --ag-muted-2:#aeb4bc;
  --ag-link:#8cc8ff;
  --ag-accent:#3b82f6;
  --ag-accent-2:#60a5fa;
  --ag-footer-bg:#181818;
  --ag-footer-card:#242424;
  --ag-footer-text:#f1f3f5;
  --ag-footer-muted:#c5cad1;
  --ag-footer-border:#3a3a3a;
  color-scheme:dark;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body){
  background:#1b1b1b!important;
  color:var(--ag-text)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .site-header,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .featured-strip,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .wp-hero{
  background:#1f1f1f!important;
  border-color:#343434!important;
  box-shadow:0 10px 28px rgba(0,0,0,.38)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .topbar nav a,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) nav a{
  color:#eceff3!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .topbar nav a.active,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .topbar nav a:hover{
  background:#333333!important;
  color:#fff!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .box,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .widget,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .post-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .single-post,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .wp-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comments-shell,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comment-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-accordion,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-actions,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-preview,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-main-panel,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-side-panel,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .photo-upload-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .photo-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-notification-item{
  background:var(--ag-card)!important;
  border-color:var(--ag-border)!important;
  color:var(--ag-text)!important;
  box-shadow:0 12px 26px rgba(0,0,0,.34)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .sidebar .widget,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .category-scroll,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .publish-options label,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .radio-row,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .stats-grid div,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .report-box,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .empty-state,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .bb-toolbar,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .image-internal-uploader,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .internal-image-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-preview{
  background:var(--ag-panel)!important;
  border-color:var(--ag-border)!important;
  color:var(--ag-text)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .post-card:hover,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .widget:hover{
  box-shadow:0 18px 40px rgba(0,0,0,.46)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) h1,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) h2,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) h3,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) h4,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) h5,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) h6,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .post-card h2,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .post-body h2,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-label,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .live-preview-title,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-title,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .widget-title{
  color:#f7f8fa!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) p,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) li,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) td,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) th,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .content,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .article-body,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .single-post,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .post-body,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comment-body{
  color:#e7e9ed!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .meta,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .hint,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) small,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .muted,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .post-card .excerpt,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-online-count,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-empty-footer{
  color:var(--ag-muted)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) a:not(.btn):not(.read-more):not(.btn-small):not(.ag-mini-person){
  color:var(--ag-link)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) input,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) select,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) textarea{
  background:#202020!important;
  color:#f1f3f5!important;
  border-color:#484848!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) input:focus,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) select:focus,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) textarea:focus{
  border-color:#6bb7ff!important;
  outline:2px solid rgba(107,183,255,.18)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) input::placeholder,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) textarea::placeholder{
  color:#aeb4bc!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .bb-toolbar button,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-acc-btn,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .btn.light{
  background:#303030!important;
  border-color:#484848!important;
  color:#f2f4f6!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .bb-toolbar button:hover,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-acc-btn:hover,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .btn.light:hover{
  background:#3a3a3a!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .btn,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) button:not(.composer-acc-btn):not(.theme-toggle),
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .read-more{
  background:linear-gradient(180deg,#2563eb,#1d4ed8)!important;
  border-color:#3b82f6!important;
  color:#fff!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .alert{
  background:#3a2618!important;
  border-color:#8a5a2b!important;
  color:#ffd7a3!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .success{
  background:#17351f!important;
  border-color:#2f8a4b!important;
  color:#c6f6d5!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .wp-table th{
  background:#2b2b2b!important;
  color:#f1f3f5!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .wp-table td,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .wp-table tr{
  background:#252525!important;
  border-color:#3a3a3a!important;
  color:#e7e9ed!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-footer-live.footer{
  background:#181818!important;
  color:#f1f3f5!important;
  border-top:1px solid #343434!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-footer-card{
  background:#242424!important;
  border-color:#3a3a3a!important;
  box-shadow:0 12px 26px rgba(0,0,0,.32)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-footer-card h2,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .footer-links a{
  color:#f7f8fa!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-footer-copy,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-footer-bottom,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-online-count,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-empty-footer{
  color:#c7cbd1!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-mini-person,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-mini-bot,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-mini-guest,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .theme-toggle.footer-theme-toggle{
  background:#303030!important;
  border-color:#484848!important;
  color:#f1f3f5!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-mini-person:hover,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .theme-toggle.footer-theme-toggle:hover{
  background:#3a3a3a!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .cookie-banner{
  background:#242424!important;
  border-color:#3a3a3a!important;
  color:#f1f3f5!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) img{
  filter:none;
}
/* La administración conserva su aspecto claro aunque el usuario use modo oscuro en la web pública. */
html[data-theme="dark"] body.ag-admin-body{
  background:#f1f5f9!important;
  color:#0f172a!important;
}
@media(max-width:800px){
  html[data-theme="dark"] body.ag-body:not(.ag-admin-body){background:#1b1b1b!important;}
  html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .post-card,
  html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .widget,
  html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .box{
    border-radius:14px!important;
  }
}

/* RadioaficionadosClub Platform v49 - Modo oscuro profesional inspirado en buscadores modernos.
   Paleta: no usa negro puro; usa grises profundos, texto suave, tarjetas con capas y alto contraste.
   Solo afecta la vista pública. La administración conserva su diseño claro. */
html[data-theme="dark"]{
  --ag-body:#181A1B;
  --ag-bg:#181A1B;
  --ag-card:#202124;
  --ag-panel:#24282C;
  --ag-soft:#1E2124;
  --ag-surface-2:#2A2D31;
  --ag-border:#343A40;
  --ag-border-soft:#2D3339;
  --ag-text:#E8EAED;
  --ag-muted:#B0B3B8;
  --ag-muted-2:#8A8D91;
  --ag-link:#58A6FF;
  --ag-link-hover:#8CC8FF;
  --ag-accent:#0D6EFD;
  --ag-accent-hover:#0B5ED7;
  --ag-success:#198754;
  --ag-warning:#FFC107;
  --ag-danger:#DC3545;
  --ag-footer-bg:#151718;
  --ag-footer-card:#202124;
  --ag-footer-text:#E8EAED;
  --ag-footer-muted:#B0B3B8;
  --ag-footer-border:#343A40;
  color-scheme:dark;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body){
  background:linear-gradient(180deg,#181A1B 0%,#1B1D1F 46%,#181A1B 100%)!important;
  color:var(--ag-text)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .site-header,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .featured-strip,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .wp-hero,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .portal-shell,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .portal-tabs{
  background:linear-gradient(180deg,#202124,#1B1D1F)!important;
  border-color:var(--ag-border)!important;
  box-shadow:0 10px 28px rgba(0,0,0,.42)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .topbar nav a,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) nav a{color:var(--ag-text)!important;}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) nav a:hover,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) nav a.active,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .topbar nav a.active{
  background:#2A2D31!important;color:#fff!important;border-radius:8px;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .box,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .widget,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .post-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .single-post,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .wp-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comments-shell,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comment-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-accordion,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-actions,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-preview,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-main-panel,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-side-panel,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-classic,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .avatar-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .photo-upload-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .photo-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-notification-item,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-footer-card{
  background:var(--ag-card)!important;
  border-color:var(--ag-border)!important;
  color:var(--ag-text)!important;
  box-shadow:0 12px 30px rgba(0,0,0,.36)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .sidebar .widget,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .category-scroll,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .publish-options label,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .radio-row,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .stats-grid div,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .report-box,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .empty-state,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .bb-toolbar,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .image-internal-uploader,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .internal-image-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-tabs,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .setting-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-notification-item.unread{
  background:var(--ag-panel)!important;
  border-color:var(--ag-border)!important;
  color:var(--ag-text)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .post-card:hover,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .widget:hover,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .wp-card:hover{
  background:#24282C!important;
  box-shadow:0 18px 42px rgba(0,0,0,.48)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) h1,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) h2,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) h3,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) h4,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) h5,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) h6,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .post-card h2,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .post-body h2,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-label,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .live-preview-title,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-title,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .widget-title{
  color:var(--ag-text)!important;
  text-shadow:none!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) p,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) li,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) td,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) th,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .content,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .article-body,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .single-post,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .post-body,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comment-body{
  color:var(--ag-text)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .meta,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .hint,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) small,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .muted,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .post-card .excerpt,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-note,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .classic-powered{
  color:var(--ag-muted)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) a:not(.btn):not(.read-more):not(.btn-small):not(.ag-mini-person):not(.nav-publish){
  color:var(--ag-link)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) a:not(.btn):not(.read-more):not(.btn-small):hover{color:var(--ag-link-hover)!important;}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) input,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) select,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) textarea{
  background:#1E2124!important;
  color:var(--ag-text)!important;
  border-color:#3E454D!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) input:focus,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) select:focus,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) textarea:focus{
  border-color:var(--ag-link)!important;
  outline:2px solid rgba(88,166,255,.20)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) input::placeholder,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) textarea::placeholder{color:var(--ag-muted-2)!important;}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .bb-toolbar button,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-acc-btn,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .btn.light,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .theme-toggle.footer-theme-toggle{
  background:#2A2D31!important;
  border-color:#3E454D!important;
  color:var(--ag-text)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .bb-toolbar button:hover,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-acc-btn:hover,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .btn.light:hover,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .theme-toggle.footer-theme-toggle:hover{background:#343A40!important;}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .btn,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) button:not(.composer-acc-btn):not(.theme-toggle),
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .read-more,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .nav-publish{
  background:linear-gradient(180deg,var(--ag-accent),var(--ag-accent-hover))!important;
  border-color:#2F81F7!important;
  color:#fff!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .tags span,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .badge,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .status{
  background:#223146!important;
  color:#B9D7FF!important;
  border-color:#34465F!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .alert{background:#3A2A18!important;border-color:#7C561F!important;color:#FFD89C!important;}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .success{background:#17351F!important;border-color:#198754!important;color:#C6F6D5!important;}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .wp-table th{background:#24282C!important;color:var(--ag-text)!important;}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .wp-table td,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .wp-table tr{background:#202124!important;border-color:var(--ag-border)!important;color:var(--ag-text)!important;}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .bbc_quote{background:#24282C!important;border-left-color:var(--ag-link)!important;color:var(--ag-text)!important;}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .bbc_quote .cita{color:#fff!important;}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .code-block,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .bbc-content pre{background:#111315!important;border:1px solid var(--ag-border)!important;color:#D7E3F4!important;}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-footer-live.footer{background:var(--ag-footer-bg)!important;color:var(--ag-footer-text)!important;border-top:1px solid var(--ag-footer-border)!important;}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-footer-card{background:var(--ag-footer-card)!important;border-color:var(--ag-footer-border)!important;}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-footer-card h2,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .footer-links a{color:var(--ag-footer-text)!important;}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-footer-copy,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-footer-bottom,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-online-count,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-empty-footer{color:var(--ag-footer-muted)!important;}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-mini-person,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-mini-bot,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-mini-guest{background:#2A2D31!important;border-color:#3E454D!important;color:var(--ag-text)!important;}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .cookie-banner{background:#202124!important;border-color:var(--ag-border)!important;color:var(--ag-text)!important;}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .cover,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .single-cover{background:#2A2D31!important;}
@media(max-width:800px){html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .post-card{background:var(--ag-card)!important;}html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .layout{background:transparent!important;}}

/* RadioaficionadosClub Platform v51 - auditoría visual final modo oscuro público.
   Corrige contraste heredado en portada, widgets, footer y acciones sin tocar administración. */
html[data-theme="dark"]{
  --ag-bg:#181A1B;
  --ag-bg-2:#1B1D20;
  --ag-card:#202124;
  --ag-panel:#24282C;
  --ag-panel-2:#2A2F35;
  --ag-border:#343A40;
  --ag-border-soft:#2F353B;
  --ag-text:#E8EAED;
  --ag-title:#F1F3F4;
  --ag-muted:#B0B3B8;
  --ag-muted-2:#8A8D91;
  --ag-link:#58A6FF;
  --ag-link-hover:#7DBBFF;
  --ag-accent:#2563EB;
  --ag-accent-hover:#1D4ED8;
  --ag-footer-bg:#181A1B;
  --ag-footer-card:#202124;
  --ag-footer-text:#E8EAED;
  --ag-footer-muted:#B0B3B8;
  --ag-footer-border:#343A40;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body){
  background:var(--ag-bg)!important;
  color:var(--ag-text)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .layout,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-home-layout{
  background:transparent!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-feed,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .content.ag-feed,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .single-post,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .wp-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .box,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comments-shell,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-main-panel,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-side-panel,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-classic,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .photo-upload-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .photo-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-notification-item{
  background:var(--ag-card)!important;
  color:var(--ag-text)!important;
  border-color:var(--ag-border)!important;
  box-shadow:0 12px 32px rgba(0,0,0,.34)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-sidebar .widget,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .sidebar .widget,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .widget,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .stats-grid div,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .category-scroll,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .report-box,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .empty-state,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .bb-toolbar,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .image-internal-uploader,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .internal-image-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-preview,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comment-card{
  background:var(--ag-panel)!important;
  color:var(--ag-text)!important;
  border-color:var(--ag-border)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .section-head{
  background:transparent!important;
  border:0!important;
  color:var(--ag-title)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .section-title,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .widget h3,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .widget-title,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-post-body h2,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-post-body h2 a,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) h1,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) h2,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) h3,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) h4{
  color:var(--ag-title)!important;
  background:transparent!important;
  text-shadow:none!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .section-title::before{
  color:var(--ag-link)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .section-head .section-action,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .section-head>a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:38px;
  padding:9px 14px;
  border-radius:999px;
  background:linear-gradient(180deg,var(--ag-accent),var(--ag-accent-hover))!important;
  color:#fff!important;
  border:1px solid rgba(88,166,255,.45)!important;
  box-shadow:0 8px 18px rgba(37,99,235,.25)!important;
  text-decoration:none!important;
  font-weight:900!important;
  white-space:nowrap;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .section-head .section-action:hover,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .section-head>a:hover{
  filter:brightness(1.08);
  transform:translateY(-1px);
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-post-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .post-card{
  background:var(--ag-card)!important;
  border-color:var(--ag-border)!important;
  color:var(--ag-text)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-post-card:hover,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .post-card:hover{
  background:var(--ag-panel)!important;
  box-shadow:0 18px 42px rgba(0,0,0,.48)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .post-excerpt,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .article-body,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .bbc-content,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comment-body,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) p,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) li,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) label{
  color:var(--ag-text)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .post-meta,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .meta,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) small,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .muted,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .hint,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .widget small,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .post-mini-actions,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .signature-mini{
  color:var(--ag-muted)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .signature-mini,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .bbc-content blockquote,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .bbc-spoiler{
  background:#1F2933!important;
  border-color:#3B4652!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .pill,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .tags span,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .tags a,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .badge,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .status{
  background:#223146!important;
  color:#B9D7FF!important;
  border:1px solid #34465F!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) a:not(.btn):not(.read-more):not(.btn-small):not(.ag-mini-person):not(.nav-publish):not(.section-action){
  color:var(--ag-link)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) a:not(.btn):not(.read-more):not(.btn-small):not(.section-action):hover{
  color:var(--ag-link-hover)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) input,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) select,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) textarea{
  background:#1E2124!important;
  color:var(--ag-text)!important;
  border-color:#3E454D!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-footer-live.footer{
  background:var(--ag-footer-bg)!important;
  color:var(--ag-footer-text)!important;
  border-top:1px solid var(--ag-footer-border)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-footer-card{
  background:var(--ag-footer-card)!important;
  color:var(--ag-footer-text)!important;
  border-color:var(--ag-footer-border)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-footer-card h2,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .footer-links a{
  color:var(--ag-footer-text)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-footer-copy,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-online-count,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-empty-footer{
  color:var(--ag-footer-muted)!important;
}
@media(max-width:700px){
  html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .section-head{align-items:flex-start;gap:10px;flex-direction:column;}
  html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .section-head .section-action,
  html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .section-head>a{width:100%;}
}

/* RadioaficionadosClub Platform v52 - modo oscuro unificado en TODA la zona pública.
   Objetivo: aplicar el mismo lenguaje visual de la portada a buscar, tendencias,
   perfiles públicos/privados, categorías, etiquetas, estadísticas, notificaciones,
   formularios, comentarios y widgets. El modo claro y administración no se tocan. */
html[data-theme="dark"]{
  --ag-bg:#181A1B;
  --ag-bg-elevated:#1E2124;
  --ag-card:#202124;
  --ag-panel:#24282C;
  --ag-panel-2:#2A2F35;
  --ag-border:#343A40;
  --ag-border-2:#3E454D;
  --ag-text:#E8EAED;
  --ag-title:#F1F3F4;
  --ag-muted:#B0B3B8;
  --ag-muted-2:#8A8D91;
  --ag-link:#58A6FF;
  --ag-link-hover:#7DBBFF;
  --ag-blue:#2563EB;
  --ag-blue-2:#1D4ED8;
  --ag-success-bg:#17351F;
  --ag-success:#C6F6D5;
  --ag-warning-bg:#3A2A18;
  --ag-warning:#FFD89C;
  --ag-danger-bg:#3A1D1D;
  --ag-danger:#FFB4B4;
  color-scheme:dark;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body),
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) main,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .page-shell,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-account-shell,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .public-profile-shell,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .taxonomy-results,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .trends-wrap,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .executive-wrap{
  background:var(--ag-bg)!important;
  color:var(--ag-text)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .site-header,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .topbar,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .featured-strip,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-hero,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .wp-hero,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .page-hero,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .public-profile-hero{
  background:linear-gradient(135deg,#1E2124 0%,#202124 45%,#24282C 100%)!important;
  color:var(--ag-title)!important;
  border-color:var(--ag-border)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .box,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .panel-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .wp-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .widget,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .post-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-post-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .single-post,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comments-shell,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comment-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .search-box,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .result-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .user-row,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .rank-row,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-trend-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-online-panel,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-birthday-panel,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-online-user,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-online-bot,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-birthday-user,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-main-panel,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-side-panel,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-side,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .avatar-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-classic,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-private-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .photo-upload-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .photo-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .public-gallery-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-notification-item,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-empty-state,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-accordion,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-preview,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .tags-panel-pro,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .seo-panel-pro,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .category-tree,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .publish-options,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .legal-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .request-card{
  background:var(--ag-card)!important;
  color:var(--ag-text)!important;
  border-color:var(--ag-border)!important;
  box-shadow:0 14px 34px rgba(0,0,0,.35)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .sidebar .widget,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-sidebar .widget,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .stats-grid div,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .kpi-grid > *,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .hub-panel,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .taxonomy-grid > *,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .action-grid > *,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .bbcode-grid > *,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .category-scroll,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .bb-toolbar,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-inline-image-uploader,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-inline-image-drop,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .internal-image-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .publish-options label,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .radio-row,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .field,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .privacy-toggle-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .account-media-grid,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .blocked-item,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .report-box,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .share-box,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .reaction-box,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .signature-box,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .empty-comments,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-tabs,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .tag-cloud a,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .tags a,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .tags span{
  background:var(--ag-panel)!important;
  color:var(--ag-text)!important;
  border-color:var(--ag-border-2)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) h1,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) h2,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) h3,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) h4,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) h5,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) h6,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .section-title,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .widget-title,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .wp-card-title,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-section-title,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-label,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-title,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .live-preview-title,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-inline-image-titlewrap strong,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .post-body h2,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-post-body h2,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-trend-body h2,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .article-body h2,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comments-header strong{
  color:var(--ag-title)!important;
  background:transparent!important;
  text-shadow:none!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) p,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) li,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) label,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) td,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .article-body,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .bbc-content,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .post-excerpt,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comment-body,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-public-list,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .classic-message{
  color:var(--ag-text)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .muted,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .hint,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .meta,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .post-meta,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) small,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .eyebrow,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .upload-note,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .post-mini-actions,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .signature-mini,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .char-counter,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-inline-image-status,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-note{
  color:var(--ag-muted)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) a:not(.btn):not(.btn-small):not(.read-more):not(.nav-publish):not(.section-action){
  color:var(--ag-link)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) a:not(.btn):not(.btn-small):not(.read-more):not(.section-action):hover{
  color:var(--ag-link-hover)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) input,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) select,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) textarea,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .search-form input{
  background:var(--ag-bg-elevated)!important;
  color:var(--ag-text)!important;
  border-color:var(--ag-border-2)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) input::placeholder,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) textarea::placeholder{
  color:var(--ag-muted-2)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .section-head,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-topbar,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-online-head,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comments-header{
  background:transparent!important;
  color:var(--ag-title)!important;
  border-color:var(--ag-border)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .section-head .section-action,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .section-head > a,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .read-more,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .btn.blue,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .btn.green,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .btn:not(.light):not(.ghost):not(.danger),
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .btn-small,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .nav-publish{
  background:linear-gradient(180deg,var(--ag-blue),var(--ag-blue-2))!important;
  color:#fff!important;
  border:1px solid rgba(88,166,255,.45)!important;
  box-shadow:0 8px 18px rgba(37,99,235,.25)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .btn.light,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .btn.ghost,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .bb-toolbar button,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .bb-tool-row button,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-tabs a,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .hub-tabs a,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comment-reply-btn{
  background:var(--ag-panel-2)!important;
  color:var(--ag-text)!important;
  border-color:var(--ag-border-2)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-tabs a.active,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .hub-tabs a.active,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .bb-toolbar button:hover,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .bb-tool-row button:hover{
  background:#223146!important;
  color:#B9D7FF!important;
  border-color:#4E74A8!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .pill,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .badge,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .status-pill,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .guest-pill,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-inline-image-badge,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .public-badges span{
  background:#223146!important;
  color:#B9D7FF!important;
  border:1px solid #34465F!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .success,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .classic-message.success{
  background:var(--ag-success-bg)!important;
  color:var(--ag-success)!important;
  border-color:#198754!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .alert,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .warning-box{
  background:var(--ag-warning-bg)!important;
  color:var(--ag-warning)!important;
  border-color:#7C561F!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .error-box,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .btn.danger{
  background:var(--ag-danger-bg)!important;
  color:var(--ag-danger)!important;
  border-color:#7F2F2F!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .wp-table,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) table{
  background:var(--ag-card)!important;
  color:var(--ag-text)!important;
  border-color:var(--ag-border)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) th{
  background:var(--ag-panel)!important;
  color:var(--ag-title)!important;
  border-color:var(--ag-border)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) td,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) tr{
  background:var(--ag-card)!important;
  color:var(--ag-text)!important;
  border-color:var(--ag-border)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-footer-live.footer{
  background:#181A1B!important;
  color:var(--ag-text)!important;
  border-top:1px solid var(--ag-border)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-footer-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-footer-bottom{
  background:var(--ag-card)!important;
  color:var(--ag-text)!important;
  border-color:var(--ag-border)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-footer-card h2,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .footer-links a,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-footer-copy strong{
  color:var(--ag-title)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-footer-copy,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-online-count,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-empty-footer{
  color:var(--ag-muted)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .menu-overlay,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .nav-bell-menu,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .cookie-banner{
  background:var(--ag-card)!important;
  color:var(--ag-text)!important;
  border-color:var(--ag-border)!important;
}
@media(max-width:800px){
  html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .layout,
  html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-home-layout,
  html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .two-panels,
  html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-classic-grid,
  html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .public-profile-grid{
    background:var(--ag-bg)!important;
  }
}


/* RadioaficionadosClub Platform v53 - auditoría final de contraste modo oscuro público.
   Corrige páginas internas como /buscar, /tendencias, /usuario/id/* y módulos heredados.
   Importante: solo afecta html[data-theme="dark"] en zona pública; modo claro y administración intactos. */
html[data-theme="dark"]{
  --ag-bg:#181A1B;
  --ag-bg-elevated:#1E2124;
  --ag-card:#202124;
  --ag-panel:#24282C;
  --ag-panel-2:#2A2F35;
  --ag-border:#343A40;
  --ag-border-2:#3E454D;
  --ag-text:#E8EAED;
  --ag-title:#F1F3F4;
  --ag-muted:#B0B3B8;
  --ag-muted-2:#9AA0A6;
  --ag-link:#58A6FF;
  --ag-link-hover:#7DBBFF;
  --ag-blue:#2563EB;
  --ag-blue-2:#1D4ED8;
  color-scheme:dark;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body){
  background:var(--ag-bg)!important;
  color:var(--ag-text)!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) main,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .executive-wrap,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .page-shell,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .layout,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-home-layout,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .two-panels,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-account-shell,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .public-profile-shell,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .trends-wrap,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .taxonomy-results{
  background:var(--ag-bg)!important;
  color:var(--ag-text)!important;
}

/* Tarjetas principales: corrige cajas blancas que quedaban en páginas internas */
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .panel-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .search-box,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .box,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .widget,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .wp-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .post-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-post-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .single-post,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comments-shell,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comment-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .result-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .user-row,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .rank-row,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-trend-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-main-panel,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-side-panel,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-side,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-classic,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .avatar-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-private-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .photo-upload-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .photo-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .public-gallery-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-notification-item,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .legal-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .request-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-accordion,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-preview,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-actions{
  background:var(--ag-card)!important;
  background-color:var(--ag-card)!important;
  color:var(--ag-text)!important;
  border-color:var(--ag-border)!important;
  box-shadow:0 14px 34px rgba(0,0,0,.35)!important;
}

/* Submódulos internos */
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .sidebar .widget,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-sidebar .widget,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .stats-grid div,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .kpi-grid > *,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .hub-panel,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .taxonomy-grid > *,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .action-grid > *,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .bbcode-grid > *,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .category-scroll,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .bb-toolbar,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .bb-toolbar-pro,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .image-internal-uploader,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-inline-image-uploader,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-inline-image-drop,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .internal-image-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .publish-options,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .publish-options label,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .radio-row,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .field,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .privacy-toggle-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .account-media-grid,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .blocked-item,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .report-box,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .share-box,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .reaction-box,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .signature-box,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .empty-comments,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-tabs,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .tag-cloud a,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .tags a,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .tags span{
  background:var(--ag-panel)!important;
  background-color:var(--ag-panel)!important;
  color:var(--ag-text)!important;
  border-color:var(--ag-border-2)!important;
}

/* Tipografía: fuerza contraste en títulos que heredaban blanco sobre fondo blanco */
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) h1,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) h2,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) h3,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) h4,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) h5,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) h6,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .section-title,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .widget-title,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .wp-card-title,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-section-title,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-label,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-title,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .live-preview-title,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-trend-body h2,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .article-body h2,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comments-header strong,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .search-box h1,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .panel-card h1,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .panel-card h2,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .panel-card strong,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .result-card strong,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .user-row strong{
  color:var(--ag-title)!important;
  background:transparent!important;
  text-shadow:none!important;
  opacity:1!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) p,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) li,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) label,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) td,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) span,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .article-body,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .bbc-content,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .post-excerpt,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comment-body,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-public-list,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .classic-message,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .result-card p{
  color:var(--ag-text)!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .muted,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .hint,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .meta,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .post-meta,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) small,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .eyebrow,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .upload-note,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .post-mini-actions,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .signature-mini,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .char-counter,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-note,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .result-card small,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .user-row span{
  color:var(--ag-muted)!important;
}

/* Formularios y buscador */
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) input,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) select,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) textarea,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .search-form input{
  background:var(--ag-bg-elevated)!important;
  background-color:var(--ag-bg-elevated)!important;
  color:var(--ag-text)!important;
  border-color:var(--ag-border-2)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) input::placeholder,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) textarea::placeholder{
  color:var(--ag-muted-2)!important;
  opacity:1!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) input:focus,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) select:focus,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) textarea:focus{
  border-color:var(--ag-link)!important;
  outline:2px solid rgba(88,166,255,.22)!important;
}

/* Encabezados de módulos estilo portada */
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .section-head,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-topbar,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-online-head,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comments-header{
  background:transparent!important;
  color:var(--ag-title)!important;
  border-color:var(--ag-border)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .section-head .section-action,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .section-head > a,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .read-more,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .btn.blue,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .btn.green,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .btn:not(.light):not(.ghost):not(.danger),
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .btn-small,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .nav-publish,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) button[type="submit"]{
  background:linear-gradient(180deg,var(--ag-blue),var(--ag-blue-2))!important;
  color:#fff!important;
  border:1px solid rgba(88,166,255,.45)!important;
  box-shadow:0 8px 18px rgba(37,99,235,.25)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .btn.light,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .btn.ghost,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .bb-toolbar button,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .bb-tool-row button,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-tabs a,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .hub-tabs a,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comment-reply-btn,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .theme-toggle.footer-theme-toggle{
  background:var(--ag-panel-2)!important;
  color:var(--ag-text)!important;
  border-color:var(--ag-border-2)!important;
  box-shadow:none!important;
}

/* Enlaces y etiquetas */
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) a:not(.btn):not(.btn-small):not(.read-more):not(.nav-publish):not(.section-action):not(.ag-mini-person){
  color:var(--ag-link)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) a:not(.btn):not(.btn-small):not(.read-more):not(.section-action):hover{
  color:var(--ag-link-hover)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .pill,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .badge,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .status-pill,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .guest-pill,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-inline-image-badge,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .public-badges span{
  background:#223146!important;
  color:#B9D7FF!important;
  border:1px solid #34465F!important;
}

/* Tablas, menús flotantes y footer */
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) table,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .wp-table{
  background:var(--ag-card)!important;
  color:var(--ag-text)!important;
  border-color:var(--ag-border)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) th{background:var(--ag-panel)!important;color:var(--ag-title)!important;border-color:var(--ag-border)!important;}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) td,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) tr{background:var(--ag-card)!important;color:var(--ag-text)!important;border-color:var(--ag-border)!important;}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .menu-overlay,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .nav-bell-menu,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .cookie-banner{
  background:var(--ag-card)!important;
  color:var(--ag-text)!important;
  border-color:var(--ag-border)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-footer-live.footer,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .footer{
  background:#181A1B!important;
  color:var(--ag-text)!important;
  border-top:1px solid var(--ag-border)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-footer-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-footer-bottom{
  background:var(--ag-card)!important;
  color:var(--ag-text)!important;
  border-color:var(--ag-border)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-footer-card h2,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .footer-links a,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-footer-copy strong{
  color:var(--ag-title)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-footer-copy,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-online-count,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-empty-footer{
  color:var(--ag-muted)!important;
}

@media(max-width:800px){
  html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .panel-card,
  html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .search-box,
  html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .widget,
  html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .post-card,
  html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .single-post{
    border-radius:14px!important;
  }
  html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .section-head{align-items:flex-start;gap:10px;flex-direction:column;}
  html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .section-head .section-action,
  html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .section-head > a{width:100%;}
}

/* RadioaficionadosClub Platform v54 - barrido final de cajas blancas en modo oscuro público.
   Corrige módulos de carga de imágenes/archivos en cuenta, perfil y publicador.
   No modifica modo claro ni administración. */
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .account-media-grid,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .account-media-grid label,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .account-pro-panel,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .account-pro-form,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-section,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-section-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-private-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-media-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .photo-upload-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .upload-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .upload-box,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .upload-panel,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .upload-area,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .dropzone,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .drop-zone,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .file-box,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .image-editor-box,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .image-editor-actions,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .image-editor-tools,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .image-editor-stage,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-inline-image-uploader,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-inline-image-drop,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .image-internal-uploader,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .internal-image-card{
  background:var(--ag-card)!important;
  background-color:var(--ag-card)!important;
  color:var(--ag-text)!important;
  border-color:var(--ag-border)!important;
  box-shadow:0 14px 34px rgba(0,0,0,.35)!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .account-media-grid label,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .upload-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .upload-box,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .upload-panel,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .upload-area,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .dropzone,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .drop-zone,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .file-box,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-inline-image-drop,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .image-editor-stage{
  background:var(--ag-panel)!important;
  background-color:var(--ag-panel)!important;
  border:1px solid var(--ag-border-2)!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-section-title,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-section-title h2,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .account-media-grid label,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .account-media-grid label > span,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .account-media-grid label > strong,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .photo-upload-card h1,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .photo-upload-card h2,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .photo-upload-card h3,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .upload-card h1,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .upload-card h2,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .upload-card h3,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-inline-image-titlewrap strong{
  color:var(--ag-title)!important;
  text-shadow:none!important;
  opacity:1!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-section-title p,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .account-media-grid small,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .account-media-grid .upload-note,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .upload-note,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .editor-help,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-inline-image-status{
  color:var(--ag-muted)!important;
  opacity:1!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) input[type="file"],
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .account-media-grid input[type="file"]{
  width:100%!important;
  background:var(--ag-bg-elevated)!important;
  background-color:var(--ag-bg-elevated)!important;
  color:var(--ag-text)!important;
  border:1px solid var(--ag-border-2)!important;
  border-radius:12px!important;
  padding:10px!important;
  box-shadow:none!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) input[type="file"]::file-selector-button,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .account-media-grid input[type="file"]::file-selector-button{
  background:linear-gradient(180deg,var(--ag-blue),var(--ag-blue-2))!important;
  color:#fff!important;
  border:1px solid rgba(88,166,255,.45)!important;
  border-radius:9px!important;
  padding:8px 12px!important;
  margin-right:10px!important;
  font-weight:900!important;
  cursor:pointer!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) input[type="file"]::-webkit-file-upload-button,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .account-media-grid input[type="file"]::-webkit-file-upload-button{
  background:linear-gradient(180deg,var(--ag-blue),var(--ag-blue-2))!important;
  color:#fff!important;
  border:1px solid rgba(88,166,255,.45)!important;
  border-radius:9px!important;
  padding:8px 12px!important;
  margin-right:10px!important;
  font-weight:900!important;
  cursor:pointer!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-section-title{
  border-top-color:var(--ag-border)!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .image-editor-modal{
  background:rgba(0,0,0,.72)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .image-editor-head{
  background:linear-gradient(135deg,#1E2124,#24282C)!important;
  color:var(--ag-title)!important;
  border-bottom:1px solid var(--ag-border)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .image-editor-head button{
  background:var(--ag-panel-2)!important;
  border-color:var(--ag-border-2)!important;
  color:var(--ag-title)!important;
}

@media(max-width:700px){
  html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .account-media-grid,
  html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .account-media-grid label{
    border-radius:14px!important;
  }
}

/* RadioaficionadosClub Platform v55 - corrección visual profunda de modo oscuro público.
   Zonas corregidas: publicador, perfil/cuenta, publicaciones recientes del perfil,
   zona social de publicaciones, reacciones/likes y comentarios.
   Mantiene intactos modo claro y administración. */
html[data-theme="dark"] body.ag-body:not(.ag-admin-body){
  --ag-dark-bg:#181A1B;
  --ag-dark-surface:#202124;
  --ag-dark-surface-2:#24282C;
  --ag-dark-surface-3:#1E2124;
  --ag-dark-border:#343A40;
  --ag-dark-border-2:#3D444D;
  --ag-dark-title:#F1F5F9;
  --ag-dark-text:#E8EAED;
  --ag-dark-muted:#B0B8C2;
  --ag-dark-muted-2:#8A94A3;
  --ag-dark-link:#58A6FF;
  --ag-dark-blue:#2563EB;
  background:var(--ag-dark-bg)!important;
  color:var(--ag-dark-text)!important;
}

/* Perfil: tarjetas laterales, avatar y progreso */
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-side,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .avatar-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-complete{
  background:var(--ag-dark-surface)!important;
  color:var(--ag-dark-text)!important;
  border:1px solid var(--ag-dark-border)!important;
  box-shadow:0 18px 38px rgba(0,0,0,.32)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .avatar-card h3,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-complete h3{
  color:var(--ag-dark-title)!important;
  background:transparent!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .avatar-edit,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .avatar-edit-secondary{
  background:var(--ag-dark-surface-2)!important;
  color:var(--ag-dark-link)!important;
  border-top:1px solid var(--ag-dark-border)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .avatar-edit:hover,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .avatar-edit-secondary:hover{
  background:#223146!important;
  color:#B9D7FF!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .progressbar{
  background:#30343A!important;
  border:1px solid var(--ag-dark-border)!important;
  overflow:hidden!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .progressbar span{
  background:linear-gradient(135deg,#0EA5E9,#2563EB)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-note{
  color:var(--ag-dark-muted)!important;
}

/* Perfil público: publicaciones recientes y listados */
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .public-profile-shell .wp-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .public-gallery-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .public-post-list a{
  background:var(--ag-dark-surface)!important;
  color:var(--ag-dark-text)!important;
  border:1px solid var(--ag-dark-border)!important;
  box-shadow:0 14px 34px rgba(0,0,0,.28)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .public-post-list a{
  background:var(--ag-dark-surface-2)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .public-post-list a strong{
  color:var(--ag-dark-link)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .public-post-list a span{
  color:var(--ag-dark-muted)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .public-post-list a small{
  color:#C9D1D9!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .wp-card-title,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .wp-card-title h2{
  color:var(--ag-dark-title)!important;
  background:transparent!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .wp-card-title small{
  color:var(--ag-dark-muted)!important;
}

/* Publicador: cajas principales, acordeones, portada, ayuda, editor y vista previa */
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-shell,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-topbar,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-accordion,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-acc-body,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-form,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .bb-toolbar,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .bb-toolbar-pro,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .bbcode-grid,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .bbcode-grid div,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .image-uploader,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .cover-preview,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .live-preview,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .preview-box,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-inline-image-uploader,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-inline-image-uploader-pro,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-inline-image-header,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-inline-image-drop{
  background:var(--ag-dark-surface)!important;
  color:var(--ag-dark-text)!important;
  border-color:var(--ag-dark-border)!important;
  box-shadow:0 14px 34px rgba(0,0,0,.30)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-acc-body,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .bb-toolbar-pro,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-inline-image-drop,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .live-preview,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .preview-box{
  background:var(--ag-dark-surface-2)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-acc-btn{
  background:linear-gradient(180deg,#202124,#1E2124)!important;
  color:var(--ag-dark-title)!important;
  border-color:var(--ag-dark-border)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-topbar h1,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-label,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-headline,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-headline span,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-inline-image-titlewrap strong,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .live-preview-title{
  color:var(--ag-dark-title)!important;
  background:transparent!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-topbar p,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-inline-image-titlewrap p,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .bbcode-grid span,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .char-counter,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .editor-help{
  color:var(--ag-dark-muted)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .bbcode-grid code{
  background:#111827!important;
  color:#D7E7FF!important;
  border:1px solid var(--ag-dark-border-2)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .bb-tool-row button,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .bb-inline-select{
  background:#223146!important;
  color:#EAF2FF!important;
  border:1px solid #3B5575!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .cover-preview img,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .public-avatar,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .avatar-frame img{
  border-color:var(--ag-dark-border-2)!important;
}

/* Publicación: compartir, redes sociales, reacciones/likes y reportes */
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .viral-actions,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .share-box,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .reaction-box,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .report-box,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .signature-box{
  background:var(--ag-dark-surface-2)!important;
  color:var(--ag-dark-text)!important;
  border:1px solid var(--ag-dark-border)!important;
  box-shadow:0 14px 34px rgba(0,0,0,.25)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .share-box strong,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .signature-box strong,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .report-box summary{
  color:var(--ag-dark-title)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .share-box a,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .reaction-box button{
  background:linear-gradient(180deg,#2563EB,#1D4ED8)!important;
  color:#fff!important;
  border:1px solid rgba(88,166,255,.42)!important;
  box-shadow:0 8px 18px rgba(37,99,235,.22)!important;
}

/* Comentarios: formulario, tarjetas, respuesta activa y campos */
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comments-shell,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comment-form,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comment-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comment-content,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .empty-comments,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .replying-to,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .guest-comment-grid label,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .checkline{
  background:var(--ag-dark-surface)!important;
  color:var(--ag-dark-text)!important;
  border-color:var(--ag-dark-border)!important;
  box-shadow:0 14px 34px rgba(0,0,0,.26)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comment-form,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comment-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .replying-to{
  background:var(--ag-dark-surface-2)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comments-header h2,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comments-header strong,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comment-form h3,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comment-form label,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comment-content header strong,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .empty-comments strong{
  color:var(--ag-dark-title)!important;
  background:transparent!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comments-header p,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comment-form .hint,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comment-form-footer small,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comment-content time,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .empty-comments p{
  color:var(--ag-dark-muted)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comment-form textarea,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comment-form input,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .report-box textarea,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .report-box select{
  background:#1A1D21!important;
  color:var(--ag-dark-text)!important;
  border:1px solid var(--ag-dark-border-2)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comment-form textarea::placeholder,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comment-form input::placeholder{
  color:#A7B0BC!important;
}

/* Eliminación de blancos residuales en módulos públicos frecuentes */
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .box,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .panel,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .module,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .content-box,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .form-box,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .settings-box,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .account-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-card{
  background:var(--ag-dark-surface)!important;
  color:var(--ag-dark-text)!important;
  border-color:var(--ag-dark-border)!important;
}

@media(max-width:800px){
  html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-shell,
  html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comments-shell,
  html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comment-form,
  html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .viral-actions,
  html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .share-box,
  html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .reaction-box,
  html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .avatar-card,
  html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-complete,
  html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .public-post-list a{
    border-radius:14px!important;
  }
  html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .share-box,
  html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .reaction-box,
  html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .comment-form-footer{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:8px!important;
  }
}

/* RadioaficionadosClub Platform v56 - capa final profesional para modo oscuro público.
   Objetivo: aplicar un modo oscuro consistente a toda la zona pública sin tocar administración.
   Esta capa se deja al final del CSS para ganar prioridad sobre reglas heredadas del modo claro. */
html[data-theme="dark"] body.ag-body:not(.ag-admin-body){
  --ag-bg:#181A1B!important;
  --ag-bg-elevated:#1E2124!important;
  --ag-panel:#202124!important;
  --ag-panel-2:#24282C!important;
  --ag-panel-3:#2B3036!important;
  --ag-border:#343A40!important;
  --ag-border-2:#3D444D!important;
  --ag-title:#F1F5F9!important;
  --ag-text:#E8EAED!important;
  --ag-muted:#B0B8C2!important;
  --ag-muted-2:#8A94A3!important;
  --ag-link:#58A6FF!important;
  --ag-blue:#2563EB!important;
  --ag-blue-2:#1D4ED8!important;
  background:#181A1B!important;
  color:#E8EAED!important;
  color-scheme:dark;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .site-main,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) main,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .page,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .page-shell,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .content,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .main-content{
  background:transparent!important;
  color:var(--ag-text)!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) :is(.box,.widget,.post-card,.single-post,.wp-card,.card,.panel,.module,.content-box,.form-box,.settings-box,.account-card,.profile-card,.profile-side,.avatar-card,.profile-complete,.public-gallery-card,.search-card,.search-box,.trend-card,.trend-box,.tag-card,.category-card,.legal-card,.notification-card,.ag-notification-item,.composer-shell,.composer-topbar,.composer-card,.composer-form,.composer-accordion,.composer-acc-body,.composer-actions,.composer-preview,.bb-toolbar,.bb-toolbar-pro,.bbcode-grid,.image-uploader,.cover-preview,.live-preview,.preview-box,.ag-inline-image-uploader,.ag-inline-image-uploader-pro,.ag-inline-image-header,.ag-inline-image-drop,.viral-actions,.share-box,.reaction-box,.report-box,.signature-box,.comments-shell,.comment-form,.comment-card,.comment-content,.empty-comments,.replying-to,.guest-comment-grid label,.checkline,.public-post-list a,.stats-grid div,.category-scroll,.publish-options label,.radio-row,.upload-card,.photo-upload-card,.media-card,.file-card,.image-card,.profile-section,.account-section,.setting-section){
  background:var(--ag-panel)!important;
  background-color:var(--ag-panel)!important;
  color:var(--ag-text)!important;
  border-color:var(--ag-border)!important;
  box-shadow:0 14px 34px rgba(0,0,0,.28)!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) :is(.composer-card,.composer-acc-body,.bb-toolbar-pro,.ag-inline-image-drop,.live-preview,.preview-box,.public-post-list a,.share-box,.reaction-box,.comment-form,.comment-card,.replying-to,.profile-complete,.avatar-edit,.avatar-edit-secondary){
  background:var(--ag-panel-2)!important;
  background-color:var(--ag-panel-2)!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) :is(h1,h2,h3,h4,h5,h6,.widget-title,.section-title,.box-title,.wp-card-title,.wp-card-title h2,.composer-topbar h1,.composer-label,.composer-headline,.composer-headline span,.profile-section-title,.profile-section-title h2,.comments-header h2,.comments-header strong,.comment-form h3,.comment-form label,.comment-content header strong,.empty-comments strong,.ag-inline-image-titlewrap strong,.live-preview-title,.avatar-card h3,.profile-complete h3,.search-title,.trend-title,.profile-title,.account-title,.post-title,.single-title){
  color:var(--ag-title)!important;
  background:transparent!important;
  text-shadow:none!important;
  opacity:1!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) :is(p,li,td,th,label,legend,span,small,.meta,.hint,.muted,.editor-help,.char-counter,.profile-note,.upload-note,.ag-inline-image-status,.wp-card-title small,.comments-header p,.comment-form .hint,.comment-form-footer small,.comment-content time,.empty-comments p,.public-post-list a span,.public-post-list a small,.account-media-grid small,.account-media-grid .upload-note){
  color:var(--ag-muted)!important;
  opacity:1!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) a:not(.btn):not(.read-more):not(.btn-small):not(.avatar-edit):not(.avatar-edit-secondary){
  color:var(--ag-link)!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) :is(input,select,textarea,.bb-inline-select,input[type="file"]){
  background:#1A1D21!important;
  background-color:#1A1D21!important;
  color:var(--ag-text)!important;
  border:1px solid var(--ag-border-2)!important;
  box-shadow:none!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) :is(input,select,textarea,.bb-inline-select):focus{
  border-color:var(--ag-link)!important;
  outline:2px solid rgba(88,166,255,.28)!important;
  outline-offset:1px!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) :is(input,textarea)::placeholder{
  color:#A7B0BC!important;
  opacity:1!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) input[type="file"]::file-selector-button,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) input[type="file"]::-webkit-file-upload-button{
  background:linear-gradient(180deg,var(--ag-blue),var(--ag-blue-2))!important;
  color:#fff!important;
  border:1px solid rgba(88,166,255,.45)!important;
  border-radius:9px!important;
  padding:8px 12px!important;
  margin-right:10px!important;
  font-weight:900!important;
  cursor:pointer!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) :is(.btn,.read-more,.btn-small,.primary-btn,.action-btn,.share-box a,.reaction-box button,.bb-tool-row button,.composer-acc-btn){
  background:linear-gradient(180deg,var(--ag-blue),var(--ag-blue-2))!important;
  color:#fff!important;
  border-color:rgba(88,166,255,.42)!important;
  box-shadow:0 8px 18px rgba(37,99,235,.22)!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) :is(.widget-title,.section-title,.latest-title,.box-title){
  color:var(--ag-title)!important;
  background:transparent!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .latest-posts-head,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .widget-head,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .section-head{
  background:var(--ag-panel)!important;
  color:var(--ag-title)!important;
  border-color:var(--ag-border)!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .wp-table,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) table{
  background:var(--ag-panel)!important;
  color:var(--ag-text)!important;
  border-color:var(--ag-border)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .wp-table th,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) table th{
  background:var(--ag-panel-2)!important;
  color:var(--ag-title)!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .wp-table td,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) table td{
  background:var(--ag-panel)!important;
  color:var(--ag-text)!important;
  border-color:var(--ag-border)!important;
}

/* Neutralidad absoluta de administración aunque el usuario tenga modo oscuro activo. */
html[data-theme="dark"] body.ag-admin-body{
  color-scheme:light!important;
}
html[data-theme="dark"] body.ag-admin-body,
html[data-theme="dark"] body.ag-admin-body :is(.admin-shell,.admin-main,.admin-card,.admin-panel,.admin-box,.wp-card,.box,.widget,.card,.panel,.module){
  background-color:initial;
}

@media(max-width:800px){
  html[data-theme="dark"] body.ag-body:not(.ag-admin-body) :is(.box,.widget,.post-card,.single-post,.wp-card,.card,.panel,.module,.composer-shell,.comments-shell,.comment-form,.viral-actions,.share-box,.reaction-box,.avatar-card,.profile-complete,.public-post-list a){
    border-radius:14px!important;
  }
  html[data-theme="dark"] body.ag-body:not(.ag-admin-body) :is(.share-box,.reaction-box,.comment-form-footer,.bb-toolbar,.bb-tool-row){
    display:flex!important;
    flex-wrap:wrap!important;
    gap:8px!important;
  }
}

/* RadioaficionadosClub v57 - FIX definitivo para tarjetas de estadísticas en modo oscuro público.
   Corrige módulos .stats-grid que quedaban con fondo blanco y textos sin contraste.
   No afecta administración porque se limita a body.ag-body:not(.ag-admin-body). */
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .widget .stats-grid,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .stats-grid{
  background:transparent!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .stats-grid > div,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .stats-grid .stat-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .stats-grid .stat-box,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .stat-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .stat-box{
  background:#202124!important;
  background-color:#202124!important;
  color:#E8EAED!important;
  border:1px solid #343A40!important;
  box-shadow:0 10px 24px rgba(0,0,0,.28)!important;
  opacity:1!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .stats-grid > div b,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .stats-grid .stat-card b,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .stat-number{
  color:#58A6FF!important;
  opacity:1!important;
  text-shadow:none!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .stats-grid > div,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .stats-grid > div *,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .stat-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .stat-card *,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .stat-box,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .stat-box *{
  opacity:1!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .stats-grid > div span,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .stats-grid > div small,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .stats-grid .stat-label,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .stat-label{
  color:#D0D7DE!important;
  opacity:1!important;
  font-weight:800!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .widget h3,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .widget-title,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .sidebar-title{
  color:#E8EAED!important;
  border-bottom-color:#343A40!important;
}

/* RadioaficionadosClub Platform v59 - control editorial de publicaciones */
.edit-quota-pill{
  display:inline-flex;align-items:center;gap:.35rem;padding:.45rem .75rem;border-radius:999px;
  background:#eef6ff;border:1px solid #b7d7ff;color:#0b5ed7;font-weight:800;font-size:.88rem;
}
.edit-quota-pill.is-locked{background:#fff3cd;border-color:#ffd666;color:#8a5a00;}
.edit-request-box{margin:1.5rem 0;padding:1.2rem;border:1px solid #d7e2f0;border-radius:18px;background:#f8fbff;box-shadow:0 10px 25px rgba(15,45,80,.06);}
.edit-request-box h2{margin:.25rem 0 .35rem;}
.edit-request-box form{display:grid;gap:.8rem;margin-top:1rem;}
.edit-request-box select,.edit-request-box textarea{width:100%;border:1px solid #cbd8e8;border-radius:12px;padding:.8rem;background:#fff;color:#10243d;}
.edit-quota-notice{border-left:4px solid #0d6efd;background:#f8fbff;}
.stack-form{display:grid;gap:.45rem;min-width:220px;}
.stack-form textarea{width:100%;min-width:220px;}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .edit-quota-pill{background:#1f3552;border-color:#345b8d;color:#9cc9ff;}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .edit-quota-pill.is-locked{background:#3a2f16;border-color:#6b5318;color:#ffd86b;}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .edit-request-box,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .edit-quota-notice{background:#202124;border-color:#343a40;color:#e8eaed;box-shadow:0 16px 38px rgba(0,0,0,.3);}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .edit-request-box select,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .edit-request-box textarea{background:#181a1b;border-color:#343a40;color:#e8eaed;}

/* ==========================================================
   RadioaficionadosClub Platform v61
   Modo oscuro principal + publicador móvil profesional
   Autor: Rodrigo Reyes / RadioaficionadosClub.cl
   ========================================================== */
html[data-theme="dark"]{
  color-scheme:dark;
  --ag-primary:#38bdf8;
  --ag-primary-2:#22c55e;
  --ag-primary-dark:#0ea5e9;
  --ag-bg:#0b1120;
  --ag-body:#070b14;
  --ag-text:#e5edf8;
  --ag-muted:#9fb0c7;
  --ag-card:#101827;
  --ag-panel:#0f172a;
  --ag-border:#24324a;
  --ag-soft:#141f33;
  --ag-shadow:0 18px 48px rgba(0,0,0,.38);
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body){background:radial-gradient(circle at top left,#12213a 0,#070b14 34%,#050812 100%);color:var(--ag-text);}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .site-header,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .footer{background:#070b14;border-color:#1e2c44;}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .box,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .widget,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .post-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .single-post,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .wp-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-accordion,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-form{background:linear-gradient(180deg,#111b2e,#0c1322);border-color:#233149;color:#e5edf8;box-shadow:0 18px 48px rgba(0,0,0,.28);}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) input,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) select,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) textarea{background:#070d19;color:#f8fafc;border-color:#2c3d58;caret-color:#38bdf8;}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) input::placeholder,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) textarea::placeholder{color:#71829b;}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-topbar{background:linear-gradient(135deg,#07111f,#0f3765 58%,#0f766e);box-shadow:0 24px 60px rgba(0,0,0,.42);}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-acc-btn,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .bb-toolbar,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-actions,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .cover-preview,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .category-scroll,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .publish-options label,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-inline-image-drop,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-preview{background:#0a1220;color:#e5edf8;border-color:#24344e;}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .bb-toolbar button{background:#101a2c;color:#e5edf8;border-color:#31445f;}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .bb-toolbar button:active,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .bb-toolbar button:hover{background:#172846;border-color:#38bdf8;}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .composer-label,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .live-preview-title,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .wp-card-title h2{color:#dbeafe;}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .hint,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .muted,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) small{color:#9fb0c7;}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .btn.light{background:linear-gradient(#17243a,#0b1220);color:#e5edf8;border-color:#334766;}

.composer-mobile-guide{max-width:1120px;margin:16px auto 12px;padding:13px 16px;border-radius:16px;background:linear-gradient(135deg,#082f49,#064e3b);color:#ecfeff;border:1px solid rgba(125,211,252,.25);display:flex;align-items:center;justify-content:space-between;gap:12px;box-shadow:0 14px 38px rgba(0,0,0,.18)}
.composer-mobile-guide strong{font-size:14px;text-transform:uppercase;letter-spacing:.04em}.composer-mobile-guide span{font-size:13px;color:#dbeafe}
.ag-user-badges{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.ag-user-badges span{display:inline-flex;align-items:center;gap:6px;background:linear-gradient(135deg,#fef3c7,#fde68a);color:#713f12;border:1px solid #f59e0b;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:900;box-shadow:0 6px 16px rgba(0,0,0,.12)}.ag-user-badges span b{font-size:15px}.ag-user-badges-post{margin:0 0 16px 36px}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-user-badges span{background:linear-gradient(135deg,#182238,#312e12);color:#fde68a;border-color:#854d0e;}

@media(max-width:850px){
  body.ag-body{padding-bottom:86px;}
  .composer-shell{margin:10px auto;padding:0 10px;}
  .composer-mobile-guide{margin:10px 10px 12px;display:block}.composer-mobile-guide strong{display:block;margin-bottom:5px}.composer-mobile-guide span{display:block;line-height:1.45}
  .composer-topbar{border-radius:16px;padding:18px;align-items:flex-start}.composer-topbar h1{font-size:26px}.composer-topbar p{font-size:14px;line-height:1.45}
  .composer-accordion,.composer-card,.composer-form{border-radius:14px;margin:10px 0}.composer-form{padding:10px;background:transparent;border:0;box-shadow:none}.composer-card{padding:13px}
  .composer-title{font-size:17px;padding:13px 12px}.composer-headline{align-items:flex-start;flex-direction:column}.composer-headline span{display:none}
  .bb-toolbar{position:sticky;top:66px;z-index:18;margin-left:-13px;margin-right:-13px;border-left:0;border-right:0;border-radius:0;overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity}.bb-tool-row{display:flex;gap:6px;min-width:max-content}.bb-toolbar button,.bb-inline-select{min-height:38px;white-space:nowrap;font-size:13px}
  #bbEditor{min-height:46vh;font-size:16px;line-height:1.65;padding:14px;border-radius:0 0 12px 12px}.composer-preview{max-height:38vh;overflow:auto;font-size:15px}.ag-inline-image-header{display:block}.ag-inline-image-control{margin-top:10px}.ag-inline-image-drop{display:grid;grid-template-columns:42px 1fr;gap:10px;padding:12px}.ag-inline-image-pick{grid-column:1/-1;width:100%;text-align:center}.ag-inline-image-results{display:grid;gap:10px}
  .composer-grid,.composer-grid.bottom,.composer-bottom-pro{grid-template-columns:1fr!important}.category-scroll{height:auto;max-height:220px}.category-scroll label,.publish-options label{padding:12px;font-size:15px}.publish-options input,.category-scroll input{transform:scale(1.18)}
  .seo-panel-pro textarea{min-height:90px}.composer-actions{position:fixed;left:0;right:0;bottom:0;z-index:35;margin:0;border-radius:18px 18px 0 0;padding:10px;background:rgba(8,13,24,.94);backdrop-filter:blur(12px);display:grid;grid-template-columns:1fr 1fr;gap:8px;box-shadow:0 -14px 36px rgba(0,0,0,.38)}.composer-actions .btn{width:100%;padding:12px 8px;font-size:13px}.composer-actions .btn.green{grid-column:1/-1;font-size:15px;padding:13px 10px}.cover-preview img{width:100%;max-height:190px;object-fit:cover}.public-profile-grid{grid-template-columns:1fr!important}.ag-user-badges-post{margin-left:0}.single{padding:0 10px}.single-post{padding:14px}.article-body{font-size:16px;line-height:1.7}
}

@media(max-width:420px){.bb-toolbar{top:61px}.composer-actions{grid-template-columns:1fr}.composer-actions .btn.green{grid-column:auto}.composer-topbar h1{font-size:23px}.ag-inline-image-drop{grid-template-columns:1fr}.ag-inline-image-dropicon{margin:auto}}


/* RadioaficionadosClub Platform v62 - Administración neutra + editor de medallas */
.ag-admin-neutral{background:#f3f6fa;color:#172033}.ag-neutral-header{background:linear-gradient(135deg,#f8fafc,#e2e8f0)!important;color:#172033!important;border:1px solid #d7e0ea;box-shadow:0 14px 34px rgba(15,23,42,.08)}.ag-neutral-header p,.ag-neutral-header .eyebrow{color:#526176!important}.neutral-card{background:#fff;border-color:#d9e2ec;box-shadow:0 10px 24px rgba(15,23,42,.06)}.badge-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.badge-form-grid label{display:block;font-weight:900;color:#172033}.badge-form-grid input,.badge-form-grid select,.badge-form-grid textarea{width:100%;margin-top:7px;border:1px solid #c9d5e1;border-radius:12px;background:#fff;color:#172033;padding:11px 12px}.badge-form-grid small{display:block;color:#64748b;margin-top:5px;font-weight:700}.badge-form-grid .full{grid-column:1/-1}.badge-switch{display:flex!important;align-items:center;gap:9px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:12px}.badge-switch input{width:auto!important;margin:0!important}.badge-admin-actions{display:flex;gap:10px;justify-content:flex-end;align-items:center;flex-wrap:wrap;margin-top:14px}.badge-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.badge-admin-item{display:grid;grid-template-columns:72px 1fr auto;gap:14px;align-items:center;background:#f8fafc;border:1px solid #dbe4ef;border-radius:16px;padding:14px}.badge-admin-item.is-off{opacity:.62}.badge-admin-icon{width:64px;height:64px;border-radius:18px;background:#fff;border:1px solid #dbe4ef;display:grid;place-items:center;overflow:hidden}.badge-admin-icon img{width:100%;height:100%;object-fit:cover}.badge-admin-icon span{font-size:30px}.badge-admin-info strong{display:block;color:#0f2d50;font-size:17px}.badge-admin-info p{margin:4px 0;color:#526176}.badge-admin-info small{font-weight:900;color:#64748b}.badge-admin-actions.compact{margin:0;justify-content:flex-end}.badge-admin-actions.compact form{margin:0}.ag-user-badges span img{width:22px;height:22px;border-radius:7px;object-fit:cover}.ag-user-badges-post span img{width:20px;height:20px}@media(max-width:980px){.badge-form-grid{grid-template-columns:1fr 1fr}.badge-admin-grid{grid-template-columns:1fr}.badge-admin-item{grid-template-columns:64px 1fr}.badge-admin-actions.compact{grid-column:1/-1;justify-content:stretch}.badge-admin-actions.compact .btn,.badge-admin-actions.compact form,.badge-admin-actions.compact button{width:100%}}@media(max-width:620px){.badge-form-grid{grid-template-columns:1fr}.badge-admin-item{grid-template-columns:54px 1fr;padding:12px}.badge-admin-icon{width:54px;height:54px;border-radius:15px}.badge-admin-actions{justify-content:stretch}.badge-admin-actions .btn{width:100%;text-align:center}}


/* RadioaficionadosClub Platform v63 - Perfil público profesional, medallas proporcionadas y cuenta responsive.
   Objetivo: medallas como iconos elegantes junto al avatar, nunca como tarjetas gigantes. */
.ag-profile-pro{max-width:1320px;margin-inline:auto}.ag-profile-cover{min-height:310px;border-radius:24px;background-size:cover;background-position:center;overflow:hidden;border:1px solid rgba(148,163,184,.18);box-shadow:0 20px 50px rgba(0,0,0,.28);display:flex;align-items:flex-end}.ag-profile-cover-inner{width:100%;display:grid;grid-template-columns:150px 1fr;gap:24px;align-items:end;padding:34px}.ag-profile-avatar-block{position:relative}.ag-profile-avatar{width:150px;height:150px;border-radius:50%;object-fit:cover;background:#0f172a;border:5px solid rgba(255,255,255,.85);box-shadow:0 18px 42px rgba(0,0,0,.42)}.ag-profile-identity{min-width:0}.ag-profile-kicker{display:inline-flex;align-items:center;border:1px solid rgba(226,232,240,.32);background:rgba(15,23,42,.62);color:#dbeafe;border-radius:999px;padding:5px 11px;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.ag-profile-identity h1{font-size:clamp(32px,4.6vw,56px);line-height:1;margin:10px 0 8px;color:#fff;text-shadow:0 3px 16px rgba(0,0,0,.45)}.ag-profile-identity p{max-width:780px;color:#dbeafe;margin:10px 0 0;line-height:1.65}.ag-profile-meta{display:flex;gap:8px;flex-wrap:wrap}.ag-profile-meta span{display:inline-flex;align-items:center;border-radius:999px;background:rgba(37,99,235,.28);border:1px solid rgba(147,197,253,.26);color:#eff6ff;font-weight:900;font-size:12px;padding:7px 11px;text-transform:capitalize}.ag-profile-badges-strip{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px}.ag-profile-badge{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:rgba(15,23,42,.72);border:1px solid rgba(148,163,184,.20);box-shadow:0 10px 24px rgba(0,0,0,.32);overflow:hidden;transition:transform .18s ease,box-shadow .18s ease}.ag-profile-badge:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(0,0,0,.42)}.ag-profile-badge img{width:36px!important;height:36px!important;max-width:36px!important;max-height:36px!important;object-fit:contain!important;border-radius:0!important}.ag-profile-badge b{font-size:24px;line-height:1}.ag-profile-badge-more{color:#60a5fa;font-weight:900;text-decoration:none;margin-left:4px}.ag-profile-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:0;margin:18px 0;background:linear-gradient(180deg,rgba(15,23,42,.96),rgba(15,23,42,.88));border:1px solid rgba(148,163,184,.16);border-radius:18px;overflow:hidden;box-shadow:0 12px 30px rgba(0,0,0,.22)}.ag-profile-stats div{padding:20px 14px;text-align:center;border-right:1px solid rgba(148,163,184,.14)}.ag-profile-stats div:last-child{border-right:0}.ag-profile-stats strong{display:block;color:#fff;font-size:clamp(22px,3vw,32px);line-height:1}.ag-profile-stats span{display:block;color:#94a3b8;margin-top:6px;font-weight:800}.ag-profile-layout{display:grid;grid-template-columns:290px minmax(0,1fr) 330px;gap:18px;align-items:start}.ag-profile-card{background:linear-gradient(180deg,rgba(15,23,42,.96),rgba(15,23,42,.90))!important;border:1px solid rgba(148,163,184,.15)!important;box-shadow:0 14px 34px rgba(0,0,0,.20)!important;color:#e5e7eb!important}.ag-profile-card .wp-card-title h2{color:#f8fafc!important}.ag-profile-card .wp-card-title small,.ag-profile-card .muted{color:#94a3b8!important}.profile-public-list.compact{grid-template-columns:1fr;gap:8px}.profile-public-list.compact dt{color:#93c5fd!important;font-size:12px;text-transform:uppercase;letter-spacing:.06em}.profile-public-list.compact dd{color:#e2e8f0!important;margin:0 0 9px;text-transform:capitalize}.public-post-list.pro-list a{background:rgba(15,23,42,.72)!important;border-color:rgba(148,163,184,.14)!important}.public-post-list.pro-list strong{color:#bfdbfe!important}.public-post-list.pro-list span{color:#cbd5e1!important}.public-post-list.pro-list small{color:#94a3b8!important}.ag-profile-badge-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.ag-profile-badge-tile{min-width:0;text-align:center}.ag-profile-badge-tile img{width:52px!important;height:52px!important;max-width:52px!important;max-height:52px!important;object-fit:contain!important;display:block;margin:0 auto 7px;border-radius:0!important}.ag-profile-badge-tile b{display:grid;place-items:center;width:52px;height:52px;margin:0 auto 7px;font-size:28px}.ag-profile-badge-tile span{display:block;color:#dbeafe;font-size:11px;font-weight:900;line-height:1.2}.public-photo-grid img{aspect-ratio:1/1;object-fit:cover;border-radius:14px}.ag-account-pro-cover{box-shadow:inset 0 -180px 160px rgba(8,13,24,.72),0 16px 40px rgba(15,23,42,.18)}.ag-account-cover-info{min-width:0}.ag-account-badges-strip .ag-profile-badge{width:44px;height:44px;border-radius:13px;background:rgba(255,255,255,.12)}.ag-account-badges-strip .ag-profile-badge img{width:32px!important;height:32px!important}.ag-user-badges{align-items:center}.ag-user-badges span{max-width:100%;min-height:34px}.ag-user-badges span img{width:24px!important;height:24px!important;max-width:24px!important;max-height:24px!important;object-fit:contain!important;border-radius:0!important;flex:0 0 auto}.ag-user-badges-post span img{width:22px!important;height:22px!important;object-fit:contain!important}.badge-admin-icon img{width:46px!important;height:46px!important;max-width:46px!important;max-height:46px!important;object-fit:contain!important;border-radius:0!important}.badge-admin-item{grid-template-columns:64px minmax(0,1fr) auto}.badge-admin-icon{width:56px;height:56px;border-radius:16px}.badge-admin-info{min-width:0}.badge-admin-info p{overflow-wrap:anywhere}.account-cover-preview{background-position:center!important}.account-pro-form .field,.profile-form-classic .field{min-width:0}.account-pro-form img,.profile-main-panel img{max-width:100%;height:auto}.account-pro-form textarea{min-height:110px;resize:vertical}
@media(max-width:1100px){.ag-profile-layout{grid-template-columns:1fr 1fr}.ag-profile-activity{grid-column:1/-1;order:3}.ag-profile-side{min-width:0}.ag-profile-badge-grid{grid-template-columns:repeat(6,1fr)}}
@media(max-width:780px){.ag-profile-cover{min-height:auto}.ag-profile-cover-inner{grid-template-columns:1fr;text-align:center;justify-items:center;padding:26px 18px}.ag-profile-avatar{width:118px;height:118px}.ag-profile-meta,.ag-profile-badges-strip{justify-content:center}.ag-profile-identity p{margin-inline:auto}.ag-profile-stats{grid-template-columns:repeat(2,1fr)}.ag-profile-stats div:nth-child(2){border-right:0}.ag-profile-stats div:nth-child(-n+2){border-bottom:1px solid rgba(148,163,184,.14)}.ag-profile-layout{grid-template-columns:1fr}.ag-profile-activity{order:0}.ag-profile-badge-grid{grid-template-columns:repeat(4,1fr)}.account-cover-preview.ag-account-pro-cover{align-items:center;text-align:center;flex-direction:column}.ag-account-badges-strip{justify-content:center}}
@media(max-width:520px){.ag-profile-pro{padding-left:10px!important;padding-right:10px!important}.ag-profile-cover{border-radius:18px}.ag-profile-identity h1{font-size:32px}.ag-profile-badge{width:42px;height:42px;border-radius:12px}.ag-profile-badge img{width:30px!important;height:30px!important}.ag-profile-stats strong{font-size:24px}.ag-profile-stats span{font-size:12px}.ag-profile-badge-grid{grid-template-columns:repeat(3,1fr);gap:12px}.ag-profile-badge-tile img,.ag-profile-badge-tile b{width:46px!important;height:46px!important}.badge-admin-item{grid-template-columns:52px minmax(0,1fr)}.badge-admin-icon{width:48px;height:48px}.badge-admin-icon img{width:38px!important;height:38px!important}.account-cover-preview{min-height:210px}.account-avatar-wrap{width:92px!important;height:92px!important}}


/* ============================================================
   RadioaficionadosClub Platform v64 - Corrección estética de perfiles, cuenta y medallas
   Autor: RadioaficionadosClub.cl / Rodrigo Reyes
   Objetivo: impedir medallas gigantes, ordenar portada/avatar y dejar administración neutral.
   ============================================================ */
:root{--ag-badge-xs:24px;--ag-badge-sm:36px;--ag-badge-md:52px;--ag-badge-lg:64px;--ag-panel-radius:18px;--ag-admin-bg:#f4f7fb;--ag-admin-card:#ffffff;--ag-admin-border:#dbe4ef;}
/* Regla global de seguridad: cualquier imagen de medalla se ve como icono, nunca como portada. */
img[src*="/badges/"],img[src*="assets/img/badges"]{object-fit:contain!important;max-width:var(--ag-badge-md)!important;max-height:var(--ag-badge-md)!important;width:var(--ag-badge-md)!important;height:var(--ag-badge-md)!important;border-radius:0!important;background:transparent!important;display:inline-block!important;vertical-align:middle!important;}
/* Perfil público profesional */
.public-profile-shell,.ag-profile-pro{width:min(1320px,calc(100% - 28px))!important;margin:18px auto!important;padding:0!important;}
.ag-profile-cover{min-height:340px!important;border-radius:24px!important;background-size:cover!important;background-position:center!important;display:flex!important;align-items:flex-end!important;overflow:hidden!important;position:relative!important;border:1px solid rgba(148,163,184,.18)!important;box-shadow:0 18px 48px rgba(0,0,0,.30)!important;}
.ag-profile-cover:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(2,6,23,.08),rgba(2,6,23,.68));pointer-events:none;}
.ag-profile-cover-inner{position:relative;z-index:1;width:100%!important;display:grid!important;grid-template-columns:148px minmax(0,1fr)!important;gap:24px!important;align-items:end!important;padding:34px!important;}
.ag-profile-avatar-block{width:148px!important;height:148px!important;flex:0 0 148px!important;}
.ag-profile-avatar,.public-avatar{width:148px!important;height:148px!important;max-width:148px!important;max-height:148px!important;aspect-ratio:1/1!important;border-radius:50%!important;object-fit:cover!important;border:5px solid rgba(255,255,255,.88)!important;background:#0f172a!important;box-shadow:0 16px 38px rgba(0,0,0,.42)!important;display:block!important;}
.ag-profile-identity{min-width:0!important;max-width:920px!important;}
.ag-profile-identity h1{font-size:clamp(32px,4vw,52px)!important;line-height:1.05!important;margin:8px 0 10px!important;color:#fff!important;letter-spacing:-.03em!important;text-shadow:0 4px 18px rgba(0,0,0,.46)!important;}
.ag-profile-meta{display:flex!important;gap:8px!important;flex-wrap:wrap!important;align-items:center!important;}
.ag-profile-meta span{display:inline-flex!important;align-items:center!important;min-height:30px!important;border-radius:999px!important;background:rgba(37,99,235,.30)!important;border:1px solid rgba(147,197,253,.26)!important;color:#eff6ff!important;font-size:12px!important;font-weight:900!important;padding:6px 11px!important;}
.ag-profile-badges-strip,.ag-account-badges-strip,.public-badges{display:flex!important;align-items:center!important;gap:9px!important;flex-wrap:wrap!important;margin-top:14px!important;}
.ag-profile-badge,.public-badges span{width:48px!important;height:48px!important;min-width:48px!important;max-width:48px!important;min-height:48px!important;max-height:48px!important;display:grid!important;place-items:center!important;padding:0!important;border-radius:14px!important;background:rgba(15,23,42,.74)!important;border:1px solid rgba(148,163,184,.20)!important;box-shadow:0 10px 22px rgba(0,0,0,.30)!important;overflow:hidden!important;text-indent:0!important;line-height:1!important;}
.ag-profile-badge img,.public-badges img,.ag-account-badges-strip img{width:36px!important;height:36px!important;max-width:36px!important;max-height:36px!important;object-fit:contain!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;}
.ag-profile-badge b{font-size:23px!important;line-height:1!important;}
.ag-profile-badge-more{align-self:center!important;margin-left:4px!important;color:#60a5fa!important;font-weight:900!important;text-decoration:none!important;}
.ag-profile-stats{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;margin:18px 0!important;border-radius:18px!important;overflow:hidden!important;background:linear-gradient(180deg,rgba(15,23,42,.96),rgba(15,23,42,.88))!important;border:1px solid rgba(148,163,184,.16)!important;}
.ag-profile-layout{display:grid!important;grid-template-columns:300px minmax(0,1fr) 320px!important;gap:18px!important;align-items:start!important;}
.ag-profile-badge-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(70px,1fr))!important;gap:14px!important;align-items:start!important;}
.ag-profile-badge-tile{min-height:92px!important;text-align:center!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;padding:10px 6px!important;border-radius:16px!important;background:rgba(15,23,42,.48)!important;border:1px solid rgba(148,163,184,.12)!important;overflow:hidden!important;}
.ag-profile-badge-tile img{width:52px!important;height:52px!important;max-width:52px!important;max-height:52px!important;object-fit:contain!important;margin:0 auto 7px!important;display:block!important;border:0!important;border-radius:0!important;}
.ag-profile-badge-tile span{font-size:11px!important;line-height:1.2!important;color:#dbeafe!important;font-weight:900!important;overflow-wrap:anywhere!important;}
/* Compatibilidad con perfiles antiguos que usen .public-profile-hero */
.public-profile-hero{min-height:340px!important;border-radius:24px!important;background-size:cover!important;background-position:center!important;display:grid!important;grid-template-columns:148px minmax(0,1fr)!important;gap:24px!important;align-items:end!important;padding:34px!important;color:#fff!important;overflow:hidden!important;}
.public-profile-hero .public-badges span{font-size:0!important;}
.public-profile-hero .public-badges span img{font-size:initial!important;}
/* Cuenta y perfil: portada proporcional, avatar circular y medallas pequeñas */
.profile-classic-grid.account-pro-grid{display:grid!important;grid-template-columns:minmax(0,1fr) 280px!important;gap:18px!important;align-items:start!important;max-width:1200px!important;margin:14px auto!important;padding:0 14px!important;}
.account-pro-panel,.profile-main-panel{min-width:0!important;overflow:hidden!important;border-radius:18px!important;}
.account-cover-preview.ag-account-pro-cover,.account-cover-preview{min-height:255px!important;border-radius:18px!important;background-size:cover!important;background-position:center!important;display:flex!important;align-items:flex-end!important;gap:18px!important;padding:22px!important;overflow:hidden!important;position:relative!important;}
.account-cover-preview.ag-account-pro-cover:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(2,6,23,.08),rgba(2,6,23,.72));pointer-events:none;}
.account-cover-preview.ag-account-pro-cover>*{position:relative;z-index:1;}
.account-avatar-wrap{width:112px!important;height:112px!important;min-width:112px!important;max-width:112px!important;min-height:112px!important;max-height:112px!important;border-radius:50%!important;overflow:hidden!important;border:4px solid rgba(255,255,255,.9)!important;background:#0f172a!important;box-shadow:0 14px 32px rgba(0,0,0,.35)!important;}
.account-avatar-wrap img,#accountAvatarPreview{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:cover!important;border-radius:50%!important;display:block!important;}
.ag-account-cover-info h1{font-size:clamp(26px,3.6vw,42px)!important;line-height:1.05!important;margin:4px 0 6px!important;color:#fff!important;}
.ag-account-cover-info p{color:#dbeafe!important;max-width:700px!important;margin:0!important;}
.ag-account-badges-strip .ag-profile-badge{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;max-width:44px!important;max-height:44px!important;border-radius:13px!important;}
.ag-account-badges-strip .ag-profile-badge img{width:32px!important;height:32px!important;max-width:32px!important;max-height:32px!important;}
.account-media-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;}
.account-media-grid label{min-width:0!important;}
/* Administración de medallas neutral, compacta y legible */
.ag-admin-body{background:var(--ag-admin-bg)!important;color:#172033!important;}
.ag-admin-neutral,.ag-badges-admin{background:transparent!important;color:#172033!important;}
.ag-neutral-header,.neutral-card{background:var(--ag-admin-card)!important;color:#172033!important;border:1px solid var(--ag-admin-border)!important;border-radius:18px!important;box-shadow:0 10px 28px rgba(15,23,42,.08)!important;}
.ag-neutral-header h1,.neutral-card h2,.badge-admin-info strong{color:#0f172a!important;}
.ag-neutral-header p,.neutral-card small,.badge-admin-info p,.badge-admin-info small{color:#526176!important;}
.badge-admin-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(320px,1fr))!important;gap:14px!important;align-items:start!important;}
.badge-admin-item{display:grid!important;grid-template-columns:60px minmax(0,1fr)!important;gap:12px!important;align-items:center!important;background:#fff!important;border:1px solid #dbe4ef!important;border-radius:16px!important;padding:14px!important;min-height:92px!important;}
.badge-admin-icon{width:56px!important;height:56px!important;min-width:56px!important;min-height:56px!important;border-radius:16px!important;display:grid!important;place-items:center!important;background:#f8fafc!important;border:1px solid #dbe4ef!important;overflow:hidden!important;}
.badge-admin-icon img{width:44px!important;height:44px!important;max-width:44px!important;max-height:44px!important;object-fit:contain!important;border-radius:0!important;background:transparent!important;}
.badge-admin-info{min-width:0!important;}
.badge-admin-info strong{font-size:15px!important;line-height:1.25!important;display:block!important;}
.badge-admin-info p{font-size:13px!important;line-height:1.35!important;margin:4px 0!important;overflow-wrap:anywhere!important;}
.badge-admin-info small{font-size:11px!important;line-height:1.35!important;display:block!important;}
.badge-admin-actions.compact{grid-column:1/-1!important;display:flex!important;gap:8px!important;justify-content:flex-end!important;margin-top:6px!important;}
.badge-form-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;}
.badge-form-grid .full{grid-column:1/-1!important;}
/* Medallas junto a usuarios/publicaciones, siempre pequeñas */
.ag-user-badges,.ag-user-badges-post{display:flex!important;align-items:center!important;gap:5px!important;flex-wrap:wrap!important;}
.ag-user-badges span,.ag-user-badges-post span{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;border-radius:8px!important;overflow:hidden!important;background:rgba(15,23,42,.12)!important;padding:0!important;}
.ag-user-badges span img,.ag-user-badges-post span img{width:22px!important;height:22px!important;max-width:22px!important;max-height:22px!important;object-fit:contain!important;border:0!important;border-radius:0!important;}
@media(max-width:1100px){.ag-profile-layout{grid-template-columns:1fr!important}.ag-profile-side,.ag-profile-activity{min-width:0!important}.profile-classic-grid.account-pro-grid{grid-template-columns:1fr!important}.badge-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:760px){.public-profile-shell,.ag-profile-pro{width:min(100% - 18px,760px)!important;margin:10px auto!important}.ag-profile-cover-inner,.public-profile-hero{grid-template-columns:1fr!important;text-align:center!important;justify-items:center!important;padding:24px 16px!important}.ag-profile-avatar-block{width:116px!important;height:116px!important}.ag-profile-avatar,.public-avatar{width:116px!important;height:116px!important;max-width:116px!important;max-height:116px!important}.ag-profile-meta,.ag-profile-badges-strip,.public-badges{justify-content:center!important}.ag-profile-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}.account-cover-preview.ag-account-pro-cover,.account-cover-preview{flex-direction:column!important;align-items:center!important;text-align:center!important;min-height:245px!important}.account-media-grid,.badge-form-grid{grid-template-columns:1fr!important}.badge-admin-grid{grid-template-columns:1fr!important}}
@media(max-width:520px){img[src*="/badges/"],img[src*="assets/img/badges"]{width:42px!important;height:42px!important;max-width:42px!important;max-height:42px!important}.ag-profile-badge,.public-badges span{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;max-width:42px!important;max-height:42px!important;border-radius:12px!important}.ag-profile-badge img,.public-badges img{width:30px!important;height:30px!important;max-width:30px!important;max-height:30px!important}.ag-profile-badge-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.account-avatar-wrap{width:92px!important;height:92px!important;min-width:92px!important;min-height:92px!important}.badge-admin-item{grid-template-columns:52px minmax(0,1fr)!important;padding:12px!important}.badge-admin-icon{width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important}.badge-admin-icon img{width:38px!important;height:38px!important;max-width:38px!important;max-height:38px!important}}


/* RadioaficionadosClub Platform v65 - subida y vista previa profesional de medallas en administración */
.badge-upload-field input[type="file"]{display:block;width:100%;margin-top:8px;padding:10px;border:1px dashed #94a3b8;border-radius:14px;background:#f8fafc;color:#172033;font-weight:800;cursor:pointer}
.badge-preview-box{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:150px;padding:14px;border:1px solid #dbe4ef;border-radius:16px;background:linear-gradient(180deg,#ffffff,#f8fafc);color:#172033;text-align:center;font-weight:900}
.badge-preview-box>span{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#64748b}.badge-preview-box small{font-size:11px;line-height:1.3;color:#64748b!important}.badge-preview-frame{width:76px;height:76px;display:grid;place-items:center;border-radius:20px;background:#eef4fb;border:1px solid #dbe4ef;box-shadow:inset 0 1px 0 rgba(255,255,255,.75);overflow:hidden}.badge-preview-frame img{width:56px!important;height:56px!important;max-width:56px!important;max-height:56px!important;object-fit:contain!important;border-radius:0!important;background:transparent!important}.badge-preview-frame b{font-size:32px;line-height:1}.badge-admin-form .badge-form-grid{align-items:start}.badge-admin-form .badge-preview-box{grid-row:span 2}
@media(max-width:760px){.badge-preview-box{min-height:130px}.badge-preview-frame{width:68px;height:68px}.badge-preview-frame img{width:50px!important;height:50px!important;max-width:50px!important;max-height:50px!important}}

/* RadioaficionadosClub Platform v66 - Legal/Cumplimiento */
.legal-pro-card{font-size:15px;line-height:1.75;max-width:980px;margin-inline:auto}.legal-pro-card h2{margin-top:28px;margin-bottom:10px;font-size:1.25rem;color:var(--text,#f3f6ff)}.legal-pro-card p{color:var(--muted,#c7d0df)}.legal-update{padding:12px 14px;border:1px solid rgba(99,132,255,.22);border-radius:14px;background:rgba(30,41,59,.38)}.legal-list{margin:12px 0 20px;padding-left:22px;color:var(--muted,#c7d0df)}.legal-list li{margin:8px 0}.legal-admin-grid textarea{min-height:128px}.legal-admin-preview{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}.footer-links{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.footer-links a{white-space:nowrap}@media(max-width:760px){.legal-pro-card{font-size:14px;line-height:1.65}.legal-pro-card h2{font-size:1.08rem}.legal-admin-preview .mini-btn{width:100%;text-align:center}.footer-links{justify-content:center}.legal-wrap{padding-inline:12px}}

/* ============================================================
   RadioaficionadosClub Platform v67 - Auditoría responsive y módulos públicos
   Objetivo: recuperar anchos fluidos en móvil, evitar desbordes
   laterales, mantener estilo oscuro y ordenar tarjetas/listados.
   ============================================================ */
html,body{width:100%;max-width:100%;overflow-x:hidden!important;}
body.ag-body{min-width:0!important;background:#11161d!important;}
.site-header{width:100%!important;max-width:none!important;left:0!important;right:0!important;}
.topbar{width:min(1200px,100% - 24px)!important;max-width:1200px!important;margin:0 auto!important;min-width:0!important;}
.logo{min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.logo.logo-img img{max-height:42px;width:auto;display:block;}
#mainMenu{min-width:0!important;}
.featured-strip.ag-hero,.layout.ag-home-layout,.single,.public-profile-shell,.ag-profile-pro,.profile-classic-grid.account-pro-grid{max-width:1200px!important;width:min(1200px,calc(100% - 28px))!important;}
.layout.ag-home-layout{grid-template-columns:minmax(0,1fr) 300px!important;align-items:start!important;}
.content.ag-feed,.ag-feed,.ag-post-card,.post-card,.post-body,.ag-post-body,.widget,.sidebar,.ag-sidebar{min-width:0!important;max-width:100%!important;}
.ag-feed{overflow:hidden!important;}
.section-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;flex-wrap:wrap!important;}
.section-action{max-width:100%!important;text-align:center!important;}
.ag-post-card{grid-template-columns:280px minmax(0,1fr)!important;border-radius:18px!important;overflow:hidden!important;}
.post-cover-link{display:block!important;min-width:0!important;overflow:hidden!important;background:#0f172a!important;}
.post-cover-link,.post-cover,.cover{width:100%!important;max-width:100%!important;}
.post-cover{object-fit:cover!important;object-position:center!important;}
.ag-post-body h2,.post-body h2{overflow-wrap:anywhere!important;line-height:1.15!important;}
.post-author-row{display:grid!important;grid-template-columns:54px minmax(0,1fr)!important;align-items:center!important;gap:12px!important;}
.post-avatar img{width:54px!important;height:54px!important;min-width:54px!important;max-width:54px!important;border-radius:50%!important;object-fit:cover!important;}
.meta.post-meta{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important;min-width:0!important;}
.meta.post-meta span,.meta.post-meta a{max-width:100%;}
.post-excerpt{overflow-wrap:anywhere!important;word-break:normal!important;}
.post-card-footer{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;flex-wrap:wrap!important;}

/* Módulos generales: ninguna tarjeta debe crear una columna invisible a la derecha. */
:is(.box,.widget,.post-card,.single-post,.wp-card,.card,.panel,.module,.content-box,.form-box,.settings-box,.account-card,.profile-card,.profile-side,.avatar-card,.profile-complete,.public-gallery-card,.search-card,.search-box,.trend-card,.trend-box,.tag-card,.category-card,.legal-card,.notification-card,.composer-shell,.composer-card,.bb-toolbar,.image-uploader,.cover-preview,.live-preview,.preview-box,.viral-actions,.share-box,.reaction-box,.report-box,.signature-box,.comments-shell,.comment-form,.comment-card,.public-post-list a,.stats-grid div){max-width:100%!important;min-width:0!important;}
img,video,iframe,embed,object{max-width:100%!important;}

/* Perfil y cuenta: mantener proporción profesional en pantallas medianas y chicas. */
.public-profile-hero,.ag-profile-cover{width:100%!important;max-width:100%!important;}
.public-profile-hero{background-position:center!important;}
.public-profile-hero .public-badges,.ag-profile-badges-strip{max-width:100%!important;}
.public-profile-hero .public-badges span,.ag-profile-badge{flex:0 0 auto!important;}

/* Administración: listados compactos sin imágenes gigantes. */
.admin,.ag-admin-neutral,.ag-badges-admin{max-width:1180px!important;width:min(1180px,calc(100% - 28px))!important;margin-inline:auto!important;}
.badge-admin-grid{width:100%!important;}
.badge-admin-item{max-width:100%!important;}
.badge-admin-actions.compact .btn,.badge-admin-actions.compact button{padding:8px 10px!important;font-size:12px!important;}

@media(max-width:980px){
  .topbar{width:100%!important;max-width:100%!important;padding:12px 14px!important;}
  .layout.ag-home-layout{grid-template-columns:1fr!important;width:min(100% - 20px,760px)!important;padding:0!important;margin:14px auto!important;}
  .featured-strip.ag-hero{width:min(100% - 20px,760px)!important;margin:14px auto 0!important;}
  .ag-sidebar{display:grid!important;grid-template-columns:1fr!important;width:100%!important;}
  .ag-post-card{grid-template-columns:1fr!important;}
  .post-cover-link,.post-cover,.cover{height:auto!important;min-height:0!important;aspect-ratio:16/9!important;}
}
@media(max-width:720px){
  body.ag-body{background:#11161d!important;}
  .site-header{border-bottom:1px solid rgba(148,163,184,.12)!important;}
  .topbar{flex-wrap:nowrap!important;align-items:center!important;gap:10px!important;}
  .logo{font-size:22px!important;max-width:calc(100vw - 94px)!important;}
  .menu-btn{flex:0 0 auto!important;border-radius:14px!important;padding:10px 14px!important;}
  #mainMenu{left:10px!important;right:10px!important;top:62px!important;width:auto!important;max-width:none!important;}
  .featured-strip.ag-hero{border-radius:18px!important;padding:24px 20px!important;}
  .featured-strip.ag-hero h1{font-size:26px!important;line-height:1.08!important;}
  .featured-strip.ag-hero p{font-size:16px!important;line-height:1.5!important;}
  .hero-btn,.section-action{width:100%!important;display:block!important;border-radius:14px!important;padding:14px 16px!important;}
  .ag-feed{padding:12px!important;border-radius:16px!important;}
  .section-title{font-size:24px!important;line-height:1.15!important;}
  .section-head{display:grid!important;grid-template-columns:1fr!important;}
  .post-author-row{grid-template-columns:48px minmax(0,1fr)!important;gap:10px!important;}
  .post-avatar img{width:48px!important;height:48px!important;min-width:48px!important;max-width:48px!important;}
  .ag-post-body{padding:16px!important;}
  .ag-post-body h2{font-size:22px!important;}
  .post-meta{font-size:13px!important;line-height:1.5!important;}
  .post-excerpt{font-size:15px!important;line-height:1.62!important;}
  .post-card-footer{display:grid!important;grid-template-columns:1fr!important;}
  .post-mini-actions{justify-content:flex-start!important;}
  .read-more{width:100%!important;text-align:center!important;}
  .footer,.ag-footer-live{width:100%!important;max-width:100%!important;}
}
@media(max-width:420px){
  .logo{font-size:20px!important;}
  .featured-strip.ag-hero,.layout.ag-home-layout{width:calc(100% - 16px)!important;}
  .ag-feed{padding:10px!important;}
  .post-cover-link,.post-cover,.cover{aspect-ratio:1.55/1!important;}
  .ag-post-body h2{font-size:20px!important;}
  .meta.post-meta{gap:6px!important;}
}

/* RadioaficionadosClub Platform v68 - Publicaciones: medallas proporcionadas, breadcrumbs y botón volver arriba.
   Qué corrige: medallas cortadas en publicaciones, cabecera de autor desordenada y navegación larga en móvil. */
.single-post{overflow:hidden;}
.ag-breadcrumbs{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:2px 0 18px;font-size:13px;font-weight:800;color:var(--ag-muted,#64748b)}
.ag-breadcrumbs a{color:var(--ag-link,#2563eb);text-decoration:none}.ag-breadcrumbs a:hover{text-decoration:underline}.ag-breadcrumbs strong{font-weight:900;color:var(--ag-muted,#64748b)}
.ag-post-author-card{display:flex;align-items:center;gap:12px;margin:18px 0 16px;padding:12px 14px;border:1px solid rgba(148,163,184,.28);border-radius:16px;background:rgba(15,23,42,.025)}
.ag-post-author-avatar{flex:0 0 auto;display:inline-flex}.ag-post-author-avatar img{width:54px;height:54px;border-radius:50%;object-fit:cover;border:2px solid rgba(255,255,255,.85);box-shadow:0 5px 16px rgba(0,0,0,.18)}
.ag-post-author-info{min-width:0;display:flex;flex-direction:column;gap:7px}.ag-post-author-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:14px;color:var(--ag-muted,#64748b)}.ag-post-author-meta strong{font-weight:900}
.ag-user-badges-post{display:flex!important;align-items:center;gap:7px;flex-wrap:wrap;margin:0!important;max-width:100%;overflow:visible!important}.ag-user-badges-post span,.ag-user-badges-post a{min-width:0!important;max-width:none!important;white-space:nowrap!important;text-indent:0!important;overflow:visible!important}
.ag-author-badge-mini{width:32px!important;height:32px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border-radius:10px!important;background:linear-gradient(180deg,rgba(30,41,59,.92),rgba(15,23,42,.92))!important;border:1px solid rgba(96,165,250,.26)!important;box-shadow:0 6px 16px rgba(0,0,0,.22)!important;padding:3px!important;line-height:1!important;color:#fff!important}
.ag-author-badge-mini img{width:100%!important;height:100%!important;object-fit:contain!important;display:block!important;border-radius:0!important;max-width:26px!important;max-height:26px!important}.ag-author-badge-mini b{font-size:18px!important;line-height:1!important;display:block!important}
.ag-author-badges-more{height:28px;min-width:28px;padding:0 8px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:#223146;color:#B9D7FF!important;border:1px solid #34465F;font-size:12px;font-weight:900;text-decoration:none}
.post-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 0 20px}.post-tools form{margin:0}.edit-quota-pill{display:inline-flex;align-items:center;min-height:36px;border-radius:999px;background:#223146;color:#B9D7FF;border:1px solid #3b82f6;padding:0 14px;font-weight:900}
.ag-back-to-top{position:fixed;right:18px;bottom:22px;width:46px;height:46px;border-radius:50%;z-index:999;background:linear-gradient(180deg,#2f81f7,#1d4ed8)!important;color:#fff!important;border:1px solid rgba(255,255,255,.24)!important;box-shadow:0 14px 34px rgba(0,0,0,.35)!important;font-size:24px;font-weight:900;display:flex;align-items:center;justify-content:center;opacity:0;pointer-events:none;transform:translateY(10px);transition:.2s ease}.ag-back-to-top.is-visible{opacity:1;pointer-events:auto;transform:translateY(0)}.ag-back-to-top:hover{filter:brightness(1.08)}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-post-author-card{background:#202124!important;border-color:#343A40!important;color:var(--ag-text)!important}html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-breadcrumbs strong{color:var(--ag-muted)!important}
@media(max-width:700px){.single{padding:0 12px;margin:16px auto}.single-post{padding:16px;border-radius:16px}.single-post h1{font-size:clamp(24px,7vw,36px);line-height:1.18}.ag-post-author-card{align-items:flex-start;padding:12px;gap:10px}.ag-post-author-avatar img{width:48px;height:48px}.ag-user-badges-post{gap:6px}.ag-author-badge-mini{width:30px!important;height:30px!important;border-radius:9px!important}.ag-author-badge-mini img{max-width:24px!important;max-height:24px!important}.post-tools .btn,.post-tools button{width:auto;min-height:38px}.edit-quota-pill{font-size:13px;min-height:34px}.ag-back-to-top{right:14px;bottom:82px;width:44px;height:44px}}


/* RadioaficionadosClub Platform v74 - Administración oscura única
   Objetivo: panel administrativo con identidad propia, estilo profesional oscuro,
   alto contraste y legibilidad completa en formularios, tablas y botones.
*/
:root{--ag-admin-bg:#070b14;--ag-admin-bg-2:#0b1220;--ag-admin-panel:#101827;--ag-admin-panel-2:#121d30;--ag-admin-panel-3:#17233a;--ag-admin-border:#26344d;--ag-admin-text:#f8fafc;--ag-admin-muted:#cbd5e1;--ag-admin-soft:#94a3b8;--ag-admin-blue:#38bdf8;--ag-admin-blue-2:#2563eb;--ag-admin-green:#22c55e;--ag-admin-yellow:#facc15;--ag-admin-red:#fb7185;--ag-admin-shadow:0 18px 45px rgba(0,0,0,.42)}
html[data-theme="admin-dark"],html[data-theme="admin-dark"] body.ag-admin-body{background:var(--ag-admin-bg)!important;color:var(--ag-admin-text)!important;color-scheme:dark}
body.ag-admin-body{background:radial-gradient(circle at top left,rgba(37,99,235,.20),transparent 34%),linear-gradient(180deg,#070b14 0%,#0b1220 48%,#070b14 100%)!important;color:var(--ag-admin-text)!important;min-height:100vh}
body.ag-admin-body *{box-sizing:border-box}
body.ag-admin-body a{color:#93c5fd}body.ag-admin-body a:hover{color:#bfdbfe;text-decoration:underline}
body.ag-admin-body .admin-only-frame,body.ag-admin-body .ag-admin-global{background:transparent!important;color:var(--ag-admin-text)!important}
body.ag-admin-body .ag-admin-mobilebar{background:rgba(7,11,20,.96)!important;border-bottom:1px solid var(--ag-admin-border)!important;color:#fff!important;box-shadow:0 10px 30px rgba(0,0,0,.38);backdrop-filter:blur(12px)}
body.ag-admin-body .ag-admin-mobilebar button{background:linear-gradient(135deg,#2563eb,#0891b2)!important;border:1px solid rgba(255,255,255,.18)!important;color:#fff!important;box-shadow:none!important}
body.ag-admin-body .wp-admin-shell{background:transparent!important;min-height:calc(100vh - 56px)}
body.ag-admin-body .wp-admin-side{background:linear-gradient(180deg,#070b14,#101827 55%,#070b14)!important;color:var(--ag-admin-text)!important;border-right:1px solid var(--ag-admin-border)!important;box-shadow:12px 0 32px rgba(0,0,0,.28)}
body.ag-admin-body .admin-brand{color:#fff!important;text-shadow:0 0 18px rgba(56,189,248,.28);letter-spacing:.2px}
body.ag-admin-body .admin-user-mini{background:rgba(255,255,255,.06)!important;border:1px solid rgba(148,163,184,.22)!important;color:#fff!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
body.ag-admin-body .admin-user-mini strong{color:#fff!important}body.ag-admin-body .admin-user-mini small{color:#cbd5e1!important}
body.ag-admin-body .wp-admin-side nav a{color:#dbeafe!important;background:transparent!important;border:1px solid transparent!important;text-decoration:none!important}
body.ag-admin-body .wp-admin-side nav a:hover,body.ag-admin-body .wp-admin-side nav a.active{background:linear-gradient(135deg,rgba(37,99,235,.95),rgba(8,145,178,.88))!important;color:#fff!important;border-color:rgba(255,255,255,.16)!important;box-shadow:0 12px 26px rgba(37,99,235,.20)!important}
body.ag-admin-body .wp-admin-main{background:transparent!important;color:var(--ag-admin-text)!important}
body.ag-admin-body .wp-admin-header,body.ag-admin-body .wp-hero{background:linear-gradient(135deg,#111c31,#0f3f75 55%,#075985)!important;border:1px solid rgba(147,197,253,.25)!important;color:#fff!important;box-shadow:var(--ag-admin-shadow)!important}
body.ag-admin-body .wp-admin-header h1,body.ag-admin-body .wp-hero h1,body.ag-admin-body h1,body.ag-admin-body h2,body.ag-admin-body h3,body.ag-admin-body h4{color:#fff!important}
body.ag-admin-body .wp-admin-header p,body.ag-admin-body .wp-hero p,body.ag-admin-body .wp-card-title small,body.ag-admin-body .hint,body.ag-admin-body .muted{color:var(--ag-admin-muted)!important}
body.ag-admin-body .wp-card,body.ag-admin-body .box,body.ag-admin-body .setting-card,body.ag-admin-body .hub-panel,body.ag-admin-body .panel-card,body.ag-admin-body .composer-card,body.ag-admin-body .composer-accordion,body.ag-admin-body .comments-shell,body.ag-admin-body .comment-card{background:linear-gradient(180deg,var(--ag-admin-panel),var(--ag-admin-panel-2))!important;border:1px solid var(--ag-admin-border)!important;color:var(--ag-admin-text)!important;box-shadow:var(--ag-admin-shadow)!important}
body.ag-admin-body .wp-card-title,body.ag-admin-body .profile-section-title{border-color:var(--ag-admin-border)!important}
body.ag-admin-body .wp-table-wrap{border:1px solid var(--ag-admin-border)!important;border-radius:14px;background:#0b1220!important;box-shadow:0 10px 28px rgba(0,0,0,.25)}
body.ag-admin-body .wp-table{background:#0b1220!important;color:#fff!important}
body.ag-admin-body .wp-table th{background:#17233a!important;color:#fff!important;border-color:var(--ag-admin-border)!important;text-transform:uppercase;font-size:12px;letter-spacing:.04em}
body.ag-admin-body .wp-table td{background:#101827!important;color:#f8fafc!important;border-color:#26344d!important}
body.ag-admin-body .wp-table tr:nth-child(even) td{background:#0d1626!important}
body.ag-admin-body .wp-table tr:hover td{background:#17233a!important}
body.ag-admin-body table small,body.ag-admin-body table span,body.ag-admin-body td,body.ag-admin-body th{color:inherit}
body.ag-admin-body input,body.ag-admin-body select,body.ag-admin-body textarea,body.ag-admin-body .wp-card input,body.ag-admin-body .wp-card select,body.ag-admin-body .wp-card textarea,body.ag-admin-body .box input,body.ag-admin-body .box select,body.ag-admin-body .box textarea{background:#0b1220!important;color:#fff!important;border:1px solid #334155!important;border-radius:10px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important}
body.ag-admin-body input:focus,body.ag-admin-body select:focus,body.ag-admin-body textarea:focus{outline:2px solid rgba(56,189,248,.45)!important;border-color:#38bdf8!important;background:#0f172a!important}
body.ag-admin-body input::placeholder,body.ag-admin-body textarea::placeholder{color:#94a3b8!important}
body.ag-admin-body label,body.ag-admin-body .box label,body.ag-admin-body .composer-label{color:#f8fafc!important;font-weight:900}
body.ag-admin-body .status-pill{background:#334155!important;color:#f8fafc!important;border:1px solid rgba(255,255,255,.08)!important}
body.ag-admin-body .status-published,body.ag-admin-body .status-active{background:rgba(34,197,94,.15)!important;color:#bbf7d0!important;border-color:rgba(34,197,94,.35)!important}
body.ag-admin-body .status-draft,body.ag-admin-body .status-pending{background:rgba(250,204,21,.14)!important;color:#fde68a!important;border-color:rgba(250,204,21,.30)!important}
body.ag-admin-body .status-hidden,body.ag-admin-body .status-banned,body.ag-admin-body .status-deleted{background:rgba(251,113,133,.14)!important;color:#fecdd3!important;border-color:rgba(251,113,133,.34)!important}
body.ag-admin-body .btn,body.ag-admin-body button,body.ag-admin-body .mini-btn,body.ag-admin-body input[type=submit]{background:linear-gradient(135deg,#2563eb,#0891b2)!important;color:#fff!important;border:1px solid rgba(255,255,255,.16)!important;box-shadow:0 10px 24px rgba(37,99,235,.20)!important;text-decoration:none!important}
body.ag-admin-body .btn:hover,body.ag-admin-body button:hover,body.ag-admin-body .mini-btn:hover{filter:brightness(1.10);text-decoration:none!important}
body.ag-admin-body .btn.ghost,body.ag-admin-body .btn.light{background:#17233a!important;color:#fff!important;border:1px solid #334155!important;box-shadow:none!important}
body.ag-admin-body .row-actions a{color:#93c5fd!important}body.ag-admin-body .row-actions a:hover{color:#fff!important}
body.ag-admin-body .report-admin-card,body.ag-admin-body .rank-row,body.ag-admin-body .result-card,body.ag-admin-body .account-media-grid label,body.ag-admin-body .public-post-list a,body.ag-admin-body .hub-tabs,body.ag-admin-body .executive-taxonomy article{background:#0b1220!important;border:1px solid var(--ag-admin-border)!important;color:#fff!important}
body.ag-admin-body .report-admin-card p,body.ag-admin-body .result-card p,body.ag-admin-body .executive-taxonomy span,body.ag-admin-body .account-media-grid small,body.ag-admin-body .profile-public-list dd{color:var(--ag-admin-muted)!important}
body.ag-admin-body .executive-taxonomy b,body.ag-admin-body .public-post-list strong{color:#93c5fd!important}
body.ag-admin-body .hub-tabs button{background:#101827!important;color:#e5e7eb!important;border-color:#334155!important}body.ag-admin-body .hub-tabs button.active{background:linear-gradient(135deg,#2563eb,#0891b2)!important;color:#fff!important}
body.ag-admin-body .alert{background:rgba(251,113,133,.14)!important;color:#fecdd3!important;border:1px solid rgba(251,113,133,.35)!important}body.ag-admin-body .success{background:rgba(34,197,94,.13)!important;color:#bbf7d0!important;border:1px solid rgba(34,197,94,.35)!important}
body.ag-admin-body .composer-shell.wp-mode .composer-form,body.ag-admin-body .composer-actions{background:#0b1220!important;border-color:var(--ag-admin-border)!important;color:#fff!important}
body.ag-admin-body .category-scroll,body.ag-admin-body .cover-preview{background:#0b1220!important;border-color:#334155!important;color:#fff!important}body.ag-admin-body .category-scroll label{color:#bfdbfe!important}body.ag-admin-body .publish-options label{background:#101827!important;border-color:#334155!important;color:#fff!important}
body.ag-admin-body .image-editor-box{background:#101827!important;border-color:#334155!important;color:#fff!important}body.ag-admin-body .image-editor-stage{background:#0b1220!important}
body.ag-admin-body .admin-form-actions{border-top:1px solid var(--ag-admin-border);padding-top:12px;margin-top:12px}
@media(max-width:900px){body.ag-admin-body .wp-admin-side{border-right:0!important;border-bottom:1px solid var(--ag-admin-border)!important}body.ag-admin-body .wp-admin-side nav{background:transparent!important}body.ag-admin-body .wp-admin-main{padding:14px!important}}
@media(max-width:560px){body.ag-admin-body .wp-admin-header,body.ag-admin-body .wp-hero{border-radius:14px!important;padding:18px!important}body.ag-admin-body .wp-card{border-radius:14px!important;padding:14px!important}.wp-table{min-width:760px}}
  
    /* RadioaficionadosClub Platform v77 - corrección forzada de contraste admin.
       Este bloque va dentro del layout para ganar sobre app.css antiguo, caché parcial o reglas claras tardías. */
    html[data-theme="admin-dark"],
    html[data-theme="admin-dark"] body.ag-admin-body{
      background:#070b14!important;
      color:#f8fafc!important;
      color-scheme:dark!important;
    }
    body.ag-admin-body{
      background:radial-gradient(circle at top left,rgba(37,99,235,.20),transparent 34%),linear-gradient(180deg,#070b14 0%,#0b1220 50%,#070b14 100%)!important;
    }
    body.ag-admin-body .wp-admin-main,
    body.ag-admin-body .ag-admin-neutral,
    body.ag-admin-body .ag-badges-admin,
    body.ag-admin-body .wp-card,
    body.ag-admin-body .neutral-card,
    body.ag-admin-body .card,
    body.ag-admin-body .admin-card,
    body.ag-admin-body .list-card,
    body.ag-admin-body .media-card,
    body.ag-admin-body .category-card,
    body.ag-admin-body .post-card,
    body.ag-admin-body .comment-card,
    body.ag-admin-body .report-card,
    body.ag-admin-body .user-card,
    body.ag-admin-body .badge-card,
    body.ag-admin-body .stat-card,
    body.ag-admin-body .settings-card,
    body.ag-admin-body .seo-card,
    body.ag-admin-body .privacy-card,
    body.ag-admin-body .cookie-card,
    body.ag-admin-body .widget-card,
    body.ag-admin-body .badge-admin-item,
    body.ag-admin-body .badge-admin-item.is-off,
    body.ag-admin-body .badge-preview-box,
    body.ag-admin-body .badge-switch{
      background:linear-gradient(180deg,#101827,#0b1220)!important;
      border-color:#334155!important;
      color:#f8fafc!important;
      box-shadow:0 14px 34px rgba(0,0,0,.32)!important;
    }
    body.ag-admin-body .ag-neutral-header,
    body.ag-admin-body .wp-admin-header,
    body.ag-admin-body .wp-hero{
      background:linear-gradient(135deg,#0b1220,#123b6d 58%,#075985)!important;
      color:#ffffff!important;
      border-color:rgba(147,197,253,.28)!important;
    }
    body.ag-admin-body h1,
    body.ag-admin-body h2,
    body.ag-admin-body h3,
    body.ag-admin-body h4,
    body.ag-admin-body strong,
    body.ag-admin-body b,
    body.ag-admin-body label,
    body.ag-admin-body th,
    body.ag-admin-body .badge-admin-info strong,
    body.ag-admin-body .wp-card-title h2{
      color:#ffffff!important;
    }
    body.ag-admin-body p,
    body.ag-admin-body li,
    body.ag-admin-body td,
    body.ag-admin-body span,
    body.ag-admin-body small,
    body.ag-admin-body .muted,
    body.ag-admin-body .help,
    body.ag-admin-body .description,
    body.ag-admin-body .form-help,
    body.ag-admin-body .subtext,
    body.ag-admin-body .badge-admin-info p,
    body.ag-admin-body .badge-admin-info small,
    body.ag-admin-body .ag-neutral-header p,
    body.ag-admin-body .neutral-card small,
    body.ag-admin-body .wp-card-title small{
      color:#cbd5e1!important;
    }
    body.ag-admin-body .badge-admin-grid{
      display:grid!important;
      grid-template-columns:repeat(auto-fill,minmax(320px,1fr))!important;
      gap:14px!important;
      width:100%!important;
      align-items:start!important;
    }
    body.ag-admin-body .badge-admin-item{
      display:grid!important;
      grid-template-columns:60px minmax(0,1fr)!important;
      gap:12px!important;
      align-items:center!important;
      min-height:96px!important;
      border-radius:16px!important;
      padding:14px!important;
    }
    body.ag-admin-body .badge-admin-item.is-off{
      opacity:.75!important;
      filter:none!important;
    }
    body.ag-admin-body .badge-admin-icon,
    body.ag-admin-body .badge-preview-frame{
      background:#17233a!important;
      border:1px solid #475569!important;
      color:#ffffff!important;
    }
    body.ag-admin-body input:not([type="checkbox"]):not([type="radio"]),
    body.ag-admin-body select,
    body.ag-admin-body textarea,
    body.ag-admin-body input[type="file"]{
      background:#0b1220!important;
      color:#ffffff!important;
      border:1px solid #475569!important;
      border-radius:10px!important;
    }
    body.ag-admin-body option{background:#0b1220!important;color:#ffffff!important;}
    body.ag-admin-body input::placeholder,
    body.ag-admin-body textarea::placeholder{color:#94a3b8!important;}
    body.ag-admin-body table,
    body.ag-admin-body tbody,
    body.ag-admin-body tr,
    body.ag-admin-body td{background-color:#101827!important;color:#f8fafc!important;border-color:#334155!important;}
    body.ag-admin-body th{background:#17233a!important;color:#ffffff!important;border-color:#334155!important;}
    body.ag-admin-body .btn,
    body.ag-admin-body button,
    body.ag-admin-body .mini-btn,
    body.ag-admin-body .badge-admin-actions.compact .btn,
    body.ag-admin-body .badge-admin-actions.compact button{
      color:#ffffff!important;
      text-shadow:none!important;
    }
    body.ag-admin-body .btn:not(.danger),
    body.ag-admin-body .mini-btn:not(.danger){
      background:linear-gradient(135deg,#2563eb,#0891b2)!important;
      border:1px solid rgba(255,255,255,.18)!important;
    }
    body.ag-admin-body .danger,
    body.ag-admin-body .btn.danger,
    body.ag-admin-body button.danger{
      background:linear-gradient(135deg,#dc2626,#be123c)!important;
      color:#ffffff!important;
      border:1px solid rgba(255,255,255,.18)!important;
    }
    body.ag-admin-body .wp-admin-side,
    body.ag-admin-body .admin-user-mini{
      color:#ffffff!important;
    }
    @media(max-width:760px){
      body.ag-admin-body .badge-admin-grid{grid-template-columns:1fr!important;}
      body.ag-admin-body .badge-admin-item{grid-template-columns:52px minmax(0,1fr)!important;}
    }
  


/* ==========================================================
   RadioaficionadosClub Platform v78 - Admin oscuro definitivo
   Corrige contraste de Seguridad, SEO, Editar y BBCode.
   Autor: RadioaficionadosClub.cl / Rodrigo Reyes
   ========================================================== */
html[data-theme="admin-dark"] body.ag-admin-body,
body.ag-admin-body{background:#070b14!important;color:#f8fafc!important;color-scheme:dark!important;}
body.ag-admin-body .wp-admin-shell,
body.ag-admin-body .wp-admin-main,
body.ag-admin-body .admin-only-frame,
body.ag-admin-body .admin-content{background:transparent!important;color:#f8fafc!important;}
body.ag-admin-body .wp-card,
body.ag-admin-body .admin-card,
body.ag-admin-body .neutral-card,
body.ag-admin-body .card,
body.ag-admin-body .box,
body.ag-admin-body .setting-card,
body.ag-admin-body .settings-card,
body.ag-admin-body .seo-card,
body.ag-admin-body .privacy-card,
body.ag-admin-body .security-checklist,
body.ag-admin-body .security-checklist > *,
body.ag-admin-body .help-box,
body.ag-admin-body .seo-preview-box,
body.ag-admin-body .seo-admin-pro,
body.ag-admin-body .settings-grid > *,
body.ag-admin-body .check-row,
body.ag-admin-body .seo-tools-grid,
body.ag-admin-body .admin-page-head,
body.ag-admin-body .bbcode-hero-panel,
body.ag-admin-body .bbcode-library-card,
body.ag-admin-body .bbcode-editor-panel,
body.ag-admin-body .bbcode-safe-card,
body.ag-admin-body .bbcode-empty-editor,
body.ag-admin-body .bbcode-stat-card,
body.ag-admin-body .bbcode-table-wrap,
body.ag-admin-body .admin-filterbar,
body.ag-admin-body .admin-alert,
body.ag-admin-body .alert,
body.ag-admin-body .success,
body.ag-admin-body .composer-card,
body.ag-admin-body .composer-accordion,
body.ag-admin-body .composer-acc-body,
body.ag-admin-body .cover-preview,
body.ag-admin-body .category-scroll,
body.ag-admin-body .publish-options,
body.ag-admin-body .image-uploader,
body.ag-admin-body .bbcode-grid,
body.ag-admin-body .bbcode-grid > *,
body.ag-admin-body .panel-card,
body.ag-admin-body .radio-row,
body.ag-admin-body .check-line,
body.ag-admin-body .switch-line,
body.ag-admin-body .wp-table-wrap{
  background:linear-gradient(180deg,#101827,#0b1220)!important;
  color:#f8fafc!important;
  border-color:#334155!important;
  box-shadow:0 14px 34px rgba(0,0,0,.28)!important;
}
body.ag-admin-body .wp-admin-header,
body.ag-admin-body .wp-hero,
body.ag-admin-body .ag-neutral-header{
  background:linear-gradient(135deg,#0b1220,#123b6d 58%,#075985)!important;
  color:#ffffff!important;
  border-color:rgba(147,197,253,.28)!important;
}
body.ag-admin-body h1,
body.ag-admin-body h2,
body.ag-admin-body h3,
body.ag-admin-body h4,
body.ag-admin-body h5,
body.ag-admin-body h6,
body.ag-admin-body label,
body.ag-admin-body strong,
body.ag-admin-body b,
body.ag-admin-body th,
body.ag-admin-body legend,
body.ag-admin-body .wp-card-title,
body.ag-admin-body .wp-card-title h2,
body.ag-admin-body .admin-section-title h2,
body.ag-admin-body .composer-label{
  color:#ffffff!important;
}
body.ag-admin-body p,
body.ag-admin-body li,
body.ag-admin-body td,
body.ag-admin-body span,
body.ag-admin-body small,
body.ag-admin-body .muted,
body.ag-admin-body .help,
body.ag-admin-body .description,
body.ag-admin-body .form-help,
body.ag-admin-body .field-note,
body.ag-admin-body .subtext,
body.ag-admin-body .hint,
body.ag-admin-body .wp-card-title small{
  color:#cbd5e1!important;
}
body.ag-admin-body a:not(.btn):not(.mini-btn){color:#93c5fd!important;}
body.ag-admin-body a:not(.btn):not(.mini-btn):hover{color:#ffffff!important;}
body.ag-admin-body input:not([type="checkbox"]):not([type="radio"]),
body.ag-admin-body select,
body.ag-admin-body textarea,
body.ag-admin-body input[type="file"]{
  background:#0b1220!important;
  color:#ffffff!important;
  border:1px solid #475569!important;
  border-radius:10px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05)!important;
}
body.ag-admin-body input::placeholder,
body.ag-admin-body textarea::placeholder{color:#94a3b8!important;opacity:1!important;}
body.ag-admin-body option{background:#0b1220!important;color:#ffffff!important;}
body.ag-admin-body input[type="checkbox"],
body.ag-admin-body input[type="radio"]{accent-color:#38bdf8!important;}
body.ag-admin-body table,
body.ag-admin-body thead,
body.ag-admin-body tbody,
body.ag-admin-body tr,
body.ag-admin-body td,
body.ag-admin-body .wp-table,
body.ag-admin-body .bbcode-table{
  background:#101827!important;
  color:#f8fafc!important;
  border-color:#334155!important;
}
body.ag-admin-body th,
body.ag-admin-body .wp-table th,
body.ag-admin-body .bbcode-table th{
  background:#17233a!important;
  color:#ffffff!important;
  border-color:#334155!important;
}
body.ag-admin-body .bbcode-compact-row,
body.ag-admin-body .bbcode-compact-row.is-disabled,
body.ag-admin-body .bbcode-compact-row.is-enabled,
body.ag-admin-body .bbcode-compact-row.is-editing{
  background:#0f172a!important;
  color:#f8fafc!important;
  border-color:#334155!important;
  opacity:1!important;
}
body.ag-admin-body .mini-status,
body.ag-admin-body .badge,
body.ag-admin-body [class*="severity-"]{
  background:#17233a!important;
  color:#e0f2fe!important;
  border:1px solid #334155!important;
}
body.ag-admin-body .mini-status.ok{background:#064e3b!important;color:#bbf7d0!important;border-color:#047857!important;}
body.ag-admin-body .mini-status.off,
body.ag-admin-body .mini-status.muted-dot{background:#334155!important;color:#cbd5e1!important;}
body.ag-admin-body code,
body.ag-admin-body pre,
body.ag-admin-body .code-block,
body.ag-admin-body .bbcode-row-tag code{
  background:#020617!important;
  color:#bae6fd!important;
  border:1px solid #334155!important;
  border-radius:8px!important;
}
body.ag-admin-body .admin-alert[style],
body.ag-admin-body .bbcode-flash[style],
body.ag-admin-body .bbcode-flash{
  background:#3f1d24!important;
  color:#fecdd3!important;
  border:1px solid #fb7185!important;
}
body.ag-admin-body .btn,
body.ag-admin-body button,
body.ag-admin-body .mini-btn,
body.ag-admin-body input[type="submit"]{
  color:#ffffff!important;
  text-shadow:none!important;
}
body.ag-admin-body .btn.light,
body.ag-admin-body .btn.ghost{
  background:#17233a!important;
  color:#ffffff!important;
  border:1px solid #475569!important;
}
body.ag-admin-body .composer-preview,
body.ag-admin-body .bbc-content,
body.ag-admin-body .live-preview-title,
body.ag-admin-body .ag-inline-image-uploader,
body.ag-admin-body .ag-inline-image-drop,
body.ag-admin-body .ag-inline-image-results{
  background:#0b1220!important;
  color:#f8fafc!important;
  border-color:#334155!important;
}
@media(max-width:760px){
  body.ag-admin-body .settings-grid,
  body.ag-admin-body .ag-admin-grid,
  body.ag-admin-body .bbcode-stats-grid{grid-template-columns:1fr!important;}
}

/* =====================================================
   PAGINACIÓN INTELIGENTE PORTADA
   RadioaficionadosClub Platform
   Fecha: 18-06-2026
   Autor: Rodrigo Reyes / RadioaficionadosClub.cl
   Cambio: resumen, puntos suspensivos y navegación responsiva.
===================================================== */
.ag-pagination-summary{
    width:100%;
    text-align:center;
    margin:22px 0 8px;
    color:var(--muted,#94a3b8);
    font-size:14px;
    font-weight:600;
}
.ag-pagination{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    margin:18px 0 34px;
}
.ag-pagination a,
.ag-pagination .ag-page-dots{
    min-width:42px;
    min-height:42px;
    padding:10px 14px;
    border-radius:12px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:rgba(15,23,42,.92);
    color:#fff;
    text-decoration:none;
    font-weight:700;
    border:1px solid rgba(255,255,255,.10);
    box-shadow:0 8px 20px rgba(0,0,0,.18);
}
.ag-pagination .ag-page-dots{
    min-width:auto;
    background:transparent;
    border:0;
    box-shadow:none;
    color:var(--muted,#94a3b8);
    padding:10px 4px;
}
.ag-pagination a:hover{
    transform:translateY(-2px);
    border-color:rgba(37,99,235,.75);
}
.ag-pagination a.active,
.ag-pagination a[aria-current="page"]{
    background:#2563eb;
    border-color:#2563eb;
    color:#fff;
}
.ag-pagination .ag-page-control{
    min-width:94px;
}
html[data-theme="light"] .ag-pagination a{
    background:#ffffff;
    color:#0f172a;
    border-color:rgba(15,23,42,.12);
}
html[data-theme="light"] .ag-pagination a.active,
html[data-theme="light"] .ag-pagination a[aria-current="page"]{
    background:#2563eb;
    border-color:#2563eb;
    color:#fff;
}
@media(max-width:600px){
    .ag-pagination{
        gap:7px;
        margin-bottom:28px;
    }
    .ag-pagination a,
    .ag-pagination .ag-page-dots{
        min-width:38px;
        min-height:38px;
        padding:8px 11px;
        border-radius:10px;
        font-size:14px;
    }
    .ag-pagination .ag-page-control{
        min-width:auto;
    }
}



/* Optimización Lighthouse v75 */
.ag-post-card,.widget,.card{content-visibility:auto;contain-intrinsic-size:600px}
img[loading="lazy"]{contain:content}

/* =========================================================
   RadioaficionadosClub Platform v76.2 - Corrección visual BBCode listas
   Autor: Rodrigo Reyes / RadioaficionadosClub.cl
   Objetivo: evitar que [*], [] o marcadores heredados se vean en pantalla.
   ========================================================= */
.bbc-list,
.post-content .bbc-list,
.single-post .bbc-list,
.comment-content .bbc-list,
.preview-box .bbc-list,
.live-preview .bbc-list{
    margin:14px 0 18px 0!important;
    padding-left:0!important;
    list-style:none!important;
    color:var(--text,#e5e7eb)!important;
}
.bbc-list li,
.post-content .bbc-list li,
.single-post .bbc-list li,
.comment-content .bbc-list li,
.preview-box .bbc-list li,
.live-preview .bbc-list li{
    position:relative!important;
    display:block!important;
    margin:8px 0!important;
    padding-left:28px!important;
    line-height:1.7!important;
    color:var(--text,#e5e7eb)!important;
    white-space:normal!important;
}
.bbc-list li::marker{content:""!important;font-size:0!important;}
ul.bbc-list li::before{
    content:"";
    position:absolute;
    left:6px;
    top:.72em;
    width:7px;
    height:7px;
    border-radius:999px;
    background:currentColor;
    opacity:.78;
}
ol.bbc-list{counter-reset:ag-bbc-list-counter;}
ol.bbc-list li{counter-increment:ag-bbc-list-counter;}
ol.bbc-list li::before{
    content:counter(ag-bbc-list-counter) ".";
    position:absolute;
    left:0;
    top:0;
    min-width:22px;
    color:currentColor;
    font-weight:800;
    opacity:.85;
}
.bbc-list-item{display:inline!important;color:inherit!important;}
html[data-theme="dark"] .bbc-list,
html[data-theme="dark"] .bbc-list li{color:#e5e7eb!important;}
html[data-theme="light"] .bbc-list,
html[data-theme="light"] .bbc-list li{color:#1f2937!important;}

/* =========================================================
   RadioaficionadosClub Platform v78 - Perfil PRO: muro central, medallas derecha y recientes abajo
   Autor: Rodrigo Reyes / RadioaficionadosClub.cl
   Objetivo: ordenar el perfil público, corregir emojis y avatar pequeño en comentarios.
   ========================================================= */
.ag-profile-main-grid.ag-profile-layout{
    display:grid!important;
    grid-template-columns:280px minmax(0,1fr) 280px!important;
    gap:18px!important;
    align-items:start!important;
}
.ag-profile-main-grid .ag-profile-side{grid-column:1!important;min-width:0!important;}
.ag-profile-main-grid .ag-profile-wall-card{grid-column:2!important;min-width:0!important;}
.ag-profile-main-grid .ag-profile-medals-side{grid-column:3!important;min-width:0!important;}
.ag-profile-recent-section{margin-top:18px;}
.ag-profile-recent-section .ag-profile-activity{width:100%;}
.ag-profile-wall-card .wp-card-title h2{font-size:clamp(22px,2.4vw,30px)!important;}
.ag-wall-form textarea{min-height:112px!important;}
.ag-wall-emojis button{min-width:34px;min-height:34px;padding:6px 8px!important;border-radius:11px!important;line-height:1!important;}
.ag-wall-comment{grid-template-columns:32px minmax(0,1fr)!important;gap:10px!important;padding:12px!important;border-radius:15px!important;}
.ag-wall-comment>img,
.ag-wall-comment .ag-wall-avatar{
    width:32px!important;
    height:32px!important;
    max-width:32px!important;
    max-height:32px!important;
    border-radius:50%!important;
    object-fit:cover!important;
    background:#0f172a!important;
    border:1px solid rgba(148,163,184,.22)!important;
}
.ag-wall-reply{grid-template-columns:30px minmax(0,1fr)!important;padding:10px!important;}
.ag-wall-reply>img{width:30px!important;height:30px!important;max-width:30px!important;max-height:30px!important;}
.ag-wall-head a{font-size:13px!important;}
.ag-wall-head time{font-size:11px!important;}
.ag-wall-body p{font-size:14px!important;line-height:1.55!important;margin-top:5px!important;}
.ag-profile-badge-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;}
.ag-profile-badge-tile img{width:44px!important;height:44px!important;max-width:44px!important;max-height:44px!important;}
.ag-profile-badge-tile b{width:44px!important;height:44px!important;font-size:24px!important;}
.ag-profile-badge-tile span{font-size:10px!important;}
.ag-profile-recent-card .public-post-list.pro-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.ag-profile-recent-card .public-post-list.pro-list a{min-height:96px;}
@media(max-width:1180px){
    .ag-profile-main-grid.ag-profile-layout{grid-template-columns:240px minmax(0,1fr)!important;}
    .ag-profile-main-grid .ag-profile-side{grid-column:1!important;}
    .ag-profile-main-grid .ag-profile-wall-card{grid-column:2!important;}
    .ag-profile-main-grid .ag-profile-medals-side{grid-column:1 / -1!important;}
    .ag-profile-badge-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;}
}
@media(max-width:820px){
    .ag-profile-main-grid.ag-profile-layout{grid-template-columns:1fr!important;}
    .ag-profile-main-grid .ag-profile-side,
    .ag-profile-main-grid .ag-profile-wall-card,
    .ag-profile-main-grid .ag-profile-medals-side{grid-column:1!important;}
    .ag-profile-main-grid .ag-profile-side{order:1!important;}
    .ag-profile-main-grid .ag-profile-wall-card{order:2!important;}
    .ag-profile-main-grid .ag-profile-medals-side{order:3!important;}
    .ag-profile-recent-section{order:4!important;}
    .ag-profile-recent-card .public-post-list.pro-list{grid-template-columns:1fr;}
    .ag-profile-badge-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
}
@media(max-width:520px){
    .ag-wall-form-tools{display:grid!important;grid-template-columns:1fr!important;align-items:stretch!important;}
    .ag-wall-emojis{justify-content:flex-start!important;}
    .ag-wall-form-tools>button{width:100%!important;}
    .ag-profile-badge-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}

/* RadioaficionadosClub Platform v81 - Paginación profesional en perfil.
   Evita que muro y publicaciones recientes crezcan infinitamente. */
.ag-profile-pagination{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  flex-wrap:wrap!important;
  margin:14px 0 2px!important;
  padding-top:12px!important;
  border-top:1px solid rgba(148,163,184,.14)!important;
}
.ag-profile-pagination a,
.ag-profile-pagination span,
.ag-profile-pagination strong{
  min-height:32px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:10px!important;
  padding:7px 11px!important;
  font-size:12.5px!important;
  font-weight:900!important;
  text-decoration:none!important;
}
.ag-profile-pagination a{
  color:#dbeafe!important;
  background:rgba(37,99,235,.20)!important;
  border:1px solid rgba(96,165,250,.32)!important;
}
.ag-profile-pagination a:hover{
  color:#fff!important;
  background:rgba(37,99,235,.38)!important;
  transform:translateY(-1px)!important;
}
.ag-profile-pagination strong{
  color:#e5e7eb!important;
  background:rgba(15,23,42,.70)!important;
  border:1px solid rgba(148,163,184,.18)!important;
}
.ag-profile-pagination .is-disabled{
  color:#64748b!important;
  background:rgba(15,23,42,.35)!important;
  border:1px solid rgba(148,163,184,.10)!important;
  cursor:not-allowed!important;
}
.ag-wall-more-replies{
  margin:5px 0 0 36px!important;
  color:#93a4bb!important;
  font-size:11.5px!important;
  font-weight:700!important;
}
#publicaciones-recientes{scroll-margin-top:80px!important;}
#muro{scroll-margin-top:80px!important;}
@media(max-width:640px){
  .ag-profile-pagination{justify-content:stretch!important;display:grid!important;grid-template-columns:1fr auto 1fr!important;gap:6px!important;}
  .ag-profile-pagination a,
  .ag-profile-pagination span,
  .ag-profile-pagination strong{width:100%!important;padding:8px 9px!important;font-size:12px!important;}
  .ag-wall-more-replies{margin-left:34px!important;font-size:11px!important;}
}


/* =========================================================
   RadioaficionadosClub Platform v82 - Reparación profesional perfil/muro
   Autor: Rodrigo Reyes / RadioaficionadosClub.cl
   Objetivo:
   - Evitar columna central aplastada.
   - Ocultar formularios de respuesta hasta pulsar Responder.
   - Muro tipo chat oscuro, compacto y legible.
   - Mantener paginación sin alargar infinito.
   ========================================================= */
.ag-profile-pro{
  width:min(100%,1240px)!important;
  max-width:1240px!important;
  margin-inline:auto!important;
  padding-inline:14px!important;
}
.ag-profile-main-grid.ag-profile-layout{
  display:grid!important;
  grid-template-columns:minmax(170px,220px) minmax(420px,1fr) minmax(150px,210px)!important;
  gap:16px!important;
  align-items:start!important;
}
.ag-profile-main-grid .ag-profile-side{grid-column:1!important;min-width:0!important;}
.ag-profile-main-grid .ag-profile-wall-card{grid-column:2!important;min-width:0!important;}
.ag-profile-main-grid .ag-profile-medals-side{grid-column:3!important;min-width:0!important;}
.ag-profile-card{border-radius:16px!important;}
.ag-profile-wall-card{overflow:hidden!important;}
.ag-profile-wall-card .wp-card-title{
  align-items:flex-start!important;
  gap:10px!important;
  padding-bottom:12px!important;
  border-bottom:1px solid rgba(148,163,184,.16)!important;
}
.ag-profile-wall-card .wp-card-title h2{font-size:20px!important;line-height:1.15!important;}
.ag-profile-wall-card .wp-card-title small{font-size:12px!important;text-align:right!important;}
.ag-wall-form{
  background:rgba(2,6,23,.38)!important;
  border:1px solid rgba(148,163,184,.18)!important;
  border-radius:14px!important;
  padding:10px!important;
  margin:12px 0 16px!important;
}
.ag-wall-form textarea{
  width:100%!important;
  min-height:82px!important;
  max-height:170px!important;
  resize:vertical!important;
  font-size:14px!important;
  line-height:1.45!important;
  color:#e5e7eb!important;
  background:#0b111b!important;
  border:1px solid rgba(148,163,184,.22)!important;
  border-radius:12px!important;
  padding:12px!important;
}
.ag-wall-form-tools{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  margin-top:9px!important;
}
.ag-wall-emojis{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  flex-wrap:wrap!important;
}
.ag-wall-emojis button{
  width:30px!important;
  height:30px!important;
  min-width:30px!important;
  min-height:30px!important;
  padding:0!important;
  display:inline-grid!important;
  place-items:center!important;
  font-size:15px!important;
  line-height:1!important;
  border-radius:9px!important;
  background:rgba(37,99,235,.22)!important;
  border:1px solid rgba(96,165,250,.32)!important;
  color:#fff!important;
}
.ag-wall-form-tools>button,
.ag-wall-actions button,
.ag-wall-reply-toggle{
  min-height:30px!important;
  border-radius:9px!important;
  font-size:12px!important;
  font-weight:900!important;
}
.ag-wall-thread-list{
  display:flex!important;
  flex-direction:column!important;
  gap:12px!important;
}
.ag-wall-comment{
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr)!important;
  gap:9px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.ag-wall-comment>.ag-wall-avatar,
.ag-wall-comment>img.ag-wall-avatar{
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  min-height:34px!important;
  max-width:34px!important;
  max-height:34px!important;
  border-radius:50%!important;
  object-fit:cover!important;
  align-self:start!important;
  margin-top:2px!important;
  border:1px solid rgba(148,163,184,.28)!important;
  background:#0f172a!important;
}
.ag-wall-body{
  min-width:0!important;
  background:rgba(15,23,42,.48)!important;
  border:1px solid rgba(148,163,184,.14)!important;
  border-radius:14px!important;
  padding:9px 11px!important;
}
.ag-wall-head{
  display:flex!important;
  align-items:baseline!important;
  gap:8px!important;
  flex-wrap:wrap!important;
  margin:0 0 4px!important;
}
.ag-wall-head a{font-size:14px!important;font-weight:900!important;color:#f8fafc!important;text-decoration:none!important;}
.ag-wall-head time{font-size:11px!important;color:#8fb3e8!important;font-weight:700!important;}
.ag-wall-body p{
  margin:0 0 7px!important;
  font-size:14px!important;
  line-height:1.45!important;
  color:#f1f5f9!important;
  overflow-wrap:anywhere!important;
}
.ag-wall-actions{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  flex-wrap:wrap!important;
}
.ag-wall-actions form{display:inline-flex!important;margin:0!important;}
.ag-wall-actions button, .ag-wall-actions span{
  padding:5px 9px!important;
  border-radius:9px!important;
  background:rgba(37,99,235,.18)!important;
  border:1px solid rgba(96,165,250,.22)!important;
  color:#dbeafe!important;
  font-size:12px!important;
  line-height:1!important;
}
.ag-wall-reply-form{
  display:none!important;
  margin:10px 0 0!important;
  padding:8px!important;
  background:rgba(2,6,23,.32)!important;
}
.ag-wall-reply-form.is-open{display:block!important;}
.ag-wall-reply-form textarea{min-height:58px!important;font-size:13px!important;}
.ag-wall-replies{
  margin:10px 0 0!important;
  padding-left:0!important;
  display:flex!important;
  flex-direction:column!important;
  gap:9px!important;
}
.ag-wall-reply{
  grid-template-columns:28px minmax(0,1fr)!important;
  gap:8px!important;
  padding:0!important;
}
.ag-wall-reply>.ag-wall-avatar,
.ag-wall-reply>img.ag-wall-avatar{
  width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;max-width:28px!important;max-height:28px!important;
}
.ag-wall-reply .ag-wall-body{
  background:rgba(2,6,23,.34)!important;
  border-radius:12px!important;
  padding:8px 10px!important;
}
.ag-wall-more-replies{
  margin:0 0 0 37px!important;
  color:#93a4bb!important;
  font-size:11px!important;
  font-weight:800!important;
}
.ag-profile-pagination{
  margin-top:14px!important;
}
.ag-profile-recent-section{margin-top:16px!important;}
.ag-profile-recent-card .public-post-list.pro-list{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
}
.ag-profile-recent-card .public-post-list.pro-list a{
  min-height:86px!important;
  padding:12px!important;
  border-radius:13px!important;
}
.ag-profile-badge-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
.ag-profile-badge-tile img{width:42px!important;height:42px!important;max-width:42px!important;max-height:42px!important;}
.ag-profile-badge-tile b{width:42px!important;height:42px!important;font-size:23px!important;}
.ag-profile-badge-tile span{font-size:10.5px!important;}
@media(max-width:1120px){
  .ag-profile-main-grid.ag-profile-layout{
    grid-template-columns:1fr!important;
  }
  .ag-profile-main-grid .ag-profile-side,
  .ag-profile-main-grid .ag-profile-wall-card,
  .ag-profile-main-grid .ag-profile-medals-side{grid-column:1!important;}
  .ag-profile-main-grid .ag-profile-side{order:1!important;}
  .ag-profile-main-grid .ag-profile-wall-card{order:2!important;}
  .ag-profile-main-grid .ag-profile-medals-side{order:3!important;}
  .ag-profile-badge-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
}
@media(max-width:700px){
  .ag-profile-pro{padding-inline:8px!important;}
  .ag-profile-cover-inner{padding:22px 14px!important;}
  .ag-profile-stats{grid-template-columns:repeat(2,1fr)!important;}
  .ag-profile-wall-card .wp-card-title{display:block!important;}
  .ag-profile-wall-card .wp-card-title small{display:block!important;text-align:left!important;margin-top:4px!important;}
  .ag-wall-form-tools{display:grid!important;grid-template-columns:1fr!important;}
  .ag-wall-form-tools>button{width:100%!important;}
  .ag-wall-emojis{justify-content:flex-start!important;}
  .ag-wall-comment{grid-template-columns:30px minmax(0,1fr)!important;gap:8px!important;}
  .ag-wall-comment>.ag-wall-avatar,.ag-wall-comment>img.ag-wall-avatar{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;max-width:30px!important;max-height:30px!important;}
  .ag-wall-head a{font-size:13px!important;}
  .ag-wall-body p{font-size:13.5px!important;}
  .ag-profile-recent-card .public-post-list.pro-list{grid-template-columns:1fr!important;}
  .ag-profile-badge-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}


/* RadioaficionadosClub Platform - Fix editor avatar/portada centrado v25.1
   Corrige el desfase visual entre canvas y círculo/cuadro cuando el canvas queda centrado o escalado. */
.image-editor-stage{
  position:relative!important;
  overflow:auto!important;
  text-align:center!important;
  background:#5f6878!important;
}
.image-editor-stage canvas{
  display:block!important;
  max-width:100%!important;
  height:auto!important;
  margin:0 auto!important;
  cursor:move!important;
}
.image-crop-box{
  position:absolute!important;
  pointer-events:none!important;
  box-sizing:border-box!important;
  border:3px solid rgba(255,255,255,.96)!important;
  outline:1px solid rgba(15,23,42,.45)!important;
  box-shadow:0 0 0 9999px rgba(15,23,42,.30)!important;
}
.image-editor-box{
  max-width:1040px!important;
}
html[data-theme="dark"] .image-editor-box,
body.dark .image-editor-box{
  background:#111827!important;
  color:#f8fafc!important;
  border-color:#334155!important;
}
html[data-theme="dark"] .image-editor-tools,
html[data-theme="dark"] .image-editor-actions,
body.dark .image-editor-tools,
body.dark .image-editor-actions{
  background:#0f172a!important;
  border-color:#334155!important;
}
html[data-theme="dark"] .editor-help,
body.dark .editor-help{
  color:#cbd5e1!important;
}


/* ==========================================================
   RadioaficionadosClub Platform - Perfil / editor avatar v25.2
   Autor: Rodrigo Reyes / RadioaficionadosClub.cl
   Objetivo: aplicar feedback beta tester Miguel92.
   - Perfil con más aire visual.
   - Modo oscuro legible.
   - Editor de avatar/portada centrado real.
   - El círculo se dibuja dentro del canvas para evitar desfases.
   ========================================================== */
.profile-classic-grid.account-pro-grid{
  grid-template-columns:minmax(0,1fr) 300px!important;
  gap:24px!important;
  max-width:1280px!important;
}
.profile-form-classic.account-pro-form,
.account-pro-form{
  max-width:960px!important;
  width:100%!important;
  padding:0 18px 22px!important;
  box-sizing:border-box!important;
}
.account-media-grid label{
  background:transparent!important;
  border:0!important;
  padding:0!important;
  color:inherit!important;
  text-align:left!important;
}
.account-media-grid label input[type="file"]{
  margin-top:8px!important;
}
.privacy-toggle-card{
  display:flex!important;
  align-items:flex-start!important;
  gap:12px!important;
  background:transparent!important;
  border:1px solid rgba(148,163,184,.28)!important;
  border-radius:14px!important;
  padding:14px!important;
  text-align:left!important;
}
.privacy-toggle-card input{
  width:auto!important;
  margin-top:4px!important;
  flex:0 0 auto!important;
}
.privacy-toggle-card strong{
  color:#0f172a!important;
}
.privacy-toggle-card small{
  color:#475569!important;
  line-height:1.45!important;
}
html[data-theme="dark"] .privacy-toggle-card strong,
body.dark .privacy-toggle-card strong{
  color:#f8fafc!important;
}
html[data-theme="dark"] .privacy-toggle-card small,
body.dark .privacy-toggle-card small{
  color:#cbd5e1!important;
}
.ag-image-editor-modal.active,
.image-editor-modal.active{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:14px!important;
}
.ag-image-editor-box,
.image-editor-box{
  width:min(1040px,calc(100vw - 28px))!important;
  max-height:calc(100vh - 28px)!important;
  overflow:hidden!important;
  border-radius:16px!important;
}
.ag-image-editor-stage,
.image-editor-stage{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:auto!important;
  padding:18px 12px!important;
  background:#5f6878!important;
  text-align:center!important;
  box-sizing:border-box!important;
}
.ag-image-editor-stage canvas,
.image-editor-stage canvas{
  display:block!important;
  max-width:100%!important;
  height:auto!important;
  margin:0 auto!important;
  cursor:grab!important;
  touch-action:none!important;
  background:#5f6878!important;
}
.ag-image-editor-stage canvas:active,
.image-editor-stage canvas:active{
  cursor:grabbing!important;
}
.image-crop-box{
  display:none!important;
}
.ag-profile-toast{
  position:fixed!important;
  right:18px!important;
  bottom:18px!important;
  z-index:99999!important;
  max-width:min(360px,calc(100vw - 36px))!important;
  background:#0f172a!important;
  color:#fff!important;
  border:1px solid rgba(255,255,255,.18)!important;
  border-radius:14px!important;
  padding:12px 14px!important;
  box-shadow:0 16px 40px rgba(0,0,0,.32)!important;
  opacity:0!important;
  transform:translateY(12px)!important;
  pointer-events:none!important;
  transition:opacity .18s ease,transform .18s ease!important;
  font-weight:800!important;
}
.ag-profile-toast.active{
  opacity:1!important;
  transform:translateY(0)!important;
}
body.ag-editor-open{
  overflow:hidden!important;
}
html[data-theme="dark"] .ag-image-editor-box,
html[data-theme="dark"] .image-editor-box,
body.dark .ag-image-editor-box,
body.dark .image-editor-box{
  background:#111827!important;
  color:#f8fafc!important;
  border-color:#334155!important;
}
html[data-theme="dark"] .image-editor-tools,
html[data-theme="dark"] .image-editor-actions,
body.dark .image-editor-tools,
body.dark .image-editor-actions{
  background:#0f172a!important;
  border-color:#334155!important;
}
html[data-theme="dark"] .editor-help,
body.dark .editor-help{
  color:#cbd5e1!important;
}
@media(max-width:760px){
  .profile-classic-grid.account-pro-grid{
    grid-template-columns:1fr!important;
    width:min(100% - 18px,760px)!important;
    padding:0!important;
  }
  .profile-form-classic.account-pro-form,
  .account-pro-form{
    padding:0 12px 18px!important;
  }
  .account-media-grid{
    grid-template-columns:1fr!important;
  }
  .ag-image-editor-stage,
  .image-editor-stage{
    padding:12px 8px!important;
  }
  .image-editor-tools,
  .image-editor-actions{
    flex-wrap:wrap!important;
    justify-content:center!important;
  }
}


/* ==========================================================
   RadioaficionadosClub Platform - Corrección final beta tester perfil v25.3
   Autor: Rodrigo Reyes / RadioaficionadosClub.cl
   Fecha: 2026-06-21
   Motivo: feedback Miguel92.
   Qué corrige:
   1) Laterales menos apretados en Mi cuenta y perfil.
   2) Texto "Mostrar mi perfil público" legible en modo oscuro.
   3) Elimina fondos y bordes heredados de .field para que solo las cards tengan fondo.
   4) Limpia esquinas cuadradas visibles y mejora separación visual.
   5) Deja claro que avatar/portada se guardan automáticamente desde el editor.
   ========================================================== */

/* Layout del perfil: más aire y ancho útil */
.profile-classic-grid.account-pro-grid,
.profile-account-shell .profile-classic-grid.account-pro-grid{
  grid-template-columns:minmax(0,1fr) 300px!important;
  gap:28px!important;
  max-width:1340px!important;
  width:100%!important;
  margin-inline:auto!important;
  box-sizing:border-box!important;
}
.profile-main-panel.account-pro-panel,
.account-pro-panel{
  border-radius:18px!important;
  overflow:hidden!important;
}
.profile-form-classic.account-pro-form,
.profile-account-shell .profile-form-classic.account-pro-form,
.account-pro-form{
  max-width:1040px!important;
  width:100%!important;
  margin-inline:auto!important;
  padding:0 24px 28px!important;
  box-sizing:border-box!important;
}

/* Limpieza de vestigios tipo PHPost: los .field NO son tarjetas */
.account-pro-form .field,
.profile-form-classic.account-pro-form .field,
.profile-account-shell .profile-form-classic.account-pro-form .field{
  background:transparent!important;
  background-color:transparent!important;
  border:0!important;
  box-shadow:none!important;
  outline:0!important;
  border-radius:0!important;
  padding:0!important;
  margin:13px 0!important;
  grid-template-columns:190px minmax(0,1fr)!important;
  gap:16px!important;
}
.account-pro-form .field > label,
.profile-form-classic.account-pro-form .field > label{
  color:#334155!important;
  opacity:1!important;
  text-align:right!important;
}
.account-pro-form input,
.account-pro-form select,
.account-pro-form textarea{
  border-radius:10px!important;
  min-height:42px!important;
  box-sizing:border-box!important;
}
.account-pro-form textarea{
  min-height:110px!important;
}
.birth-grid{
  gap:10px!important;
}

/* Identidad visual: sin fondos duplicados detrás de las cards */
.account-media-grid{
  background:transparent!important;
  background-color:transparent!important;
  border:0!important;
  box-shadow:none!important;
  outline:0!important;
}
.account-media-grid label{
  background:transparent!important;
  background-color:transparent!important;
  border:0!important;
  box-shadow:none!important;
  outline:0!important;
  border-radius:0!important;
  padding:0!important;
  text-align:left!important;
}
.account-media-grid .upload-note{
  display:block!important;
  margin-top:8px!important;
  line-height:1.45!important;
}

/* Privacidad: se mantiene como card, pero con texto siempre visible */
.privacy-toggle-card{
  background:rgba(148,163,184,.08)!important;
  background-color:rgba(148,163,184,.08)!important;
  border:1px solid rgba(148,163,184,.32)!important;
  box-shadow:none!important;
  border-radius:16px!important;
  display:flex!important;
  align-items:flex-start!important;
  gap:12px!important;
  padding:14px 16px!important;
}
.privacy-toggle-card input[type="checkbox"]{
  width:18px!important;
  height:18px!important;
  min-height:auto!important;
  margin:3px 6px 0 0!important;
  flex:0 0 auto!important;
}
.privacy-toggle-card span{
  display:block!important;
  min-width:0!important;
}
.privacy-toggle-card strong{
  color:#0f172a!important;
  opacity:1!important;
  font-weight:900!important;
}
.privacy-toggle-card small{
  color:#475569!important;
  opacity:1!important;
  line-height:1.5!important;
  font-weight:700!important;
}

/* Modo oscuro público: regla más específica para ganarle a estilos antiguos */
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .account-pro-form .field,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-form-classic.account-pro-form .field,
body.dark .account-pro-form .field,
body.dark .profile-form-classic.account-pro-form .field,
.dark .account-pro-form .field,
[data-theme="dark"] .account-pro-form .field{
  background:transparent!important;
  background-color:transparent!important;
  border:0!important;
  box-shadow:none!important;
  outline:0!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .account-media-grid,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .account-media-grid label,
body.dark .account-media-grid,
body.dark .account-media-grid label,
.dark .account-media-grid,
.dark .account-media-grid label,
[data-theme="dark"] .account-media-grid,
[data-theme="dark"] .account-media-grid label{
  background:transparent!important;
  background-color:transparent!important;
  border:0!important;
  box-shadow:none!important;
  outline:0!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .privacy-toggle-card,
body.dark .privacy-toggle-card,
.dark .privacy-toggle-card,
[data-theme="dark"] .privacy-toggle-card{
  background:rgba(148,163,184,.10)!important;
  background-color:rgba(148,163,184,.10)!important;
  border:1px solid rgba(148,163,184,.26)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .privacy-toggle-card strong,
body.dark .privacy-toggle-card strong,
.dark .privacy-toggle-card strong,
[data-theme="dark"] .privacy-toggle-card strong{
  color:#f8fafc!important;
  opacity:1!important;
  text-shadow:none!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .privacy-toggle-card small,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .account-pro-form .field > label,
body.dark .privacy-toggle-card small,
body.dark .account-pro-form .field > label,
.dark .privacy-toggle-card small,
.dark .account-pro-form .field > label,
[data-theme="dark"] .privacy-toggle-card small,
[data-theme="dark"] .account-pro-form .field > label{
  color:#cbd5e1!important;
  opacity:1!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .account-pro-form input,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .account-pro-form select,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .account-pro-form textarea,
body.dark .account-pro-form input,
body.dark .account-pro-form select,
body.dark .account-pro-form textarea,
.dark .account-pro-form input,
.dark .account-pro-form select,
.dark .account-pro-form textarea,
[data-theme="dark"] .account-pro-form input,
[data-theme="dark"] .account-pro-form select,
[data-theme="dark"] .account-pro-form textarea{
  background:#1f2329!important;
  background-color:#1f2329!important;
  color:#f8fafc!important;
  border:1px solid rgba(148,163,184,.28)!important;
  box-shadow:none!important;
}

/* Sidebar del perfil: mejor respiración visual */
.profile-side .avatar-card,
.profile-side .profile-complete,
.profile-account-shell .avatar-card,
.profile-account-shell .profile-complete{
  border-radius:18px!important;
  overflow:hidden!important;
}
.profile-side .avatar-frame,
.profile-account-shell .avatar-frame{
  padding:10px 14px 16px!important;
}
.profile-side .profile-note,
.profile-account-shell .profile-note{
  padding:0 12px 12px!important;
}

@media(max-width:900px){
  .profile-classic-grid.account-pro-grid,
  .profile-account-shell .profile-classic-grid.account-pro-grid{
    grid-template-columns:1fr!important;
    gap:18px!important;
  }
  .profile-form-classic.account-pro-form,
  .account-pro-form{
    padding:0 14px 22px!important;
  }
  .account-pro-form .field,
  .profile-form-classic.account-pro-form .field{
    grid-template-columns:1fr!important;
    gap:7px!important;
  }
  .account-pro-form .field > label,
  .profile-form-classic.account-pro-form .field > label{
    text-align:left!important;
    padding-top:0!important;
  }
}
@media(max-width:560px){
  .profile-form-classic.account-pro-form,
  .account-pro-form{
    padding-inline:10px!important;
  }
  .privacy-toggle-card{
    padding:13px!important;
  }
  .birth-grid{
    grid-template-columns:1fr!important;
  }
}

/* =========================================================
   RadioaficionadosClub.cl - Perfil lateral moderno v25.4
   Autor: Rodrigo Reyes / RadioaficionadosClub.cl
   Motivo: Corrección UX solicitada por beta tester.
   - Más padding y aire visual.
   - Avatar sin caja cuadrada heredada.
   - Botones modernos tipo card.
   - Widget de progreso integrado y más ancho.
   ========================================================= */
.profile-classic-grid{
  grid-template-columns:minmax(0,1fr) minmax(330px,370px)!important;
  gap:26px!important;
}
.profile-classic-grid.account-pro-grid{
  grid-template-columns:minmax(0,1fr) minmax(340px,390px)!important;
}
.profile-side.ag-profile-modern-side{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  display:flex!important;
  flex-direction:column!important;
  gap:18px!important;
  min-width:0!important;
}
.profile-side.ag-profile-modern-side .avatar-card,
.profile-side.ag-profile-modern-side .profile-complete{
  background:
    radial-gradient(circle at 50% 18%, rgba(37,99,235,.16), transparent 34%),
    linear-gradient(180deg, rgba(15,23,42,.96), rgba(15,23,42,.88))!important;
  border:1px solid rgba(96,165,250,.25)!important;
  border-radius:26px!important;
  box-shadow:0 24px 60px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.04)!important;
  color:#e5e7eb!important;
  overflow:hidden!important;
  margin:0!important;
}
.profile-side.ag-profile-modern-side .avatar-card{
  padding:28px 28px 30px!important;
}
.profile-side.ag-profile-modern-side .ag-avatar-widget-head{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:13px!important;
  margin:0 0 24px!important;
}
.profile-side.ag-profile-modern-side .ag-avatar-widget-head h3{
  margin:0!important;
  padding:0!important;
  color:#fff!important;
  font-size:clamp(24px,2.2vw,34px)!important;
  line-height:1.05!important;
  font-weight:950!important;
  letter-spacing:-.03em!important;
  text-shadow:0 2px 12px rgba(0,0,0,.35)!important;
}
.profile-side.ag-profile-modern-side .ag-avatar-widget-head span{
  display:block!important;
  width:70px!important;
  height:8px!important;
  border-radius:999px!important;
  background:linear-gradient(90deg,#38bdf8,#2563eb)!important;
  box-shadow:0 0 18px rgba(59,130,246,.55)!important;
}
.profile-side.ag-profile-modern-side .avatar-frame,
.profile-side.ag-profile-modern-side .avatar-profile-link,
.profile-side.ag-profile-modern-side .ag-avatar-large{
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  text-align:center!important;
  padding:0!important;
  margin:0 auto 28px!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  text-decoration:none!important;
}
.profile-side.ag-profile-modern-side .avatar-frame img,
.profile-side.ag-profile-modern-side .ag-avatar-large img{
  width:190px!important;
  height:190px!important;
  max-width:190px!important;
  max-height:190px!important;
  aspect-ratio:1/1!important;
  object-fit:cover!important;
  border-radius:50%!important;
  background:rgba(226,232,240,.92)!important;
  border:5px solid #0f172a!important;
  outline:4px solid #3b82f6!important;
  box-shadow:0 0 0 1px rgba(147,197,253,.38), 0 0 34px rgba(37,99,235,.55), 0 22px 44px rgba(0,0,0,.45)!important;
  image-rendering:auto;
}
.profile-side.ag-profile-modern-side .avatar-profile-link:hover img{
  outline-color:#60a5fa!important;
  transform:translateY(-2px) scale(1.01)!important;
}
.profile-side.ag-profile-modern-side .ag-side-actions{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:12px!important;
  margin:0!important;
  padding:0!important;
}
.profile-side.ag-profile-modern-side .avatar-edit,
.profile-side.ag-profile-modern-side .ag-side-action{
  min-height:58px!important;
  display:grid!important;
  grid-template-columns:44px minmax(0,1fr) 24px!important;
  align-items:center!important;
  gap:14px!important;
  width:100%!important;
  padding:12px 16px!important;
  border-radius:16px!important;
  background:linear-gradient(180deg,rgba(30,41,59,.72),rgba(15,23,42,.72))!important;
  border:1px solid rgba(148,163,184,.20)!important;
  color:#f8fafc!important;
  text-decoration:none!important;
  text-align:left!important;
  font-size:16px!important;
  font-weight:950!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05), 0 10px 22px rgba(0,0,0,.16)!important;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease!important;
}
.profile-side.ag-profile-modern-side .ag-side-action strong{
  color:#f8fafc!important;
  font-size:16px!important;
  font-weight:950!important;
  overflow-wrap:anywhere!important;
}
.profile-side.ag-profile-modern-side .ag-side-action-icon{
  width:38px!important;
  height:38px!important;
  border-radius:14px!important;
  display:grid!important;
  place-items:center!important;
  color:#60a5fa!important;
  background:rgba(37,99,235,.16)!important;
}
.profile-side.ag-profile-modern-side .ag-side-action-icon svg{
  width:24px!important;
  height:24px!important;
}
.profile-side.ag-profile-modern-side .ag-side-arrow{
  color:#dbeafe!important;
  font-size:38px!important;
  line-height:1!important;
  justify-self:end!important;
  opacity:.95!important;
}
.profile-side.ag-profile-modern-side .ag-side-action-purple .ag-side-action-icon{
  color:#a78bfa!important;
  background:rgba(124,58,237,.15)!important;
}
.profile-side.ag-profile-modern-side .ag-side-action-purple{
  border-color:rgba(167,139,250,.22)!important;
}
.profile-side.ag-profile-modern-side .ag-side-action:hover{
  transform:translateY(-2px)!important;
  border-color:rgba(96,165,250,.55)!important;
  box-shadow:0 16px 32px rgba(0,0,0,.26), 0 0 22px rgba(37,99,235,.18)!important;
}
.profile-side.ag-profile-modern-side .profile-complete,
.profile-side.ag-profile-modern-side .ag-complete-widget{
  padding:24px 26px 26px!important;
}
.profile-side.ag-profile-modern-side .ag-complete-title{
  display:grid!important;
  grid-template-columns:46px minmax(0,1fr)!important;
  gap:14px!important;
  align-items:center!important;
  margin:0 0 16px!important;
}
.profile-side.ag-profile-modern-side .ag-complete-icon{
  width:42px!important;
  height:42px!important;
  border-radius:14px!important;
  display:grid!important;
  place-items:center!important;
  color:#38bdf8!important;
  background:rgba(14,165,233,.14)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
}
.profile-side.ag-profile-modern-side .ag-complete-icon svg{
  width:26px!important;
  height:26px!important;
}
.profile-side.ag-profile-modern-side .profile-complete h3,
.profile-side.ag-profile-modern-side .ag-complete-title h3{
  margin:0!important;
  color:#fff!important;
  font-size:19px!important;
  line-height:1.25!important;
  font-weight:950!important;
}
.profile-side.ag-profile-modern-side .ag-complete-title h3 b{
  color:#4ade80!important;
  font-weight:950!important;
}
.profile-side.ag-profile-modern-side .progressbar,
.profile-side.ag-profile-modern-side .ag-progressbar{
  height:18px!important;
  width:100%!important;
  background:rgba(30,41,59,.86)!important;
  border:1px solid rgba(148,163,184,.18)!important;
  border-radius:999px!important;
  overflow:hidden!important;
  box-shadow:inset 0 2px 8px rgba(0,0,0,.32)!important;
  margin:0 0 18px!important;
}
.profile-side.ag-profile-modern-side .progressbar span,
.profile-side.ag-profile-modern-side .ag-progressbar span{
  display:block!important;
  height:100%!important;
  border:0!important;
  border-radius:999px!important;
  background:linear-gradient(90deg,#38bdf8,#2563eb)!important;
  box-shadow:0 0 18px rgba(37,99,235,.55)!important;
}
.profile-side.ag-profile-modern-side .profile-note{
  margin:0!important;
  padding:0!important;
  color:#cbd5e1!important;
  font-size:14px!important;
  line-height:1.65!important;
}
@media(max-width:1100px){
  .profile-classic-grid,
  .profile-classic-grid.account-pro-grid{
    grid-template-columns:1fr!important;
  }
  .profile-side.ag-profile-modern-side{
    max-width:520px!important;
    width:100%!important;
    margin:0 auto!important;
  }
}
@media(max-width:560px){
  .profile-side.ag-profile-modern-side .avatar-card{
    padding:22px 18px 24px!important;
  }
  .profile-side.ag-profile-modern-side .profile-complete,
  .profile-side.ag-profile-modern-side .ag-complete-widget{
    padding:20px 18px 22px!important;
  }
  .profile-side.ag-profile-modern-side .avatar-frame img,
  .profile-side.ag-profile-modern-side .ag-avatar-large img{
    width:154px!important;
    height:154px!important;
    max-width:154px!important;
    max-height:154px!important;
  }
  .profile-side.ag-profile-modern-side .avatar-edit,
  .profile-side.ag-profile-modern-side .ag-side-action{
    grid-template-columns:40px minmax(0,1fr) 20px!important;
    padding:11px 13px!important;
  }
}

/* ============================================================
   RadioaficionadosClub Platform v25.5 - Perfil público: widgets laterales más anchos
   Autor: Rodrigo Reyes / RadioaficionadosClub.cl
   Motivo: Beta tester indicó que los laterales se veían apretados.
   No agrega módulos nuevos; solo mejora ancho, padding y respiración visual.
   ============================================================ */
.ag-profile-pro{
  width:min(1500px,calc(100% - 28px))!important;
  max-width:1500px!important;
  padding-inline:0!important;
  margin-inline:auto!important;
}
.ag-profile-main-grid.ag-profile-layout{
  grid-template-columns:minmax(280px,340px) minmax(560px,1fr) minmax(280px,340px)!important;
  gap:22px!important;
  align-items:start!important;
}
.ag-profile-main-grid .ag-profile-side,
.ag-profile-main-grid .ag-profile-medals-side,
.ag-profile-main-grid .ag-profile-wall-card{
  min-width:0!important;
}
.ag-profile-card{
  border-radius:18px!important;
  padding:22px!important;
  background:linear-gradient(180deg,rgba(15,23,42,.94),rgba(8,13,24,.88))!important;
  border:1px solid rgba(96,165,250,.18)!important;
  box-shadow:0 18px 46px rgba(0,0,0,.28)!important;
}
.ag-profile-card .wp-card-title{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:14px!important;
  padding-bottom:14px!important;
  margin-bottom:16px!important;
  border-bottom:1px solid rgba(148,163,184,.18)!important;
}
.ag-profile-card .wp-card-title h2{
  font-size:clamp(22px,2vw,28px)!important;
  line-height:1.15!important;
  margin:0!important;
}
.ag-profile-card .wp-card-title small{
  max-width:130px!important;
  text-align:right!important;
  line-height:1.25!important;
}
.profile-public-list.compact{
  gap:12px!important;
}
.profile-public-list.compact dt{
  margin-top:4px!important;
  font-size:12px!important;
}
.profile-public-list.compact dd{
  margin-bottom:14px!important;
  font-size:15px!important;
  line-height:1.45!important;
}
.ag-profile-badge-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
}
.ag-profile-badge-tile{
  padding:14px 10px!important;
  border-radius:16px!important;
  background:rgba(15,23,42,.56)!important;
  border:1px solid rgba(96,165,250,.15)!important;
}
.ag-profile-badge-tile img{
  width:54px!important;
  height:54px!important;
  max-width:54px!important;
  max-height:54px!important;
}
.ag-profile-badge-tile b{
  width:54px!important;
  height:54px!important;
  font-size:28px!important;
}
.ag-profile-badge-tile span{
  font-size:12px!important;
  line-height:1.2!important;
}
.ag-profile-wall-card{
  padding:24px!important;
}
.ag-wall-form{
  padding:14px!important;
  border-radius:16px!important;
}
.ag-wall-form textarea{
  min-height:96px!important;
}
@media(max-width:1280px){
  .ag-profile-main-grid.ag-profile-layout{
    grid-template-columns:minmax(250px,300px) minmax(480px,1fr) minmax(250px,300px)!important;
    gap:18px!important;
  }
}
@media(max-width:1120px){
  .ag-profile-main-grid.ag-profile-layout{
    grid-template-columns:1fr!important;
  }
  .ag-profile-main-grid .ag-profile-side,
  .ag-profile-main-grid .ag-profile-wall-card,
  .ag-profile-main-grid .ag-profile-medals-side{
    grid-column:1!important;
  }
  .ag-profile-badge-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
}
@media(max-width:700px){
  .ag-profile-pro{
    width:min(100%,calc(100% - 16px))!important;
  }
  .ag-profile-card,
  .ag-profile-wall-card{
    padding:16px!important;
  }
  .ag-profile-badge-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .ag-profile-card .wp-card-title{
    display:block!important;
  }
  .ag-profile-card .wp-card-title small{
    display:block!important;
    max-width:none!important;
    text-align:left!important;
    margin-top:6px!important;
  }
}

/* ============================================================
   RadioaficionadosClub Platform v25.6 - Auditoría exhaustiva de diseño perfil público
   Autor: Rodrigo Reyes / RadioaficionadosClub.cl
   Fecha: 2026-06-21
   Objetivo:
   - Mejorar proporción visual general del perfil público.
   - Widgets laterales más anchos y cómodos.
   - Muro central más limpio, respirado y legible.
   - Medallas con tarjetas más claras.
   - Mantener la estructura existente, sin agregar módulos ni SQL.
   ============================================================ */

:root{
  --ag-profile-bg-1:#070b13;
  --ag-profile-bg-2:#0b1220;
  --ag-profile-card:rgba(15,23,42,.88);
  --ag-profile-card-2:rgba(11,18,32,.94);
  --ag-profile-line:rgba(148,163,184,.20);
  --ag-profile-line-blue:rgba(96,165,250,.26);
  --ag-profile-text:#f8fafc;
  --ag-profile-muted:#c7d2fe;
  --ag-profile-soft:#94a3b8;
  --ag-profile-blue:#3b82f6;
  --ag-profile-cyan:#38bdf8;
  --ag-profile-radius:22px;
}

body:has(.ag-profile-pro){
  background:
    radial-gradient(circle at 20% 0%,rgba(37,99,235,.12),transparent 36%),
    radial-gradient(circle at 85% 12%,rgba(124,58,237,.10),transparent 34%),
    linear-gradient(180deg,#050812,#101514)!important;
}

.ag-profile-pro{
  width:min(1640px,calc(100% - 32px))!important;
  max-width:1640px!important;
  margin-inline:auto!important;
  padding-inline:0!important;
}

.ag-profile-cover,
.ag-profile-stats,
.ag-profile-card{
  border:1px solid var(--ag-profile-line-blue)!important;
  box-shadow:0 24px 70px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.035)!important;
}

.ag-profile-cover{
  border-radius:24px!important;
  overflow:hidden!important;
  min-height:250px!important;
  background-size:cover!important;
  background-position:center!important;
}

.ag-profile-cover-inner{
  padding:32px 38px!important;
  gap:26px!important;
  align-items:flex-end!important;
}

.ag-profile-avatar{
  width:128px!important;
  height:128px!important;
  border-radius:50%!important;
  object-fit:cover!important;
  border:4px solid rgba(255,255,255,.94)!important;
  box-shadow:0 0 0 8px rgba(37,99,235,.20),0 18px 45px rgba(0,0,0,.46)!important;
}

.ag-profile-identity h1{
  font-size:clamp(36px,4.2vw,62px)!important;
  letter-spacing:-.035em!important;
  line-height:.98!important;
  text-shadow:0 4px 18px rgba(0,0,0,.45)!important;
}

.ag-profile-kicker,
.ag-profile-meta span,
.ag-profile-meta a{
  border-radius:999px!important;
  border:1px solid rgba(147,197,253,.28)!important;
  background:rgba(15,23,42,.54)!important;
  color:#e0f2fe!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
}

.ag-profile-badges-strip{
  gap:10px!important;
}

.ag-profile-badge{
  width:42px!important;
  height:42px!important;
  border-radius:13px!important;
  background:rgba(15,23,42,.68)!important;
  border:1px solid rgba(96,165,250,.22)!important;
  box-shadow:0 10px 22px rgba(0,0,0,.28)!important;
}

.ag-profile-badge img{
  width:30px!important;
  height:30px!important;
  object-fit:contain!important;
}

.ag-profile-stats{
  margin:18px 0 26px!important;
  border-radius:18px!important;
  overflow:hidden!important;
  background:linear-gradient(180deg,rgba(15,23,42,.86),rgba(11,18,32,.92))!important;
}

.ag-profile-stats div{
  min-height:82px!important;
  display:grid!important;
  place-items:center!important;
  align-content:center!important;
  padding:16px!important;
}

.ag-profile-stats strong{
  color:#fff!important;
  font-size:30px!important;
  line-height:1!important;
  letter-spacing:-.03em!important;
  text-shadow:0 2px 12px rgba(37,99,235,.28)!important;
}

.ag-profile-stats span{
  margin-top:8px!important;
  color:#bfdbfe!important;
  font-size:13px!important;
  font-weight:900!important;
}

/* Layout principal: laterales anchos, centro protagonista */
.ag-profile-main-grid.ag-profile-layout{
  display:grid!important;
  grid-template-columns:minmax(310px,360px) minmax(640px,1fr) minmax(310px,360px)!important;
  gap:26px!important;
  align-items:start!important;
}

.ag-profile-main-grid .ag-profile-side{grid-column:1!important;min-width:0!important;}
.ag-profile-main-grid .ag-profile-wall-card{grid-column:2!important;min-width:0!important;}
.ag-profile-main-grid .ag-profile-medals-side{grid-column:3!important;min-width:0!important;}

.ag-profile-card{
  border-radius:var(--ag-profile-radius)!important;
  padding:28px!important;
  background:
    radial-gradient(circle at 20% 0%,rgba(59,130,246,.10),transparent 42%),
    linear-gradient(180deg,var(--ag-profile-card),var(--ag-profile-card-2))!important;
  color:var(--ag-profile-text)!important;
}

.ag-profile-card .wp-card-title{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:18px!important;
  padding:0 0 18px!important;
  margin:0 0 22px!important;
  border-bottom:1px solid var(--ag-profile-line)!important;
}

.ag-profile-card .wp-card-title h2{
  margin:0!important;
  color:#fff!important;
  font-size:clamp(26px,2vw,34px)!important;
  line-height:1.08!important;
  letter-spacing:-.035em!important;
}

.ag-profile-card .wp-card-title h2::after{
  content:"";
  display:block;
  width:52px;
  height:4px;
  margin-top:14px;
  border-radius:999px;
  background:linear-gradient(90deg,#38bdf8,#2563eb);
  box-shadow:0 0 18px rgba(37,99,235,.45);
}

.ag-profile-card .wp-card-title small{
  max-width:150px!important;
  text-align:right!important;
  color:#bfdbfe!important;
  font-size:13px!important;
  line-height:1.25!important;
  font-weight:900!important;
}

/* Sobre mí: más aire, sin texto apretado */
.profile-public-list.compact{
  display:block!important;
  margin:0!important;
}

.profile-public-list.compact dt{
  margin:20px 0 8px!important;
  color:#60a5fa!important;
  font-size:13px!important;
  line-height:1.1!important;
  font-weight:950!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
}

.profile-public-list.compact dd{
  margin:0 0 6px!important;
  color:#f8fafc!important;
  font-size:16px!important;
  line-height:1.55!important;
  overflow-wrap:anywhere!important;
}

.profile-public-list.compact dd:first-of-type{
  color:#cbd5e1!important;
}

/* Muro central: más ancho visual y menos comprimido */
.ag-profile-wall-card{
  padding:30px!important;
  overflow:hidden!important;
}

.ag-profile-wall-card .wp-card-title{
  margin-bottom:20px!important;
}

.ag-profile-wall-card .wp-card-title small{
  max-width:none!important;
  white-space:nowrap!important;
  color:#c7d2fe!important;
}

.ag-wall-form{
  padding:18px!important;
  margin:0 0 22px!important;
  border-radius:20px!important;
  background:linear-gradient(180deg,rgba(15,23,42,.70),rgba(2,6,23,.40))!important;
  border:1px solid rgba(96,165,250,.22)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035)!important;
}

.ag-wall-form textarea{
  min-height:112px!important;
  border-radius:16px!important;
  padding:18px!important;
  font-size:16px!important;
  line-height:1.55!important;
  color:#e5e7eb!important;
  background:rgba(2,6,23,.54)!important;
  border:1px solid rgba(148,163,184,.26)!important;
}

.ag-wall-form-tools{
  margin-top:16px!important;
  gap:14px!important;
}

.ag-wall-emojis{gap:9px!important;}
.ag-wall-emojis button{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  min-height:42px!important;
  border-radius:13px!important;
  font-size:20px!important;
  background:linear-gradient(180deg,rgba(37,99,235,.86),rgba(29,78,216,.90))!important;
  border:1px solid rgba(147,197,253,.25)!important;
  box-shadow:0 8px 18px rgba(37,99,235,.22)!important;
}

.ag-wall-form-tools>button{
  min-width:140px!important;
  min-height:50px!important;
  border-radius:14px!important;
  font-size:15px!important;
  box-shadow:0 16px 28px rgba(37,99,235,.28)!important;
}

.ag-wall-thread-list{gap:18px!important;}

.ag-wall-comment{
  grid-template-columns:50px minmax(0,1fr)!important;
  gap:14px!important;
}

.ag-wall-comment>.ag-wall-avatar,
.ag-wall-comment>img.ag-wall-avatar{
  width:50px!important;
  height:50px!important;
  min-width:50px!important;
  min-height:50px!important;
  max-width:50px!important;
  max-height:50px!important;
  border:2px solid rgba(96,165,250,.28)!important;
  box-shadow:0 8px 20px rgba(0,0,0,.28)!important;
}

.ag-wall-body{
  border-radius:20px!important;
  padding:18px!important;
  background:linear-gradient(180deg,rgba(15,23,42,.72),rgba(11,18,32,.80))!important;
  border:1px solid rgba(96,165,250,.18)!important;
  box-shadow:0 12px 30px rgba(0,0,0,.18)!important;
}

.ag-wall-head{margin-bottom:9px!important;gap:10px!important;}
.ag-wall-head a{color:#38a3ff!important;font-size:17px!important;font-weight:950!important;}
.ag-wall-head time{color:#bfdbfe!important;font-size:13px!important;}
.ag-wall-body p{font-size:16px!important;line-height:1.6!important;color:#f1f5f9!important;margin-bottom:12px!important;}

.ag-wall-actions{gap:10px!important;}
.ag-wall-actions button,
.ag-wall-actions span,
.ag-wall-reply-toggle{
  min-height:40px!important;
  padding:9px 14px!important;
  border-radius:12px!important;
  font-size:14px!important;
  font-weight:950!important;
  background:linear-gradient(180deg,rgba(37,99,235,.94),rgba(29,78,216,.96))!important;
  border:1px solid rgba(147,197,253,.24)!important;
  color:#fff!important;
}

.ag-wall-replies{
  margin-top:14px!important;
  gap:12px!important;
}

.ag-wall-reply{
  grid-template-columns:40px minmax(0,1fr)!important;
  gap:12px!important;
}

.ag-wall-reply>.ag-wall-avatar,
.ag-wall-reply>img.ag-wall-avatar{
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  min-height:40px!important;
  max-width:40px!important;
  max-height:40px!important;
}

.ag-wall-reply .ag-wall-body{
  padding:16px!important;
  border-radius:18px!important;
  background:rgba(2,6,23,.46)!important;
}

/* Medallas: más ancho útil, nombres no cortados */
.ag-profile-badge-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:18px!important;
}

.ag-profile-badge-tile{
  min-height:128px!important;
  padding:18px 14px!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,rgba(15,23,42,.74),rgba(11,18,32,.86))!important;
  border:1px solid rgba(96,165,250,.20)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 14px 28px rgba(0,0,0,.20)!important;
}

.ag-profile-badge-tile img{
  width:62px!important;
  height:62px!important;
  max-width:62px!important;
  max-height:62px!important;
  object-fit:contain!important;
  margin-bottom:10px!important;
}

.ag-profile-badge-tile b{
  width:62px!important;
  height:62px!important;
  font-size:32px!important;
  margin-bottom:10px!important;
}

.ag-profile-badge-tile span{
  display:block!important;
  color:#e5e7eb!important;
  font-size:13px!important;
  line-height:1.25!important;
  font-weight:950!important;
  text-align:center!important;
  overflow-wrap:anywhere!important;
  hyphens:auto!important;
}

.ag-profile-recent-section{margin-top:26px!important;}
.ag-profile-recent-card .public-post-list.pro-list{gap:18px!important;}

@media(max-width:1450px){
  .ag-profile-pro{width:min(1480px,calc(100% - 24px))!important;}
  .ag-profile-main-grid.ag-profile-layout{
    grid-template-columns:minmax(280px,320px) minmax(560px,1fr) minmax(280px,320px)!important;
    gap:20px!important;
  }
  .ag-profile-card{padding:24px!important;}
  .ag-profile-badge-grid{gap:14px!important;}
}

@media(max-width:1180px){
  .ag-profile-main-grid.ag-profile-layout{
    grid-template-columns:minmax(280px,340px) minmax(0,1fr)!important;
  }
  .ag-profile-main-grid .ag-profile-side{grid-column:1!important;order:1!important;}
  .ag-profile-main-grid .ag-profile-wall-card{grid-column:2!important;order:2!important;}
  .ag-profile-main-grid .ag-profile-medals-side{grid-column:1 / -1!important;order:3!important;}
  .ag-profile-badge-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;}
}

@media(max-width:900px){
  .ag-profile-pro{width:min(100%,calc(100% - 18px))!important;}
  .ag-profile-main-grid.ag-profile-layout{grid-template-columns:1fr!important;gap:18px!important;}
  .ag-profile-main-grid .ag-profile-side,
  .ag-profile-main-grid .ag-profile-wall-card,
  .ag-profile-main-grid .ag-profile-medals-side{grid-column:1!important;}
  .ag-profile-card,.ag-profile-wall-card{padding:20px!important;}
  .ag-profile-badge-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  .ag-wall-form-tools{display:grid!important;grid-template-columns:1fr!important;}
  .ag-wall-form-tools>button{width:100%!important;}
}

@media(max-width:560px){
  .ag-profile-cover-inner{padding:24px 16px!important;display:block!important;text-align:center!important;}
  .ag-profile-avatar{width:112px!important;height:112px!important;margin:0 auto 16px!important;}
  .ag-profile-identity h1{font-size:36px!important;}
  .ag-profile-stats{grid-template-columns:repeat(2,1fr)!important;}
  .ag-profile-card .wp-card-title{display:block!important;}
  .ag-profile-card .wp-card-title small{display:block!important;text-align:left!important;max-width:none!important;margin-top:8px!important;}
  .ag-profile-badge-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;}
  .ag-wall-comment{grid-template-columns:38px minmax(0,1fr)!important;gap:10px!important;}
  .ag-wall-comment>.ag-wall-avatar,.ag-wall-comment>img.ag-wall-avatar{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;}
  .ag-wall-body{padding:14px!important;border-radius:16px!important;}
  .ag-wall-head a{font-size:15px!important;}
  .ag-wall-body p{font-size:14.5px!important;}
}


/* =========================================================
   RadioaficionadosClub Platform v25.7 - Ajuste solicitado por Rodrigo
   Objetivo:
   - Mantener el perfil público con los bordes/card clásicos de toda la web.
   - Evitar que el perfil ocupe todo el ancho como si fuera administración.
   - Hacer que los widgets laterales muestren título arriba y descripción debajo.
   - No agregar nuevos módulos ni cambiar la base de datos.
   ========================================================= */
body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro,
body.ag-body:not(.ag-admin-body) .public-profile-shell,
body.ag-body:not(.ag-admin-body) .ag-profile-pro{
    width:min(1180px, calc(100% - 32px))!important;
    max-width:1180px!important;
    margin:18px auto 28px!important;
}
body.ag-body:not(.ag-admin-body) .ag-profile-cover{
    border-radius:18px!important;
    border:1px solid rgba(148,163,184,.24)!important;
    box-shadow:0 12px 28px rgba(0,0,0,.22)!important;
}
body.ag-body:not(.ag-admin-body) .ag-profile-stats{
    border-radius:14px!important;
    border:1px solid rgba(148,163,184,.22)!important;
    box-shadow:none!important;
}
body.ag-body:not(.ag-admin-body) .ag-profile-main-grid.ag-profile-layout{
    grid-template-columns:260px minmax(0,1fr) 260px!important;
    gap:16px!important;
    align-items:start!important;
}
body.ag-body:not(.ag-admin-body) .ag-profile-card,
body.ag-body:not(.ag-admin-body) .ag-profile-side .wp-card,
body.ag-body:not(.ag-admin-body) .ag-profile-medals-side .wp-card,
body.ag-body:not(.ag-admin-body) .ag-profile-wall-card{
    border-radius:14px!important;
    border:1px solid rgba(148,163,184,.24)!important;
    box-shadow:0 10px 24px rgba(0,0,0,.16)!important;
    padding:18px!important;
    overflow:hidden!important;
}
body.ag-body:not(.ag-admin-body) .ag-profile-card .wp-card-title,
body.ag-body:not(.ag-admin-body) .ag-profile-wall-card .wp-card-title,
body.ag-body:not(.ag-admin-body) .ag-profile-medals-side .wp-card-title{
    display:block!important;
    padding:0 0 12px!important;
    margin:0 0 14px!important;
    border-bottom:1px solid rgba(148,163,184,.28)!important;
}
body.ag-body:not(.ag-admin-body) .ag-profile-card .wp-card-title h2,
body.ag-body:not(.ag-admin-body) .ag-profile-wall-card .wp-card-title h2,
body.ag-body:not(.ag-admin-body) .ag-profile-medals-side .wp-card-title h2{
    display:block!important;
    margin:0!important;
    padding:0!important;
    font-size:22px!important;
    line-height:1.18!important;
    color:#f8fafc!important;
}
body.ag-body:not(.ag-admin-body) .ag-profile-card .wp-card-title small,
body.ag-body:not(.ag-admin-body) .ag-profile-wall-card .wp-card-title small,
body.ag-body:not(.ag-admin-body) .ag-profile-medals-side .wp-card-title small{
    display:block!important;
    margin:6px 0 0!important;
    padding:0!important;
    color:#93a4bb!important;
    font-size:13px!important;
    line-height:1.35!important;
    font-weight:700!important;
    text-align:left!important;
}
body.ag-body:not(.ag-admin-body) .profile-public-list.compact{
    display:block!important;
    margin-top:14px!important;
}
body.ag-body:not(.ag-admin-body) .profile-public-list.compact dt{
    display:block!important;
    margin:14px 0 5px!important;
    color:#60a5fa!important;
    font-size:12px!important;
    letter-spacing:.06em!important;
    text-transform:uppercase!important;
}
body.ag-body:not(.ag-admin-body) .profile-public-list.compact dd{
    display:block!important;
    margin:0!important;
    color:#e5edf8!important;
    font-size:15px!important;
    line-height:1.45!important;
}
body.ag-body:not(.ag-admin-body) .ag-profile-badge-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
}
body.ag-body:not(.ag-admin-body) .ag-profile-badge-tile{
    border-radius:13px!important;
    min-height:104px!important;
    padding:12px 8px!important;
}
@media(max-width:1180px){
    body.ag-body:not(.ag-admin-body) .ag-profile-main-grid.ag-profile-layout{
        grid-template-columns:250px minmax(0,1fr)!important;
    }
    body.ag-body:not(.ag-admin-body) .ag-profile-main-grid .ag-profile-medals-side{grid-column:1 / -1!important;}
    body.ag-body:not(.ag-admin-body) .ag-profile-badge-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;}
}
@media(max-width:820px){
    body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro,
    body.ag-body:not(.ag-admin-body) .public-profile-shell,
    body.ag-body:not(.ag-admin-body) .ag-profile-pro{
        width:min(100% - 20px,760px)!important;
        max-width:760px!important;
        margin:12px auto 22px!important;
    }
    body.ag-body:not(.ag-admin-body) .ag-profile-main-grid.ag-profile-layout{grid-template-columns:1fr!important;}
    body.ag-body:not(.ag-admin-body) .ag-profile-main-grid .ag-profile-side,
    body.ag-body:not(.ag-admin-body) .ag-profile-main-grid .ag-profile-wall-card,
    body.ag-body:not(.ag-admin-body) .ag-profile-main-grid .ag-profile-medals-side{grid-column:1!important;}
    body.ag-body:not(.ag-admin-body) .ag-profile-badge-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}

/* =========================================================
   RadioaficionadosClub Platform v25.8 - Perfil público alineado al ancho de la portada
   Autor: Rodrigo Reyes / RadioaficionadosClub.cl
   Motivo: El contenido inferior del perfil público debía respetar el mismo ancho visual de la portada.
   Alcance: Solo CSS, sin SQL. No cambia módulos ni estructura.
   ========================================================= */
body.ag-body:not(.ag-admin-body) main.public-profile-shell.ag-profile-pro,
body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro{
    width:min(1180px, calc(100% - 32px))!important;
    max-width:1180px!important;
    margin:18px auto 28px!important;
    padding:0!important;
    box-sizing:border-box!important;
}

body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro > .ag-profile-cover,
body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro > .ag-profile-stats,
body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro > .ag-profile-main-grid,
body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro > .ag-profile-recent-section,
body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro > .public-gallery-card{
    width:100%!important;
    max-width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
    box-sizing:border-box!important;
}

/* La grilla inferior ahora usa todo el mismo ancho de la portada, sin quedar angosta al centro. */
body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro .ag-profile-main-grid.ag-profile-layout{
    display:grid!important;
    width:100%!important;
    max-width:100%!important;
    grid-template-columns:minmax(250px, 280px) minmax(0, 1fr) minmax(250px, 280px)!important;
    gap:16px!important;
    align-items:start!important;
    box-sizing:border-box!important;
}

body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro .ag-profile-main-grid .ag-profile-side{
    grid-column:1!important;
    min-width:0!important;
}
body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro .ag-profile-main-grid .ag-profile-wall-card{
    grid-column:2!important;
    min-width:0!important;
}
body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro .ag-profile-main-grid .ag-profile-medals-side{
    grid-column:3!important;
    min-width:0!important;
}

/* Mantiene el estilo con bordes de la web, pero con aire interno suficiente. */
body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro .ag-profile-card,
body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro .ag-profile-side .wp-card,
body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro .ag-profile-medals-side .wp-card,
body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro .ag-profile-wall-card{
    border-radius:16px!important;
    padding:18px!important;
    box-sizing:border-box!important;
}

/* Título arriba y descripción debajo, como pediste. */
body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro .ag-profile-card .wp-card-title,
body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro .ag-profile-wall-card .wp-card-title,
body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro .ag-profile-medals-side .wp-card-title{
    display:block!important;
    padding:0 0 12px!important;
    margin:0 0 14px!important;
    border-bottom:1px solid rgba(148,163,184,.26)!important;
}
body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro .ag-profile-card .wp-card-title h2,
body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro .ag-profile-wall-card .wp-card-title h2,
body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro .ag-profile-medals-side .wp-card-title h2{
    display:block!important;
    margin:0!important;
    font-size:22px!important;
    line-height:1.18!important;
}
body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro .ag-profile-card .wp-card-title h2::after{
    width:42px!important;
    height:3px!important;
    margin-top:10px!important;
}
body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro .ag-profile-card .wp-card-title small,
body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro .ag-profile-wall-card .wp-card-title small,
body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro .ag-profile-medals-side .wp-card-title small{
    display:block!important;
    max-width:none!important;
    margin:6px 0 0!important;
    text-align:left!important;
    white-space:normal!important;
    font-size:13px!important;
    line-height:1.35!important;
}

/* Medallas legibles sin agrandar artificialmente el perfil. */
body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro .ag-profile-badge-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr))!important;
    gap:12px!important;
}
body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro .ag-profile-badge-tile{
    min-height:104px!important;
    padding:12px 8px!important;
    border-radius:14px!important;
}
body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro .ag-profile-badge-tile img,
body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro .ag-profile-badge-tile b{
    width:50px!important;
    height:50px!important;
    max-width:50px!important;
    max-height:50px!important;
    margin-bottom:8px!important;
}
body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro .ag-profile-badge-tile span{
    font-size:12px!important;
    line-height:1.22!important;
}

@media(max-width:1080px){
    body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro .ag-profile-main-grid.ag-profile-layout{
        grid-template-columns:minmax(240px, 280px) minmax(0, 1fr)!important;
    }
    body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro .ag-profile-main-grid .ag-profile-side{grid-column:1!important;}
    body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro .ag-profile-main-grid .ag-profile-wall-card{grid-column:2!important;}
    body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro .ag-profile-main-grid .ag-profile-medals-side{grid-column:1 / -1!important;}
    body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro .ag-profile-badge-grid{grid-template-columns:repeat(5, minmax(0, 1fr))!important;}
}
@media(max-width:820px){
    body.ag-body:not(.ag-admin-body) main.public-profile-shell.ag-profile-pro,
    body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro{
        width:min(100% - 20px, 760px)!important;
        max-width:760px!important;
        margin:12px auto 22px!important;
    }
    body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro .ag-profile-main-grid.ag-profile-layout{
        grid-template-columns:1fr!important;
        gap:16px!important;
    }
    body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro .ag-profile-main-grid .ag-profile-side,
    body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro .ag-profile-main-grid .ag-profile-wall-card,
    body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro .ag-profile-main-grid .ag-profile-medals-side{
        grid-column:1!important;
    }
    body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro .ag-profile-badge-grid{grid-template-columns:repeat(3, minmax(0, 1fr))!important;}
}
@media(max-width:520px){
    body.ag-body:not(.ag-admin-body) main.public-profile-shell.ag-profile-pro,
    body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro{
        width:min(100% - 14px, 520px)!important;
    }
    body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro .ag-profile-card,
    body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro .ag-profile-wall-card{
        padding:14px!important;
    }
    body.ag-body:not(.ag-admin-body) .public-profile-shell.ag-profile-pro .ag-profile-badge-grid{grid-template-columns:repeat(2, minmax(0, 1fr))!important;}
}


/* =========================================================
   RadioaficionadosClub Platform v25.9 - Widget Mi Avatar minimalista
   Autor: Rodrigo Reyes / RadioaficionadosClub.cl
   Motivo: quitar borde cuadrado del bloque de avatar, dejar protagonismo al avatar redondo
   y reducir las cajas grandes de acciones para un diseño más limpio.
   No requiere cambios SQL.
   ========================================================= */
.profile-side.ag-profile-modern-side .avatar-card.ag-avatar-widget,
.profile-side.ag-profile-modern-side .avatar-card{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
  overflow:visible!important;
  padding:18px 26px 14px!important;
}
.profile-side.ag-profile-modern-side .ag-avatar-widget-head{
  margin:0 0 18px!important;
  gap:10px!important;
}
.profile-side.ag-profile-modern-side .ag-avatar-widget-head h3{
  font-size:clamp(25px,2vw,31px)!important;
}
.profile-side.ag-profile-modern-side .ag-avatar-widget-head span{
  width:62px!important;
  height:6px!important;
}
.profile-side.ag-profile-modern-side .avatar-frame,
.profile-side.ag-profile-modern-side .avatar-profile-link,
.profile-side.ag-profile-modern-side .ag-avatar-large{
  margin:0 auto 22px!important;
}
.profile-side.ag-profile-modern-side .avatar-frame img,
.profile-side.ag-profile-modern-side .ag-avatar-large img{
  width:174px!important;
  height:174px!important;
  max-width:174px!important;
  max-height:174px!important;
  border:4px solid #111827!important;
  outline:3px solid #3b82f6!important;
  box-shadow:0 0 0 1px rgba(147,197,253,.32),0 0 26px rgba(37,99,235,.48),0 16px 34px rgba(0,0,0,.38)!important;
}
.profile-side.ag-profile-modern-side .ag-side-actions{
  gap:10px!important;
}
.profile-side.ag-profile-modern-side .avatar-edit,
.profile-side.ag-profile-modern-side .ag-side-action{
  min-height:48px!important;
  grid-template-columns:34px minmax(0,1fr) 16px!important;
  gap:10px!important;
  padding:9px 12px!important;
  border-radius:13px!important;
  background:rgba(15,23,42,.38)!important;
  border:1px solid rgba(148,163,184,.14)!important;
  box-shadow:none!important;
  font-size:14px!important;
}
.profile-side.ag-profile-modern-side .ag-side-action strong{
  font-size:14px!important;
  line-height:1.2!important;
  font-weight:850!important;
}
.profile-side.ag-profile-modern-side .ag-side-action-icon{
  width:30px!important;
  height:30px!important;
  border-radius:10px!important;
  background:rgba(37,99,235,.12)!important;
}
.profile-side.ag-profile-modern-side .ag-side-action-icon svg{
  width:19px!important;
  height:19px!important;
}
.profile-side.ag-profile-modern-side .ag-side-arrow{
  font-size:28px!important;
}
.profile-side.ag-profile-modern-side .ag-side-action:hover{
  transform:translateY(-1px)!important;
  background:rgba(30,41,59,.58)!important;
  box-shadow:0 8px 18px rgba(0,0,0,.18)!important;
}
.profile-side.ag-profile-modern-side .profile-complete,
.profile-side.ag-profile-modern-side .ag-complete-widget{
  border-radius:22px!important;
  padding:22px 24px!important;
}
.profile-side.ag-profile-modern-side .ag-complete-title{
  grid-template-columns:40px minmax(0,1fr)!important;
  gap:12px!important;
  margin:0 0 14px!important;
}
.profile-side.ag-profile-modern-side .ag-complete-icon{
  width:36px!important;
  height:36px!important;
  border-radius:12px!important;
}
.profile-side.ag-profile-modern-side .ag-complete-icon svg{
  width:22px!important;
  height:22px!important;
}
.profile-side.ag-profile-modern-side .profile-complete h3,
.profile-side.ag-profile-modern-side .ag-complete-title h3{
  font-size:18px!important;
  line-height:1.25!important;
}
.profile-side.ag-profile-modern-side .progressbar,
.profile-side.ag-profile-modern-side .ag-progressbar{
  height:14px!important;
  margin:0 0 14px!important;
}
.profile-side.ag-profile-modern-side .profile-note{
  font-size:13px!important;
  line-height:1.55!important;
}
@media(max-width:560px){
  .profile-side.ag-profile-modern-side .avatar-card.ag-avatar-widget,
  .profile-side.ag-profile-modern-side .avatar-card{
    padding:16px 18px 10px!important;
  }
  .profile-side.ag-profile-modern-side .avatar-frame img,
  .profile-side.ag-profile-modern-side .ag-avatar-large img{
    width:148px!important;
    height:148px!important;
    max-width:148px!important;
    max-height:148px!important;
  }
}

/* =========================================================
   RadioaficionadosClub Platform v26.0 - Mejoras prioritarias perfil móvil
   Autor: Rodrigo Reyes / RadioaficionadosClub.cl
   Objetivo:
   - Reducir scroll en móvil con pestañas.
   - Estadísticas horizontales compactas.
   - Medallas tipo carrusel en móvil.
   - Header y comentarios más cómodos en celular.
   - Mantener el diseño oscuro y bordes de la web.
   ========================================================= */
.ag-profile-mobile-tabs{
  display:none;
}
.ag-profile-info-chips{
  display:none;
}

@media(max-width:820px){
  .ag-profile-pro{
    width:min(100% - 16px, 760px)!important;
    padding-inline:0!important;
  }

  .ag-profile-cover{
    border-radius:18px!important;
    min-height:auto!important;
  }
  .ag-profile-cover-inner{
    padding:20px 14px!important;
    gap:12px!important;
  }
  .ag-profile-avatar,
  .ag-profile-avatar-block{
    width:96px!important;
    height:96px!important;
    max-width:96px!important;
    max-height:96px!important;
  }
  .ag-profile-avatar{
    border-width:4px!important;
  }
  .ag-profile-identity h1{
    font-size:clamp(28px,9vw,38px)!important;
    margin:8px 0 7px!important;
  }
  .ag-profile-meta{
    gap:6px!important;
  }
  .ag-profile-meta span{
    font-size:10.5px!important;
    padding:5px 8px!important;
  }
  .ag-profile-identity p{
    font-size:13.5px!important;
    line-height:1.5!important;
  }
  .ag-profile-badges-strip{
    flex-wrap:nowrap!important;
    overflow-x:auto!important;
    justify-content:flex-start!important;
    width:100%!important;
    padding:4px 2px 8px!important;
    scrollbar-width:thin;
  }
  .ag-profile-badge{
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    min-height:38px!important;
    border-radius:12px!important;
  }
  .ag-profile-badge img{
    width:28px!important;
    height:28px!important;
    max-width:28px!important;
    max-height:28px!important;
  }

  .ag-profile-stats{
    display:flex!important;
    overflow-x:auto!important;
    gap:8px!important;
    padding:8px!important;
    border-radius:16px!important;
    background:rgba(15,23,42,.74)!important;
    scrollbar-width:thin;
  }
  .ag-profile-stats div{
    flex:0 0 112px!important;
    border:1px solid rgba(148,163,184,.14)!important;
    border-radius:13px!important;
    padding:11px 10px!important;
    background:rgba(2,6,23,.30)!important;
  }
  .ag-profile-stats strong{
    font-size:22px!important;
  }
  .ag-profile-stats span{
    font-size:11px!important;
    margin-top:4px!important;
  }

  .ag-profile-mobile-tabs{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    margin:12px 0 14px;
    padding:6px;
    border-radius:16px;
    background:rgba(15,23,42,.74);
    border:1px solid rgba(148,163,184,.14);
  }
  .ag-profile-mobile-tabs button{
    min-height:38px;
    border:1px solid rgba(148,163,184,.12);
    border-radius:12px;
    background:rgba(2,6,23,.26);
    color:#cbd5e1;
    font-size:12px;
    font-weight:900;
    cursor:pointer;
  }
  .ag-profile-mobile-tabs button.is-active{
    color:#fff;
    background:linear-gradient(135deg,#2563eb,#1d4ed8);
    border-color:rgba(96,165,250,.42);
    box-shadow:0 8px 22px rgba(37,99,235,.22);
  }

  .ag-profile-main-grid.ag-profile-layout{
    display:block!important;
  }
  .ag-profile-mobile-panel{
    display:none!important;
  }
  .ag-profile-pro[data-active-profile-tab="wall"] .ag-profile-tab-wall,
  .ag-profile-pro[data-active-profile-tab="info"] .ag-profile-tab-info,
  .ag-profile-pro[data-active-profile-tab="badges"] .ag-profile-tab-badges{
    display:block!important;
  }
  .ag-profile-tab-info,
  .ag-profile-tab-badges,
  .ag-profile-tab-wall{
    margin-bottom:14px!important;
  }

  .profile-public-list.compact{
    display:none!important;
  }
  .ag-profile-info-chips{
    display:flex!important;
    gap:8px!important;
    flex-wrap:wrap!important;
    margin-top:12px!important;
  }
  .ag-profile-info-chips span{
    display:inline-flex!important;
    align-items:center!important;
    border-radius:999px!important;
    padding:7px 10px!important;
    background:rgba(37,99,235,.15)!important;
    border:1px solid rgba(96,165,250,.20)!important;
    color:#dbeafe!important;
    font-size:12px!important;
    font-weight:800!important;
    text-transform:capitalize!important;
  }

  .ag-profile-badge-grid{
    display:flex!important;
    overflow-x:auto!important;
    gap:10px!important;
    grid-template-columns:none!important;
    padding:2px 2px 8px!important;
    scrollbar-width:thin;
  }
  .ag-profile-badge-tile{
    flex:0 0 96px!important;
    min-height:96px!important;
    padding:10px 7px!important;
    border-radius:14px!important;
  }
  .ag-profile-badge-tile img,
  .ag-profile-badge-tile b{
    width:42px!important;
    height:42px!important;
    max-width:42px!important;
    max-height:42px!important;
  }
  .ag-profile-badge-tile span{
    font-size:10.5px!important;
    line-height:1.15!important;
  }

  .ag-profile-wall-card{
    padding:14px!important;
  }
  .ag-profile-wall-card .wp-card-title h2{
    font-size:18px!important;
  }
  .ag-wall-form{
    padding:9px!important;
  }
  .ag-wall-form textarea{
    min-height:74px!important;
    font-size:14px!important;
    padding:10px!important;
  }
  .ag-wall-form-tools{
    grid-template-columns:1fr!important;
    gap:8px!important;
  }
  .ag-wall-emojis{
    flex-wrap:nowrap!important;
    overflow-x:auto!important;
    padding-bottom:4px!important;
  }
  .ag-wall-emojis button{
    flex:0 0 32px!important;
    width:32px!important;
    height:32px!important;
    min-width:32px!important;
    min-height:32px!important;
  }
  .ag-wall-form-tools>button{
    width:100%!important;
  }
  .ag-wall-comment{
    grid-template-columns:28px minmax(0,1fr)!important;
    gap:7px!important;
  }
  .ag-wall-comment>.ag-wall-avatar,
  .ag-wall-comment>img.ag-wall-avatar{
    width:28px!important;
    height:28px!important;
    min-width:28px!important;
    min-height:28px!important;
    max-width:28px!important;
    max-height:28px!important;
  }
  .ag-wall-body{
    padding:8px 9px!important;
    border-radius:13px!important;
  }
  .ag-wall-head{
    gap:6px!important;
  }
  .ag-wall-head a{
    font-size:13px!important;
  }
  .ag-wall-head time{
    font-size:10.5px!important;
  }
  .ag-wall-body p{
    font-size:13.5px!important;
    line-height:1.42!important;
  }
  .ag-wall-actions{
    gap:6px!important;
  }
  .ag-wall-actions button,
  .ag-wall-actions span,
  .ag-wall-reply-toggle{
    min-height:28px!important;
    padding:5px 8px!important;
    font-size:11.5px!important;
  }
}

@media(max-width:420px){
  .ag-profile-pro{
    width:min(100% - 10px, 420px)!important;
  }
  .ag-profile-cover-inner{
    padding:18px 10px!important;
  }
  .ag-profile-avatar,
  .ag-profile-avatar-block{
    width:88px!important;
    height:88px!important;
    max-width:88px!important;
    max-height:88px!important;
  }
  .ag-profile-mobile-tabs{
    gap:5px!important;
    padding:5px!important;
  }
  .ag-profile-mobile-tabs button{
    font-size:11px!important;
    min-height:35px!important;
  }
}


/* ============================================================
   RadioaficionadosClub Platform v27 - Portada avanzada y widgets comunitarios
   Autor: Rodrigo Reyes / RadioaficionadosClub.cl
   Mejora: destaca contenido importante, tendencias y medallas sin plugins.
   ============================================================ */
.ag-pro-strip{max-width:1180px;margin:18px auto 8px;padding:0 18px}
.ag-featured-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.ag-featured-card{border:1px solid rgba(148,163,184,.22);border-radius:18px;overflow:hidden;background:var(--card,#111827);box-shadow:0 12px 32px rgba(0,0,0,.18)}
.ag-featured-card a{display:block;text-decoration:none;color:inherit}
.ag-featured-card img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;background:#0f172a}
.ag-featured-card span{display:inline-flex;margin:12px 12px 6px;padding:4px 9px;border-radius:999px;font-size:12px;font-weight:800;background:rgba(47,129,247,.16);color:var(--accent,#60a5fa)}
.ag-featured-card strong{display:block;padding:0 12px 14px;font-size:15px;line-height:1.25}
.ag-widget-trending small,.ag-widget-badges small{display:block;opacity:.72;margin-top:3px}
.ag-mini-medal{width:34px;height:34px;border-radius:11px;display:inline-flex;align-items:center;justify-content:center;background:rgba(251,191,36,.14);font-size:20px;flex:0 0 34px}
@media(max-width:900px){.ag-featured-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.ag-pro-strip{padding:0 12px}.ag-featured-grid{grid-template-columns:1fr}.ag-featured-card{border-radius:16px}}

/* ========================================================================== 
   RadioaficionadosClub Platform v28 - Portadas completas + tendencias paginadas
   Autor: Rodrigo Reyes / RadioaficionadosClub.cl
   Objetivo:
   - Evitar recortes en imágenes de portada dentro de tarjetas y widgets.
   - Mantener el tamaño del cuadro actual, adaptando la imagen al espacio.
   - Equilibrar textos y extractos para tarjetas más parejas.
   ========================================================================== */
.post-cover-link,
.ag-trend-cover,
.ag-featured-card a,
.ag-cover-contain,
.trend-card-cover,
.featured-card-cover,
.widget-post-cover{
  position:relative!important;
  overflow:hidden!important;
  background:linear-gradient(135deg,#07111f,#111827)!important;
}

.post-cover-link::before,
.ag-trend-cover::before,
.ag-cover-contain::before,
.trend-card-cover::before,
.featured-card-cover::before,
.widget-post-cover::before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at center,rgba(59,130,246,.18),rgba(15,23,42,.76));
  opacity:.9;
  pointer-events:none;
}

.post-cover-link > img.post-cover,
.post-cover-link > img.cover,
.ag-trend-cover > img,
.ag-cover-contain > img,
.ag-featured-card img,
.trend-card-cover > img,
.featured-card-cover > img,
.widget-post-cover > img{
  position:relative!important;
  z-index:1!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  background:transparent!important;
}

.ag-featured-card img{
  aspect-ratio:16/9!important;
  height:auto!important;
  min-height:0!important;
}

.ag-trend-cover,
.ag-cover-contain{
  display:block!important;
  height:190px!important;
  min-height:190px!important;
}

.post-cover-link{
  min-height:220px!important;
}

.ag-post-card{
  align-items:stretch!important;
}

.ag-post-body h2,
.ag-trend-body h2,
.ag-featured-card strong{
  line-height:1.18!important;
  letter-spacing:-.01em!important;
}

.ag-post-body h2{
  font-size:clamp(21px,2.1vw,30px)!important;
  margin-bottom:8px!important;
}

.ag-trend-body h2{
  font-size:18px!important;
}

.post-meta,
.ag-trend-body small{
  font-size:13px!important;
  line-height:1.45!important;
}

.pill,
.status-pill{
  max-width:100%!important;
  white-space:normal!important;
  line-height:1.25!important;
  padding:7px 12px!important;
  border-radius:999px!important;
}

.post-excerpt,
.ag-clamp-4,
.ag-trend-body p{
  display:-webkit-box!important;
  -webkit-line-clamp:4!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
  line-height:1.65!important;
}

.ag-trends-summary{
  margin:0 0 14px;
  color:var(--ag-muted,#94a3b8);
  font-weight:800;
  font-size:14px;
}

.ag-trends-grid .ag-trend-card{
  min-height:420px!important;
}

.ag-trends-pagination{
  margin-top:24px!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .post-cover-link,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-trend-cover,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-featured-card a{
  background:linear-gradient(135deg,#050b14,#0f172a)!important;
}

@media(max-width:720px){
  .post-cover-link,
  .post-cover-link > img.post-cover,
  .post-cover-link > img.cover{
    height:220px!important;
    min-height:220px!important;
    aspect-ratio:16/9!important;
  }
  .ag-trend-cover,
  .ag-cover-contain{
    height:210px!important;
    min-height:210px!important;
  }
  .ag-post-body h2{font-size:21px!important;}
}

@media(max-width:420px){
  .post-cover-link,
  .post-cover-link > img.post-cover,
  .post-cover-link > img.cover{
    height:200px!important;
    min-height:200px!important;
  }
  .ag-trend-cover,
  .ag-cover-contain{
    height:200px!important;
    min-height:200px!important;
  }
}

/* ========================================================================== 
   RadioaficionadosClub Platform v29 - Tarjetas estilo WordPress + sidebar responsive
   Autor: Rodrigo Reyes / RadioaficionadosClub.cl
   Fecha: 24-06-2026
   Objetivo:
   - Mostrar imagen completa sin recortes dentro del mismo cuadro.
   - Equilibrar imagen, título, metadatos, extracto y botón como tarjetas tipo WordPress.
   - Forzar que los widgets/sidebar bajen debajo del contenido en pantallas medianas y móviles.
   - Evitar que el texto estire la tarjeta o desordene la portada.
   ========================================================================== */

/* Contenedor principal: menos ancho para sidebar y más aire en contenido. */
.layout.ag-home-layout{
  grid-template-columns:minmax(0,1fr) 300px!important;
  gap:22px!important;
  align-items:start!important;
}

/* Tarjeta principal tipo WordPress: imagen izquierda, resumen derecho. */
.ag-post-card,
.post-card.ag-post-card{
  display:grid!important;
  grid-template-columns:clamp(220px,34%,310px) minmax(0,1fr)!important;
  min-height:230px!important;
  margin-bottom:22px!important;
  border-radius:16px!important;
  overflow:hidden!important;
  align-items:stretch!important;
}

/* Área de portada: mantiene el cuadro, pero la imagen entra completa. */
.ag-post-card .post-cover-link,
.post-card.ag-post-card .post-cover-link{
  height:100%!important;
  min-height:230px!important;
  aspect-ratio:auto!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  background:linear-gradient(135deg,#111827,#1f2937)!important;
}

.ag-post-card .post-cover,
.ag-post-card .cover,
.post-card.ag-post-card .post-cover,
.post-card.ag-post-card .cover{
  width:100%!important;
  height:100%!important;
  min-height:230px!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:center!important;
  background:transparent!important;
}

/* Contenido más ordenado y parejo. */
.ag-post-body,
.post-body.ag-post-body{
  padding:22px 24px!important;
  gap:12px!important;
  justify-content:space-between!important;
}

.post-author-row{
  grid-template-columns:46px minmax(0,1fr)!important;
  gap:12px!important;
  align-items:center!important;
}

.post-avatar img{
  width:46px!important;
  height:46px!important;
  min-width:46px!important;
  max-width:46px!important;
  border-width:3px!important;
}

.ag-post-body h2,
.post-body h2{
  font-size:clamp(20px,2vw,26px)!important;
  line-height:1.16!important;
  margin:0 0 8px!important;
  display:-webkit-box!important;
  -webkit-line-clamp:3!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}

.meta.post-meta,
.post-meta{
  font-size:12.5px!important;
  gap:7px!important;
  line-height:1.35!important;
}

.pill{
  font-size:12px!important;
  padding:6px 10px!important;
  line-height:1.2!important;
}

.post-excerpt{
  font-size:15px!important;
  line-height:1.62!important;
  margin:0!important;
  -webkit-line-clamp:4!important;
}

.post-card-footer{
  margin-top:4px!important;
  align-items:center!important;
}

.post-mini-actions{
  gap:14px!important;
  font-size:13px!important;
}

.read-more{
  padding:11px 18px!important;
  border-radius:10px!important;
  font-size:14px!important;
  white-space:nowrap!important;
}

/* Widgets: más compactos y sin forzar altura lateral. */
.ag-sidebar,
.sidebar.ag-sidebar{
  min-width:0!important;
  width:100%!important;
}

.ag-sidebar .widget,
.sidebar.ag-sidebar .widget{
  padding:16px!important;
  overflow:hidden!important;
}

.ag-sidebar .widget h3,
.sidebar.ag-sidebar .widget h3{
  font-size:17px!important;
  line-height:1.2!important;
  margin-top:0!important;
}

/* Breakpoint clave: al achicar, los widgets bajan debajo del contenido. */
@media(max-width:1120px){
  .layout.ag-home-layout{
    grid-template-columns:1fr!important;
    width:min(100% - 24px,920px)!important;
    max-width:920px!important;
    padding:0!important;
    margin:18px auto!important;
  }

  .ag-sidebar,
  .sidebar.ag-sidebar{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:16px!important;
    width:100%!important;
  }
}

/* Tablet: mantiene estilo WordPress con imagen izquierda, pero más compacta. */
@media(max-width:820px){
  .layout.ag-home-layout{
    width:min(100% - 18px,760px)!important;
  }

  .ag-post-card,
  .post-card.ag-post-card{
    grid-template-columns:220px minmax(0,1fr)!important;
    min-height:210px!important;
  }

  .ag-post-card .post-cover-link,
  .post-card.ag-post-card .post-cover-link,
  .ag-post-card .post-cover,
  .ag-post-card .cover,
  .post-card.ag-post-card .post-cover,
  .post-card.ag-post-card .cover{
    min-height:210px!important;
    height:100%!important;
  }

  .ag-post-body,
  .post-body.ag-post-body{
    padding:18px!important;
  }

  .ag-post-body h2,
  .post-body h2{
    font-size:21px!important;
    -webkit-line-clamp:3!important;
  }

  .post-excerpt{
    font-size:14px!important;
    -webkit-line-clamp:3!important;
  }

  .ag-sidebar,
  .sidebar.ag-sidebar{
    grid-template-columns:1fr!important;
  }
}

/* Móvil real: la imagen se va arriba, contenido abajo y widgets quedan al final. */
@media(max-width:640px){
  .featured-strip.ag-hero,
  .layout.ag-home-layout{
    width:calc(100% - 16px)!important;
  }

  .ag-post-card,
  .post-card.ag-post-card{
    grid-template-columns:1fr!important;
    min-height:0!important;
  }

  .ag-post-card .post-cover-link,
  .post-card.ag-post-card .post-cover-link{
    height:210px!important;
    min-height:210px!important;
    aspect-ratio:16/9!important;
  }

  .ag-post-card .post-cover,
  .ag-post-card .cover,
  .post-card.ag-post-card .post-cover,
  .post-card.ag-post-card .cover{
    height:210px!important;
    min-height:210px!important;
  }

  .post-author-row{
    grid-template-columns:42px minmax(0,1fr)!important;
  }

  .post-avatar img{
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    max-width:42px!important;
  }

  .ag-post-body h2,
  .post-body h2{
    font-size:20px!important;
    -webkit-line-clamp:3!important;
  }

  .post-excerpt{
    -webkit-line-clamp:3!important;
  }

  .post-card-footer{
    display:grid!important;
    grid-template-columns:1fr!important;
  }

  .read-more{
    width:100%!important;
    text-align:center!important;
  }
}

/* ============================================================================
   RadioaficionadosClub Platform v30 - Prioridades aplicadas
   Autor: Rodrigo Reyes / RadioaficionadosClub.cl
   Objetivo:
   - Mostrar portadas completas sin recorte.
   - Relacionadas bajo cada publicación.
   - Comentarios paginados para evitar páginas infinitas.
   - Sidebar realmente responsive.
   - Perfil con seguidores/siguiendo visibles.
   ============================================================================ */

/* Portadas completas: se adapta la imagen al cuadro existente sin agrandar el cuadro. */
.cover,
.post-cover,
.single-cover,
.ag-featured-card img,
.ag-trend-cover img,
.ag-related-cover img,
.cover-preview img{
  object-fit:contain!important;
  object-position:center!important;
  background:linear-gradient(135deg,#0f172a,#1e293b)!important;
}

.single-cover{
  aspect-ratio:16/9!important;
  height:auto!important;
  max-height:440px!important;
}

.ag-cover-contain,
.post-cover-link,
.ag-trend-cover,
.ag-related-cover{
  background:linear-gradient(135deg,#0f172a,#1e293b)!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
}

/* Tarjetas relacionadas estilo WordPress, limpias y responsive. */
.ag-related-posts{
  margin:30px 32px!important;
  padding:22px!important;
  border:1px solid #dbe4ef!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 14px 34px rgba(15,23,42,.08)!important;
}
.ag-related-head{margin-bottom:16px!important}.ag-related-head h2{margin:4px 0 0!important;font-size:24px!important;color:#0f2d50!important}
.ag-related-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}
.ag-related-card{display:grid!important;grid-template-columns:150px minmax(0,1fr)!important;gap:14px!important;align-items:stretch!important;border:1px solid #e5edf6!important;border-radius:14px!important;overflow:hidden!important;background:#f8fbff!important}
.ag-related-cover{height:116px!important;min-height:116px!important}.ag-related-cover img{width:100%!important;height:100%!important}
.ag-related-card div{padding:12px 12px 12px 0!important}.ag-related-card span{display:inline-block!important;font-size:11px!important;font-weight:900!important;color:#005bd4!important;text-transform:uppercase!important;margin-bottom:6px!important}.ag-related-card h3{font-size:17px!important;line-height:1.2!important;margin:0 0 7px!important}.ag-related-card h3 a{color:#0f2d50!important;text-decoration:none!important}.ag-related-card p{font-size:13px!important;line-height:1.5!important;color:#58708a!important;margin:0!important}

/* Paginación de comentarios: compacta, clara y cómoda en móvil. */
.ag-comments-pagination,
.ag-profile-pagination{
  display:flex!important;
  flex-wrap:wrap!important;
  justify-content:center!important;
  align-items:center!important;
  gap:10px!important;
  margin:22px 0 4px!important;
}
.ag-comments-pagination a,
.ag-comments-pagination span,
.ag-comments-pagination strong,
.ag-profile-pagination a,
.ag-profile-pagination span,
.ag-profile-pagination strong{
  border:1px solid #dbe4ef!important;
  border-radius:999px!important;
  padding:10px 14px!important;
  background:#fff!important;
  color:#0f2d50!important;
  font-size:13px!important;
  font-weight:900!important;
  text-decoration:none!important;
}
.ag-comments-pagination a:hover,
.ag-profile-pagination a:hover{background:#005bd4!important;color:#fff!important;border-color:#005bd4!important}
.ag-comments-pagination .is-disabled,
.ag-profile-pagination .is-disabled{opacity:.48!important;cursor:not-allowed!important}

/* Perfil: al agregar seguidores/siguiendo, la grilla se adapta sola. */
.ag-profile-stats{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))!important}
.ag-profile-avatar{width:96px!important;height:96px!important;max-width:96px!important;max-height:96px!important;object-fit:cover!important}
.ag-wall-avatar,.comment-avatar img{width:42px!important;height:42px!important;min-width:42px!important;max-width:42px!important;object-fit:cover!important}

/* Sidebar y widgets siempre bajan bajo el contenido al achicar. */
@media(max-width:1120px){
  .layout.ag-home-layout{grid-template-columns:1fr!important}
  .ag-sidebar,.sidebar.ag-sidebar{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;order:2!important}
  .ag-feed{order:1!important}
}
@media(max-width:760px){
  .ag-related-posts{margin:24px 18px!important;padding:16px!important}
  .ag-related-grid{grid-template-columns:1fr!important}
  .ag-related-card{grid-template-columns:1fr!important}
  .ag-related-cover{height:190px!important}
  .ag-related-card div{padding:14px!important}
  .ag-sidebar,.sidebar.ag-sidebar{grid-template-columns:1fr!important;display:grid!important}
  .single-cover{max-height:260px!important}
  .ag-profile-avatar{width:78px!important;height:78px!important;max-width:78px!important;max-height:78px!important}
}

html[data-theme="dark"] .ag-related-posts{background:#0b1628!important;border-color:rgba(255,255,255,.12)!important}
html[data-theme="dark"] .ag-related-card{background:#101f35!important;border-color:rgba(255,255,255,.1)!important}
html[data-theme="dark"] .ag-related-head h2,
html[data-theme="dark"] .ag-related-card h3 a{color:#f8fbff!important}
html[data-theme="dark"] .ag-related-card p{color:#cbd5e1!important}
html[data-theme="dark"] .ag-comments-pagination a,
html[data-theme="dark"] .ag-comments-pagination span,
html[data-theme="dark"] .ag-comments-pagination strong,
html[data-theme="dark"] .ag-profile-pagination a,
html[data-theme="dark"] .ag-profile-pagination span,
html[data-theme="dark"] .ag-profile-pagination strong{background:#101f35!important;color:#f8fbff!important;border-color:rgba(255,255,255,.12)!important}

/* RadioaficionadosClub Platform v0.1.4 - Biblioteca multimedia tipo WordPress */
.ag-media-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:8px 0}
.ag-media-modal[hidden]{display:none!important}
.ag-media-modal{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;padding:18px}
.ag-media-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.72);backdrop-filter:blur(4px)}
.ag-media-panel{position:relative;width:min(1120px,96vw);max-height:90vh;overflow:auto;background:var(--card,#fff);color:var(--text,#111827);border-radius:22px;box-shadow:0 30px 90px rgba(0,0,0,.35);border:1px solid rgba(148,163,184,.25)}
.ag-media-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;padding:22px 24px;border-bottom:1px solid rgba(148,163,184,.2)}
.ag-media-head h2{margin:4px 0 6px;font-size:1.35rem}.ag-media-head p{margin:0;color:var(--muted,#64748b)}
.ag-media-close{border:0;background:rgba(148,163,184,.16);font-size:32px;line-height:1;width:44px;height:44px;border-radius:14px;cursor:pointer;color:inherit}
.ag-media-tools{display:flex;gap:10px;padding:16px 24px;border-bottom:1px solid rgba(148,163,184,.16)}
.ag-media-tools input{flex:1;min-width:0;border:1px solid rgba(148,163,184,.4);border-radius:14px;padding:12px 14px;background:var(--input-bg,#fff);color:inherit}
.ag-media-status{padding:12px 24px;color:var(--muted,#64748b)}
.ag-media-status.is-error{color:#dc2626}.ag-media-status.is-ok{color:#16a34a}
.ag-media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:14px;padding:0 24px 24px}
.ag-media-item{border:1px solid rgba(148,163,184,.28);border-radius:16px;overflow:hidden;background:rgba(148,163,184,.06);cursor:pointer;text-align:left;color:inherit;padding:0;transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease}
.ag-media-item:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(15,23,42,.16);border-color:rgba(37,99,235,.45)}
.ag-media-item img{width:100%;aspect-ratio:1.25/1;object-fit:cover;display:block;background:#e5e7eb}
.ag-media-meta{padding:9px}.ag-media-meta strong{display:block;font-size:.82rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ag-media-meta span{display:block;font-size:.72rem;color:var(--muted,#64748b);margin-top:3px}
@media(max-width:680px){.ag-media-modal{padding:0;align-items:stretch}.ag-media-panel{width:100vw;max-height:100vh;border-radius:0}.ag-media-head,.ag-media-tools{padding:16px}.ag-media-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 16px 16px}}

/* RadioaficionadosClub Platform v0.1.5 - Editor clásico tipo WordPress */
.classic-editor-mode{max-width:1280px}.classic-editor-header{display:flex;justify-content:space-between;gap:18px;align-items:flex-end;margin:18px 0 14px;padding:18px 20px;border:1px solid #d9e2ec;border-radius:16px;background:#fff;box-shadow:0 12px 34px rgba(15,23,42,.08)}.classic-editor-header h1{margin:3px 0;font-size:30px;color:#10233f}.classic-editor-header p{margin:0;color:#64748b}.classic-editor-header-actions{display:flex;gap:8px;flex-wrap:wrap}.classic-notice{border-left:4px solid #0b72c9;background:#eef6ff;border-radius:10px;padding:12px 14px;margin:12px 0;color:#0f2d50}.classic-editor-form{background:transparent;border:0;padding:0}.classic-editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px;align-items:start}.classic-editor-main,.classic-editor-side{min-width:0}.classic-box{background:#fff;border:1px solid #d1d5db;border-radius:4px;margin:0 0 14px;box-shadow:0 1px 2px rgba(15,23,42,.05)}.classic-box-head,.classic-metabox-title{display:block;width:100%;text-align:left;background:#f6f7f7;border:0;border-bottom:1px solid #d1d5db;color:#1d2327;font-weight:800;padding:10px 12px;font-size:14px}.classic-metabox-title{cursor:pointer}.classic-metabox-title:after{content:'▾';float:right;color:#64748b}.classic-box.is-collapsed .classic-metabox-title:after{content:'▸'}.classic-box.is-collapsed .classic-metabox-body{display:none}.classic-metabox-body{padding:12px}.classic-title-box{border:0;box-shadow:none;background:transparent}.classic-title-input{width:100%;border:1px solid #a7aaad!important;border-radius:4px!important;background:#fff!important;font-size:26px!important;line-height:1.25!important;font-weight:600!important;padding:10px 12px!important}.classic-permalink-preview{font-size:13px;color:#646970;margin-top:7px}.classic-permalink-preview strong{color:#1d2327}.classic-editor-box{overflow:hidden}.classic-editor-tabs{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#f6f7f7;border-bottom:1px solid #d1d5db;padding:8px}.classic-editor-tabs-left,.classic-editor-tabs-right{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.classic-tab{border:1px solid #c3c4c7;background:#fff;color:#1d2327;border-radius:3px;padding:7px 12px;box-shadow:none;font-weight:700}.classic-tab.is-active{background:#2271b1;color:#fff;border-color:#2271b1}.button-secondary{display:inline-flex;align-items:center;justify-content:center;border:1px solid #2271b1;background:#f6f7f7;color:#0a4b78;border-radius:3px;padding:7px 10px;font-weight:800;box-shadow:none}.button-secondary.full{width:100%;margin-top:8px}.classic-toolbar{display:flex;align-items:center;gap:4px;flex-wrap:wrap;padding:7px 8px;background:#fff;border-bottom:1px solid #dcdcde}.classic-toolbar button,.classic-select{height:32px;border:1px solid #c3c4c7;background:#f6f7f7;color:#1d2327;border-radius:3px;padding:5px 8px;box-shadow:none;font-size:13px}.classic-toolbar button:hover,.button-secondary:hover{background:#fff;border-color:#135e96;color:#0a4b78}.classic-editor-panels{background:#fff}.classic-panel{display:none}.classic-panel.is-active{display:block}#bbEditor{width:100%;min-height:470px;border:0!important;border-radius:0!important;resize:vertical;font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.65;padding:14px 16px!important;background:#fff;color:#111827}.classic-editor-help{border-top:1px solid #dcdcde;background:#f6f7f7;color:#646970;font-size:13px;padding:9px 12px}.classic-inline-uploader{margin:0;border-top:1px solid #dcdcde;border-radius:0;box-shadow:none}.classic-inline-uploader .ag-inline-image-drop{border-radius:0;border-left:0;border-right:0;border-bottom:0;background:#fbfdff}.classic-publish-status{padding:12px;border-bottom:1px solid #dcdcde;color:#50575e}.classic-publish-actions{display:grid;grid-template-columns:1fr;gap:8px;padding:12px}.classic-publish-actions .btn{width:100%;justify-content:center}.classic-cover-preview{margin-bottom:10px;background:#f6f7f7;border:1px solid #dcdcde;padding:8px;border-radius:3px}.classic-cover-preview img{width:100%;max-height:190px;object-fit:contain;border-radius:2px;background:#fff}.classic-featured-box input[type="text"],.classic-featured-box input[type="file"],.classic-tags-box input,.classic-excerpt-box input,.classic-excerpt-box textarea{margin:7px 0;border-radius:3px!important;border:1px solid #8c8f94!important;padding:8px!important}.classic-category-scroll{max-height:255px;overflow:auto;background:#fff;border:0;padding:8px}.classic-category-scroll label{display:flex;align-items:center;gap:8px;padding:6px;border-radius:3px;font-weight:600}.classic-category-scroll label:hover{background:#f0f6fc}.classic-options-list label{display:flex;align-items:center;gap:8px;background:#fff;border:0;margin:0;padding:7px 0;font-weight:600}.classic-options-list input,.classic-category-scroll input{width:auto!important}.classic-tag-suggestions{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.classic-tag-suggestions span{background:#f0f6fc;border:1px solid #cfe8ff;color:#0a4b78;border-radius:999px;padding:4px 8px;font-size:12px;font-weight:800}.composer-preview{min-height:420px;border:0;border-radius:0;background:#fff;padding:18px}.screen-reader-text{position:absolute;left:-9999px}.ag-media-panel{max-width:1120px}.ag-media-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}.ag-media-item img{height:116px;object-fit:cover}
html[data-theme="dark"] .classic-editor-header,html[data-theme="dark"] .classic-box,html[data-theme="dark"] .classic-editor-tabs,html[data-theme="dark"] .classic-toolbar,html[data-theme="dark"] .classic-editor-help,html[data-theme="dark"] .classic-publish-actions,html[data-theme="dark"] .classic-publish-status{background:#111b2e!important;border-color:#26364f!important;color:#e5edf8!important}html[data-theme="dark"] .classic-editor-header h1,html[data-theme="dark"] .classic-box-head,html[data-theme="dark"] .classic-metabox-title{color:#e5edf8!important}html[data-theme="dark"] .classic-box-head,html[data-theme="dark"] .classic-metabox-title{background:#0b1322!important;border-color:#26364f!important}html[data-theme="dark"] #bbEditor,html[data-theme="dark"] .classic-title-input,html[data-theme="dark"] .classic-panel,html[data-theme="dark"] .composer-preview{background:#0a1220!important;color:#e5edf8!important}html[data-theme="dark"] .classic-toolbar button,html[data-theme="dark"] .classic-select,html[data-theme="dark"] .button-secondary{background:#18243a!important;color:#e5edf8!important;border-color:#334967!important}
@media(max-width:980px){.classic-editor-layout{grid-template-columns:1fr}.classic-editor-side{display:grid;grid-template-columns:1fr 1fr;gap:14px}.classic-editor-side .classic-box{margin-bottom:0}.classic-editor-header{align-items:flex-start;flex-direction:column}.classic-publish-box{order:-1;grid-column:1/-1}.classic-publish-actions{grid-template-columns:repeat(3,1fr)}}@media(max-width:620px){.classic-editor-mode{padding:0 10px}.classic-editor-side{grid-template-columns:1fr}.classic-title-input{font-size:22px!important}.classic-editor-tabs{align-items:stretch;flex-direction:column}.classic-editor-tabs-left,.classic-editor-tabs-right{display:grid;grid-template-columns:1fr 1fr}.classic-toolbar{overflow-x:auto;flex-wrap:nowrap}.classic-toolbar button,.classic-select{flex:0 0 auto}.classic-publish-actions{grid-template-columns:1fr}#bbEditor{min-height:360px}.classic-editor-header h1{font-size:24px}}

/* RadioaficionadosClub Platform v0.1.6 - limpieza y editor profesional */
.rac-editor-pro-form{--rac-editor-border:#d8e2ef;--rac-editor-soft:#f8fafc;--rac-editor-text:#0f172a}.classic-editor-layout{align-items:start}.classic-editor-main{min-width:0}.classic-title-input{font-size:clamp(24px,3vw,34px);line-height:1.15;border:1px solid var(--rac-editor-border);border-radius:14px;padding:16px 18px}.rac-editor-meter{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#64748b}.rac-slug-preview{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:#0b5ea8;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rac-editor-toolbar{position:sticky;top:0;z-index:12;background:#fff;border-bottom:1px solid #e2e8f0;padding:10px;box-shadow:0 8px 22px rgba(15,23,42,.05)}.rac-toolbar-group-title{font-size:12px;font-weight:900;color:#64748b;text-transform:uppercase;letter-spacing:.08em;align-self:center;margin-right:2px}.classic-toolbar button,.classic-toolbar select{min-height:36px}.classic-toolbar button:focus,.classic-toolbar select:focus,.classic-title-input:focus,#bbEditor:focus{outline:3px solid rgba(14,116,144,.2);border-color:#0e7490}.classic-editor-panels{background:#fff}.classic-panel{display:none}.classic-panel.is-active{display:block}#bbEditor{width:100%;min-height:520px;resize:vertical;font-size:16px;line-height:1.65;border:0;border-radius:0;padding:18px;background:#fff;color:#0f172a}.rac-editor-stats{display:flex;gap:12px;flex-wrap:wrap;align-items:center;padding:10px 14px;border-top:1px solid #e2e8f0;background:#f8fafc;color:#64748b;font-size:13px}.rac-editor-stats strong{color:#0f172a}.rac-autosave-recover{margin:12px 0 0;padding:12px;border:1px solid #bfdbfe;background:#eff6ff;border-radius:14px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.classic-editor-side{position:sticky;top:12px}.classic-publish-actions{display:grid;grid-template-columns:1fr;gap:8px}.classic-cover-preview img{object-fit:contain;background:#f1f5f9}.ag-media-panel{max-width:1120px;width:min(96vw,1120px);max-height:90vh;display:flex;flex-direction:column}.ag-media-grid{overflow:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:12px;padding-right:4px}.ag-media-item{min-height:168px;border:1px solid #dbe3ec;border-radius:14px;background:#fff;padding:8px;text-align:left;box-shadow:none;cursor:pointer;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}.ag-media-item:hover{transform:translateY(-2px);border-color:#0ea5e9;box-shadow:0 12px 26px rgba(15,23,42,.12)}.ag-media-item img{width:100%;height:100px;object-fit:cover;border-radius:10px;background:#f1f5f9}.ag-media-meta{display:block;margin-top:7px;font-size:12px;color:#64748b}.ag-media-meta strong{display:block;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ag-media-tools{display:flex;gap:10px;flex-wrap:wrap}.ag-media-tools input{flex:1 1 260px}.classic-editor-header{gap:14px}.classic-editor-header-actions{display:flex;gap:8px;flex-wrap:wrap}html[data-theme="dark"] .rac-editor-toolbar,html[data-theme="dark"] #bbEditor,html[data-theme="dark"] .classic-editor-panels,html[data-theme="dark"] .ag-media-item{background:#111827;color:#e5e7eb;border-color:#334155}html[data-theme="dark"] .rac-editor-stats,html[data-theme="dark"] .classic-editor-help{background:#0f172a;color:#cbd5e1;border-color:#334155}html[data-theme="dark"] .rac-editor-stats strong,html[data-theme="dark"] .ag-media-meta strong{color:#f8fafc}html[data-theme="dark"] .rac-editor-toolbar{box-shadow:0 8px 22px rgba(0,0,0,.24)}@media(max-width:980px){.classic-editor-layout{grid-template-columns:1fr!important}.classic-editor-side{position:static}.classic-editor-header{display:block}.classic-editor-header-actions{margin-top:12px}.rac-editor-toolbar{position:static;max-height:none;overflow-x:auto;white-space:nowrap;display:flex;flex-wrap:nowrap}.classic-toolbar select{min-width:130px}#bbEditor{min-height:420px}.ag-media-grid{grid-template-columns:repeat(auto-fill,minmax(118px,1fr))}}@media(max-width:560px){.composer-shell{padding:0 10px;margin:14px auto}.classic-box{border-radius:14px}.classic-title-input{font-size:23px;padding:13px}.classic-editor-tabs{gap:8px;flex-direction:column;align-items:stretch}.classic-editor-tabs-left,.classic-editor-tabs-right{display:flex;gap:8px;flex-wrap:wrap}.classic-editor-tabs-right button,.classic-editor-tabs-left button{flex:1 1 auto}.rac-editor-stats{display:grid;grid-template-columns:1fr 1fr;font-size:12px}.ag-media-panel{width:100vw;height:100vh;max-height:100vh;border-radius:0}.ag-media-grid{grid-template-columns:repeat(2,1fr)}.classic-publish-actions .btn{width:100%}}

/* ==========================================================
   RadioaficionadosClub v0.2.0 - Corrección profesional editor
   - Elimina símbolos unicode que aparecían como rombos en algunos hostings.
   - Mejora diseño responsive de subir imágenes, etiquetas y categorías.
   - Mantiene compatibilidad con modo oscuro.
   ========================================================== */
.rac-editor-pro-form,
.rac-editor-pro-form *{box-sizing:border-box;}
.rac-editor-pro-form{font-family:Arial,Helvetica,sans-serif;}
.rac-editor-pro-form .classic-box{overflow:hidden;border-radius:14px!important;border:1px solid rgba(148,163,184,.32)!important;background:#fff!important;box-shadow:0 10px 28px rgba(15,23,42,.08)!important;}
.rac-editor-pro-form .classic-box-head,
.rac-editor-pro-form .classic-metabox-title{display:flex!important;align-items:center!important;justify-content:space-between!important;width:100%!important;min-height:46px!important;background:linear-gradient(135deg,#2563eb,#1d4ed8)!important;color:#fff!important;border:0!important;padding:12px 14px!important;font-size:16px!important;line-height:1.2!important;font-weight:900!important;letter-spacing:.01em!important;}
.rac-editor-pro-form .classic-metabox-title:after{content:''!important;display:block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid rgba(255,255,255,.72);margin-left:auto;float:none!important;}
.rac-editor-pro-form .classic-box.is-collapsed .classic-metabox-title:after{border-top:0;border-bottom:6px solid rgba(255,255,255,.72);}
.rac-editor-pro-form .classic-metabox-body{padding:14px!important;background:#fff!important;color:#0f172a!important;}
.rac-editor-pro-form .classic-editor-side{display:flex;flex-direction:column;gap:14px;}
.rac-editor-pro-form .classic-editor-side .classic-box{margin:0!important;}

/* Subida de imágenes: evita que el texto quede en una columna angosta */
.rac-editor-pro-form .classic-inline-uploader{border:1px solid rgba(148,163,184,.32)!important;border-top:0!important;background:#f8fafc!important;}
.rac-editor-pro-form .ag-inline-image-drop{display:grid!important;grid-template-columns:minmax(260px,1fr) auto auto!important;align-items:center!important;gap:14px!important;width:100%!important;min-height:112px!important;padding:18px 20px!important;border:0!important;background:#f8fafc!important;color:#0f172a!important;}
.rac-editor-pro-form .ag-inline-image-drop > div{min-width:0!important;max-width:680px!important;}
.rac-editor-pro-form .ag-inline-image-drop strong{display:block!important;font-size:16px!important;line-height:1.25!important;color:#0f172a!important;margin:0 0 4px!important;}
.rac-editor-pro-form .ag-inline-image-drop span{display:block!important;font-size:14px!important;line-height:1.45!important;color:#64748b!important;max-width:620px!important;}
.rac-editor-pro-form .ag-inline-image-drop .btn{white-space:nowrap!important;min-height:44px!important;border-radius:10px!important;padding:10px 18px!important;}
.rac-editor-pro-form .ag-inline-image-drop.is-dragover{outline:3px solid rgba(37,99,235,.25)!important;background:#eff6ff!important;}

/* Categorías: elimina rombos, colores aleatorios y pseudo-iconos heredados */
.rac-editor-pro-form .classic-category-scroll,
.rac-editor-pro-form .category-scroll.classic-category-scroll{height:auto!important;max-height:310px!important;overflow:auto!important;padding:8px!important;border:1px solid rgba(148,163,184,.32)!important;border-radius:12px!important;background:#f8fafc!important;}
.rac-editor-pro-form .classic-category-scroll label,
.rac-editor-pro-form .category-scroll label{position:relative!important;display:flex!important;align-items:center!important;gap:10px!important;width:100%!important;margin:0 0 6px!important;padding:9px 10px!important;border:1px solid transparent!important;border-radius:10px!important;background:transparent!important;color:#e2e8f0!important;text-transform:none!important;white-space:normal!important;font-size:14px!important;line-height:1.25!important;font-weight:800!important;cursor:pointer!important;}
.rac-editor-pro-form .classic-category-scroll label:before,
.rac-editor-pro-form .category-scroll label:before{content:none!important;display:none!important;}
.rac-editor-pro-form .classic-category-scroll label:hover,
.rac-editor-pro-form .category-scroll label:hover{background:rgba(37,99,235,.12)!important;border-color:rgba(59,130,246,.35)!important;}
.rac-editor-pro-form .classic-category-scroll input[type="radio"],
.rac-editor-pro-form .category-scroll input[type="radio"]{position:static!important;opacity:1!important;pointer-events:auto!important;appearance:auto!important;-webkit-appearance:radio!important;width:16px!important;height:16px!important;min-width:16px!important;margin:0!important;accent-color:#2563eb!important;transform:none!important;}
.rac-editor-pro-form .classic-category-scroll input:checked + span,
.rac-editor-pro-form .category-scroll input:checked + span{background:transparent!important;outline:0!important;border-radius:0!important;padding:0!important;color:#fff!important;}
.rac-editor-pro-form .classic-category-scroll label:has(input:checked),
.rac-editor-pro-form .category-scroll label:has(input:checked){background:rgba(37,99,235,.22)!important;border-color:rgba(96,165,250,.55)!important;}
.rac-editor-pro-form .classic-category-scroll span,
.rac-editor-pro-form .category-scroll span{display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;}

/* Etiquetas */
.rac-editor-pro-form .classic-tags-box input[name="tags"]{width:100%!important;min-height:42px!important;border:1px solid rgba(148,163,184,.45)!important;border-radius:10px!important;background:#0f172a!important;color:#e5e7eb!important;padding:10px 12px!important;font-size:14px!important;}
.rac-editor-pro-form .classic-tags-box small{display:block!important;margin-top:8px!important;color:#cbd5e1!important;line-height:1.45!important;}
.rac-editor-pro-form .classic-tag-suggestions{display:flex!important;gap:8px!important;flex-wrap:wrap!important;margin-top:12px!important;}
.rac-editor-pro-form .classic-tag-suggestions span{display:inline-flex!important;align-items:center!important;justify-content:center!important;border:0!important;border-radius:999px!important;background:#e0f2fe!important;color:#475569!important;padding:7px 12px!important;font-size:12px!important;line-height:1!important;font-weight:900!important;}

/* Checkboxes de opciones sin símbolos raros */
.rac-editor-pro-form .classic-options-list label{display:flex!important;align-items:center!important;gap:10px!important;color:#e2e8f0!important;background:transparent!important;border:1px solid rgba(148,163,184,.25)!important;border-radius:10px!important;padding:10px!important;margin:0 0 8px!important;line-height:1.3!important;}
.rac-editor-pro-form .classic-options-list input[type="checkbox"]{appearance:auto!important;-webkit-appearance:checkbox!important;width:16px!important;height:16px!important;min-width:16px!important;margin:0!important;accent-color:#2563eb!important;}

/* Modo oscuro coherente del editor */
html[data-theme="dark"] .rac-editor-pro-form .classic-box,
body .rac-editor-pro-form .classic-editor-side .classic-box{background:#111827!important;border-color:#334155!important;color:#e5e7eb!important;}
html[data-theme="dark"] .rac-editor-pro-form .classic-metabox-body,
body .rac-editor-pro-form .classic-editor-side .classic-metabox-body{background:#111827!important;color:#e5e7eb!important;}
html[data-theme="dark"] .rac-editor-pro-form .classic-category-scroll,
body .rac-editor-pro-form .classic-category-scroll{background:#1f2937!important;border-color:#374151!important;}
html[data-theme="dark"] .rac-editor-pro-form .ag-inline-image-drop,
body .rac-editor-pro-form .ag-inline-image-drop{background:#1f2937!important;color:#e5e7eb!important;}
html[data-theme="dark"] .rac-editor-pro-form .ag-inline-image-drop strong,
body .rac-editor-pro-form .ag-inline-image-drop strong{color:#f8fafc!important;}
html[data-theme="dark"] .rac-editor-pro-form .ag-inline-image-drop span,
body .rac-editor-pro-form .ag-inline-image-drop span{color:#cbd5e1!important;}

@media(max-width:980px){
  .rac-editor-pro-form .classic-editor-layout{grid-template-columns:1fr!important;}
  .rac-editor-pro-form .classic-editor-side{position:static!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:14px!important;}
  .rac-editor-pro-form .classic-publish-box{grid-column:1/-1!important;}
  .rac-editor-pro-form .ag-inline-image-drop{grid-template-columns:1fr!important;}
  .rac-editor-pro-form .ag-inline-image-drop .btn{width:100%!important;}
}
@media(max-width:640px){
  .rac-editor-pro-form .classic-editor-side{display:flex!important;}
  .rac-editor-pro-form .classic-box-head,
  .rac-editor-pro-form .classic-metabox-title{font-size:15px!important;min-height:44px!important;}
  .rac-editor-pro-form .classic-category-scroll label{font-size:14px!important;padding:10px!important;}
  .rac-editor-pro-form .classic-tag-suggestions span{font-size:11px!important;padding:6px 10px!important;}
}

/* RadioaficionadosClub Platform v0.2.1 - Biblioteca Multimedia PRO tipo WordPress */
.ag-media-pro-panel{width:min(1180px,96vw);max-height:92vh;display:flex;flex-direction:column;overflow:hidden;background:#0f172a;color:#e2e8f0;border:1px solid rgba(148,163,184,.35)}
.ag-media-pro-head{background:linear-gradient(135deg,#0f2d50,#1d4ed8);border-bottom:1px solid rgba(255,255,255,.12)}
.ag-media-pro-head p{margin:5px 0 0;color:#dbeafe}.ag-media-pro-head code{background:rgba(255,255,255,.12);color:#fff;border-radius:6px;padding:2px 5px}.ag-media-close{font-size:28px;line-height:1;background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.18);border-radius:10px;width:42px;height:38px;cursor:pointer}.ag-media-pro-toolbar{display:grid;grid-template-columns:170px 1fr 130px;gap:10px;padding:12px 14px;background:#111827;border-bottom:1px solid rgba(148,163,184,.25)}.ag-media-pro-toolbar input[type=search]{width:100%;border:1px solid #334155;background:#0b1220;color:#fff;border-radius:10px;padding:11px 12px}.ag-media-upload-btn{display:grid;place-items:center;background:#2563eb;color:#fff;border:1px solid #3b82f6;border-radius:10px;font-weight:900;cursor:pointer}.ag-media-dropzone{margin:12px 14px 0;border:1px dashed #475569;background:#0b1220;color:#cbd5e1;border-radius:12px;padding:12px;text-align:center;font-weight:800}.ag-media-dropzone.is-over{border-color:#60a5fa;background:#0f2d50;color:#fff}.ag-media-pro-body{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:0;min-height:0;flex:1}.ag-media-left{padding:14px;overflow:auto;min-height:420px}.ag-media-pro-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:12px}.ag-media-pro-item{display:block;text-align:left;background:#111827;border:1px solid #334155;border-radius:12px;padding:8px;color:#e2e8f0;cursor:pointer;transition:.18s ease;overflow:hidden}.ag-media-pro-item:hover,.ag-media-pro-item.is-selected{border-color:#60a5fa;box-shadow:0 0 0 3px rgba(96,165,250,.18);transform:translateY(-1px)}.ag-media-pro-item img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:9px;background:#020617;display:block}.ag-media-pro-item .ag-media-meta{display:block;padding:8px 2px 2px}.ag-media-pro-item strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#fff;font-size:13px}.ag-media-pro-item span span{display:block;color:#94a3b8;font-size:12px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ag-media-status{margin:0 0 12px;padding:10px 12px;border-radius:10px;background:#0b1220;border:1px solid #334155;color:#cbd5e1;font-weight:800}.ag-media-status.is-ok{border-color:#2563eb;color:#bfdbfe}.ag-media-status.is-error{border-color:#ef4444;color:#fecaca}.ag-media-details{border-left:1px solid rgba(148,163,184,.25);background:#111827;padding:14px;overflow:auto}.ag-media-empty{min-height:250px;border:1px dashed #334155;border-radius:14px;display:grid;place-items:center;text-align:center;padding:22px;color:#94a3b8}.ag-media-empty strong{display:block;color:#fff;font-size:18px}.ag-media-detail-content{display:grid;gap:10px}.ag-media-detail-content img{width:100%;max-height:220px;object-fit:contain;background:#020617;border:1px solid #334155;border-radius:12px}.ag-media-file-info{background:#0b1220;border:1px solid #334155;border-radius:12px;padding:10px}.ag-media-file-info strong{display:block;color:#fff;overflow-wrap:anywhere}.ag-media-file-info span{display:block;color:#94a3b8;font-size:12px;margin-top:3px}.ag-media-details label{display:grid;gap:5px;font-weight:900;color:#e2e8f0}.ag-media-details input,.ag-media-details textarea{width:100%;border:1px solid #334155;background:#0b1220;color:#fff;border-radius:10px;padding:10px}.ag-media-details small{color:#94a3b8;font-weight:700}.ag-media-actions-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:4px}.ag-media-actions-grid .btn{width:100%;justify-content:center}.btn.danger{background:#7f1d1d;border-color:#991b1b;color:#fff}.ag-media-action-status{min-height:22px;color:#cbd5e1;font-weight:800}.ag-media-action-status.is-ok{color:#93c5fd}.ag-media-action-status.is-error{color:#fecaca}
@media(max-width:900px){.ag-media-pro-toolbar{grid-template-columns:1fr}.ag-media-pro-body{grid-template-columns:1fr}.ag-media-details{border-left:0;border-top:1px solid rgba(148,163,184,.25)}.ag-media-left{min-height:320px}.ag-media-pro-grid{grid-template-columns:repeat(auto-fill,minmax(110px,1fr))}.ag-media-actions-grid{grid-template-columns:1fr}}
@media(max-width:560px){.ag-media-pro-panel{width:100vw;max-height:100vh;border-radius:0}.ag-media-pro-head{padding:12px}.ag-media-pro-head h2{font-size:20px}.ag-media-dropzone{display:none}.ag-media-left,.ag-media-details{padding:10px}.ag-media-pro-grid{gap:8px;grid-template-columns:repeat(2,1fr)}}

/* ========================================================================== 
   RadioaficionadosClub Platform v0.2.2 - Portada PRO última/populares
   Autor: Rodrigo Reyes / RadioaficionadosClub.cl
   Mejora:
   - El bloque superior muestra las últimas publicaciones reales con tarjetas parejas.
   - El bloque Más populares aparece solo en escritorio/tablet; en móvil se oculta
     porque los widgets inferiores ya cumplen esa función.
   - Las tarjetas mantienen el mismo tamaño visual, no rompen el ancho y no se salen.
   ========================================================================== */
.ag-home-latest-strip,
.ag-home-popular-strip{
  width:min(1180px,calc(100% - 28px))!important;
  max-width:1180px!important;
  margin:18px auto 8px!important;
  padding:0!important;
}

.ag-home-card-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:16px!important;
  width:100%!important;
}

.ag-home-mini-card{
  min-width:0!important;
  height:100%!important;
  border-radius:18px!important;
  overflow:hidden!important;
  background:linear-gradient(180deg,rgba(15,23,42,.96),rgba(2,6,23,.96))!important;
  border:1px solid rgba(96,165,250,.22)!important;
  box-shadow:0 14px 34px rgba(0,0,0,.22)!important;
  transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease!important;
}

.ag-home-mini-card:hover{
  transform:translateY(-2px)!important;
  border-color:rgba(96,165,250,.48)!important;
  box-shadow:0 18px 40px rgba(0,0,0,.28)!important;
}

.ag-home-mini-card a{
  display:grid!important;
  grid-template-rows:auto auto 1fr!important;
  height:100%!important;
  min-height:0!important;
  color:inherit!important;
  text-decoration:none!important;
}

.ag-home-mini-card img{
  width:100%!important;
  height:150px!important;
  min-height:150px!important;
  max-height:150px!important;
  aspect-ratio:16/9!important;
  object-fit:contain!important;
  object-position:center!important;
  background:radial-gradient(circle at center,rgba(37,99,235,.24),rgba(15,23,42,.95))!important;
}

.ag-home-mini-card span{
  width:fit-content!important;
  max-width:calc(100% - 22px)!important;
  margin:11px 11px 6px!important;
  padding:5px 9px!important;
  border-radius:999px!important;
  background:rgba(37,99,235,.18)!important;
  color:#bfdbfe!important;
  font-size:11px!important;
  line-height:1.15!important;
  font-weight:900!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

.ag-home-mini-card strong{
  display:-webkit-box!important;
  padding:0 12px 14px!important;
  min-height:54px!important;
  font-size:15px!important;
  line-height:1.22!important;
  font-weight:900!important;
  color:#f8fafc!important;
  -webkit-line-clamp:3!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}

.ag-home-popular-strip{
  margin-top:16px!important;
}

@media(max-width:1020px){
  .ag-home-card-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .ag-home-mini-card img{
    height:170px!important;
    min-height:170px!important;
    max-height:170px!important;
  }
}

@media(max-width:720px){
  .ag-home-latest-strip,
  .ag-home-popular-strip{
    width:calc(100% - 16px)!important;
    margin:14px auto 8px!important;
  }
  .ag-home-card-grid{
    grid-template-columns:1fr!important;
    gap:12px!important;
  }
  .ag-home-mini-card img{
    height:190px!important;
    min-height:190px!important;
    max-height:190px!important;
  }
  .ag-home-popular-strip{
    display:none!important;
  }
}


/* ==========================================================================
   RadioaficionadosClub Platform v0.2.4 - Portada limpia sin cubos populares
   Autor: Rodrigo Reyes / RadioaficionadosClub.cl
   Mejora:
   - Se elimina definitivamente el bloque de cubos "Más populares" de la portada.
   - Las publicaciones populares quedan solo como widget lateral compacto.
   - Últimas publicaciones se mantiene como bloque principal responsive.
   ========================================================================== */
.ag-home-popular-strip,
.ag-popular-grid,
.ag-popular-card{
  display:none!important;
}
.ag-home-latest-strip{
  width:min(1180px,calc(100% - 28px))!important;
  max-width:1180px!important;
  margin:18px auto 10px!important;
}
.ag-widget-top-posts ul,
.ag-widget-trending ul{
  display:grid!important;
  gap:10px!important;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
}
.ag-widget-top-posts li,
.ag-widget-trending li{
  padding:10px 0!important;
  border-bottom:1px solid rgba(148,163,184,.18)!important;
}
.ag-widget-top-posts li:last-child,
.ag-widget-trending li:last-child{
  border-bottom:0!important;
}
.ag-widget-top-posts a,
.ag-widget-trending a{
  display:block!important;
  color:#e5edff!important;
  font-weight:900!important;
  line-height:1.25!important;
  text-decoration:none!important;
}
.ag-widget-top-posts a:hover,
.ag-widget-trending a:hover{
  color:#93c5fd!important;
}
.ag-widget-top-posts small,
.ag-widget-trending small{
  display:block!important;
  margin-top:4px!important;
  color:#93a4bd!important;
  font-size:12px!important;
}
@media(max-width:720px){
  .ag-home-latest-strip{
    width:calc(100% - 16px)!important;
    margin:14px auto 8px!important;
  }
}

/* RadioaficionadosClub PRO v80 - mejoras prioritarias aplicadas por auditoría
   Objetivo: portada más profesional, imágenes completas en tarjetas pequeñas,
   widgets responsivos y biblioteca multimedia usable en móvil. */
.ag-home-latest-strip{max-width:1200px;margin:22px auto 0;padding:0 20px;}
.ag-home-latest-strip .section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;}
.ag-home-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;}
.ag-home-mini-card{background:#fff;border:1px solid #d7dde4;border-radius:14px;overflow:hidden;box-shadow:0 8px 22px rgba(15,23,42,.08);}
.ag-home-mini-card a{display:grid;color:inherit;text-decoration:none;min-height:100%;}
.ag-home-mini-card img{width:100%;aspect-ratio:16/9;height:auto;object-fit:contain;background:#eef2f7;display:block;}
.ag-home-mini-card span{display:inline-flex;width:max-content;margin:10px 12px 0;padding:4px 8px;border-radius:999px;background:#e0f2fe;color:#0369a1;font-weight:900;font-size:11px;}
.ag-home-mini-card strong{display:block;padding:8px 12px 14px;color:#0f172a;line-height:1.25;font-size:14px;}
.ag-post-card .post-cover-link{display:block;background:#eef2f7;}
.ag-post-card .post-cover{object-fit:contain!important;background:#eef2f7!important;}
.post-author-row{display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px;align-items:start;}
.post-avatar img{width:44px!important;height:44px!important;border-radius:50%;object-fit:cover;display:block;}
.post-excerpt{overflow-wrap:anywhere;}
.ag-sidebar .widget li a{overflow-wrap:anywhere;}
.ag-widget-top-posts.ag-hide-mobile{display:block;}
.ag-media-pro-panel{max-width:min(1180px,96vw);max-height:92vh;overflow:hidden;}
.ag-media-pro-body{min-height:0;}
.ag-media-left,.ag-media-details{min-width:0;}
.ag-media-pro-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));}
.ag-media-pro-item img{width:100%;aspect-ratio:1/1;object-fit:contain;background:#f1f5f9;}
.ag-media-details img{max-width:100%;height:auto;object-fit:contain;background:#f8fafc;border-radius:12px;}
.ag-media-actions-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
.ag-media-actions-grid .btn{width:100%;text-align:center;white-space:normal;}
@media(max-width:980px){
  .layout{grid-template-columns:1fr!important;}
  .ag-sidebar{order:2;}
  .post-card{grid-template-columns:200px minmax(0,1fr);}
  .ag-home-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .ag-media-pro-body{grid-template-columns:1fr!important;overflow:auto;}
  .ag-media-details{position:static!important;}
}
@media(max-width:720px){
  .featured-strip{margin:14px 10px 0;padding:18px;display:block;text-align:left;border-radius:16px;}
  .featured-strip h1{font-size:24px;line-height:1.15;}
  .featured-strip .hero-btn{margin-top:12px;width:100%;text-align:center;}
  .layout{padding:0 10px;margin-top:14px;}
  .post-card{grid-template-columns:1fr!important;border-radius:14px;}
  .post-card .post-cover{min-height:0!important;aspect-ratio:16/9!important;height:auto!important;}
  .post-body{padding:14px;}
  .post-body h2{font-size:20px;line-height:1.2;}
  .meta{font-size:12px;gap:6px;}
  .ag-home-latest-strip{padding:0 10px;}
  .ag-home-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  .ag-home-mini-card strong{font-size:13px;padding:8px 10px 12px;}
  .ag-widget-top-posts.ag-hide-mobile{display:none!important;}
  .ag-media-pro-panel{width:96vw;max-height:94vh;}
  .ag-media-head,.ag-media-pro-toolbar{display:grid!important;grid-template-columns:1fr!important;gap:10px;}
  .ag-media-pro-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .ag-media-actions-grid{grid-template-columns:1fr;}
}
@media(max-width:420px){
  .ag-home-card-grid{grid-template-columns:1fr;}
  .post-author-row{grid-template-columns:38px minmax(0,1fr);}
  .post-avatar img{width:38px!important;height:38px!important;}
}

/* ========================================================================== 
   RadioaficionadosClub PRO v80.1 - Corrección carrusel últimas publicaciones móvil
   Autor: Rodrigo Reyes / RadioaficionadosClub.cl
   Fecha: 28-06-2026
   Motivo:
   - Existían reglas posteriores que volvían a mostrar el bloque superior
     .ag-home-latest-strip en versión móvil.
   - Esta regla final oculta solo el carrusel/bloque compacto superior en móvil.
   - El listado principal de publicaciones dentro de #posts se mantiene visible.
   ========================================================================== */
@media (max-width: 720px){
  body .ag-home-latest-strip,
  body section.ag-home-latest-strip,
  body .ag-pro-strip.ag-home-latest-strip{
    display:none!important;
    visibility:hidden!important;
    height:0!important;
    max-height:0!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    overflow:hidden!important;
    pointer-events:none!important;
  }
}

/* RadioaficionadosClub v83 - auditoría profesional de administración */
.admin-health-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;margin:14px 0}
.admin-health-item{border:1px solid rgba(148,163,184,.35);border-radius:14px;padding:13px;background:rgba(15,23,42,.72);display:grid;gap:6px}
.admin-health-item strong{display:block;color:#fff;font-size:.95rem}
.admin-health-item span{color:#cbd5e1;font-size:.88rem;line-height:1.45}
.admin-health-item em{color:#fde68a;font-style:normal;font-size:.82rem}
.admin-health-item.is-ok{border-color:rgba(34,197,94,.45);box-shadow:inset 4px 0 0 rgba(34,197,94,.75)}
.admin-health-item.is-bad{border-color:rgba(248,113,113,.55);box-shadow:inset 4px 0 0 rgba(239,68,68,.8)}
.admin-health-card .cache-clean-form{margin-top:12px}
.brand-preview-card img{max-width:100%;height:auto;object-fit:contain;background:#fff;border-radius:12px;padding:8px}
.favicon-preview img{width:96px;height:96px;object-fit:contain}
.og-preview-card img{aspect-ratio:1200/630;width:100%;max-height:180px;object-fit:contain}


/* ========================================================================== 
   RadioaficionadosClub PRO v84 - Ajustes móviles: lectura, breadcrumbs y widgets
   Autor: Rodrigo Reyes / RadioaficionadosClub.cl
   Fecha: 30-06-2026
   Objetivo:
   - Reducir separación excesiva entre líneas y párrafos en publicaciones.
   - Corregir ruta de navegación en móvil para que no se vea como bloque gigante.
   - Ordenar widget de nuevas medallas para que icono, usuario y medalla no se monten.
   - Reforzar contenedores responsivos para evitar desbordes horizontales.
   ========================================================================== */
.single-post .article-body,
.single-post .bbc-content{
  font-size:clamp(15px,1.9vw,17px)!important;
  line-height:1.58!important;
  letter-spacing:0!important;
  word-spacing:normal!important;
}
.single-post .article-body p,
.single-post .bbc-content p{
  margin-top:.72em!important;
  margin-bottom:.72em!important;
}
.single-post .article-body br + br,
.single-post .bbc-content br + br{
  display:block;
  content:"";
  margin-top:.35em!important;
}
.single-post .article-body hr,
.single-post .bbc-content hr{
  margin:20px 0!important;
  border:0!important;
  border-top:1px solid rgba(148,163,184,.55)!important;
}
.single-post .article-body :is(h2,h3,h4),
.single-post .bbc-content :is(h2,h3,h4){
  line-height:1.25!important;
  margin:1.25em 0 .55em!important;
}
.single-post .article-body :is(ul,ol),
.single-post .bbc-content :is(ul,ol){
  margin:.85em 0 .85em 1.25em!important;
  padding-left:1em!important;
}
.single-post .article-body li,
.single-post .bbc-content li{margin:.35em 0!important;line-height:1.5!important;}
.ag-breadcrumbs{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:7px!important;
  flex-wrap:wrap!important;
  width:100%!important;
  max-width:100%!important;
  margin:4px 0 14px!important;
  padding:10px 12px!important;
  border-radius:12px!important;
  background:rgba(15,23,42,.04)!important;
  border:1px solid rgba(148,163,184,.18)!important;
  text-align:left!important;
  line-height:1.25!important;
}
.ag-breadcrumbs a,
.ag-breadcrumbs strong,
.ag-breadcrumbs span{
  display:inline-flex!important;
  align-items:center!important;
  width:auto!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  line-height:1.25!important;
  white-space:normal!important;
}
.ag-breadcrumbs span{opacity:.55!important;}
.ag-widget-badges ul{display:grid!important;gap:0!important;}
.ag-widget-badges li{padding:10px 0!important;overflow:hidden!important;}
.ag-widget-badges .user-mini{
  display:grid!important;
  grid-template-columns:46px minmax(0,1fr)!important;
  grid-template-areas:"icon user" "icon badge"!important;
  column-gap:12px!important;
  row-gap:2px!important;
  align-items:center!important;
  width:100%!important;
  min-width:0!important;
  text-decoration:none!important;
}
.ag-widget-badges .user-mini img,
.ag-widget-badges .ag-mini-medal{
  grid-area:icon!important;
  width:42px!important;
  height:42px!important;
  max-width:42px!important;
  max-height:42px!important;
  object-fit:contain!important;
  border-radius:12px!important;
  background:#0f172a!important;
  padding:4px!important;
  flex:0 0 auto!important;
}
.ag-widget-badges .user-mini span:not(.ag-mini-medal){
  grid-area:user!important;
  display:block!important;
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-weight:900!important;
}
.ag-widget-badges .user-mini small{
  grid-area:badge!important;
  display:block!important;
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-weight:800!important;
  opacity:.86!important;
}
.widget,
.single-post,
.ag-post-author-card,
.viral-actions,
.comments-shell{min-width:0!important;max-width:100%!important;overflow-wrap:anywhere!important;}
@media(max-width:700px){
  .single{padding:0 10px!important;margin:14px auto!important;}
  .single-post{padding:14px!important;border-radius:16px!important;}
  .single-post h1{font-size:clamp(21px,6vw,29px)!important;line-height:1.18!important;margin-bottom:10px!important;}
  .single-cover{max-height:245px!important;border-radius:12px!important;object-fit:contain!important;background:#0f172a!important;}
  .ag-breadcrumbs{
    gap:5px!important;
    padding:8px 10px!important;
    margin:6px 0 12px!important;
    font-size:12px!important;
    border-radius:10px!important;
    justify-content:flex-start!important;
    text-align:left!important;
  }
  .ag-breadcrumbs a,
  .ag-breadcrumbs strong{max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;}
  .ag-post-author-card{display:grid!important;grid-template-columns:48px minmax(0,1fr)!important;align-items:start!important;}
  .ag-post-author-info,.ag-post-author-meta{min-width:0!important;}
  .ag-post-author-meta{font-size:12px!important;gap:5px!important;line-height:1.35!important;}
  .post-tools{display:flex!important;flex-wrap:wrap!important;gap:8px!important;}
  .post-tools .btn,.post-tools button{padding:8px 11px!important;font-size:13px!important;}
  .single-post .article-body,
  .single-post .bbc-content{font-size:15.5px!important;line-height:1.5!important;}
  .single-post .article-body p,
  .single-post .bbc-content p{margin:.62em 0!important;}
  .single-post .article-body hr,
  .single-post .bbc-content hr{margin:16px 0!important;}
  .sidebar,.ag-sidebar{gap:12px!important;}
  .widget{padding:16px!important;border-radius:16px!important;}
  .widget h3{font-size:19px!important;margin-bottom:10px!important;}
  .ag-widget-badges .user-mini{grid-template-columns:44px minmax(0,1fr)!important;column-gap:10px!important;}
  .ag-widget-badges .user-mini img,
  .ag-widget-badges .ag-mini-medal{width:40px!important;height:40px!important;}
}
@media(max-width:420px){
  .ag-breadcrumbs{font-size:11.5px!important;}
  .ag-breadcrumbs span{display:none!important;}
  .ag-breadcrumbs a::after{content:"/";display:inline-block;margin-left:6px;opacity:.45;}
  .ag-breadcrumbs a:last-of-type::after{content:"";margin:0;}
  .ag-widget-badges .user-mini small{font-size:12px!important;}
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-breadcrumbs{
  background:#0f172a!important;
  border-color:#263142!important;
  color:#cbd5e1!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-breadcrumbs a{color:#60a5fa!important;}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-breadcrumbs strong{color:#e5e7eb!important;}


/* ==========================================================================
   RadioaficionadosClub PRO v85 - Auditoría móvil Google/SEO/UX
   Autor: Rodrigo Reyes / RadioaficionadosClub.cl
   Fecha: 30-06-2026
   Objetivo:
   - Mejorar lectura móvil, Core Web Vitals visuales, accesibilidad táctil y widgets.
   - Compactar navegación y publicación sin perder estética.
   - Evitar desbordes que afectan experiencia móvil e indexación mobile-first.
   ========================================================================== */
:root{--ag-tap:44px;--ag-mobile-pad:14px;--ag-readable:1.56;}
img,video,iframe{max-width:100%;height:auto;}
button,a,input,select,textarea{touch-action:manipulation;}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid rgba(59,130,246,.9)!important;outline-offset:3px!important;}
.site-header{position:sticky;top:0;z-index:50;backdrop-filter:saturate(160%) blur(10px);}
.topbar{min-width:0;}
.topbar nav a,.menu-btn,.btn,.btn-small,.share-box a,.share-copy-btn,.reaction-box button{min-height:var(--ag-tap);display:inline-flex;align-items:center;justify-content:center;}
.single{width:min(100%,1040px);}
.single-post{contain:layout paint;}
.single-cover{aspect-ratio:16/9;width:100%;height:auto;object-fit:contain;background:#0f172a;}
.ag-reading-meta{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 12px;color:#cbd5e1;font-size:13px;line-height:1.25;}
.ag-reading-meta span{display:inline-flex;align-items:center;min-height:28px;padding:5px 9px;border:1px solid rgba(148,163,184,.28);border-radius:999px;background:rgba(15,23,42,.45);}
.article-body,.bbc-content{overflow-wrap:anywhere;hyphens:auto;}
.article-body img,.bbc-content img{border-radius:14px;display:block;margin:12px auto;}
.article-body a,.bbc-content a{text-decoration-thickness:2px;text-underline-offset:3px;}
.share-box{display:flex;align-items:center;flex-wrap:wrap;gap:8px;}
.share-copy-btn{border:1px solid rgba(96,165,250,.45);background:rgba(37,99,235,.16);color:#dbeafe;border-radius:999px;padding:8px 12px;font-weight:800;cursor:pointer;}
.reaction-box{display:flex;flex-wrap:wrap;gap:8px;}
.reaction-box button{border-radius:999px;padding:8px 12px;}
.comments-shell,.ag-related-posts,.edit-request-box,.viral-actions{content-visibility:auto;contain-intrinsic-size:1px 520px;}
.ag-related-grid{align-items:stretch;}
.ag-related-card{min-width:0;}
.ag-related-card h3,.ag-related-card p{overflow-wrap:anywhere;}
.ag-related-cover img{aspect-ratio:16/9;object-fit:contain;background:#0f172a;}
.ag-footer-card,.widget{content-visibility:auto;contain-intrinsic-size:1px 360px;}
.ag-widget-badges li{border-bottom:1px solid rgba(148,163,184,.35)!important;}
.ag-widget-badges li:last-child{border-bottom:0!important;}
@media(max-width:900px){
  .layout,.content-grid,.main-grid,.ag-layout{grid-template-columns:1fr!important;}
  .sidebar,.ag-sidebar{width:100%!important;max-width:100%!important;}
}
@media(max-width:700px){
  body.ag-body{font-size:16px;}
  .topbar{padding:6px 10px!important;gap:6px!important;}
  .logo{font-size:15px!important;max-width:calc(100vw - 112px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  .logo.logo-img img{max-width:150px;height:auto;}
  .menu-btn{padding:8px 10px!important;border-radius:12px!important;font-size:14px!important;}
  #mainMenu{max-height:calc(100dvh - 58px);overflow:auto;overscroll-behavior:contain;}
  #mainMenu a{font-size:16px!important;padding:12px 14px!important;}
  .single{padding:0 8px!important;margin:10px auto!important;}
  .single-post{padding:12px!important;border-radius:15px!important;}
  .single-post h1{font-size:clamp(22px,6.1vw,30px)!important;line-height:1.16!important;letter-spacing:-.015em!important;margin:10px 0 6px!important;}
  .single-cover{max-height:220px!important;object-fit:contain!important;}
  .post-status-line{gap:6px!important;margin:8px 0!important;}
  .ag-reading-meta{margin:7px 0 10px!important;font-size:12.5px!important;}
  .ag-breadcrumbs{display:flex!important;white-space:nowrap!important;overflow-x:auto!important;flex-wrap:nowrap!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch!important;}
  .ag-breadcrumbs::-webkit-scrollbar{display:none!important;}
  .ag-breadcrumbs a,.ag-breadcrumbs strong{flex:0 0 auto!important;max-width:68vw!important;}
  .ag-post-author-card{padding:9px!important;border-radius:13px!important;margin:8px 0 10px!important;}
  .ag-post-author-avatar img{width:44px!important;height:44px!important;}
  .ag-user-badges-post{gap:5px!important;margin-top:6px!important;}
  .ag-author-badge-mini{width:28px!important;height:28px!important;}
  .post-tools{margin:8px 0!important;}
  .post-tools .btn,.post-tools button,.share-box a,.share-copy-btn,.reaction-box button{min-height:42px!important;font-size:14px!important;}
  .single-post .article-body,.single-post .bbc-content{font-size:16px!important;line-height:1.56!important;}
  .single-post .article-body p,.single-post .bbc-content p{margin:.58em 0!important;}
  .single-post .article-body :is(h2,h3,h4),.single-post .bbc-content :is(h2,h3,h4){margin:1.05em 0 .45em!important;}
  .article-body img,.bbc-content img{max-height:360px;object-fit:contain;}
  .viral-actions{padding:12px!important;border-radius:15px!important;gap:10px!important;}
  .share-box strong{width:100%;}
  .share-box a,.share-copy-btn{flex:1 1 calc(50% - 8px);}
  .reaction-box button{flex:1 1 100%;justify-content:center;}
  .comments-header{display:grid!important;gap:8px!important;}
  .comment-card{grid-template-columns:38px minmax(0,1fr)!important;padding:10px!important;}
  .comment-avatar img{width:38px!important;height:38px!important;}
  .comment-content header{gap:5px!important;line-height:1.35!important;}
  .ag-related-grid{grid-template-columns:1fr!important;gap:10px!important;}
  .ag-related-card{display:grid!important;grid-template-columns:108px minmax(0,1fr)!important;gap:10px!important;padding:10px!important;}
  .ag-related-cover img{height:72px!important;width:108px!important;}
  .ag-related-card h3{font-size:15px!important;line-height:1.25!important;margin:0 0 4px!important;}
  .ag-related-card p{display:none!important;}
  .widget{padding:14px!important;margin-bottom:12px!important;}
  .widget h3{font-size:18px!important;line-height:1.2!important;}
  .ag-widget-badges .user-mini{grid-template-columns:42px minmax(0,1fr)!important;grid-template-areas:"icon user" "icon badge"!important;}
  .ag-widget-badges .user-mini span:not(.ag-mini-medal){font-size:15px!important;line-height:1.2!important;}
  .ag-widget-badges .user-mini small{font-size:13px!important;line-height:1.25!important;white-space:normal!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;}
  .ag-footer-wrap{padding:0 10px!important;}
  .ag-footer-card{padding:14px!important;border-radius:16px!important;}
}
@media(max-width:390px){
  .single{padding:0 6px!important;}
  .single-post{padding:10px!important;}
  .single-cover{max-height:190px!important;}
  .share-box a,.share-copy-btn{flex-basis:100%;}
  .ag-related-card{grid-template-columns:92px minmax(0,1fr)!important;}
  .ag-related-cover img{width:92px!important;height:64px!important;}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.001ms!important;}}

/* ========================================================================== 
   RadioaficionadosClub v91 - Corrección menú escritorio/móvil
   Autor: Rodrigo Reyes / RadioaficionadosClub.cl
   Fecha: 30-06-2026
   Problema corregido:
   - En escritorio podía quedar aplicado el estilo móvil del menú por reglas duplicadas
     y clases JS (.open/.show/.active) persistentes.
   Solución:
   - Desde 901px hacia arriba se fuerza menú horizontal real.
   - Se oculta botón móvil y overlay.
   - Se anulan position:fixed, width:100%, fondo de panel móvil y dirección columna.
   ========================================================================== */
@media (min-width:901px){
  body.ag-body.menu-is-open{overflow:auto!important;}
  .site-header .topbar{
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:18px!important;
    position:relative!important;
  }
  .site-header .menu-btn,
  #menuBtn{
    display:none!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }
  .site-header .menu-overlay,
  #menuOverlay{
    display:none!important;
    visibility:hidden!important;
  }
  .site-header nav,
  .site-header #mainMenu,
  #mainMenu{
    display:flex!important;
    position:static!important;
    inset:auto!important;
    left:auto!important;
    right:auto!important;
    top:auto!important;
    width:auto!important;
    max-width:none!important;
    max-height:none!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
    flex:0 1 auto!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:12px!important;
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
  .site-header nav a,
  .site-header #mainMenu a,
  #mainMenu a{
    width:auto!important;
    min-height:40px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:8px 10px!important;
    margin:0!important;
    border-radius:9px!important;
    background:transparent!important;
    color:#e5e7eb!important;
    white-space:nowrap!important;
  }
  .site-header nav a:hover,
  .site-header #mainMenu a:hover,
  #mainMenu a:hover,
  .site-header nav a.active,
  .site-header #mainMenu a.active,
  #mainMenu a.active{
    background:rgba(56,189,248,.16)!important;
    color:#fff!important;
  }
  .site-header .nav-publish,
  #mainMenu .nav-publish{
    background:#2563eb!important;
    color:#fff!important;
    padding:8px 12px!important;
  }
  .nav-bell{position:relative!important;}
  .nav-bell-menu{
    position:absolute!important;
    right:0!important;
    top:calc(100% + 8px)!important;
    width:min(340px,90vw)!important;
  }
}

/* En tablets grandes se mantiene menú de escritorio para evitar falso menú móvil. */
@media (min-width:821px) and (max-width:900px){
  body.ag-body.menu-is-open{overflow:auto!important;}
  .site-header .topbar{flex-wrap:nowrap!important;align-items:center!important;}
  .site-header .menu-btn,#menuBtn{display:none!important;visibility:hidden!important;pointer-events:none!important;}
  .site-header .menu-overlay,#menuOverlay{display:none!important;visibility:hidden!important;}
  .site-header nav,.site-header #mainMenu,#mainMenu{
    display:flex!important;position:static!important;inset:auto!important;width:auto!important;margin:0!important;padding:0!important;overflow:visible!important;
    flex-direction:row!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;
  }
  .site-header nav a,.site-header #mainMenu a,#mainMenu a{width:auto!important;min-height:38px!important;padding:7px 8px!important;background:transparent!important;white-space:nowrap!important;font-size:13px!important;}
  .site-header .nav-publish,#mainMenu .nav-publish{background:#2563eb!important;color:#fff!important;}
}

/* Menú móvil solo desde 820px hacia abajo. */
@media (max-width:820px){
  .site-header .menu-btn,#menuBtn{display:inline-flex!important;}
}

/* ========================================================================== 
   RadioaficionadosClub v92 - Header profesional: logo arriba, menú debajo
   Autor: Rodrigo Reyes / RadioaficionadosClub.cl
   Fecha: 30-06-2026
   Objetivo:
   - Evitar que el menú de escritorio ocupe demasiado espacio horizontal.
   - Mantener una navegación profesional, compacta y centrada debajo del logo.
   - Conservar menú móvil solo en pantallas pequeñas.
   ========================================================================== */
@media (min-width:821px){
  .header-pro-v92.site-header{background:linear-gradient(135deg,#061a39,#082b61)!important;}
  .header-pro-v92 .topbar{
    max-width:1240px!important;
    width:100%!important;
    margin:0 auto!important;
    padding:10px 22px 9px!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    align-items:center!important;
    justify-items:center!important;
    gap:8px!important;
    position:relative!important;
  }
  .header-pro-v92 .header-brand-row{
    width:100%!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:0!important;
    position:relative!important;
  }
  .header-pro-v92 .logo{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:38px!important;
    line-height:1!important;
    text-align:center!important;
    font-size:clamp(23px,2.2vw,30px)!important;
    letter-spacing:.2px!important;
    white-space:nowrap!important;
  }
  .header-pro-v92 .logo.logo-img img{
    width:auto!important;
    max-width:min(260px,42vw)!important;
    height:auto!important;
    max-height:54px!important;
    object-fit:contain!important;
    display:block!important;
  }
  .header-pro-v92 .menu-btn,
  .header-pro-v92 #menuBtn{
    display:none!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }
  .header-pro-v92 .menu-overlay,
  .header-pro-v92 #menuOverlay{
    display:none!important;
    visibility:hidden!important;
  }
  .header-pro-v92 nav,
  .header-pro-v92 #mainMenu,
  .header-pro-v92 .topbar #mainMenu{
    width:100%!important;
    max-width:100%!important;
    display:flex!important;
    position:static!important;
    inset:auto!important;
    margin:0!important;
    padding:3px 0 0!important;
    flex:initial!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:center!important;
    flex-wrap:wrap!important;
    gap:6px!important;
    overflow:visible!important;
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
  .header-pro-v92 nav a,
  .header-pro-v92 #mainMenu a{
    width:auto!important;
    min-height:34px!important;
    padding:7px 10px!important;
    margin:0!important;
    border-radius:999px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    background:rgba(255,255,255,.055)!important;
    color:#eef6ff!important;
    font-size:14px!important;
    font-weight:850!important;
    line-height:1.1!important;
    white-space:nowrap!important;
    box-shadow:none!important;
  }
  .header-pro-v92 nav a:hover,
  .header-pro-v92 #mainMenu a:hover,
  .header-pro-v92 nav a.active,
  .header-pro-v92 #mainMenu a.active{
    background:rgba(56,189,248,.22)!important;
    color:#fff!important;
  }
  .header-pro-v92 .nav-publish,
  .header-pro-v92 #mainMenu .nav-publish,
  .header-pro-v92 .btn-small{
    background:#2563eb!important;
    color:#fff!important;
    border-radius:999px!important;
    padding-left:13px!important;
    padding-right:13px!important;
  }
  .header-pro-v92 .nav-bell{position:relative!important;}
  .header-pro-v92 .nav-bell summary{
    min-height:34px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:7px 10px!important;
    border-radius:999px!important;
    background:rgba(255,255,255,.055)!important;
    cursor:pointer!important;
  }
  .header-pro-v92 .nav-bell-menu{
    position:absolute!important;
    top:calc(100% + 10px)!important;
    right:50%!important;
    transform:translateX(50%)!important;
    width:min(360px,92vw)!important;
    z-index:80!important;
  }
}

@media (min-width:821px) and (max-width:1040px){
  .header-pro-v92 .topbar{padding-left:14px!important;padding-right:14px!important;}
  .header-pro-v92 nav,
  .header-pro-v92 #mainMenu{gap:5px!important;}
  .header-pro-v92 nav a,
  .header-pro-v92 #mainMenu a{
    min-height:32px!important;
    padding:6px 8px!important;
    font-size:13px!important;
  }
}

@media (max-width:820px){
  .header-pro-v92 .topbar{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    flex-wrap:wrap!important;
  }
  .header-pro-v92 .header-brand-row{
    width:100%!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    min-width:0!important;
  }
  .header-pro-v92 .logo{min-width:0!important;}
  .header-pro-v92 .logo.logo-img img{max-width:150px!important;max-height:46px!important;object-fit:contain!important;}
}

/* RadioaficionadosClub v93 - Moderación directa de respuestas */
.comment-mod-box{
  margin-top:10px;
  border:1px solid rgba(220,38,38,.18);
  border-radius:14px;
  background:#fff7f7;
  padding:8px 10px;
  font-size:.92rem;
}
.comment-mod-box summary{
  cursor:pointer;
  font-weight:700;
  color:#991b1b;
  min-height:38px;
  display:flex;
  align-items:center;
}
.comment-mod-box form{
  display:grid;
  gap:10px;
  margin-top:8px;
}
.comment-mod-box label{
  display:grid;
  gap:4px;
  color:#374151;
  font-weight:600;
}
.comment-mod-box input[type="text"],
.comment-mod-box select{
  width:100%;
  min-height:42px;
  border:1px solid #d1d5db;
  border-radius:10px;
  padding:8px 10px;
  font:inherit;
  background:#fff;
}
.comment-mod-box .mod-check{
  display:flex;
  align-items:flex-start;
  gap:8px;
  line-height:1.35;
}
.comment-mod-box .btn.danger{
  justify-self:start;
  min-height:42px;
  border:0;
  border-radius:999px;
  background:#b91c1c;
  color:#fff;
  padding:9px 16px;
  font-weight:800;
}
@media (max-width: 640px){
  .comment-mod-box{padding:8px;margin-right:0}
  .comment-mod-box .btn.danger{width:100%;justify-self:stretch}
}

/* RadioaficionadosClub.cl v95 - Cabecera profesional editable desde administración
   Autor: Rodrigo Reyes / RadioaficionadosClub.cl
   Objetivo: Logo + título arriba y menú debajo para evitar que el menú de administrador se alargue en escritorio. */
.header-pro-v95.site-header{position:sticky;top:0;z-index:80;background:linear-gradient(180deg,#07182d 0%,#07111f 100%)!important;border-bottom:1px solid rgba(59,130,246,.28);box-shadow:0 16px 36px rgba(0,0,0,.34)}
.header-pro-v95 .ag-header-shell{max-width:1320px;margin:0 auto;padding:0;display:block!important}
.header-pro-v95 .ag-brand-top{min-height:112px;padding:18px 26px 16px;display:flex;align-items:center;justify-content:space-between;gap:16px;background:radial-gradient(circle at 18% 0%,rgba(37,99,235,.30),transparent 36%),linear-gradient(90deg,#06182e,#0a2444 52%,#07111f);border-bottom:1px solid rgba(255,255,255,.08)}
.header-pro-v95 .ag-brand-link{display:flex;align-items:center;gap:18px;min-width:0;color:#fff;text-decoration:none}
.header-pro-v95 .ag-brand-logo{width:84px;height:84px;flex:0 0 84px;border-radius:50%;display:grid;place-items:center;background:#fff;border:3px solid rgba(147,197,253,.9);box-shadow:0 14px 32px rgba(0,0,0,.32),0 0 0 8px rgba(37,99,235,.10);overflow:hidden}
.header-pro-v95 .ag-brand-logo img{width:100%;height:100%;object-fit:contain;padding:4px;border-radius:50%}
.header-pro-v95 .ag-logo-fallback{font-weight:950;font-size:28px;color:#0b5eb8;letter-spacing:-.04em}
.header-pro-v95 .ag-brand-text{display:flex;flex-direction:column;gap:3px;min-width:0;text-transform:uppercase;line-height:1}
.header-pro-v95 .ag-brand-text strong{font-size:clamp(2rem,5vw,4.25rem);font-weight:950;letter-spacing:-.045em;color:#fff;text-shadow:0 4px 18px rgba(0,0,0,.35);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:880px}
.header-pro-v95 .ag-brand-text strong::first-letter{color:#38bdf8}
.header-pro-v95 .ag-brand-text small{font-size:clamp(.86rem,1.5vw,1.25rem);font-weight:800;letter-spacing:.035em;color:#c6d8f1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:780px}
.header-pro-v95 .ag-main-nav{min-height:58px;padding:9px 18px;display:flex;align-items:center;justify-content:center;gap:10px;background:rgba(3,7,18,.82);backdrop-filter:blur(10px);border-top:1px solid rgba(255,255,255,.04);overflow:visible}
.header-pro-v95 .ag-main-nav a,.header-pro-v95 .ag-main-nav summary{min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:9px 14px;border-radius:999px;color:#f8fafc!important;font-weight:900;letter-spacing:.01em;text-decoration:none;border:1px solid transparent;transition:background .16s ease,border-color .16s ease,transform .16s ease;white-space:nowrap}
.header-pro-v95 .ag-main-nav a:hover,.header-pro-v95 .ag-main-nav summary:hover{background:rgba(59,130,246,.16);border-color:rgba(147,197,253,.22);transform:translateY(-1px)}
.header-pro-v95 .ag-main-nav a.active{background:linear-gradient(180deg,#0d8cff,#065fc3);border-color:rgba(147,197,253,.35);box-shadow:0 8px 18px rgba(13,140,255,.26)}
.header-pro-v95 .ag-main-nav .nav-publish{background:linear-gradient(180deg,#1d8bff,#075dcc);border-color:rgba(147,197,253,.35);box-shadow:0 9px 18px rgba(29,139,255,.22)}
.header-pro-v95 .nav-bell{position:relative}
.header-pro-v95 .nav-bell summary{list-style:none;cursor:pointer;background:rgba(255,255,255,.06)}
.header-pro-v95 .nav-bell summary::-webkit-details-marker{display:none}
.header-pro-v95 .nav-bell summary span{position:absolute;top:-5px;right:-3px;background:#ef4444;color:#fff;min-width:20px;height:20px;border-radius:999px;display:grid;place-items:center;font-size:11px;font-weight:950;border:2px solid #07111f}
.header-pro-v95 .nav-bell-menu{right:0;top:calc(100% + 9px);border-radius:16px;border:1px solid rgba(148,163,184,.28);box-shadow:0 20px 45px rgba(0,0,0,.36)}
.header-pro-v95 .menu-btn{display:none;align-items:center;gap:9px;background:linear-gradient(180deg,#1d8bff,#075dcc);border:1px solid rgba(147,197,253,.38);border-radius:12px;color:#fff;padding:11px 14px;font-weight:950;box-shadow:0 10px 24px rgba(0,0,0,.22)}
.header-pro-v95 .menu-icon,.header-pro-v95 .menu-icon::before,.header-pro-v95 .menu-icon::after{display:block;width:20px;height:2px;background:#fff;border-radius:999px;content:'';position:relative}.header-pro-v95 .menu-icon::before{position:absolute;top:-7px}.header-pro-v95 .menu-icon::after{position:absolute;top:7px}

/* Portada/hero de inicio acorde al nuevo diseño */
body:not(.ag-admin-body) .ag-hero.featured-strip{max-width:1320px;min-height:360px;margin:0 auto 22px!important;padding:58px 40px!important;border-radius:0 0 18px 18px!important;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(90deg,rgba(2,6,23,.94),rgba(7,24,45,.78) 44%,rgba(2,6,23,.25)),radial-gradient(circle at 78% 45%,rgba(59,130,246,.35),transparent 22%),linear-gradient(135deg,#061327,#0b315f 58%,#0f172a)!important;border:1px solid rgba(147,197,253,.18);box-shadow:0 20px 48px rgba(2,8,23,.28)}
body:not(.ag-admin-body) .ag-hero.featured-strip::before{content:'';position:absolute;inset:0;background:linear-gradient(115deg,rgba(2,6,23,.10),rgba(2,6,23,.88) 0 45%,transparent 46%),repeating-linear-gradient(115deg,rgba(255,255,255,.05) 0 1px,transparent 1px 42px);opacity:.45;pointer-events:none}
body:not(.ag-admin-body) .ag-hero.featured-strip::after{content:'Portal informativo';position:absolute;right:42px;bottom:34px;min-width:190px;height:118px;border-radius:20px;background:linear-gradient(180deg,#111827,#020617);border:1px solid rgba(147,197,253,.32);box-shadow:0 24px 52px rgba(0,0,0,.35),inset 0 0 0 9px rgba(255,255,255,.04);display:grid;place-items:center;color:#60a5fa;font-size:28px;font-weight:950;letter-spacing:.04em;text-shadow:0 0 16px rgba(96,165,250,.8);transform:rotate(-2deg)}
body:not(.ag-admin-body) .ag-hero .hero-copy{position:relative;z-index:2;max-width:720px}
body:not(.ag-admin-body) .ag-hero .hero-copy strong{display:inline-block;margin-bottom:12px;padding:7px 12px;border-radius:999px;background:rgba(14,165,233,.16);border:1px solid rgba(96,165,250,.35);color:#93c5fd!important;font-weight:950;letter-spacing:.08em;font-size:.82rem}
body:not(.ag-admin-body) .ag-hero .hero-copy h1{margin:0 0 10px!important;font-size:clamp(2rem,4.8vw,4rem)!important;line-height:.98;color:#fff!important;text-transform:uppercase;letter-spacing:-.04em;text-shadow:0 5px 22px rgba(0,0,0,.45)}
body:not(.ag-admin-body) .ag-hero .hero-copy p{max-width:650px;margin:0;color:#e2e8f0!important;font-size:clamp(1rem,1.55vw,1.22rem);line-height:1.6}
body:not(.ag-admin-body) .ag-hero .hero-btn{position:relative;z-index:2;align-self:flex-end;margin-right:250px;background:linear-gradient(180deg,#1d8bff,#075dcc);color:#fff!important;border:1px solid rgba(147,197,253,.35);border-radius:14px;padding:14px 22px;font-weight:950;box-shadow:0 14px 28px rgba(29,139,255,.22)}

@media(max-width:980px){
  .header-pro-v95 .ag-brand-top{min-height:88px;padding:13px 15px}.header-pro-v95 .ag-brand-logo{width:58px;height:58px;flex-basis:58px}.header-pro-v95 .ag-brand-text strong{font-size:clamp(1.55rem,6vw,2.4rem);max-width:calc(100vw - 170px)}.header-pro-v95 .ag-brand-text small{font-size:.76rem;max-width:calc(100vw - 170px)}.header-pro-v95 .menu-btn{display:inline-flex}.header-pro-v95 .ag-main-nav{display:none!important;position:absolute;left:12px;right:12px;top:calc(100% + 8px);max-height:calc(100vh - 130px);overflow:auto;display:none;flex-direction:column;align-items:stretch;justify-content:flex-start;padding:12px;background:#07111f;border:1px solid rgba(147,197,253,.24);border-radius:18px;box-shadow:0 24px 60px rgba(0,0,0,.45)}.header-pro-v95 .ag-main-nav.open,.header-pro-v95 .ag-main-nav.show,.header-pro-v95 .ag-main-nav.active{display:flex!important}.header-pro-v95 .ag-main-nav a,.header-pro-v95 .ag-main-nav summary{justify-content:flex-start;width:100%;border-radius:12px}.header-pro-v95 .nav-bell-menu{position:static;margin-top:8px;width:100%;box-shadow:none}.menu-is-open .menu-overlay{position:fixed;inset:0;background:rgba(0,0,0,.48);z-index:-1}body:not(.ag-admin-body) .ag-hero.featured-strip{min-height:300px;padding:34px 18px!important;margin-left:10px!important;margin-right:10px!important;border-radius:18px!important;display:block}body:not(.ag-admin-body) .ag-hero.featured-strip::after{right:18px;bottom:18px;min-width:120px;height:76px;font-size:18px;opacity:.72}body:not(.ag-admin-body) .ag-hero .hero-btn{margin:20px 0 0;display:inline-flex}}
@media(max-width:560px){.header-pro-v95 .ag-brand-top{min-height:76px}.header-pro-v95 .ag-brand-logo{width:50px;height:50px;flex-basis:50px}.header-pro-v95 .ag-brand-link{gap:10px}.header-pro-v95 .ag-brand-text strong{font-size:1.35rem;letter-spacing:-.03em}.header-pro-v95 .ag-brand-text small{font-size:.68rem}.header-pro-v95 .menu-btn span:last-child{display:none}.header-pro-v95 .menu-btn{padding:11px 12px}body:not(.ag-admin-body) .ag-hero.featured-strip{min-height:280px;padding:28px 16px!important}body:not(.ag-admin-body) .ag-hero .hero-copy h1{font-size:2rem!important}body:not(.ag-admin-body) .ag-hero .hero-copy p{font-size:.96rem}body:not(.ag-admin-body) .ag-hero.featured-strip::after{display:none}}

/* RadioaficionadosClub.cl v96 - Ajuste profesional de proporciones escritorio
   Autor: Rodrigo Reyes / RadioaficionadosClub.cl
   Objetivo: mantener logo y título editables desde administración, pero reducir tamaño visual en escritorio.
   La versión móvil conserva el comportamiento de v95 porque se veía correctamente. */
@media (min-width:981px){
  .header-pro-v95.site-header{
    box-shadow:0 10px 26px rgba(0,0,0,.28)!important;
  }
  .header-pro-v95 .ag-header-shell{
    max-width:1280px!important;
  }
  .header-pro-v95 .ag-brand-top{
    min-height:82px!important;
    padding:12px 22px 11px!important;
    align-items:center!important;
  }
  .header-pro-v95 .ag-brand-link{
    gap:14px!important;
  }
  .header-pro-v95 .ag-brand-logo{
    width:62px!important;
    height:62px!important;
    flex:0 0 62px!important;
    border-width:2px!important;
    box-shadow:0 10px 22px rgba(0,0,0,.26),0 0 0 6px rgba(37,99,235,.08)!important;
  }
  .header-pro-v95 .ag-brand-logo img{
    padding:3px!important;
  }
  .header-pro-v95 .ag-brand-text{
    gap:2px!important;
  }
  .header-pro-v95 .ag-brand-text strong{
    font-size:clamp(2rem,3.2vw,3.15rem)!important;
    letter-spacing:-.035em!important;
    max-width:min(760px,72vw)!important;
    line-height:.95!important;
  }
  .header-pro-v95 .ag-brand-text small{
    font-size:clamp(.76rem,1.05vw,.98rem)!important;
    letter-spacing:.045em!important;
    max-width:min(700px,68vw)!important;
    color:#cbd8ec!important;
  }
  .header-pro-v95 .ag-main-nav{
    min-height:50px!important;
    padding:7px 16px!important;
    gap:8px!important;
  }
  .header-pro-v95 .ag-main-nav a,
  .header-pro-v95 .ag-main-nav summary{
    min-height:35px!important;
    padding:7px 12px!important;
    font-size:.92rem!important;
    font-weight:850!important;
    border-radius:13px!important;
  }
  .header-pro-v95 .ag-main-nav .nav-publish{
    border-radius:13px!important;
  }
  .header-pro-v95 .nav-bell summary span{
    min-width:18px!important;
    height:18px!important;
    font-size:10px!important;
  }

  body:not(.ag-admin-body) .ag-hero.featured-strip{
    max-width:1280px!important;
    min-height:300px!important;
    margin:0 auto 20px!important;
    padding:42px 38px!important;
    border-radius:0 0 16px 16px!important;
  }
  body:not(.ag-admin-body) .ag-hero.featured-strip::after{
    right:36px!important;
    bottom:28px!important;
    min-width:160px!important;
    height:92px!important;
    border-radius:16px!important;
    font-size:23px!important;
  }
  body:not(.ag-admin-body) .ag-hero .hero-copy{
    max-width:640px!important;
  }
  body:not(.ag-admin-body) .ag-hero .hero-copy strong{
    margin-bottom:10px!important;
    padding:6px 11px!important;
    font-size:.76rem!important;
  }
  body:not(.ag-admin-body) .ag-hero .hero-copy h1{
    font-size:clamp(2rem,4vw,3.15rem)!important;
    line-height:1.02!important;
    letter-spacing:-.035em!important;
    max-width:620px!important;
  }
  body:not(.ag-admin-body) .ag-hero .hero-copy p{
    max-width:610px!important;
    font-size:clamp(.98rem,1.25vw,1.08rem)!important;
    line-height:1.55!important;
  }
  body:not(.ag-admin-body) .ag-hero .hero-btn{
    margin-right:210px!important;
    padding:12px 19px!important;
    border-radius:13px!important;
    font-size:.95rem!important;
  }
}

@media (min-width:981px) and (max-width:1180px){
  .header-pro-v95 .ag-brand-text strong{font-size:clamp(1.75rem,3.2vw,2.55rem)!important;max-width:650px!important;}
  .header-pro-v95 .ag-main-nav{justify-content:flex-start!important;overflow-x:auto!important;scrollbar-width:thin!important;}
  .header-pro-v95 .ag-main-nav a,.header-pro-v95 .ag-main-nav summary{font-size:.86rem!important;padding-left:10px!important;padding-right:10px!important;}
  body:not(.ag-admin-body) .ag-hero .hero-copy h1{font-size:clamp(1.9rem,3.7vw,2.8rem)!important;}
  body:not(.ag-admin-body) .ag-hero .hero-btn{margin-right:170px!important;}
}


/* Mejora buscador: bloque "Te puede interesar" para visitas redirigidas desde rutas antiguas /foro y /blog. */
.search-interest{margin-top:18px}
.interest-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
@media (max-width: 900px){.interest-grid{grid-template-columns:1fr}}


/* QSL Studio PRO - tarjetas de proyectos guardados */
.qsl-project-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;margin-top:14px}.qsl-project-card{border:1px solid rgba(148,163,184,.24);border-radius:18px;overflow:hidden;background:var(--card-bg,#fff);box-shadow:0 10px 28px rgba(15,23,42,.08)}.qsl-project-thumb{aspect-ratio:14/9;background:linear-gradient(135deg,#0f172a,#334155);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:32px}.qsl-project-thumb img{width:100%;height:100%;object-fit:cover;display:block}.qsl-project-info{padding:14px}.qsl-project-info h3{margin:0 0 6px}.qsl-project-info p{margin:0 0 12px;color:var(--muted,#64748b);font-size:.92rem}.qsl-project-card .row-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.qsl-project-card form{display:inline}.qsl-project-card button,.qsl-project-card .btn-small{border:0;border-radius:999px;padding:8px 12px;background:#e2e8f0;color:#0f172a;text-decoration:none;cursor:pointer}.qsl-project-card .danger{background:#fee2e2;color:#991b1b}@media(max-width:640px){.qsl-project-grid{grid-template-columns:1fr}.qsl-project-card .row-actions>*{flex:1;text-align:center}.qsl-project-card button,.qsl-project-card .btn-small{width:100%}}

/* ==========================================================
   QSL Studio PRO - Mis proyectos diseño v2
   RadioaficionadosClub.cl / Rodrigo Reyes
   Objetivo: mejorar /qsl/mis-proyectos y navegación hacia editor.
   ========================================================== */
.qsl-projects-pro{display:grid;gap:22px;padding-top:18px;padding-bottom:40px}.qsl-dashboard-hero{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,.9fr);gap:18px;align-items:stretch;border:1px solid rgba(59,130,246,.24);border-radius:24px;padding:24px;background:radial-gradient(circle at 20% 0%,rgba(59,130,246,.24),transparent 34%),linear-gradient(135deg,#061327,#0b315f 62%,#0f172a);color:#fff;box-shadow:0 20px 48px rgba(2,8,23,.20);overflow:hidden}.qsl-hero-copy h1{margin:8px 0 8px;font-size:clamp(2rem,4vw,3.4rem);line-height:.96;letter-spacing:-.045em}.qsl-hero-copy p{margin:0;max-width:720px;color:#dbeafe;font-size:1.05rem}.qsl-pill,.qsl-section-label{display:inline-flex;align-items:center;width:max-content;border-radius:999px;padding:7px 11px;font-size:.78rem;font-weight:950;text-transform:uppercase;letter-spacing:.06em}.qsl-pill{background:rgba(56,189,248,.16);border:1px solid rgba(125,211,252,.34);color:#e0f2fe}.qsl-section-label{background:#e0f2fe;color:#075985}.qsl-hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.qsl-primary-action,.qsl-secondary-action,.qsl-mini-primary{display:inline-flex;align-items:center;justify-content:center;min-height:42px;border-radius:999px;padding:10px 16px;font-weight:950;text-decoration:none;border:0;cursor:pointer}.qsl-primary-action{background:linear-gradient(180deg,#1d8bff,#075dcc);color:#fff!important;box-shadow:0 12px 24px rgba(29,139,255,.24)}.qsl-secondary-action{background:rgba(255,255,255,.12);color:#fff!important;border:1px solid rgba(255,255,255,.22)}.qsl-projects-card .qsl-secondary-action,.qsl-profile-card .qsl-secondary-action{background:#eef6ff;color:#075dcc!important;border:1px solid #bfdbfe}.qsl-hero-stats{display:grid;gap:10px}.qsl-hero-stats div{border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.09);border-radius:18px;padding:16px;backdrop-filter:blur(8px)}.qsl-hero-stats strong{display:block;font-size:clamp(1.35rem,3vw,2.2rem);font-weight:950;line-height:1;color:#fff}.qsl-hero-stats span{display:block;margin-top:6px;color:#bfdbfe;font-weight:800}.qsl-profile-card,.qsl-projects-card{border:1px solid rgba(148,163,184,.22);border-radius:22px;background:var(--card-bg,#fff);padding:20px;box-shadow:0 14px 34px rgba(15,23,42,.08)}.qsl-card-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:16px}.qsl-card-head h2{margin:7px 0 4px;font-size:1.55rem;letter-spacing:-.025em}.qsl-card-head p{margin:0;color:var(--muted,#64748b)}.qsl-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.qsl-profile-grid label{display:grid;gap:6px;color:#334155;font-weight:850}.qsl-profile-grid input{min-height:44px;border:1px solid #cbd5e1;border-radius:12px;padding:10px 12px;background:#fff;color:#0f172a;font:inherit}.qsl-check{display:flex!important;align-items:center;gap:9px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:10px 12px}.qsl-check input{min-height:auto}.qsl-form-actions{grid-column:1/-1;display:flex;justify-content:flex-end}.qsl-empty-state{display:grid;place-items:start;gap:8px;border:1px dashed #93c5fd;border-radius:18px;background:linear-gradient(180deg,#eff6ff,#fff);padding:22px}.qsl-empty-state strong{font-size:1.2rem;color:#0f172a}.qsl-empty-state p{margin:0;color:#475569}.qsl-project-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:18px;margin-top:14px}.qsl-project-card{border:1px solid rgba(148,163,184,.24);border-radius:20px;overflow:hidden;background:var(--card-bg,#fff);box-shadow:0 12px 30px rgba(15,23,42,.09);transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.qsl-project-card:hover{transform:translateY(-3px);box-shadow:0 18px 40px rgba(15,23,42,.13);border-color:rgba(59,130,246,.35)}.qsl-project-thumb{aspect-ratio:14/9;background:radial-gradient(circle at 25% 20%,rgba(56,189,248,.35),transparent 30%),linear-gradient(135deg,#0f172a,#1e3a8a 62%,#334155);display:flex;align-items:center;justify-content:center;color:#fff!important;font-weight:950;font-size:32px;text-decoration:none}.qsl-project-thumb img{width:100%;height:100%;object-fit:cover;display:block}.qsl-project-info{padding:15px}.qsl-project-info h3{margin:0 0 7px;font-size:1.1rem;color:#0f172a}.qsl-project-info p{margin:0 0 13px;color:var(--muted,#64748b);font-size:.92rem}.qsl-card-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.qsl-card-actions form{display:inline}.qsl-card-actions button,.qsl-card-actions a{min-height:38px;border:0;border-radius:999px;padding:8px 12px;background:#e2e8f0;color:#0f172a;text-decoration:none;cursor:pointer;font-weight:850}.qsl-mini-primary{background:#0d8cff!important;color:#fff!important}.qsl-card-actions .danger{background:#fee2e2;color:#991b1b}@media(max-width:760px){.qsl-dashboard-hero{grid-template-columns:1fr;padding:18px;border-radius:20px}.qsl-hero-actions a{width:100%}.qsl-profile-grid{grid-template-columns:1fr}.qsl-card-head{display:grid}.qsl-card-head>.qsl-secondary-action{width:100%}.qsl-project-grid{grid-template-columns:1fr}.qsl-card-actions>*{flex:1;text-align:center}.qsl-card-actions button,.qsl-card-actions a{width:100%}.qsl-form-actions{justify-content:stretch}.qsl-form-actions .qsl-primary-action{width:100%}}

/* ==========================================================
   RadioaficionadosClub.cl - Menú compacto profesional v2
   Agrupa Herramientas y Perfil sin alargar el menú principal.
   ========================================================== */
.header-pro-v95 .ag-main-nav-pro{
  position:relative;
  flex-wrap:wrap;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  padding:8px 14px!important;
}
.header-pro-v95 .ag-nav-dropdown{
  position:relative;
  display:inline-flex;
  align-items:center;
  z-index:25;
}
.header-pro-v95 .ag-nav-dropdown > summary{
  list-style:none;
  cursor:pointer;
  user-select:none;
  position:relative;
  padding-right:30px!important;
  background:rgba(255,255,255,.045);
  border-color:rgba(148,163,184,.16)!important;
}
.header-pro-v95 .ag-nav-dropdown > summary::-webkit-details-marker{display:none}
.header-pro-v95 .ag-nav-dropdown > summary::after{
  content:'⌄';
  position:absolute;
  right:11px;
  top:50%;
  transform:translateY(-50%);
  font-size:.85rem;
  opacity:.82;
  transition:transform .16s ease;
}
.header-pro-v95 .ag-nav-dropdown[open] > summary::after{transform:translateY(-50%) rotate(180deg)}
.header-pro-v95 .ag-nav-dropdown > summary.active{
  background:linear-gradient(180deg,rgba(29,139,255,.95),rgba(7,93,204,.95));
  border-color:rgba(147,197,253,.38)!important;
  box-shadow:0 10px 20px rgba(29,139,255,.20);
}
.header-pro-v95 .ag-dropdown-menu{
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  min-width:220px;
  display:grid;
  gap:6px;
  padding:10px;
  border-radius:18px;
  background:linear-gradient(180deg,#0b1628,#07111f);
  border:1px solid rgba(147,197,253,.24);
  box-shadow:0 24px 60px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.05);
}
.header-pro-v95 .ag-profile-dropdown .ag-dropdown-menu{left:50%;transform:translateX(-50%)}
.header-pro-v95 .ag-dropdown-menu a{
  width:100%;
  min-height:42px!important;
  justify-content:flex-start!important;
  border-radius:12px!important;
  padding:10px 12px!important;
  background:transparent;
  color:#eaf2ff!important;
  font-size:.92rem!important;
}
.header-pro-v95 .ag-dropdown-menu a:hover{
  background:rgba(59,130,246,.18)!important;
  border-color:rgba(147,197,253,.20)!important;
  transform:none!important;
}
.header-pro-v95 .ag-dropdown-menu a.active{
  background:rgba(29,139,255,.26)!important;
  border-color:rgba(125,211,252,.25)!important;
  box-shadow:none!important;
}
.header-pro-v95 .nav-bell{display:inline-flex;align-items:center;z-index:30}
.header-pro-v95 .nav-bell summary{border-radius:13px!important}

@media (min-width:981px){
  .header-pro-v95 .ag-main-nav-pro{min-height:52px!important;}
  .header-pro-v95 .ag-main-nav-pro > a,
  .header-pro-v95 .ag-main-nav-pro > details > summary{
    min-height:38px!important;
    padding-top:8px!important;
    padding-bottom:8px!important;
  }
}
@media (max-width:980px){
  .header-pro-v95 .ag-main-nav-pro{
    gap:8px!important;
    padding:12px!important;
  }
  .header-pro-v95 .ag-nav-dropdown{
    display:block;
    width:100%;
  }
  .header-pro-v95 .ag-nav-dropdown > summary{
    width:100%;
    min-height:46px!important;
    border-radius:14px!important;
  }
  .header-pro-v95 .ag-dropdown-menu,
  .header-pro-v95 .ag-profile-dropdown .ag-dropdown-menu{
    position:static;
    transform:none;
    min-width:0;
    width:100%;
    margin-top:7px;
    box-shadow:none;
    border-radius:14px;
    background:rgba(15,23,42,.88);
  }
  .header-pro-v95 .ag-dropdown-menu a{
    min-height:44px!important;
    font-size:.96rem!important;
  }
  .header-pro-v95 .nav-bell{display:block;width:100%}
  .header-pro-v95 .nav-bell summary{width:100%;min-height:46px!important}
}
@media (max-width:560px){
  .header-pro-v95 .ag-main-nav-pro{left:8px!important;right:8px!important;border-radius:16px!important;}
  .header-pro-v95 .ag-main-nav-pro > a,
  .header-pro-v95 .ag-main-nav-pro > details > summary{
    font-size:.95rem!important;
  }
}

/* RadioaficionadosClub.cl - Fix menú desplegable global v50
   Evita que Herramientas/Perfil/Notificaciones queden abiertos al navegar. */
.header-pro-v95 .ag-main-nav-pro details:not([open]) > .ag-dropdown-menu,
.header-pro-v95 .ag-main-nav-pro details:not([open]) > .nav-bell-menu{
  display:none!important;
}
.header-pro-v95 .ag-main-nav-pro details[open] > .ag-dropdown-menu,
.header-pro-v95 .ag-main-nav-pro details[open] > .nav-bell-menu{
  display:grid!important;
}
.header-pro-v95 .ag-main-nav-pro details > summary{
  -webkit-tap-highlight-color:transparent;
}
.header-pro-v95 .ag-main-nav-pro details > summary:focus-visible,
.header-pro-v95 .ag-main-nav-pro a:focus-visible{
  outline:2px solid rgba(125,211,252,.9)!important;
  outline-offset:3px!important;
}
@media (max-width:980px){
  body.menu-is-open{overflow:hidden;}
  .header-pro-v95 .ag-main-nav-pro details[open] > .ag-dropdown-menu,
  .header-pro-v95 .ag-main-nav-pro details[open] > .nav-bell-menu{
    max-height:70vh;
    overflow:auto;
  }
}

/* =========================================================
   FIX NOTIFICACIONES RESPONSIVAS v1
   Evita que textos largos, URLs o títulos se salgan del cuadro.
   Autor: RadioaficionadosClub.cl / Rodrigo Reyes
   ========================================================= */
.nav-bell,
.nav-bell * ,
.nav-bell-menu,
.nav-bell-menu * ,
.ag-notifications-page,
.ag-notifications-page * ,
.ag-notification-list,
.ag-notification-item,
.ag-notification-item *{
  box-sizing:border-box;
}

.nav-bell-menu{
  max-width:calc(100vw - 24px)!important;
  overflow:hidden!important;
}

.nav-bell-menu a,
.ag-notification-item{
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
}

.nav-bell-menu strong,
.nav-bell-menu em,
.nav-bell-menu p,
.nav-bell-menu small,
.ag-notification-item strong,
.ag-notification-item p,
.ag-notification-item small{
  max-width:100%!important;
  min-width:0!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
  line-break:anywhere;
}

.nav-bell-menu p,
.nav-bell-menu em,
.ag-notification-item p{
  line-height:1.45!important;
}

.ag-notification-item{
  grid-template-columns:34px minmax(0,1fr)!important;
}

.ag-notification-icon{
  flex:0 0 auto!important;
}

@media(max-width:760px){
  .nav-bell-menu{
    width:100%!important;
    max-width:100%!important;
  }
  .ag-notifications-page{
    padding-left:12px!important;
    padding-right:12px!important;
  }
  .ag-notification-item{
    grid-template-columns:28px minmax(0,1fr)!important;
    gap:10px!important;
    padding:14px!important;
  }
}

/* ---------------------------------------------------------------------------
   Recuperación de contraseña y administración de claves
   RadioaficionadosClub.cl - Rodrigo Reyes
--------------------------------------------------------------------------- */
.login-actions{display:grid;grid-template-columns:1fr;gap:10px;margin:14px 0}.login-actions .btn{display:block;text-align:center}.login-actions .btn.secondary{background:#eef2f7;color:#0f2d50;border:1px solid #cbd5e1;box-shadow:none}.admin-password-reset{width:100%;margin-top:8px}.admin-password-reset summary{cursor:pointer;display:inline-block;list-style:none}.admin-password-reset summary::-webkit-details-marker{display:none}.admin-password-reset form{display:grid!important;grid-template-columns:minmax(150px,1fr) minmax(150px,1fr) auto;gap:6px;align-items:center;margin-top:8px!important}.admin-password-reset input[type=password]{border:1px solid #cbd5e1;border-radius:8px;padding:7px;background:#fff;min-width:150px}@media(max-width:900px){.admin-password-reset form{grid-template-columns:1fr!important}.login-actions{grid-template-columns:1fr}}

/* Legal v2026-07-16: enlace de configuración de cookies con apariencia de enlace. */
.footer-cookie-link{appearance:none;border:0;background:none;padding:0;color:inherit;font:inherit;text-decoration:underline;cursor:pointer}.footer-cookie-link:hover{opacity:.82}

/* ==========================================================================\n   Página Buscar: accesos responsivos a módulos\n   RadioaficionadosClub.cl · Rodrigo Reyes · 2026\n   ========================================================================== */
.search-modules{margin-top:18px;overflow:hidden;position:relative}
.search-modules::before{content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,#0284c7,#2563eb,#7c3aed)}
.search-modules-head{align-items:flex-start;gap:18px;margin-bottom:18px}
.search-modules-head h2{margin:4px 0 6px;font-size:clamp(1.35rem,2.5vw,1.85rem);line-height:1.15}
.search-modules-head p{margin:0;color:#64748b;max-width:720px}
.search-modules-kicker{display:inline-block;color:#0369a1;font-size:.74rem;font-weight:900;letter-spacing:.11em;text-transform:uppercase}
.search-modules-register{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 16px;border-radius:999px;background:#075ea8;color:#fff!important;font-weight:900;box-shadow:0 8px 20px rgba(7,94,168,.2)}
.search-modules-register:hover{background:#064f8e;transform:translateY(-1px)}
.search-modules-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.search-module-card{--module-color:#075ea8;position:relative;display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:94px;padding:15px;border:1px solid #dbe5ef;border-radius:16px;background:linear-gradient(145deg,#fff,#f8fbff);color:#0f172a!important;text-decoration:none;box-shadow:0 7px 20px rgba(15,23,42,.055);transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.search-module-card:hover,.search-module-card:focus-visible{transform:translateY(-3px);border-color:color-mix(in srgb,var(--module-color) 55%,#dbe5ef);box-shadow:0 14px 28px rgba(15,23,42,.11);outline:none}
.search-module-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:color-mix(in srgb,var(--module-color) 13%,#fff);color:var(--module-color)}
.search-module-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.search-module-copy{min-width:0}
.search-module-copy strong{display:block;margin-bottom:4px;color:#0f172a;font-size:.98rem;line-height:1.2}
.search-module-copy small{display:block;color:#64748b;font-size:.79rem;font-weight:650;line-height:1.35}
.search-module-arrow{color:var(--module-color);font-size:1.25rem;font-weight:900;transition:transform .2s ease}
.search-module-card:hover .search-module-arrow{transform:translateX(3px)}
.search-module-lock{display:inline-flex;align-items:center;justify-content:center;padding:5px 8px;border-radius:999px;background:#fff7ed;color:#9a3412;border:1px solid #fed7aa;font-size:.66rem;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.search-module-card.requires-account::after{content:"";position:absolute;inset:8px 8px auto auto;width:7px;height:7px;border-radius:50%;background:#f59e0b;box-shadow:0 0 0 3px #fef3c7}
.search-modules-note{display:flex;align-items:flex-start;gap:8px;margin:15px 2px 0;padding:11px 13px;border-radius:12px;background:#f8fafc;color:#475569;font-size:.82rem;line-height:1.45}
.module-posts{--module-color:#2563eb}.module-questions{--module-color:#7c3aed}.module-ask{--module-color:#ea580c}.module-calculator{--module-color:#0891b2}.module-qsl{--module-color:#059669}.module-profile{--module-color:#475569}
@media (max-width:980px){.search-modules-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){
  .search-modules{padding:18px 14px}
  .search-modules-head{display:block;margin-bottom:14px}
  .search-modules-register{width:100%;margin-top:13px}
  .search-modules-grid{grid-template-columns:1fr;gap:10px}
  .search-module-card{grid-template-columns:44px minmax(0,1fr) auto;min-height:82px;padding:12px;border-radius:14px}
  .search-module-icon{width:44px;height:44px;border-radius:13px}
  .search-module-copy strong{font-size:.94rem}.search-module-copy small{font-size:.76rem}
  .search-module-lock{padding:4px 6px;font-size:.59rem}
  .search-modules-note{font-size:.76rem}
}
@media (max-width:380px){.search-module-card{grid-template-columns:40px minmax(0,1fr)}.search-module-icon{width:40px;height:40px}.search-module-arrow,.search-module-lock{grid-column:2;justify-self:start}.search-module-card.requires-account::after{top:7px;right:7px}}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .search-modules{background:#0f172a!important;border-color:#263449!important}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .search-modules-head h2,html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .search-module-copy strong{color:#f8fafc!important}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .search-modules-head p,html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .search-module-copy small{color:#aebdd0!important}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .search-module-card{background:linear-gradient(145deg,#111c2f,#0b1424)!important;border-color:#2a3a50!important;color:#f8fafc!important}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .search-module-icon{background:color-mix(in srgb,var(--module-color) 24%,#111827)}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .search-modules-note{background:#111c2f;color:#c7d2e2}

/* ========================================================================== 
   RadioaficionadosClub.cl v101 - Auditoría móvil consolidada
   Autor: Rodrigo Reyes / RadioaficionadosClub.cl
   Fecha: 19-07-2026
   Objetivo: evitar desbordamientos, mejorar navegación táctil, formularios,
   tablas, tarjetas, footer y áreas seguras en teléfonos.
   ========================================================================== */
html{max-width:100%;overflow-x:clip;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body.ag-body{max-width:100%;overflow-x:clip}
img,svg,video,canvas,iframe{max-width:100%}
input,select,textarea,button{max-width:100%}
:where(.article-body,.post-body,.single-post,.box,.widget,.ag-card,.wp-card) :where(p,li,a,h1,h2,h3,h4,code,pre){overflow-wrap:anywhere;word-break:normal}
:where(.table-wrap,.wp-table-wrap,.admin-table-wrap,.responsive-table){max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain}
:where(table,.wp-table){border-collapse:collapse}

@media(max-width:980px){
  body.menu-is-open{overflow:hidden!important;touch-action:none}
  .header-pro-v95.site-header{isolation:isolate}
  .header-pro-v95 .ag-main-nav{
    position:fixed!important;
    z-index:102!important;
    top:max(86px,env(safe-area-inset-top))!important;
    left:10px!important;
    right:10px!important;
    width:auto!important;
    max-height:calc(100dvh - max(106px,env(safe-area-inset-top)) - env(safe-area-inset-bottom))!important;
    padding:12px 12px calc(12px + env(safe-area-inset-bottom))!important;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
  }
  .menu-is-open .menu-overlay{
    display:block!important;
    position:fixed!important;
    inset:0!important;
    z-index:101!important;
    background:rgba(2,6,23,.68)!important;
    backdrop-filter:blur(2px);
  }
  .header-pro-v95 .menu-btn{min-width:46px;min-height:46px;justify-content:center;touch-action:manipulation}
  .header-pro-v95 .ag-main-nav a,
  .header-pro-v95 .ag-main-nav summary{min-height:46px!important;padding:11px 13px!important;touch-action:manipulation}
  .header-pro-v95 .ag-dropdown-menu,
  .header-pro-v95 .nav-bell-menu{max-width:100%!important;overflow-wrap:anywhere}
  .header-pro-v95 details[open]>.ag-dropdown-menu,
  .header-pro-v95 details[open]>.nav-bell-menu{animation:none}
}

@media(max-width:720px){
  .layout,.single,.form-page,.admin,.legal-wrap,.public-profile-shell,.ag-profile-pro{width:100%!important;max-width:100%!important;padding-left:10px!important;padding-right:10px!important}
  .box,.widget,.single-post,.post-card,.ag-card,.wp-card{max-width:100%;border-radius:15px}
  .post-card{grid-template-columns:1fr!important}
  .post-card .cover{width:100%;height:auto;min-height:0;aspect-ratio:16/9;object-fit:cover}
  .form-row.three,.admin-grid,.account-media-grid,.badge-form-grid{grid-template-columns:1fr!important}
  .form-row>* ,.admin-grid>*{min-width:0}
  input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px!important;min-height:44px}
  textarea{min-height:120px}
  button,.btn,.read-more,.mini-btn{min-height:44px;touch-action:manipulation}
  .post-tools,.form-actions,.profile-actions,.cookie-actions{display:flex;flex-wrap:wrap;gap:8px}
  .cookie-banner{left:10px!important;right:10px!important;bottom:calc(10px + env(safe-area-inset-bottom))!important;width:auto!important;max-height:min(82dvh,640px);overflow:auto}
  .ag-footer-bottom,.ag-footer-actions{align-items:center;text-align:center}
  .ag-footer-actions,.footer-links{width:100%;justify-content:center}
  .footer-links a,.footer-links button{min-height:42px;display:inline-flex;align-items:center;justify-content:center;padding:7px 9px}
  .ag-back-to-top{right:12px!important;bottom:calc(14px + env(safe-area-inset-bottom))!important}
  pre,code{white-space:pre-wrap;overflow-wrap:anywhere}
  iframe{width:100%!important}
}

@media(max-width:560px){
  .header-pro-v95 .ag-brand-top{padding-left:10px!important;padding-right:10px!important;gap:9px!important}
  .header-pro-v95 .ag-brand-link{flex:1 1 auto;min-width:0}
  .header-pro-v95 .ag-brand-text strong{max-width:calc(100vw - 126px)!important;font-size:clamp(1.05rem,5.2vw,1.35rem)!important}
  .header-pro-v95 .ag-brand-text small{max-width:calc(100vw - 126px)!important;font-size:.64rem!important}
  .header-pro-v95 .ag-main-nav{top:max(78px,env(safe-area-inset-top))!important;max-height:calc(100dvh - max(98px,env(safe-area-inset-top)) - env(safe-area-inset-bottom))!important;left:8px!important;right:8px!important;border-radius:15px!important}
  body:not(.ag-admin-body) .ag-hero.featured-strip{margin-left:8px!important;margin-right:8px!important;padding:24px 15px!important;min-height:auto!important}
  body:not(.ag-admin-body) .ag-hero .hero-copy h1{font-size:clamp(1.75rem,9vw,2.15rem)!important}
  body:not(.ag-admin-body) .ag-hero .hero-btn{width:100%;justify-content:center}
  .ag-footer-wrap{padding-left:8px!important;padding-right:8px!important}
  .ag-footer-card{padding:13px!important}
  .ag-footer-card-head{align-items:flex-start;gap:8px}
  .ag-footer-card-head h2{font-size:1rem}
  .ag-mini-person{max-width:100%}
  .ag-mini-person span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .cookie-actions>*{flex:1 1 100%}
}

@media(max-width:380px){
  .header-pro-v95 .ag-brand-logo{width:44px!important;height:44px!important;flex-basis:44px!important}
  .header-pro-v95 .ag-brand-text strong,.header-pro-v95 .ag-brand-text small{max-width:calc(100vw - 112px)!important}
  .footer-links{display:grid!important;grid-template-columns:1fr 1fr;gap:7px!important}
  .footer-links>*{width:100%}
  .footer-links>*:last-child{grid-column:1/-1}
}

/* =========================================================
   REDES SOCIALES COMPACTAS — RadioaficionadosClub.cl
   Autor: Rodrigo Reyes / AyudaGlobal.com
   Objetivo: mostrar solamente el ícono y revelar el nombre
   al pasar el puntero o enfocar con teclado.
   ========================================================= */
.social-share-btn{
  position:relative!important;
  flex:0 0 44px!important;
  width:44px!important;
  min-width:44px!important;
  max-width:44px!important;
  height:44px!important;
  min-height:44px!important;
  padding:0!important;
  border-radius:50%!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:visible!important;
  line-height:1!important;
  text-decoration:none!important;
}
.social-share-btn img,
.social-share-btn svg{
  display:block!important;
  width:25px!important;
  height:25px!important;
  max-width:25px!important;
  max-height:25px!important;
  object-fit:contain!important;
  pointer-events:none;
}
.social-share-btn > span:not(.share-copy-status):not(.qa-copy-status){
  position:absolute!important;
  z-index:40;
  left:50%;
  bottom:calc(100% + 9px);
  width:max-content;
  max-width:190px;
  padding:6px 9px!important;
  border-radius:7px!important;
  background:#0f172a!important;
  color:#fff!important;
  font-size:12px!important;
  font-weight:700!important;
  line-height:1.2!important;
  white-space:nowrap;
  opacity:0;
  visibility:hidden;
  transform:translate(-50%,5px);
  transition:opacity .16s ease,transform .16s ease,visibility .16s ease;
  pointer-events:none;
  box-shadow:0 7px 20px rgba(0,0,0,.24);
}
.social-share-btn > span:not(.share-copy-status):not(.qa-copy-status)::after{
  content:"";
  position:absolute;
  top:100%;
  left:50%;
  transform:translateX(-50%);
  border:5px solid transparent;
  border-top-color:#0f172a;
}
.social-share-btn:hover > span:not(.share-copy-status):not(.qa-copy-status),
.social-share-btn:focus-visible > span:not(.share-copy-status):not(.qa-copy-status){
  opacity:1;
  visibility:visible;
  transform:translate(-50%,0);
}
.social-share-btn:focus-visible{
  outline:3px solid rgba(56,189,248,.55)!important;
  outline-offset:3px!important;
}
.share-box,
.qa-share{
  overflow:visible!important;
}
@media (max-width:900px){
  .share-box{
    align-items:center!important;
  }
  .share-box a.social-share-btn,
  .share-box button.social-share-btn,
  .social-share-btn{
    flex:0 0 42px!important;
    width:42px!important;
    min-width:42px!important;
    max-width:42px!important;
    height:42px!important;
    min-height:42px!important;
  }
  .social-share-btn img,
  .social-share-btn svg{
    width:23px!important;
    height:23px!important;
  }
}


/* Marketplace v1.7 — anuncios compactos y contacto multicanal */
.ag-market-sponsored{margin:18px 0;padding:14px;border:1px solid var(--border,#dfe3e8);border-radius:14px;background:var(--card,#fff)}
.ag-market-sponsored-head{margin-bottom:10px;align-items:flex-end}
.ag-sponsored-label{display:inline-block;margin-bottom:2px;font-size:.7rem;line-height:1;text-transform:uppercase;letter-spacing:.08em;color:var(--muted,#667085)}
.ag-market-sponsored .section-title{font-size:1.08rem;margin:0}
.ag-sponsored-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ag-sponsored-card{display:grid;grid-template-columns:96px minmax(0,1fr);min-height:96px;border:1px solid var(--border,#e1e5ea);border-radius:10px;overflow:hidden;background:var(--surface,#fff);box-shadow:none}
.ag-sponsored-image{display:block;background:#f4f5f7}
.ag-sponsored-image img{display:block;width:96px;height:100%;min-height:96px;object-fit:cover}
.ag-sponsored-body{min-width:0;padding:9px 10px;display:flex;flex-direction:column;align-items:flex-start}
.ag-sponsored-kicker{width:100%;font-size:.68rem;color:var(--muted,#667085);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ag-sponsored-body h3{font-size:.88rem;line-height:1.2;margin:4px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ag-sponsored-body h3 a{color:inherit;text-decoration:none}
.ag-sponsored-price{font-size:.86rem;margin-top:auto}
.ag-sponsored-link{font-size:.74rem;margin-top:4px;text-decoration:underline}
.ag-seller-contact{margin:18px 0;padding:14px;border:1px solid var(--border,#dfe3e8);border-radius:12px;background:var(--surface,#fff)}
.ag-seller-contact h2{font-size:1rem;margin:0 0 10px}
.ag-seller-contact-actions{display:flex;flex-wrap:wrap;gap:8px}
.ag-contact-btn{min-width:145px;text-align:center}
.ag-market-contact-warning{margin:0;color:var(--danger,#b42318)}
@media(max-width:900px){.ag-sponsored-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.ag-market-sponsored{padding:12px}.ag-sponsored-grid{grid-template-columns:1fr}.ag-sponsored-card{grid-template-columns:88px minmax(0,1fr);min-height:88px}.ag-sponsored-image img{width:88px;min-height:88px}.ag-seller-contact-actions{display:grid;grid-template-columns:1fr}.ag-contact-btn{width:100%;min-width:0}}

/*
 * Marketplace v1.8 — Unificación del ancho visual
 * Fecha: 25-07-2026
 * Autor: RadioaficionadosClub.cl / Rodrigo Reyes
 *
 * Objetivo:
 * - Mantener Tienda, Directorio, fichas y productos patrocinados dentro del
 *   mismo contenedor utilizado por Últimas publicaciones.
 * - Evitar secciones pegadas a los bordes o con anchos diferentes.
 * - Conservar el comportamiento responsive del diseño general.
 */
body:not(.ag-admin-body) .ag-market-wrap,
body:not(.ag-admin-body) .ag-market-sponsored {
  width: auto;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

body:not(.ag-admin-body) .ag-market-wrap {
  padding-left: 20px;
  padding-right: 20px;
}

body:not(.ag-admin-body) .ag-market-sponsored {
  margin-top: 22px;
  margin-bottom: 0;
}

/* Evita que rejillas, formularios o tablas ensanchen el contenedor. */
body:not(.ag-admin-body) .ag-market-wrap > *,
body:not(.ag-admin-body) .ag-market-sponsored > *,
body:not(.ag-admin-body) .ag-market-grid,
body:not(.ag-admin-body) .ag-sponsored-grid,
body:not(.ag-admin-body) .ag-product-detail,
body:not(.ag-admin-body) .ag-market-search {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 850px) {
  body:not(.ag-admin-body) .ag-market-wrap {
    padding-left: 12px;
    padding-right: 12px;
    margin-top: 20px;
  }

  body:not(.ag-admin-body) .ag-market-sponsored {
    width: auto;
    margin-left: 12px;
    margin-right: 12px;
  }
}

@media (max-width: 560px) {
  body:not(.ag-admin-body) .ag-market-wrap {
    padding-left: 10px;
    padding-right: 10px;
  }

  body:not(.ag-admin-body) .ag-market-sponsored {
    margin-left: 10px;
    margin-right: 10px;
    padding: 12px;
  }
}

/* ================================================================
 * Marketplace v1.9 — Legibilidad completa en modo oscuro
 * Autor: RadioaficionadosClub.cl / Rodrigo Reyes
 *
 * Objetivo:
 * - Evitar tarjetas negras o azul oscuro con letras blancas.
 * - Mantener Tienda, productos normales, patrocinados, panel del vendedor
 *   y administración sobre superficies claras con texto oscuro.
 * - Conservar el modo oscuro global fuera del Marketplace.
 * ================================================================ */

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) :is(
  .ag-market-wrap,
  .ag-market-sponsored,
  .ag-sponsored-card,
  .ag-dashboard-card,
  .ag-product-detail,
  .ag-product-vendor,
  .ag-market-form,
  .ag-market-notice,
  .ag-detail-card,
  .ag-product-card,
  .marketplace-card,
  .market-product-card,
  .market-vendor-card
){
  --card:#ffffff;
  --surface:#ffffff;
  --border:#d8e0e8;
  --muted:#526173;
  background:#ffffff!important;
  color:#172033!important;
  border-color:#d8e0e8!important;
  box-shadow:0 10px 28px rgba(0,0,0,.18)!important;
  color-scheme:light;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) :is(
  .ag-market-wrap,
  .ag-market-sponsored,
  .ag-sponsored-card,
  .ag-dashboard-card,
  .ag-product-detail,
  .ag-product-vendor,
  .ag-market-form,
  .ag-market-notice,
  .ag-detail-card,
  .ag-product-card,
  .marketplace-card,
  .market-product-card,
  .market-vendor-card
) :is(h1,h2,h3,h4,h5,h6,strong,b,label,legend,.section-title,.ag-price,.ag-sponsored-price){
  color:#111827!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) :is(
  .ag-market-wrap,
  .ag-market-sponsored,
  .ag-sponsored-card,
  .ag-dashboard-card,
  .ag-product-detail,
  .ag-product-vendor,
  .ag-market-form,
  .ag-market-notice,
  .ag-detail-card,
  .ag-product-card,
  .marketplace-card,
  .market-product-card,
  .market-vendor-card
) :is(p,small,span,li,dd,dt,.muted,.hint,.ag-sponsored-kicker){
  color:#526173!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) :is(
  .ag-market-wrap,
  .ag-market-sponsored,
  .ag-dashboard-card,
  .ag-product-detail,
  .ag-product-vendor,
  .ag-market-form
) :is(input,select,textarea){
  background:#ffffff!important;
  color:#111827!important;
  border-color:#aeb9c6!important;
  color-scheme:light;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) :is(
  .ag-market-wrap,
  .ag-market-sponsored,
  .ag-dashboard-card,
  .ag-product-detail,
  .ag-product-vendor,
  .ag-market-form
) :is(input,textarea)::placeholder{
  color:#788596!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-sponsored-image,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-detail-image{
  background:#eef2f6!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-market-badge{
  background:#e8f1ff!important;
  color:#174ea6!important;
  border-color:#b8d1f5!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-market-notice{
  background:#fff8e1!important;
  color:#5d4600!important;
  border-color:#ead58b!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-market-notice :is(p,strong,span,small){
  color:#5d4600!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-market-wrap table,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-market-wrap .wp-table{
  background:#ffffff!important;
  color:#172033!important;
  border-color:#d8e0e8!important;
  color-scheme:light;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-market-wrap :is(table,.wp-table) th{
  background:#edf2f7!important;
  color:#172033!important;
  border-color:#d8e0e8!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-market-wrap :is(table,.wp-table) td{
  background:#ffffff!important;
  color:#263244!important;
  border-color:#e2e8f0!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-market-wrap a:not(.btn):not(.ag-contact-btn):not(.ag-buy-btn),
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-market-sponsored a:not(.btn){
  color:#075eaa!important;
}

/* Administración del Marketplace: aislada del tema admin oscuro general. */
html[data-theme="admin-dark"] body.ag-admin-body .ag-market-admin,
html[data-theme="dark"] body.ag-admin-body .ag-market-admin,
body.ag-admin-body .ag-market-admin{
  background:#f3f6f9!important;
  color:#172033!important;
  border:1px solid #d8e0e8;
  border-radius:16px;
  padding:18px;
  color-scheme:light;
}

html[data-theme="admin-dark"] body.ag-admin-body .ag-market-admin :is(
  .admin-heading,
  section,
  .wp-card,
  .ag-admin-table-wrap,
  .ag-admin-tabs,
  .alert
),
html[data-theme="dark"] body.ag-admin-body .ag-market-admin :is(
  .admin-heading,
  section,
  .wp-card,
  .ag-admin-table-wrap,
  .ag-admin-tabs,
  .alert
),
body.ag-admin-body .ag-market-admin :is(
  .admin-heading,
  section,
  .wp-card,
  .ag-admin-table-wrap,
  .ag-admin-tabs,
  .alert
){
  background:#ffffff!important;
  color:#172033!important;
  border-color:#d8e0e8!important;
  box-shadow:0 8px 22px rgba(15,23,42,.07)!important;
}

body.ag-admin-body .ag-market-admin :is(h1,h2,h3,h4,strong,b,label,legend){color:#111827!important;}
body.ag-admin-body .ag-market-admin :is(p,small,span,li){color:#526173!important;}
body.ag-admin-body .ag-market-admin a:not(.btn){color:#075eaa!important;}

body.ag-admin-body .ag-market-admin :is(input,select,textarea){
  background:#ffffff!important;
  color:#111827!important;
  border-color:#aeb9c6!important;
  color-scheme:light;
}

body.ag-admin-body .ag-market-admin :is(input,textarea)::placeholder{color:#788596!important;}
body.ag-admin-body .ag-market-admin .ag-admin-table{background:#ffffff!important;color:#172033!important;}
body.ag-admin-body .ag-market-admin .ag-admin-table th{background:#eaf0f6!important;color:#111827!important;border-color:#d5dee8!important;}
body.ag-admin-body .ag-market-admin .ag-admin-table td{background:#ffffff!important;color:#263244!important;border-color:#e1e7ee!important;}
body.ag-admin-body .ag-market-admin .ag-admin-table tr:nth-child(even) td{background:#f8fafc!important;}
body.ag-admin-body .ag-market-admin .ag-admin-tabs a{background:#edf2f7!important;color:#263244!important;border-color:#cfd8e3!important;}
body.ag-admin-body .ag-market-admin .ag-admin-tabs a:hover{background:#dce9f7!important;color:#075eaa!important;}

/* Botones conservan color de acción y contraste accesible. */
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) :is(.ag-market-wrap,.ag-market-sponsored) :is(.btn,.ag-buy-btn,.ag-contact-btn),
body.ag-admin-body .ag-market-admin .btn{
  color:#ffffff!important;
}

@media(max-width:700px){
  body.ag-admin-body .ag-market-admin{padding:12px;border-radius:12px;}
  body.ag-admin-body .ag-market-admin .ag-admin-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;}
}

/* ================================================================
 * Marketplace v1.10 — Modo oscuro real y uniforme
 * Autor: RadioaficionadosClub.cl / Rodrigo Reyes
 *
 * Corrige la v1.9, que forzaba superficies blancas en modo oscuro.
 * Este bloque se ubica al final para sobrescribir reglas anteriores.
 * ================================================================ */

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) :is(
  .ag-market-wrap,
  .ag-market-sponsored,
  .ag-sponsored-card,
  .ag-dashboard-card,
  .ag-product-detail,
  .ag-product-vendor,
  .ag-market-form,
  .ag-market-notice,
  .ag-detail-card,
  .ag-product-card,
  .marketplace-card,
  .market-product-card,
  .market-vendor-card
){
  --card:#111c2f;
  --surface:#0f192a;
  --border:#2b3b52;
  --muted:#aebdd0;
  background:#111c2f!important;
  color:#f8fafc!important;
  border-color:#2b3b52!important;
  box-shadow:0 12px 30px rgba(0,0,0,.34)!important;
  color-scheme:dark;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) :is(
  .ag-market-wrap,
  .ag-market-sponsored,
  .ag-sponsored-card,
  .ag-dashboard-card,
  .ag-product-detail,
  .ag-product-vendor,
  .ag-market-form,
  .ag-market-notice,
  .ag-detail-card,
  .ag-product-card,
  .marketplace-card,
  .market-product-card,
  .market-vendor-card
) :is(h1,h2,h3,h4,h5,h6,strong,b,label,legend,.section-title,.ag-price,.ag-sponsored-price){
  color:#f8fafc!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) :is(
  .ag-market-wrap,
  .ag-market-sponsored,
  .ag-sponsored-card,
  .ag-dashboard-card,
  .ag-product-detail,
  .ag-product-vendor,
  .ag-market-form,
  .ag-market-notice,
  .ag-detail-card,
  .ag-product-card,
  .marketplace-card,
  .market-product-card,
  .market-vendor-card
) :is(p,small,span,li,dd,dt,.muted,.hint,.ag-sponsored-kicker){
  color:#aebdd0!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) :is(
  .ag-market-wrap,
  .ag-market-sponsored,
  .ag-dashboard-card,
  .ag-product-detail,
  .ag-product-vendor,
  .ag-market-form
) :is(input,select,textarea){
  background:#0a1322!important;
  color:#f8fafc!important;
  border-color:#40536d!important;
  color-scheme:dark;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) :is(
  .ag-market-wrap,
  .ag-market-sponsored,
  .ag-dashboard-card,
  .ag-product-detail,
  .ag-product-vendor,
  .ag-market-form
) :is(input,textarea)::placeholder{
  color:#7f91a8!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) :is(
  .ag-market-wrap,
  .ag-market-sponsored,
  .ag-dashboard-card,
  .ag-product-detail,
  .ag-product-vendor,
  .ag-market-form
) :is(input,select,textarea):focus{
  border-color:#38bdf8!important;
  box-shadow:0 0 0 3px rgba(56,189,248,.18)!important;
  outline:0!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-sponsored-image,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-detail-image{
  background:#09111f!important;
  border-color:#2b3b52!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-market-badge{
  background:#15365e!important;
  color:#bfdbfe!important;
  border-color:#2f5f91!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-market-notice{
  background:#33280d!important;
  color:#fde68a!important;
  border-color:#7c621e!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-market-notice :is(p,strong,span,small){
  color:#fde68a!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-market-wrap :is(table,.wp-table){
  background:#0f192a!important;
  color:#e5edf8!important;
  border-color:#2b3b52!important;
  color-scheme:dark;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-market-wrap :is(table,.wp-table) th{
  background:#17243a!important;
  color:#f8fafc!important;
  border-color:#354861!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-market-wrap :is(table,.wp-table) td{
  background:#0f192a!important;
  color:#d7e1ee!important;
  border-color:#26374d!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-market-wrap :is(table,.wp-table) tr:nth-child(even) td{
  background:#121f33!important;
}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-market-wrap a:not(.btn):not(.ag-contact-btn):not(.ag-buy-btn),
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-market-sponsored a:not(.btn){
  color:#7dd3fc!important;
}

/* Administración completa del Marketplace en modo oscuro. */
html[data-theme="admin-dark"] body.ag-admin-body .ag-market-admin,
html[data-theme="dark"] body.ag-admin-body .ag-market-admin{
  background:#0b1424!important;
  color:#e5edf8!important;
  border-color:#26374d!important;
  color-scheme:dark;
}

html[data-theme="admin-dark"] body.ag-admin-body .ag-market-admin :is(
  .admin-heading,section,.wp-card,.ag-admin-table-wrap,.ag-admin-tabs,.alert
),
html[data-theme="dark"] body.ag-admin-body .ag-market-admin :is(
  .admin-heading,section,.wp-card,.ag-admin-table-wrap,.ag-admin-tabs,.alert
){
  background:#111c2f!important;
  color:#e5edf8!important;
  border-color:#2b3b52!important;
  box-shadow:0 10px 26px rgba(0,0,0,.28)!important;
}

html[data-theme="admin-dark"] body.ag-admin-body .ag-market-admin :is(h1,h2,h3,h4,strong,b,label,legend),
html[data-theme="dark"] body.ag-admin-body .ag-market-admin :is(h1,h2,h3,h4,strong,b,label,legend){color:#f8fafc!important;}

html[data-theme="admin-dark"] body.ag-admin-body .ag-market-admin :is(p,small,span,li),
html[data-theme="dark"] body.ag-admin-body .ag-market-admin :is(p,small,span,li){color:#aebdd0!important;}

html[data-theme="admin-dark"] body.ag-admin-body .ag-market-admin a:not(.btn),
html[data-theme="dark"] body.ag-admin-body .ag-market-admin a:not(.btn){color:#7dd3fc!important;}

html[data-theme="admin-dark"] body.ag-admin-body .ag-market-admin :is(input,select,textarea),
html[data-theme="dark"] body.ag-admin-body .ag-market-admin :is(input,select,textarea){
  background:#0a1322!important;
  color:#f8fafc!important;
  border-color:#40536d!important;
  color-scheme:dark;
}

html[data-theme="admin-dark"] body.ag-admin-body .ag-market-admin :is(input,textarea)::placeholder,
html[data-theme="dark"] body.ag-admin-body .ag-market-admin :is(input,textarea)::placeholder{color:#7f91a8!important;}

html[data-theme="admin-dark"] body.ag-admin-body .ag-market-admin .ag-admin-table,
html[data-theme="dark"] body.ag-admin-body .ag-market-admin .ag-admin-table{background:#0f192a!important;color:#e5edf8!important;}

html[data-theme="admin-dark"] body.ag-admin-body .ag-market-admin .ag-admin-table th,
html[data-theme="dark"] body.ag-admin-body .ag-market-admin .ag-admin-table th{background:#17243a!important;color:#f8fafc!important;border-color:#354861!important;}

html[data-theme="admin-dark"] body.ag-admin-body .ag-market-admin .ag-admin-table td,
html[data-theme="dark"] body.ag-admin-body .ag-market-admin .ag-admin-table td{background:#0f192a!important;color:#d7e1ee!important;border-color:#26374d!important;}

html[data-theme="admin-dark"] body.ag-admin-body .ag-market-admin .ag-admin-table tr:nth-child(even) td,
html[data-theme="dark"] body.ag-admin-body .ag-market-admin .ag-admin-table tr:nth-child(even) td{background:#121f33!important;}

html[data-theme="admin-dark"] body.ag-admin-body .ag-market-admin .ag-admin-tabs a,
html[data-theme="dark"] body.ag-admin-body .ag-market-admin .ag-admin-tabs a{background:#17243a!important;color:#cbd5e1!important;border-color:#354861!important;}

html[data-theme="admin-dark"] body.ag-admin-body .ag-market-admin .ag-admin-tabs a:hover,
html[data-theme="dark"] body.ag-admin-body .ag-market-admin .ag-admin-tabs a:hover{background:#1d3553!important;color:#ffffff!important;}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) :is(.ag-market-wrap,.ag-market-sponsored) :is(.btn,.ag-buy-btn,.ag-contact-btn),
html[data-theme="admin-dark"] body.ag-admin-body .ag-market-admin .btn,
html[data-theme="dark"] body.ag-admin-body .ag-market-admin .btn{
  color:#ffffff!important;
}

/* ========================================================================== 
   MARKETPLACE V1.11 — CATÁLOGO PROFESIONAL TIPO "ÚLTIMAS PUBLICACIONES"
   Autor: Rodrigo Reyes / RadioaficionadosClub.cl
   ========================================================================== */
.ag-market-store{display:grid;gap:34px}
.ag-market-catalog-section{min-width:0}
.ag-market-catalog-section .section-head{margin:0 0 14px}
.ag-market-section-kicker{display:block;margin-bottom:4px;color:var(--muted,#64748b);font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.ag-market-catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:stretch}
.ag-market-listing-card{display:flex!important;flex-direction:column;min-width:0;height:100%;margin:0;overflow:hidden}
.ag-market-listing-image{position:relative;display:block;aspect-ratio:16/9;overflow:hidden;background:var(--surface-muted,#e2e8f0)}
.ag-market-listing-image img{width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.ag-market-listing-card:hover .ag-market-listing-image img{transform:scale(1.025)}
.ag-market-card-label{position:absolute;left:12px;top:12px;z-index:2;padding:6px 10px;border-radius:999px;background:#f59e0b;color:#111827;font-size:.74rem;font-weight:900;box-shadow:0 4px 14px rgba(0,0,0,.22)}
.ag-market-listing-body{display:flex;flex:1;flex-direction:column;padding:17px}
.ag-market-card-topline{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.ag-market-card-condition{color:var(--muted,#64748b);font-size:.78rem;font-weight:700;white-space:nowrap}
.ag-market-card-title{margin:12px 0 8px;font-size:1.08rem;line-height:1.3}
.ag-market-card-title a{display:-webkit-box;overflow:hidden;color:inherit;text-decoration:none;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.ag-market-card-meta{display:flex;gap:7px 10px;align-items:center;flex-wrap:wrap;font-size:.82rem}
.ag-market-card-excerpt{display:-webkit-box;overflow:hidden;min-height:4.4em;margin:13px 0 16px;-webkit-box-orient:vertical;-webkit-line-clamp:3}
.ag-market-card-footer{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-top:auto;padding-top:14px;border-top:1px solid var(--border,#e2e8f0)}
.ag-market-card-price{margin:0;font-size:1.12rem;line-height:1.15}
.ag-market-card-stock{display:block;margin-top:4px;color:var(--muted,#64748b);font-size:.76rem}
.ag-market-listing-card.is-featured{border-color:rgba(245,158,11,.55)}
.ag-market-home-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.ag-market-home .ag-market-listing-body{padding:14px}
.ag-market-home .ag-market-card-excerpt{min-height:0;-webkit-line-clamp:2}
.ag-market-home .ag-market-card-title{font-size:1rem}
.ag-market-home .ag-market-card-meta{font-size:.78rem}

@media(max-width:1000px){
  .ag-market-catalog-grid,.ag-market-home-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  .ag-market-catalog-grid,.ag-market-home-grid{grid-template-columns:1fr}
  .ag-market-listing-card{display:grid!important;grid-template-columns:118px minmax(0,1fr);min-height:150px}
  .ag-market-listing-image{height:100%;min-height:150px;aspect-ratio:auto}
  .ag-market-listing-body{padding:13px}
  .ag-market-card-title{margin:8px 0 5px;font-size:.98rem}
  .ag-market-card-excerpt{display:none}
  .ag-market-card-meta{font-size:.75rem}
  .ag-market-card-footer{padding-top:9px}
  .ag-market-card-price{font-size:1rem}
  .ag-market-card-footer .read-more{font-size:.8rem;white-space:nowrap}
  .ag-market-card-label{left:7px;top:7px;padding:4px 7px;font-size:.68rem}
}

/* Coherencia completa con el modo oscuro del Marketplace. */
html[data-theme="dark"] .ag-market-listing-card,
body.dark-mode .ag-market-listing-card,
[data-theme="dark"] .ag-market-listing-card{background:#111c2f;color:#e5edf8;border-color:#2d3d55}
html[data-theme="dark"] .ag-market-listing-image,
body.dark-mode .ag-market-listing-image,
[data-theme="dark"] .ag-market-listing-image{background:#0a1220}
html[data-theme="dark"] .ag-market-card-footer,
body.dark-mode .ag-market-card-footer,
[data-theme="dark"] .ag-market-card-footer{border-color:#2d3d55}
html[data-theme="dark"] .ag-market-card-condition,
html[data-theme="dark"] .ag-market-card-stock,
html[data-theme="dark"] .ag-market-section-kicker,
body.dark-mode .ag-market-card-condition,
body.dark-mode .ag-market-card-stock,
body.dark-mode .ag-market-section-kicker{color:#aebcd0}

/* Marketplace v1.12: ficha profesional del producto */
.ag-product-detail-pro{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(360px,.88fr);gap:28px;align-items:start;padding:24px}
.ag-product-gallery{min-width:0;border-radius:14px;overflow:hidden;background:var(--surface-2,#f4f6f8);border:1px solid var(--border,#dbe1e8)}
.ag-product-gallery .ag-detail-image{display:block;width:100%;aspect-ratio:4/3;object-fit:contain;margin:0;border:0;border-radius:0;background:transparent}
.ag-product-summary{display:grid;gap:18px;min-width:0}
.ag-product-heading h1{margin:10px 0 8px;font-size:clamp(1.55rem,2.4vw,2.25rem);line-height:1.12}
.ag-product-heading .ag-price{display:block;margin-top:14px}
.ag-product-location-card{padding:16px;border:1px solid var(--border,#dbe1e8);border-radius:12px;background:var(--surface-2,#f7f8fa)}
.ag-product-location-title{margin-bottom:11px;font-size:.82rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--muted,#667085)}
.ag-product-location-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ag-product-location-grid>div{min-width:0;padding:11px 12px;border-radius:9px;background:var(--surface,#fff);border:1px solid var(--border,#e1e5ea)}
.ag-product-location-grid span{display:block;margin-bottom:4px;font-size:.76rem;color:var(--muted,#667085)}
.ag-product-location-grid strong{display:block;overflow-wrap:anywhere;font-size:.95rem;color:var(--text,#172033)}
.ag-seller-contact-pro{margin:0;padding:16px;border-radius:12px;border:1px solid var(--border,#dbe1e8);background:var(--surface,#fff)}
.ag-contact-heading h2{margin:0 0 4px;font-size:1.08rem}
.ag-contact-heading p{margin:0 0 13px;font-size:.88rem;color:var(--muted,#667085)}
.ag-seller-contact-pro .ag-seller-contact-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ag-seller-contact-pro .ag-contact-btn{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-width:0;min-height:44px;padding:10px 12px;border-radius:9px;font-weight:750;text-align:center}
.ag-seller-contact-pro .ag-contact-external{grid-column:1/-1}
.ag-product-information{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,.6fr);gap:20px;margin-top:20px}
.ag-product-description-panel,.ag-product-facts{padding:22px;border-radius:14px;border:1px solid var(--border,#dbe1e8);background:var(--surface,#fff)}
.ag-product-description-panel h2,.ag-product-facts h2{margin:0 0 14px;font-size:1.15rem}
.ag-product-description-panel .ag-product-description{margin:0;line-height:1.7;overflow-wrap:anywhere}
.ag-product-facts dl{display:grid;gap:0;margin:0}
.ag-product-facts dl>div{padding:12px 0;border-bottom:1px solid var(--border,#e1e5ea)}
.ag-product-facts dl>div:first-child{padding-top:0}
.ag-product-facts dl>div:last-child{padding-bottom:0;border-bottom:0}
.ag-product-facts dt{margin-bottom:4px;font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.03em;color:var(--muted,#667085)}
.ag-product-facts dd{margin:0;line-height:1.45;overflow-wrap:anywhere}
.ag-product-report{margin-top:16px;padding:14px 16px;border:1px solid var(--border,#dbe1e8);border-radius:12px;background:var(--surface,#fff)}

html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-product-gallery,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-product-location-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-product-location-grid>div,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-seller-contact-pro,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-product-description-panel,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-product-facts,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-product-report{background:#111b2c;border-color:#2a3a52;color:#edf4ff}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-product-location-card{background:#0d1727}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-product-location-title,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-product-location-grid span,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-contact-heading p,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-product-facts dt{color:#aebdd1}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .ag-product-location-grid strong{color:#f4f8ff}

@media(max-width:900px){
  .ag-product-detail-pro{grid-template-columns:1fr;gap:18px;padding:18px}
  .ag-product-information{grid-template-columns:1fr}
  .ag-product-gallery .ag-detail-image{aspect-ratio:16/11}
}
@media(max-width:600px){
  .ag-product-detail-pro{padding:14px;border-radius:12px}
  .ag-product-location-grid{grid-template-columns:1fr}
  .ag-seller-contact-pro .ag-seller-contact-actions{grid-template-columns:1fr}
  .ag-seller-contact-pro .ag-contact-external{grid-column:auto}
  .ag-product-description-panel,.ag-product-facts{padding:17px}
}

/* Marketplace v1.13: ficha de producto compacta y proporcionada */
.ag-product-page{max-width:1200px}
.ag-product-detail-pro{
  grid-template-columns:minmax(0,.9fr) minmax(320px,1.1fr);
  gap:18px;
  padding:16px;
  border-radius:12px;
}
.ag-product-gallery{border-radius:10px}
.ag-product-gallery .ag-detail-image{
  aspect-ratio:16/11;
  max-height:410px;
  object-fit:contain;
}
.ag-product-summary{gap:12px}
.ag-product-heading h1{
  margin:7px 0 5px;
  font-size:clamp(1.25rem,2vw,1.75rem);
  line-height:1.18;
}
.ag-product-heading .ag-price{margin-top:9px}
.ag-product-page .ag-price.big{font-size:clamp(1.22rem,2vw,1.65rem)}
.ag-product-vendor{font-size:.9rem}
.ag-product-location-card{padding:11px;border-radius:9px}
.ag-product-location-title{margin-bottom:7px;font-size:.72rem}
.ag-product-location-grid{gap:8px}
.ag-product-location-grid>div{padding:8px 9px;border-radius:7px}
.ag-product-location-grid span{margin-bottom:2px;font-size:.68rem}
.ag-product-location-grid strong{font-size:.86rem}
.ag-seller-contact-pro{padding:12px;border-radius:9px}
.ag-contact-heading h2{font-size:.98rem}
.ag-contact-heading p{margin-bottom:9px;font-size:.8rem;line-height:1.35}
.ag-seller-contact-pro .ag-seller-contact-actions{gap:8px}
.ag-seller-contact-pro .ag-contact-btn{
  min-height:38px;
  padding:8px 10px;
  border-radius:7px;
  font-size:.82rem;
}
.ag-product-information{
  grid-template-columns:minmax(0,1.55fr) minmax(240px,.45fr);
  gap:14px;
  margin-top:14px;
}
.ag-product-description-panel,.ag-product-facts{
  padding:15px;
  border-radius:10px;
}
.ag-product-description-panel h2,.ag-product-facts h2{
  margin-bottom:9px;
  font-size:1rem;
}
.ag-product-description-panel .ag-product-description{
  font-size:.9rem;
  line-height:1.55;
}
.ag-product-facts dl>div{padding:8px 0}
.ag-product-facts dt{margin-bottom:2px;font-size:.69rem}
.ag-product-facts dd{font-size:.86rem;line-height:1.35}
.ag-product-page .ag-market-notice{
  margin-top:12px;
  padding:11px 13px;
  font-size:.83rem;
  line-height:1.45;
}
.ag-product-report{margin-top:12px;padding:10px 13px;border-radius:9px}
.ag-product-report summary{font-size:.86rem}

@media(max-width:900px){
  .ag-product-detail-pro{grid-template-columns:minmax(0,.85fr) minmax(300px,1.15fr);gap:14px;padding:14px}
  .ag-product-gallery .ag-detail-image{max-height:340px}
  .ag-product-information{grid-template-columns:1fr}
}
@media(max-width:760px){
  .ag-product-detail-pro{grid-template-columns:1fr;gap:12px}
  .ag-product-gallery .ag-detail-image{aspect-ratio:16/10;max-height:330px}
  .ag-product-summary{gap:10px}
  .ag-product-location-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ag-seller-contact-pro .ag-seller-contact-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px){
  .ag-product-detail-pro{padding:10px;border-radius:10px}
  .ag-product-gallery .ag-detail-image{aspect-ratio:4/3;max-height:260px}
  .ag-product-heading h1{font-size:1.18rem}
  .ag-product-page .ag-price.big{font-size:1.25rem}
  .ag-product-location-card,.ag-seller-contact-pro{padding:10px}
  .ag-product-location-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .ag-product-location-grid>div{padding:7px}
  .ag-seller-contact-pro .ag-seller-contact-actions{grid-template-columns:1fr;gap:6px}
  .ag-seller-contact-pro .ag-contact-external{grid-column:auto}
  .ag-seller-contact-pro .ag-contact-btn{min-height:36px;padding:7px 9px}
  .ag-product-description-panel,.ag-product-facts{padding:12px}
}

/* ========================================================================== 
   MARKETPLACE V1.14 — CATÁLOGO COMPACTO PROFESIONAL
   Autor: Rodrigo Reyes / RadioaficionadosClub.cl
   Objetivo: tarjetas proporcionadas al estilo de “Últimas publicaciones”.
   ========================================================================== */
.ag-market-catalog-grid,
.ag-market-home-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:14px!important;
  align-items:stretch;
}
.ag-shop-card{
  min-width:0;
  height:100%;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid #d7dde7;
  border-radius:14px;
  background:#fff;
  box-shadow:0 7px 20px rgba(15,23,42,.07);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.ag-shop-card:hover{
  transform:translateY(-2px);
  border-color:#9ab9e8;
  box-shadow:0 12px 26px rgba(15,23,42,.11);
}
.ag-shop-card.is-featured{border-color:#f3b33d}
.ag-shop-card-media{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  height:178px;
  padding:10px;
  overflow:hidden;
  background:#eef2f7;
  text-decoration:none;
}
.ag-shop-card-media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  transition:transform .2s ease;
}
.ag-shop-card:hover .ag-shop-card-media img{transform:scale(1.025)}
.ag-shop-featured{
  position:absolute;
  top:10px;
  left:10px;
  z-index:2;
  padding:4px 8px;
  border-radius:999px;
  color:#fff;
  background:#168a39;
  box-shadow:0 3px 10px rgba(22,138,57,.28);
  font-size:11px;
  font-weight:900;
  line-height:1;
}
.ag-shop-card-body{
  display:flex;
  flex:1;
  flex-direction:column;
  min-width:0;
  padding:12px 13px 13px;
}
.ag-shop-card-tags{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-bottom:7px}
.ag-shop-category,
.ag-shop-condition{
  display:inline-flex;
  align-items:center;
  max-width:100%;
  padding:3px 7px;
  border-radius:999px;
  background:#e6f1ff;
  color:#075ca8;
  font-size:10.5px;
  line-height:1.15;
  font-weight:800;
}
.ag-shop-condition{background:#edf0f4;color:#526173}
.ag-shop-title{margin:0 0 7px;font-size:15px;line-height:1.25;font-weight:900}
.ag-shop-title a{color:#172033;text-decoration:none}
.ag-shop-title a:hover{color:#1267c9}
.ag-shop-seller{display:flex;flex-wrap:wrap;gap:5px 8px;align-items:center;margin-bottom:7px;color:#58677a;font-size:11.5px;line-height:1.35}
.ag-shop-seller a{color:#1267c9;text-decoration:none;font-weight:800}
.ag-shop-verified{color:#0878d1;font-weight:800}
.ag-shop-location{display:flex;align-items:center;gap:5px;min-height:18px;margin-bottom:9px;color:#58677a;font-size:11.5px;line-height:1.3}
.ag-shop-price{margin-top:auto;padding-top:3px;color:#18813a;font-size:17px;line-height:1.2;font-weight:950}
.ag-shop-card-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid #e1e6ed;
}
.ag-shop-stock{min-width:0;color:#58677a;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ag-shop-button{
  flex:0 0 auto;
  min-height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 12px;
  border:1px solid #1a73d9;
  border-radius:8px;
  color:#1168c9;
  background:transparent;
  text-decoration:none;
  font-size:12px;
  line-height:1;
  font-weight:900;
  transition:background .16s ease,color .16s ease,box-shadow .16s ease;
}
.ag-shop-button:hover{background:#126fe0;color:#fff;box-shadow:0 6px 14px rgba(18,111,224,.22)}
.ag-market-home .ag-shop-card-media{height:166px}
.ag-market-home .ag-shop-card-body{padding:11px 12px 12px}
.ag-market-home .ag-shop-title{font-size:14px}

@media(max-width:1050px){
  .ag-market-catalog-grid,.ag-market-home-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:780px){
  .ag-market-catalog-grid,.ag-market-home-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
  .ag-shop-card-media{height:158px}
}
@media(max-width:520px){
  .ag-market-catalog-grid,.ag-market-home-grid{grid-template-columns:1fr!important;gap:11px!important}
  .ag-shop-card{display:grid;grid-template-columns:118px minmax(0,1fr);border-radius:12px}
  .ag-shop-card-media{height:100%;min-height:174px;padding:8px}
  .ag-shop-card-body{padding:11px}
  .ag-shop-card-tags{margin-bottom:5px}
  .ag-shop-title{font-size:14px;margin-bottom:5px}
  .ag-shop-location{margin-bottom:6px}
  .ag-shop-price{font-size:15px}
  .ag-shop-card-footer{gap:7px;margin-top:8px;padding-top:8px}
  .ag-shop-button{min-height:32px;padding:6px 9px;font-size:11px}
}

/* Modo oscuro real */
html[data-theme="dark"] .ag-shop-card,
body.dark-mode .ag-shop-card,
[data-theme="dark"] .ag-shop-card{
  background:#111a27;
  color:#e7eef8;
  border-color:#334155;
  box-shadow:0 8px 22px rgba(0,0,0,.28);
}
html[data-theme="dark"] .ag-shop-card:hover,
body.dark-mode .ag-shop-card:hover,
[data-theme="dark"] .ag-shop-card:hover{border-color:#287bd7}
html[data-theme="dark"] .ag-shop-card-media,
body.dark-mode .ag-shop-card-media,
[data-theme="dark"] .ag-shop-card-media{background:#0c1420}
html[data-theme="dark"] .ag-shop-title a,
body.dark-mode .ag-shop-title a,
[data-theme="dark"] .ag-shop-title a{color:#f3f7fc}
html[data-theme="dark"] .ag-shop-title a:hover,
body.dark-mode .ag-shop-title a:hover,
[data-theme="dark"] .ag-shop-title a:hover{color:#52a5ff}
html[data-theme="dark"] .ag-shop-seller,
html[data-theme="dark"] .ag-shop-location,
html[data-theme="dark"] .ag-shop-stock,
body.dark-mode .ag-shop-seller,
body.dark-mode .ag-shop-location,
body.dark-mode .ag-shop-stock,
[data-theme="dark"] .ag-shop-seller,
[data-theme="dark"] .ag-shop-location,
[data-theme="dark"] .ag-shop-stock{color:#b5c0d0}
html[data-theme="dark"] .ag-shop-category,
body.dark-mode .ag-shop-category,
[data-theme="dark"] .ag-shop-category{background:#12365f;color:#8ec8ff}
html[data-theme="dark"] .ag-shop-condition,
body.dark-mode .ag-shop-condition,
[data-theme="dark"] .ag-shop-condition{background:#283548;color:#d1dae7}
html[data-theme="dark"] .ag-shop-price,
body.dark-mode .ag-shop-price,
[data-theme="dark"] .ag-shop-price{color:#56e477}
html[data-theme="dark"] .ag-shop-card-footer,
body.dark-mode .ag-shop-card-footer,
[data-theme="dark"] .ag-shop-card-footer{border-top-color:#304055}
html[data-theme="dark"] .ag-shop-button,
body.dark-mode .ag-shop-button,
[data-theme="dark"] .ag-shop-button{border-color:#2785ed;color:#66b1ff}
html[data-theme="dark"] .ag-shop-button:hover,
body.dark-mode .ag-shop-button:hover,
[data-theme="dark"] .ag-shop-button:hover{background:#1672d7;color:#fff}

/* Marketplace v1.15: acciones privadas de dueño, moderación y administración */
.ag-product-owner-tools{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 14px;padding:12px 14px;border:1px solid var(--border,#2c3d52);border-radius:12px;background:var(--card-bg,#111a25)}
.ag-product-owner-tools__status{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0}
.ag-product-owner-tools__status small{flex-basis:100%;color:var(--muted,#9ca9b8)}
.ag-product-owner-tools__actions,.ag-staff-editor-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.ag-inline-moderation-form{display:inline-flex;margin:0}
.ag-product-status{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:.78rem;font-weight:700;background:#243247;color:#dcecff}
.ag-product-status--published{background:#123a28;color:#8df0b8}.ag-product-status--paused,.ag-product-status--rejected{background:#4a2024;color:#ffb7bd}
.ag-market-staff-editor{max-width:1200px;margin-inline:auto}
.ag-staff-editor-card,.ag-danger-zone{margin-bottom:16px}
.ag-staff-editor-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.ag-staff-editor-heading h1{margin:.35rem 0 .2rem}
.ag-staff-product-form>label{display:block;margin-top:12px}
.ag-staff-promotion-options{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,1fr);gap:12px;align-items:end;margin-top:14px;padding:12px;border:1px solid var(--border,#2c3d52);border-radius:10px}
.ag-staff-editor-actions{margin-top:16px}
.ag-danger-zone{border-color:#7b343b}
.ag-danger-zone h2{margin-top:0}
.ag-admin-delete-form{margin-top:14px;padding-top:14px;border-top:1px solid #7b343b}
.btn.warning{background:#b66a00;color:#fff;border-color:#d98a16}.btn.danger{background:#b4232f;color:#fff;border-color:#d23a47}
@media(max-width:760px){.ag-product-owner-tools,.ag-staff-editor-heading{align-items:stretch;flex-direction:column}.ag-product-owner-tools__actions,.ag-product-owner-tools__actions .btn,.ag-inline-moderation-form,.ag-inline-moderation-form .btn{width:100%}.ag-staff-promotion-options{grid-template-columns:1fr}}

/* Marketplace v1.16: administración compacta de productos por usuario */
.marketplace-admin-page .mp-admin-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:24px 0 12px}.marketplace-admin-page .mp-admin-section-heading h2,.marketplace-admin-page .mp-admin-section-heading p{margin:0}.mp-admin-total,.mp-admin-count{display:inline-flex;align-items:center;white-space:nowrap;border:1px solid var(--border,#d8dee8);border-radius:999px;padding:5px 10px;font-size:.78rem;font-weight:700}.mp-admin-user-group{border:1px solid var(--border,#d8dee8);border-radius:14px;overflow:hidden;margin-bottom:16px;background:var(--card-bg,#fff)}.mp-admin-user-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 15px;border-bottom:1px solid var(--border,#d8dee8)}.mp-admin-user-head>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 12px}.mp-admin-user-head strong{font-size:1rem}.mp-admin-user-head span,.mp-admin-user-head small{font-size:.8rem;color:var(--muted,#667085)}.mp-admin-product-list{display:grid}.mp-admin-product-row{border-bottom:1px solid var(--border,#d8dee8)}.mp-admin-product-row:last-child{border-bottom:0}.mp-admin-product-row>summary{list-style:none;display:grid;grid-template-columns:minmax(220px,1fr) 130px 100px auto 104px;align-items:center;gap:12px;padding:11px 15px;cursor:pointer}.mp-admin-product-row>summary::-webkit-details-marker{display:none}.mp-admin-product-row>summary:hover{background:rgba(37,99,235,.06)}.mp-admin-product-title{display:grid;min-width:0}.mp-admin-product-title strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mp-admin-product-title small{font-size:.74rem;color:var(--muted,#667085)}.mp-admin-product-price{font-weight:800}.mp-admin-status,.mp-admin-featured{display:inline-flex;justify-content:center;border-radius:999px;padding:4px 8px;font-size:.72rem;font-weight:800}.mp-status-published{background:#dcfce7;color:#166534}.mp-status-draft{background:#eef2f7;color:#475467}.mp-status-pending{background:#fef3c7;color:#92400e}.mp-status-paused,.mp-status-rejected{background:#fee2e2;color:#991b1b}.mp-admin-featured{background:#dbeafe;color:#1d4ed8}.mp-admin-expand{font-size:.78rem;font-weight:800;color:var(--primary,#2563eb);text-align:right}.mp-admin-product-editor{padding:16px;border-top:1px solid var(--border,#d8dee8);background:rgba(15,23,42,.025)}.mp-admin-edit-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.mp-admin-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:12px}.mp-admin-check{margin-right:auto}.mp-admin-delete-form{display:flex;justify-content:flex-end;margin-top:8px;padding-top:10px;border-top:1px dashed var(--border,#d8dee8)}.btn-danger{background:#b42318!important;border-color:#b42318!important;color:#fff!important}
[data-theme="dark"] .mp-admin-user-group,[data-theme="dark"] .mp-admin-product-editor{background:#111827;color:#e5e7eb}[data-theme="dark"] .mp-admin-product-editor{background:#0f172a}[data-theme="dark"] .mp-admin-product-row>summary:hover{background:rgba(59,130,246,.12)}[data-theme="dark"] .mp-admin-user-head span,[data-theme="dark"] .mp-admin-user-head small,[data-theme="dark"] .mp-admin-product-title small{color:#94a3b8}
@media(max-width:980px){.mp-admin-product-row>summary{grid-template-columns:minmax(180px,1fr) 115px 92px 96px}.mp-admin-featured{display:none}.mp-admin-edit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.marketplace-admin-page .mp-admin-section-heading,.mp-admin-user-head{align-items:flex-start}.mp-admin-product-row>summary{grid-template-columns:1fr auto;gap:5px 10px;padding:12px}.mp-admin-product-title{grid-column:1/-1}.mp-admin-product-price{grid-column:1}.mp-admin-status{grid-column:2;grid-row:2}.mp-admin-featured{display:inline-flex;grid-column:1}.mp-admin-expand{grid-column:2;text-align:right}.mp-admin-edit-grid{grid-template-columns:1fr}.mp-admin-actions{align-items:stretch}.mp-admin-actions .btn{width:100%;justify-content:center}.mp-admin-check{width:100%}.mp-admin-delete-form .btn{width:100%}}

/* ========================================================================== 
   MARKETPLACE V1.17 — PALETA OSCURA OBLIGATORIA
   RadioaficionadosClub.cl — Rodrigo Reyes
   Evita fondos blancos en tienda, productos, panel de vendedor y administración.
   ========================================================================== */
.marketplace-admin-page,
.ag-marketplace-page,
.ag-market-page,
.ag-market-home,
.ag-product-page,
.ag-market-dashboard,
.ag-market-staff-editor{
  --mp-bg:#0b1119;
  --mp-surface:#111a27;
  --mp-surface-2:#162131;
  --mp-surface-3:#1c293a;
  --mp-border:#304157;
  --mp-text:#edf4fc;
  --mp-muted:#a9b7c9;
  --mp-link:#59aaff;
  color:var(--mp-text)!important;
}

/* Superficies generales */
.marketplace-admin-page,
.marketplace-admin-page .admin-card,
.marketplace-admin-page .box,
.marketplace-admin-page .setting-card,
.marketplace-admin-page .mp-admin-user-group,
.marketplace-admin-page .mp-admin-product-editor,
.marketplace-admin-page details,
.ag-marketplace-page .box,
.ag-marketplace-page .widget,
.ag-market-page .box,
.ag-market-page .widget,
.ag-market-dashboard .box,
.ag-market-dashboard .widget,
.ag-product-page .box,
.ag-product-page .widget,
.ag-product-page .ag-product-detail-pro,
.ag-product-page .ag-product-summary,
.ag-product-page .ag-product-location-card,
.ag-product-page .ag-seller-contact-pro,
.ag-product-page .ag-product-description-panel,
.ag-product-page .ag-product-facts,
.ag-market-staff-editor .box,
.ag-market-staff-editor .ag-staff-editor-card,
.ag-market-staff-editor .ag-danger-zone{
  background:var(--mp-surface)!important;
  color:var(--mp-text)!important;
  border-color:var(--mp-border)!important;
  box-shadow:0 10px 28px rgba(0,0,0,.28)!important;
}

/* Tarjetas de productos y medios */
.ag-shop-card{background:#111a27!important;color:#edf4fc!important;border-color:#304157!important}
.ag-shop-card-media{background:#0a111b!important}
.ag-shop-title a{color:#f4f8fd!important}
.ag-shop-seller,.ag-shop-location,.ag-shop-stock{color:#a9b7c9!important}
.ag-shop-card-footer{border-top-color:#304157!important}
.ag-shop-category{background:#12385f!important;color:#9cd0ff!important}
.ag-shop-condition{background:#263548!important;color:#d7e1ed!important}

/* Administración compacta */
.marketplace-admin-page .mp-admin-user-head,
.marketplace-admin-page .mp-admin-product-row,
.marketplace-admin-page .mp-admin-product-row>summary,
.marketplace-admin-page .mp-admin-section-heading{
  background:transparent!important;
  color:var(--mp-text)!important;
  border-color:var(--mp-border)!important;
}
.marketplace-admin-page .mp-admin-product-row>summary:hover{background:#19273a!important}
.marketplace-admin-page .mp-admin-product-editor{background:#0d1521!important}
.marketplace-admin-page .mp-admin-user-head span,
.marketplace-admin-page .mp-admin-user-head small,
.marketplace-admin-page .mp-admin-product-title small,
.marketplace-admin-page .muted,
.marketplace-admin-page .hint{color:var(--mp-muted)!important}
.marketplace-admin-page .mp-admin-expand,
.marketplace-admin-page a:not(.btn){color:var(--mp-link)!important}
.marketplace-admin-page .mp-admin-total,
.marketplace-admin-page .mp-admin-count{background:#172437!important;border-color:#3a4d65!important;color:#dce8f6!important}

/* Formularios */
.marketplace-admin-page input,
.marketplace-admin-page select,
.marketplace-admin-page textarea,
.ag-marketplace-page input,
.ag-marketplace-page select,
.ag-marketplace-page textarea,
.ag-market-page input,
.ag-market-page select,
.ag-market-page textarea,
.ag-market-dashboard input,
.ag-market-dashboard select,
.ag-market-dashboard textarea,
.ag-product-page input,
.ag-product-page select,
.ag-product-page textarea,
.ag-market-staff-editor input,
.ag-market-staff-editor select,
.ag-market-staff-editor textarea{
  background:#0b1420!important;
  color:#edf4fc!important;
  border-color:#40536b!important;
  box-shadow:none!important;
}
.marketplace-admin-page input::placeholder,
.marketplace-admin-page textarea::placeholder,
.ag-marketplace-page input::placeholder,
.ag-marketplace-page textarea::placeholder,
.ag-market-dashboard input::placeholder,
.ag-market-dashboard textarea::placeholder{color:#7f91a8!important}
.marketplace-admin-page input:focus,
.marketplace-admin-page select:focus,
.marketplace-admin-page textarea:focus,
.ag-marketplace-page input:focus,
.ag-marketplace-page select:focus,
.ag-marketplace-page textarea:focus,
.ag-market-dashboard input:focus,
.ag-market-dashboard select:focus,
.ag-market-dashboard textarea:focus{
  border-color:#3694ff!important;
  outline:2px solid rgba(54,148,255,.18)!important;
}
.marketplace-admin-page option,
.ag-marketplace-page option,
.ag-market-dashboard option{background:#0b1420;color:#edf4fc}

/* Tablas */
.marketplace-admin-page table,
.ag-market-dashboard table{background:#111a27!important;color:#edf4fc!important;border-color:#304157!important}
.marketplace-admin-page th,
.ag-market-dashboard th{background:#18263a!important;color:#f4f8fd!important;border-color:#304157!important}
.marketplace-admin-page td,
.ag-market-dashboard td{background:#111a27!important;color:#dce6f2!important;border-color:#304157!important}
.marketplace-admin-page tr:nth-child(even) td,
.ag-market-dashboard tr:nth-child(even) td{background:#0e1724!important}

/* Avisos y estados sin superficies blancas */
.marketplace-admin-page .alert,
.ag-marketplace-page .alert,
.ag-market-dashboard .alert,
.ag-product-page .alert{background:#3a1d25!important;color:#ffd6db!important;border-color:#733443!important}
.marketplace-admin-page .success,
.ag-marketplace-page .success,
.ag-market-dashboard .success,
.ag-product-page .success{background:#123522!important;color:#b9f6cf!important;border-color:#286342!important}
.marketplace-admin-page .radio-row,
.marketplace-admin-page .check-line,
.ag-market-dashboard .radio-row,
.ag-market-dashboard .check-line{background:#101b29!important;border-color:#304157!important;color:#e6eef8!important}

/* Etiquetas administrativas adaptadas a oscuro */
.marketplace-admin-page .mp-status-published{background:#123a28!important;color:#8df0b8!important}
.marketplace-admin-page .mp-status-draft{background:#253346!important;color:#d3deeb!important}
.marketplace-admin-page .mp-status-pending{background:#4a3614!important;color:#ffe19a!important}
.marketplace-admin-page .mp-status-paused,
.marketplace-admin-page .mp-status-rejected{background:#4a2028!important;color:#ffb9c0!important}
.marketplace-admin-page .mp-admin-featured{background:#123b65!important;color:#9bd0ff!important}

/* Evita textos oscuros heredados */
.marketplace-admin-page h1,
.marketplace-admin-page h2,
.marketplace-admin-page h3,
.marketplace-admin-page h4,
.marketplace-admin-page label,
.marketplace-admin-page strong,
.ag-marketplace-page h1,
.ag-marketplace-page h2,
.ag-marketplace-page h3,
.ag-market-dashboard h1,
.ag-market-dashboard h2,
.ag-market-dashboard h3,
.ag-product-page h1,
.ag-product-page h2,
.ag-product-page h3,
.ag-market-staff-editor h1,
.ag-market-staff-editor h2,
.ag-market-staff-editor h3{color:var(--mp-text)!important}

/* Botones conservan contraste y separación */
.marketplace-admin-page .btn,
.marketplace-admin-page button,
.ag-marketplace-page .btn,
.ag-marketplace-page button,
.ag-market-dashboard .btn,
.ag-market-dashboard button,
.ag-product-page .btn,
.ag-product-page button{color:#fff!important}

/* Marketplace v1.18: integración completa con administración oscura */
body.ag-admin-body .ag-market-admin-shell,
body.ag-admin-body .ag-market-admin-shell .wp-admin-main,
body.ag-admin-body .ag-market-admin-shell .marketplace-admin-page{
  background:#0b1119!important;
  color:#edf4fc!important;
}
body.ag-admin-body .ag-market-admin-shell .wp-admin-main{
  min-width:0;
}
body.ag-admin-body .marketplace-admin-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  background:linear-gradient(135deg,#111a27,#172437)!important;
  border:1px solid #304157!important;
  color:#edf4fc!important;
}
body.ag-admin-body .marketplace-admin-header h1,
body.ag-admin-body .marketplace-admin-header p{
  color:#edf4fc!important;
}
body.ag-admin-body .marketplace-admin-header p{
  color:#a9b7c9!important;
}
body.ag-admin-body .marketplace-admin-header-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
body.ag-admin-body .marketplace-admin-header-actions .btn{
  white-space:nowrap;
}
body.ag-admin-body .marketplace-admin-page section,
body.ag-admin-body .marketplace-admin-page .ag-admin-tabs,
body.ag-admin-body .marketplace-admin-page .ag-admin-table-wrap,
body.ag-admin-body .marketplace-admin-page .wp-card{
  background:#111a27!important;
  color:#edf4fc!important;
  border-color:#304157!important;
}
body.ag-admin-body .marketplace-admin-page .ag-admin-tabs a{
  background:#172437!important;
  color:#dce8f6!important;
  border-color:#3a4d65!important;
}
body.ag-admin-body .marketplace-admin-page .ag-admin-tabs a:hover,
body.ag-admin-body .marketplace-admin-page .ag-admin-tabs a:focus{
  background:#1d3553!important;
  color:#fff!important;
}
@media(max-width:900px){
  body.ag-admin-body .marketplace-admin-header{
    align-items:flex-start;
    flex-direction:column;
  }
  body.ag-admin-body .marketplace-admin-header-actions,
  body.ag-admin-body .marketplace-admin-header-actions .btn{
    width:100%;
  }
  body.ag-admin-body .marketplace-admin-header-actions .btn{
    justify-content:center;
  }
}

/* Marketplace: reputación verificada, operaciones y comentarios */
.ag-market-reputation,.ag-product-comments{margin-top:22px;padding:24px;border:1px solid #2d4058;border-radius:18px;background:#0f1825;color:#e8f0fa}
.ag-reputation-heading,.ag-comments-heading,.ag-transaction-panel__top{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.ag-reputation-heading h2,.ag-comments-heading h2,.ag-transaction-panel h3{margin:8px 0 5px;color:#f6f9fd}
.ag-reputation-heading p,.ag-transaction-request p,.ag-transaction-panel p{margin:0;color:#aebdd0}
.ag-rating-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}
.ag-rating-summary-card{padding:18px;border:1px solid #30445d;border-radius:15px;background:#142133}
.ag-rating-summary-card>span{display:block;color:#aebdd0;font-size:.88rem;text-transform:uppercase;letter-spacing:.04em}
.ag-rating-summary-card>strong{display:block;margin:6px 0 2px;font-size:1.7rem;color:#fff}
.ag-stars{color:#ffc857;font-size:1.25rem;letter-spacing:2px}
.ag-rating-summary-card small{display:block;margin-top:6px;color:#9eb0c5}
.ag-reputation-login,.ag-transaction-request{margin-top:16px}
.ag-transaction-request{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:17px;border:1px solid #31577c;border-radius:14px;background:#102942}
.ag-transaction-request strong{color:#fff}
.ag-transaction-panel{margin-top:18px;padding:20px;border:1px solid #36506d;border-radius:16px;background:#111d2c}
.ag-transaction-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.ag-transaction-actions form{margin:0}
.ag-confirmed-label{display:inline-flex;align-items:center;padding:9px 12px;border-radius:10px;background:#143a28;color:#9ff0bd;font-size:.9rem}
.ag-rating-forms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}
.ag-rating-form{padding:16px;border:1px solid #30445d;border-radius:14px;background:#0d1723}
.ag-rating-form label,.ag-comment-form label{display:block;margin-top:10px;color:#dce7f4;font-weight:600}
.ag-rating-form select,.ag-rating-form textarea,.ag-comment-form textarea{width:100%;margin-top:6px;border:1px solid #3c526d;border-radius:10px;background:#111d2b;color:#f1f6fc;padding:11px}
.ag-rating-form textarea{min-height:100px;resize:vertical}
.ag-comment-form{margin-top:18px;padding:16px;border:1px solid #30445d;border-radius:14px;background:#121e2d}
.ag-comment-form textarea{min-height:105px;resize:vertical;margin-bottom:10px}
.ag-comment-list{display:grid;gap:12px;margin-top:16px}
.ag-market-comment{display:grid;grid-template-columns:44px 1fr;gap:12px;padding:15px;border:1px solid #2b3c52;border-radius:14px;background:#111b29}
.ag-market-comment>img{width:44px;height:44px;object-fit:cover;border-radius:50%;border:1px solid #405672}
.ag-market-comment__body header{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.ag-market-comment__body header strong{color:#fff}
.ag-market-comment__body time{margin-left:auto;color:#8498b1;font-size:.82rem}
.ag-market-comment__body p{margin:8px 0 0;color:#d7e1ed;line-height:1.6}
.ag-comment-callsign{color:#7fc5ff;font-size:.85rem}
.ag-comment-delete{margin-top:8px;padding:0;border:0;background:transparent;color:#ff9aa5;cursor:pointer;font-size:.85rem}
.ag-empty-comments{padding:20px;text-align:center;border:1px dashed #3a4d66;border-radius:12px;color:#9fb0c5}
@media(max-width:760px){.ag-market-reputation,.ag-product-comments{padding:16px;border-radius:14px}.ag-rating-summary-grid,.ag-rating-forms{grid-template-columns:1fr}.ag-reputation-heading,.ag-comments-heading,.ag-transaction-panel__top,.ag-transaction-request{flex-direction:column}.ag-transaction-actions{justify-content:flex-start;width:100%}.ag-transaction-actions form,.ag-transaction-actions .btn,.ag-transaction-request .btn{width:100%}.ag-market-comment{grid-template-columns:36px 1fr}.ag-market-comment>img{width:36px;height:36px}.ag-market-comment__body time{width:100%;margin-left:0}}
.ag-buyer-reputation{margin-top:8px;color:#9fb2c8;font-size:.9rem}.ag-buyer-reputation strong{color:#ffc857}

/* Marketplace: selector accesible y táctil de estrellas */
.ag-star-rating{margin:14px 0 4px;padding:0;border:0;min-width:0}
.ag-star-rating legend{margin-bottom:8px;color:#dce7f4;font-weight:750}
.ag-star-rating__control{display:inline-flex;flex-direction:row-reverse;justify-content:flex-end;gap:4px;padding:8px 10px;border:1px solid #3c526d;border-radius:12px;background:#111d2b;touch-action:manipulation}
.ag-star-rating__control input{position:absolute;inline-size:1px;block-size:1px;opacity:0;pointer-events:none}
.ag-star-rating__control label{display:grid;place-items:center;width:46px;height:46px;margin:0!important;border-radius:10px;color:#64748b;font-size:2rem;line-height:1;cursor:pointer;user-select:none;transition:transform .12s ease,color .12s ease,background .12s ease,box-shadow .12s ease}
.ag-star-rating__control label:hover,.ag-star-rating__control label:focus-visible{transform:translateY(-1px)}
.ag-star-rating__control label:hover,
.ag-star-rating__control label:hover~label,
.ag-star-rating__control input:checked~label{color:#ffc857;background:rgba(255,200,87,.09)}
.ag-star-rating__control input:focus-visible+label{outline:3px solid #60a5fa;outline-offset:2px;box-shadow:0 0 0 5px rgba(96,165,250,.16)}
.ag-star-rating__status{margin:8px 0 0;color:#b8c7d9;font-size:.9rem;font-weight:650}
.ag-star-rating__fallback{display:none!important}
@media(max-width:520px){.ag-star-rating__control{display:flex;width:100%;justify-content:center;gap:2px;padding:7px}.ag-star-rating__control label{width:20%;max-width:52px;height:48px;font-size:2rem}}
@media(prefers-reduced-motion:reduce){.ag-star-rating__control label{transition:none}}

/* =========================================================
   TIENDA · PANEL DEL VENDEDOR
   Corrección de estructura y estilos aislados (2026-07-26)
   ========================================================= */
body:not(.ag-admin-body) .ag-market-dashboard{
  width:min(1180px,calc(100% - 32px));
  margin:28px auto 54px;
  padding:0;
  color:#e8f0fa;
}
body:not(.ag-admin-body) .ag-market-dashboard>h1{
  margin:0 0 8px;
  color:#fff;
  font-size:clamp(1.75rem,3vw,2.35rem);
  line-height:1.15;
}
body:not(.ag-admin-body) .ag-market-dashboard>p{
  margin:0 0 20px;
  color:#9eb0c5;
}
body:not(.ag-admin-body) .ag-market-dashboard>p a{color:#71b7ff;font-weight:700}
body:not(.ag-admin-body) .ag-market-dashboard .ag-dashboard-card{
  margin:0 0 22px;
  padding:clamp(18px,3vw,28px);
  border:1px solid #2b3d53;
  border-radius:18px;
  background:linear-gradient(180deg,#111c2b 0%,#0e1724 100%);
  box-shadow:0 14px 34px rgba(0,0,0,.22);
  overflow:hidden;
}
body:not(.ag-admin-body) .ag-market-dashboard .ag-dashboard-card h2{
  margin:0 0 10px;
  color:#fff;
  font-size:clamp(1.25rem,2.2vw,1.55rem);
}
body:not(.ag-admin-body) .ag-market-dashboard .ag-required-note,
body:not(.ag-admin-body) .ag-market-dashboard small{color:#93a7bf}
body:not(.ag-admin-body) .ag-market-dashboard .ag-market-form{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin-top:18px;
}
body:not(.ag-admin-body) .ag-market-dashboard .ag-market-form>label{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0;
  color:#dce7f4;
  font-weight:700;
}
body:not(.ag-admin-body) .ag-market-dashboard .ag-market-form input:not([type="checkbox"]),
body:not(.ag-admin-body) .ag-market-dashboard .ag-market-form select,
body:not(.ag-admin-body) .ag-market-dashboard .ag-market-form textarea{
  width:100%;
  min-height:46px;
  padding:11px 13px;
  border:1px solid #354a63;
  border-radius:11px;
  background:#0a1320;
  color:#f1f6fc;
  font:inherit;
  box-sizing:border-box;
}
body:not(.ag-admin-body) .ag-market-dashboard .ag-market-form textarea{min-height:118px;resize:vertical}
body:not(.ag-admin-body) .ag-market-dashboard .ag-market-form input:focus,
body:not(.ag-admin-body) .ag-market-dashboard .ag-market-form select:focus,
body:not(.ag-admin-body) .ag-market-dashboard .ag-market-form textarea:focus{
  outline:none;
  border-color:#52a8ff;
  box-shadow:0 0 0 3px rgba(82,168,255,.16);
}
body:not(.ag-admin-body) .ag-market-dashboard .ag-check-full{grid-column:1/-1}
body:not(.ag-admin-body) .ag-market-dashboard label.ag-check,
body:not(.ag-admin-body) .ag-market-dashboard label.ag-check-full{
  flex-direction:row;
  align-items:flex-start;
  gap:10px;
  padding:13px 14px;
  border:1px solid #30445d;
  border-radius:12px;
  background:#101b29;
  font-weight:600;
  line-height:1.5;
}
body:not(.ag-admin-body) .ag-market-dashboard label.ag-check input,
body:not(.ag-admin-body) .ag-market-dashboard label.ag-check-full input{
  flex:0 0 auto;
  width:18px;
  height:18px;
  margin-top:2px;
  accent-color:#3d9cff;
}
body:not(.ag-admin-body) .ag-market-dashboard .ag-market-form-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  padding:0;
  border:0;
  background:transparent;
}
body:not(.ag-admin-body) .ag-market-dashboard .ag-admin-table-wrap{
  margin-top:16px;
  overflow-x:auto;
  border:1px solid #2b3d53;
  border-radius:14px;
  background:#0c1521;
  -webkit-overflow-scrolling:touch;
}
body:not(.ag-admin-body) .ag-market-dashboard .ag-admin-table{
  width:100%;
  min-width:760px;
  border-collapse:collapse;
  background:transparent;
}
body:not(.ag-admin-body) .ag-market-dashboard .ag-admin-table th,
body:not(.ag-admin-body) .ag-market-dashboard .ag-admin-table td{
  padding:13px 14px;
  border-bottom:1px solid #293b50;
  text-align:left;
  vertical-align:middle;
  color:#dfe9f5;
}
body:not(.ag-admin-body) .ag-market-dashboard .ag-admin-table th{background:#172437;color:#fff}
body:not(.ag-admin-body) .ag-market-dashboard .ag-admin-table tr:last-child td{border-bottom:0}
body:not(.ag-admin-body) .ag-market-dashboard .ag-admin-table td form{display:inline-flex;margin:0}
body:not(.ag-admin-body) .ag-market-dashboard .btn{min-height:40px;padding:9px 14px;border-radius:10px}
body:not(.ag-admin-body) .ag-market-dashboard .alert{margin:14px 0;padding:13px 15px;border-radius:12px}
@media(max-width:760px){
  body:not(.ag-admin-body) .ag-market-dashboard{width:min(100% - 20px,1180px);margin-top:18px}
  body:not(.ag-admin-body) .ag-market-dashboard .ag-dashboard-card{padding:16px;border-radius:14px}
  body:not(.ag-admin-body) .ag-market-dashboard .ag-market-form{grid-template-columns:1fr;gap:14px}
  body:not(.ag-admin-body) .ag-market-dashboard .ag-market-form>*{grid-column:1/-1}
  body:not(.ag-admin-body) .ag-market-dashboard .ag-market-form-actions .btn{width:100%;justify-content:center}
}


/* Marketplace: tarjetas de planes del panel del vendedor */
.ag-market-dashboard .ag-market-plans {
  overflow: hidden;
}

.ag-market-plans-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.ag-market-plans-heading h2 {
  margin: 5px 0 8px;
}

.ag-market-plans-heading p {
  max-width: 760px;
  margin: 0;
  color: var(--muted, #aeb7c6);
}

.ag-market-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #65c7ff;
}

.ag-market-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ag-market-plan-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

.ag-market-plan-card--featured {
  border-color: rgba(52, 179, 255, .55);
  box-shadow: 0 14px 34px rgba(0, 119, 190, .2);
}

.ag-market-plan-card__header h3 {
  margin: 10px 0 4px;
  font-size: 1.35rem;
}

.ag-market-plan-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 4px 10px;
  border: 1px solid rgba(101,199,255,.32);
  border-radius: 999px;
  background: rgba(44,145,210,.14);
  color: #8fd8ff;
  font-size: .78rem;
  font-weight: 800;
}

.ag-market-plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
  margin: 8px 0 4px;
}

.ag-market-plan-price strong {
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  line-height: 1;
}

.ag-market-plan-price span {
  color: var(--muted, #aeb7c6);
  font-size: .9rem;
}

.ag-market-plan-benefits {
  display: grid;
  gap: 10px;
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
}

.ag-market-plan-benefits li {
  position: relative;
  padding-left: 25px;
  color: #dce3ed;
  line-height: 1.45;
}

.ag-market-plan-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #64d98b;
  font-weight: 900;
}

.ag-market-plan-button {
  width: 100%;
  margin-top: auto;
  justify-content: center;
  text-align: center;
}

.ag-market-plan-button--featured {
  box-shadow: 0 8px 20px rgba(0, 142, 222, .25);
}

.ag-market-plan-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 13px;
  background: rgba(255,255,255,.025);
}

.ag-market-plan-help p {
  margin: 0;
}

.ag-market-plan-secondary {
  flex: 0 0 auto;
}

.ag-market-plan-legal {
  margin: 14px 0 0;
  color: var(--muted, #9fa9b8);
  font-size: .82rem;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .ag-market-plan-grid {
    grid-template-columns: 1fr;
  }

  .ag-market-plan-card {
    padding: 18px;
  }

  .ag-market-plan-help {
    align-items: stretch;
    flex-direction: column;
  }

  .ag-market-plan-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* Marketplace v1.7: perfil público del vendedor y opiniones verificadas */
.ag-seller-profile-card{display:grid;grid-template-columns:58px minmax(0,1fr);gap:12px;align-items:center;padding:12px;margin-top:10px;border-top:1px solid var(--border,#d8dee8);background:rgba(15,23,42,.025)}
.ag-seller-profile-card>img{width:58px;height:58px;object-fit:cover;border-radius:50%;border:2px solid var(--border,#d8dee8);background:var(--surface-2,#eef2f7)}
.ag-seller-profile-card span,.ag-seller-profile-card small{display:block;color:var(--muted,#667085);font-size:.78rem}.ag-seller-profile-card strong{display:block;margin:2px 0;font-size:1rem}
.ag-seller-profile-card__actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:8px}.ag-seller-profile-card__actions .btn{min-height:34px;padding:7px 11px;font-size:.8rem}.ag-seller-store-link{font-size:.82rem;font-weight:800;text-decoration:none}
.ag-verified-review-list{margin-top:18px;padding-top:16px;border-top:1px solid var(--border,#d8dee8)}.ag-verified-review-list>h3{margin:0 0 12px}.ag-verified-review{display:grid;grid-template-columns:42px minmax(0,1fr);gap:10px;padding:12px 0;border-bottom:1px solid var(--border,#d8dee8)}.ag-verified-review:last-child{border-bottom:0}.ag-verified-review>img{width:42px;height:42px;object-fit:cover;border-radius:50%}.ag-verified-review header{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.ag-verified-review header span,.ag-verified-review time{color:var(--muted,#667085);font-size:.78rem}.ag-verified-review .ag-stars{margin:3px 0;color:#f5b301;letter-spacing:1px}.ag-verified-review p{margin:4px 0 5px;line-height:1.55}
@media(max-width:560px){.ag-seller-profile-card{grid-template-columns:48px minmax(0,1fr);padding:10px}.ag-seller-profile-card>img{width:48px;height:48px}.ag-seller-profile-card__actions{align-items:stretch}.ag-seller-profile-card__actions .btn{width:100%;justify-content:center}.ag-verified-review header{display:grid;gap:2px}}
html[data-theme="dark"] .ag-seller-profile-card{background:#0d1521;border-color:#31445a}html[data-theme="dark"] .ag-seller-profile-card>img{border-color:#3a4d65;background:#111d2b}html[data-theme="dark"] .ag-verified-review-list,html[data-theme="dark"] .ag-verified-review{border-color:#31445a}


/* RadioaficionadosClub: protección antispam no invasiva, compatible con modo oscuro. */
.antibot-honeypot{
  position:absolute!important;
  left:-10000px!important;
  top:auto!important;
  width:1px!important;
  height:1px!important;
  overflow:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
.antibot-challenge{
  margin:14px 0;
  padding:16px;
  border:1px solid #334155;
  border-radius:14px;
  background:#111827;
  color:#e5e7eb;
}
.antibot-challenge strong{display:block;color:#f8fafc;margin-bottom:4px}
.antibot-challenge p{margin:0 0 12px;color:#94a3b8;font-size:.92rem}
.antibot-challenge .cf-turnstile{min-height:65px}
@media (max-width:640px){.antibot-challenge{padding:12px;border-radius:12px;overflow-x:auto}}

/* Administración Turnstile - diseño oscuro RadioaficionadosClub.cl */
.security-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.security-section-head p{margin:6px 0 0;color:var(--muted,#94a3b8)}.turnstile-admin-form .settings-grid{display:grid;gap:18px}.turnstile-admin-form label{display:flex;flex-direction:column;gap:8px;color:#e2e8f0;font-weight:700}.turnstile-admin-form label small{color:#94a3b8;font-weight:400}.turnstile-admin-form input[type="text"],.turnstile-admin-form input[type="password"]{width:100%;background:#0b1220;color:#f8fafc;border:1px solid rgba(148,163,184,.28);border-radius:10px;padding:12px 14px;outline:none}.turnstile-admin-form input:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.14)}.toggle-setting{display:flex!important;flex-direction:row!important;align-items:center;justify-content:space-between;padding:16px;border:1px solid rgba(148,163,184,.22);border-radius:12px;background:#0b1220}.toggle-setting span{display:flex;flex-direction:column;gap:4px}.toggle-setting input{width:22px;height:22px;accent-color:#22c55e}.secret-input-wrap{display:flex;gap:8px;align-items:center}.secret-input-wrap input{flex:1}.btn.compact{white-space:nowrap;padding:10px 12px}.turnstile-status-panel{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}.turnstile-status-panel>div{display:flex;flex-direction:column;gap:5px;padding:14px;border-radius:10px;background:#0b1220;border:1px solid rgba(148,163,184,.18)}.turnstile-status-panel strong{color:#f8fafc}.turnstile-status-panel span{color:#94a3b8}.badge.success{background:rgba(34,197,94,.16);color:#86efac;border:1px solid rgba(34,197,94,.28)}@media(max-width:760px){.security-section-head{flex-direction:column}.turnstile-status-panel{grid-template-columns:1fr}.secret-input-wrap{align-items:stretch;flex-direction:column}.secret-input-wrap .btn{width:100%}}

/* RadioaficionadosClub.cl - endurecimiento visual oscuro de formularios y módulos públicos */
.security-honeypot{position:absolute!important;left:-10000px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}
.security-challenge-panel{display:grid;gap:.45rem;margin:1rem 0;padding:1rem;border:1px solid #334155;border-radius:14px;background:linear-gradient(180deg,#111827,#0b1220);color:#e5e7eb}
.security-challenge-panel strong{color:#fff}.security-challenge-panel span{color:#94a3b8;font-size:.9rem}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .box,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .setting-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .radio-row,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-classic,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-main-panel,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-tabs,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-tabs a.active,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .contact-card,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .contact-info-list article,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .contact-note{background:#101827!important;border-color:#334155!important;color:#e5e7eb!important}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) input,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) select,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) textarea,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-form-classic input,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-form-classic select,
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) .profile-form-classic textarea{background:#07111f!important;color:#f8fafc!important;border-color:#475569!important;color-scheme:dark}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) option{background:#07111f;color:#f8fafc}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) input:-webkit-autofill{-webkit-text-fill-color:#f8fafc!important;-webkit-box-shadow:0 0 0 1000px #07111f inset!important}

/* ================================================================
 * RadioaficionadosClub Platform v79 — Contraste oscuro del sitio
 * Evita fondos blancos residuales cuando el sitio usa modo oscuro.
 * No afecta imágenes, logotipos ni el modo claro seleccionado.
 * ================================================================ */
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) :is(
  .box,.widget,.post-card,.single-post,.card,.panel,.modal-content,.dialog-content,
  .dropdown-menu,.dropdown-content,.popover,.drawer,.offcanvas,.table-wrap,
  .form-section,.field-group,.empty-state,.pagination,.settings-card,
  .marketplace-card,.market-product-card,.market-vendor-card,.qsl-profile-card,
  .qsl-projects-card,.qsl-project-card,.contact-card
){
  background:#101827!important;
  color:#f8fafc!important;
  border-color:#334155!important;
  color-scheme:dark!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) :is(input,select,textarea){
  background:#07111f!important;
  color:#f8fafc!important;
  border-color:#475569!important;
  color-scheme:dark!important;
}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) option{background:#07111f!important;color:#f8fafc!important;}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) :is(input,textarea)::placeholder{color:#94a3b8!important;opacity:1!important;}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) :is(table,thead,tbody,tr,td){background:#101827!important;color:#e5e7eb!important;border-color:#334155!important;}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) th{background:#17233a!important;color:#fff!important;border-color:#334155!important;}
html[data-theme="dark"] body.ag-body:not(.ag-admin-body) input:-webkit-autofill{
  -webkit-text-fill-color:#f8fafc!important;
  -webkit-box-shadow:0 0 0 1000px #07111f inset!important;
}

/* ========================================================================== 
   PORTADA V1.15 — CINTA HORIZONTAL DE PRODUCTOS DESTACADOS
   RadioaficionadosClub.cl / Rodrigo Reyes
   ========================================================================== */
.ag-featured-products{min-width:0;overflow:hidden}
.ag-featured-products .ag-carousel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}
.ag-carousel-heading{display:flex;align-items:center;gap:14px;min-width:0;flex-wrap:wrap}
.ag-carousel-heading .section-title{margin:0}
.ag-carousel-controls{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.ag-carousel-arrow{
  width:38px;
  height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border:1px solid rgba(255,255,255,.08);
  border-radius:50%;
  background:#303137;
  color:#fff;
  box-shadow:0 5px 14px rgba(0,0,0,.2);
  cursor:pointer;
  transition:transform .16s ease,background .16s ease,box-shadow .16s ease,opacity .16s ease;
}
.ag-carousel-arrow span{display:block;font-size:31px;line-height:.8;transform:translateY(-1px)}
.ag-carousel-arrow:hover{background:#41434a;transform:translateY(-1px);box-shadow:0 7px 17px rgba(0,0,0,.26)}
.ag-carousel-arrow:active{transform:translateY(0) scale(.96)}
.ag-carousel-arrow:focus-visible{outline:3px solid rgba(71,151,255,.48);outline-offset:3px}
.ag-carousel-arrow:disabled{opacity:.38;cursor:not-allowed;transform:none;box-shadow:none}
.ag-featured-products-viewport{
  width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-behavior:smooth;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  overscroll-behavior-inline:contain;
  touch-action:pan-x pan-y;
}
.ag-featured-products-viewport::-webkit-scrollbar{display:none}
.ag-featured-products-viewport:focus-visible{outline:2px solid rgba(43,126,224,.65);outline-offset:4px;border-radius:14px}
.ag-featured-products-track{
  display:flex;
  align-items:stretch;
  gap:14px;
  width:max-content;
  min-width:100%;
}
.ag-featured-product-slide{
  flex:0 0 calc((100vw - 116px)/4);
  width:calc((100vw - 116px)/4);
  max-width:286px;
  min-width:220px;
  scroll-snap-align:start;
}
.ag-featured-product-slide .ag-shop-card{height:100%}

@media(min-width:1180px){
  .ag-featured-product-slide{flex-basis:calc((100% - 42px)/4);width:calc((100% - 42px)/4)}
  .ag-featured-products-track{width:100%}
}
@media(max-width:900px){
  .ag-featured-product-slide{flex-basis:calc((100vw - 82px)/3);width:calc((100vw - 82px)/3);min-width:210px}
}
@media(max-width:680px){
  .ag-featured-products .ag-carousel-head{align-items:center}
  .ag-carousel-heading{gap:8px}
  .ag-carousel-heading .section-action{font-size:.78rem}
  .ag-carousel-controls{gap:8px}
  .ag-carousel-arrow{width:36px;height:36px}
  .ag-featured-product-slide{flex-basis:76vw;width:76vw;min-width:245px;max-width:310px}
  .ag-featured-product-slide .ag-shop-card{display:flex;grid-template-columns:none}
  .ag-featured-product-slide .ag-shop-card-media{height:158px;min-height:0}
}
@media(max-width:430px){
  .ag-featured-products .ag-carousel-head{gap:8px}
  .ag-carousel-heading{display:block}
  .ag-carousel-heading .section-action{display:inline-block;margin-top:5px}
  .ag-carousel-arrow{width:34px;height:34px}
  .ag-carousel-arrow span{font-size:28px}
  .ag-featured-product-slide{flex-basis:82vw;width:82vw;min-width:238px}
}
@media(prefers-reduced-motion:reduce){
  .ag-featured-products-viewport{scroll-behavior:auto}
  .ag-carousel-arrow{transition:none}
}


/* Marketplace: filtros profesionales (fase 1 - 2026-07-30) */
body:not(.ag-admin-body) .ag-market-search-advanced{display:grid!important;gap:12px!important;padding:16px!important;background:#111827!important;border:1px solid #263449!important;border-radius:16px!important;box-shadow:0 14px 30px rgba(0,0,0,.18)!important;}
body:not(.ag-admin-body) .ag-market-search-main{display:grid;grid-template-columns:minmax(240px,1.5fr) minmax(180px,.8fr) minmax(180px,.8fr) auto;gap:10px;align-items:end;}
body:not(.ag-admin-body) .ag-market-search-advanced label{display:grid;gap:6px;min-width:0;color:#dbeafe;font-weight:700;font-size:.82rem;}
body:not(.ag-admin-body) .ag-market-search-advanced label>span{color:#94a3b8;font-size:.74rem;letter-spacing:.03em;text-transform:uppercase;}
body:not(.ag-admin-body) .ag-market-search-advanced input,body:not(.ag-admin-body) .ag-market-search-advanced select{width:100%;min-height:44px;background:#0b1220!important;color:#f8fafc!important;border:1px solid #334155!important;border-radius:10px!important;}
body:not(.ag-admin-body) .ag-market-more-filters{border-top:1px solid #263449;padding-top:10px;}
body:not(.ag-admin-body) .ag-market-more-filters>summary{cursor:pointer;color:#93c5fd;font-weight:800;list-style:none;}
body:not(.ag-admin-body) .ag-market-more-filters>summary::-webkit-details-marker{display:none;}
body:not(.ag-admin-body) .ag-market-more-filters>summary:after{content:'+';float:right;font-size:1.1rem;}
body:not(.ag-admin-body) .ag-market-more-filters[open]>summary:after{content:'−';}
body:not(.ag-admin-body) .ag-market-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:12px;}
body:not(.ag-admin-body) .ag-market-filter-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;}
body:not(.ag-admin-body) .ag-market-empty{grid-column:1/-1;display:grid;justify-items:center;gap:8px;padding:34px 20px!important;background:#111827!important;border:1px dashed #334155!important;border-radius:16px!important;color:#cbd5e1!important;text-align:center;}
body:not(.ag-admin-body) .ag-market-empty strong{color:#f8fafc;font-size:1.05rem;}
body:not(.ag-admin-body) .ag-market-empty span{max-width:620px;color:#94a3b8;}
@media(max-width:980px){body:not(.ag-admin-body) .ag-market-search-main{grid-template-columns:repeat(2,minmax(0,1fr));}body:not(.ag-admin-body) .ag-market-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:620px){body:not(.ag-admin-body) .ag-market-search-main,body:not(.ag-admin-body) .ag-market-filter-grid{grid-template-columns:1fr;}body:not(.ag-admin-body) .ag-market-search-main>.btn{width:100%;}body:not(.ag-admin-body) .ag-market-filter-actions>*{flex:1 1 100%;text-align:center;}}


/* Marketplace etapa 2: disponibilidad y vigencia */
.ag-availability-badge{display:inline-flex;align-items:center;gap:.35rem;padding:.3rem .65rem;border-radius:999px;font-size:.78rem;font-weight:800;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06)}
.ag-availability-badge--available,.ag-shop-stock--available{color:#8ce6ad}.ag-availability-badge--reserved,.ag-shop-stock--reserved{color:#ffd778}.ag-availability-badge--sold,.ag-shop-stock--sold{color:#ff9d9d}
.ag-inline-status-form{display:flex;gap:.45rem;align-items:center;flex-wrap:wrap}.ag-inline-status-form select{min-width:125px;background:#111827;color:#eef2ff;border:1px solid rgba(255,255,255,.14);border-radius:8px;padding:.58rem .7rem}
.ag-text-danger{color:#ff9d9d!important}.ag-market-unavailable-notice{display:flex;flex-direction:column;gap:.25rem;padding:1rem;border:1px solid rgba(255,190,92,.25);background:rgba(255,190,92,.08);border-radius:12px;margin:1rem 0}.ag-market-unavailable-notice strong{color:#ffd778}
@media(max-width:760px){.ag-inline-status-form{width:100%}.ag-inline-status-form select,.ag-inline-status-form .btn{flex:1 1 auto}}
