#apMobileHome #apnn-v1-tile{min-width:0;grid-column:1/-1!important;width:100%;margin:0 0 14px}
#apnn-v1-tile .apnn-v1-trigger{width:100%;min-height:155px;border:1px solid #c9dbef;border-radius:24px;background:linear-gradient(130deg,#f6fbff,#dbeafe);padding:18px;display:flex;flex-direction:column;align-items:flex-start;gap:7px;position:relative;cursor:pointer;text-align:left;color:#153653;box-shadow:0 7px 22px #102d470c}
#apnn-v1-tile .apnn-v1-icon{font-size:32px;background:#e5f1ff;border-radius:16px;width:57px;height:57px;display:grid;place-items:center;margin-bottom:auto}
#apnn-v1-tile strong{font-size:clamp(19px,4.2vw,25px);font-weight:850;line-height:1.08}
#apnn-v1-tile small{font-size:13px;color:#4a6988}
#apnn-v1-tile .apnn-v1-arrow{position:absolute;right:18px;bottom:16px;font-size:32px}
.apnn-v1-modal[hidden]{display:none!important}.apnn-v1-modal{position:fixed;inset:0;z-index:2147483500;display:grid;place-items:center;padding:12px}.apnn-v1-backdrop{position:absolute;inset:0;background:#08182dce;backdrop-filter:blur(7px)}
.apnn-v1-panel{position:relative;width:min(790px,100%);max-height:94dvh;background:#f6f9fd;color:#123049;border-radius:24px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 28px 90px #030e1a88}
.apnn-v1-head{background:linear-gradient(115deg,#0a2b51,#1e5c95);color:#fff;padding:20px;display:flex;justify-content:space-between;gap:16px}.apnn-v1-kicker{font-size:11px;letter-spacing:.12em;color:#bdddfb;font-weight:800}.apnn-v1-head h2{font-size:clamp(25px,5vw,36px);margin:7px 0}.apnn-v1-head p{font-size:13px;margin:0;color:#e3effb}
.apnn-v1-close{border:1px solid #ffffff55;background:#ffffff20;color:#fff;border-radius:13px;width:43px;height:43px;flex:none;font-size:30px;cursor:pointer}
.apnn-v1-search{padding:12px 16px;background:#eef5fd;display:grid;gap:5px;border-bottom:1px solid #dce7f2}.apnn-v1-search label{font-size:12px;font-weight:800}.apnn-v1-search input{border:1px solid #b9cce0;background:white;padding:12px;border-radius:12px;font:inherit;width:100%;color:#16304c}.apnn-v1-stats{font-size:11px;color:#56728b}
.apnn-v1-body{flex:1;overflow:auto;padding:14px 16px;overscroll-behavior:contain}.apnn-v1-news{background:#fff;border:1px solid #dce6ef;border-radius:16px;padding:15px;margin-bottom:12px}.apnn-v1-meta{font-size:11px;color:#4d718f;font-weight:750}.apnn-v1-news h3{font-size:clamp(17px,3.5vw,22px);line-height:1.25;margin:8px 0 14px}.apnn-v1-link{display:inline-flex;border-radius:10px;padding:10px 13px;background:#164772;color:white!important;font-weight:750;text-decoration:none}.apnn-v1-empty{padding:30px 10px;text-align:center;color:#54708a}.apnn-v1-foot{padding:13px 17px;background:white;border-top:1px solid #e1eaf2;display:flex;align-items:center;justify-content:space-between;gap:10px;color:#637b92;font-size:12px}.apnn-v1-refresh{background:#eaf3fd;color:#144c79;border:1px solid #bfd5eb;border-radius:10px;padding:9px 12px;font-weight:800;cursor:pointer}
body.apnn-v1-open{overflow:hidden}
@media(max-width:600px){.apnn-v1-modal{padding:0}.apnn-v1-panel{height:100dvh;max-height:100dvh;border-radius:0}}

/* V2: miniaturas reales de LUN junto al titular; adaptación a pantallas pequeñas. */
.apnn-v2-news{padding:12px!important}
.apnn-v2-layout{display:grid;grid-template-columns:clamp(96px,23%,148px) minmax(0,1fr);gap:14px;align-items:start}
.apnn-v2-media{width:100%;aspect-ratio:4/3;min-height:88px;overflow:hidden;background:#e6eef7;border-radius:13px;display:flex;align-items:center;justify-content:center}
.apnn-v2-media img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.apnn-v2-fallback{font-size:38px;background:linear-gradient(145deg,#eaf3fc,#dbe9f8)}
.apnn-v2-content{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.apnn-v2-content h3{margin:0;font-size:clamp(16px,2.4vw,20px);line-height:1.28;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
.apnn-v2-content .apnn-v1-meta{line-height:1.4}
.apnn-v2-content .apnn-v1-link{font-size:13px;padding:8px 11px}
@media(max-width:430px){.apnn-v2-layout{grid-template-columns:105px minmax(0,1fr);gap:11px}.apnn-v2-news{padding:10px!important}.apnn-v2-content h3{font-size:16px}.apnn-v2-content{gap:8px}.apnn-v2-media{min-height:92px}}
@media(max-width:350px){.apnn-v2-layout{grid-template-columns:88px minmax(0,1fr)}.apnn-v2-content h3{-webkit-line-clamp:5;font-size:15px}}

/* APRODAP LUN V4: boton leer compacto */
.apnn-v1-modal .apnn-v2-content a.apnn-v1-link{
  display:inline-flex!important;
  align-self:flex-start!important;
  width:auto!important;
  min-width:0!important;
  min-height:0!important;
  padding:4px 8px!important;
  font-size:11px!important;
  line-height:1.25!important;
  border-radius:7px!important;
  font-weight:700!important;
  letter-spacing:0!important;
  text-decoration:none!important;
  box-shadow:none!important;
}
@media(max-width:430px){
  .apnn-v1-modal .apnn-v2-content a.apnn-v1-link{padding:4px 7px!important;font-size:10px!important}
}

/* APRODAP LUN V5: vista editorial de lectura */
.apnn-v5-show{border:1px solid #c4d8ec;background:#edf5ff;color:#15527f;font:inherit;font-size:12px;font-weight:800;padding:6px 11px;border-radius:8px;cursor:pointer}
.apnn-v1-modal .apnn-v2-news{cursor:pointer;transition:box-shadow .2s ease,border-color .2s ease}
.apnn-v1-modal .apnn-v2-news:hover,.apnn-v1-modal .apnn-v2-news:focus-visible{box-shadow:0 8px 22px #1647721c;border-color:#92bcdf;outline:none}
.apnn-v1-modal .apnn-v2-news:focus-visible{outline:3px solid #417db7;outline-offset:2px}
.apnn-v5-detail[hidden]{display:none!important}
.apnn-v5-detail{position:fixed;inset:0;z-index:2147483600;display:grid;place-items:center;padding:15px;color:#142f48}
.apnn-v5-shade{position:absolute;inset:0;background:#071728e8;backdrop-filter:blur(11px)}
.apnn-v5-sheet{position:relative;display:flex;flex-direction:column;width:min(750px,100%);max-height:95dvh;overflow:hidden;background:#fff;color:#14324b;border-radius:23px;box-shadow:0 35px 100px #0009}
.apnn-v5-top{display:flex;justify-content:space-between;align-items:center;padding:12px 17px;background:linear-gradient(110deg,#092944,#195781);color:#fff;gap:15px}
.apnn-v5-brand{font-size:11px;font-weight:850;letter-spacing:.07em}
.apnn-v5-exit{flex:none;display:grid;place-items:center;width:36px;height:36px;font-size:26px;line-height:1;border-radius:11px;border:1px solid #ffffff60;color:#fff;background:#ffffff20;cursor:pointer}
.apnn-v5-scroll{overflow-y:auto;overscroll-behavior:contain}
.apnn-v5-cover{height:clamp(200px,38vh,365px);background:linear-gradient(130deg,#d6e8f9,#aecce7);display:grid;place-items:center;overflow:hidden}
.apnn-v5-cover img{width:100%;height:100%;object-fit:contain;background:#e6eef6}
.apnn-v5-noimage{font-size:65px}
.apnn-v5-article{padding:clamp(19px,5vw,39px)}
.apnn-v5-label{color:#22608e;font-size:11px;font-weight:850;letter-spacing:.05em;text-transform:uppercase}
.apnn-v5-article h2{font-size:clamp(22px,4.7vw,34px);line-height:1.16;letter-spacing:-.025em;margin:13px 0 17px;color:#102e4a;font-weight:850;overflow-wrap:anywhere}
.apnn-v5-rule{height:3px;width:54px;background:#cf324d;border-radius:2px;margin-bottom:21px}
.apnn-v5-intro{font-size:clamp(15px,2.3vw,17px);line-height:1.6;color:#3d5569;margin:0 0 18px}
.apnn-v5-attrib{color:#678093;font-size:12px;line-height:1.55;border-top:1px solid #e7edf3;padding-top:13px}
.apnn-v5-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:18px}
.apnn-v5-source{display:inline-flex;align-items:center;justify-content:center;background:#154c7a;color:#fff!important;padding:10px 15px;border-radius:10px;font-size:13px;font-weight:800;text-decoration:none}
.apnn-v5-back{border:1px solid #bdd1e2;background:#f2f7fc;padding:10px 14px;border-radius:10px;color:#225578;font-size:13px;font-weight:750;cursor:pointer}
@media(max-width:600px){.apnn-v5-detail{padding:0}.apnn-v5-sheet{height:100dvh;max-height:100dvh;border-radius:0}.apnn-v5-cover{height:min(34dvh,300px)}.apnn-v5-article{padding:20px 19px 35px}}
@media(prefers-reduced-motion:reduce){.apnn-v1-modal .apnn-v2-news{transition:none}}


/* APRODAP LUN V6: botones juntos en la misma fila */
.apnn-v1-modal .apnn-v2-content .apnn-v6-actions{
  display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
  align-items:center!important;justify-content:flex-start!important;
  gap:6px!important;max-width:100%;min-width:0;
}
.apnn-v1-modal .apnn-v6-actions .apnn-v5-show,
.apnn-v1-modal .apnn-v6-actions .apnn-v1-link{
  display:inline-flex!important;align-items:center;justify-content:center;
  flex:0 1 auto!important;min-width:0;white-space:nowrap!important;
  padding:5px 7px!important;font-size:10px!important;line-height:1.2!important;
  border-radius:7px!important;box-sizing:border-box;
}
@media(max-width:400px){
 .apnn-v1-modal .apnn-v2-content .apnn-v6-actions{gap:4px!important}
 .apnn-v1-modal .apnn-v6-actions .apnn-v5-show,
 .apnn-v1-modal .apnn-v6-actions .apnn-v1-link{padding:4px 5px!important;font-size:9px!important}
}


/* APRODAP Noticias Nacionales V7 - bajada informativa */
.apnn-v1-modal .apnn-v7-teaser {
 color:var(--apnn-muted,#64748b);font-size:12px;line-height:1.45;
 margin:4px 0 7px;display:-webkit-box;-webkit-line-clamp:2;
 -webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;
}
.apnn-v5-detail .apnn-v7-subtitle {
 font-size:10px;font-weight:800;letter-spacing:.12em;color:#3b78a0;
 margin:8px 0 9px;
}
.apnn-v5-detail .apnn-v5-intro {font-size:clamp(15px,2.5vw,18px);line-height:1.6;max-width:68ch;}
.apnn-v5-detail .apnn-v5-intro[hidden] {display:none!important;}

/* APRODAP Noticias Nacionales V8 - enlace a la edición original y detalle más claro */
.apnn-v5-detail .apnn-v8-edition{color:#536b80;font-size:12px;font-weight:700;margin:-4px 0 19px;}
.apnn-v5-detail .apnn-v8-nodata{font-size:14px;line-height:1.55;color:#556d80;background:#f2f7fc;padding:13px;border-radius:12px;}
.apnn-v5-detail .apnn-v8-paper{display:flex;align-items:flex-start;gap:14px;padding:17px;margin:20px 0 5px;border:1px solid #c5dbec;border-radius:17px;background:linear-gradient(135deg,#f3f9ff,#e7f1fb);}
.apnn-v5-detail .apnn-v8-paper-icon{font-size:35px;line-height:1;flex:none;}
.apnn-v5-detail .apnn-v8-paper-content{min-width:0;flex:1;}
.apnn-v5-detail .apnn-v8-paper h3{font-size:16px;line-height:1.3;margin:0 0 7px;font-weight:850;color:#113b5f;}
.apnn-v5-detail .apnn-v8-paper p{font-size:13px;line-height:1.55;margin:0 0 12px;color:#506c81;}
.apnn-v5-detail .apnn-v8-page{display:inline-flex;align-items:center;gap:6px;border-radius:10px;background:#124d7a;color:#fff!important;text-decoration:none;font-size:12px;font-weight:800;padding:9px 11px;max-width:100%;}
.apnn-v5-detail .apnn-v8-paper small{display:block;color:#546b81;line-height:1.4;}
.apnn-v5-detail .apnn-v8-page[hidden],.apnn-v5-detail .apnn-v8-paper small[hidden],.apnn-v5-detail .apnn-v8-nodata[hidden]{display:none!important;}
@media(max-width:400px){.apnn-v5-detail .apnn-v8-paper{padding:13px;gap:9px}.apnn-v5-detail .apnn-v8-paper-icon{font-size:27px}}

/* APRODAP Noticias Nacionales V9 · visor integrado en el detalle */
.apnn-v5-detail .apnn-v9-viewer{margin:12px 0 20px;padding:12px;border:1px solid #c7dceb;border-radius:16px;background:#f5f9fe;min-width:0;}
.apnn-v5-detail .apnn-v9-viewer[hidden],.apnn-v5-detail .apnn-v9-error[hidden],.apnn-v5-detail .apnn-v9-viewport[hidden]{display:none!important}
.apnn-v5-detail .apnn-v9-tools{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px;margin-bottom:10px;color:#173b57;font-size:12px}
.apnn-v5-detail .apnn-v9-controls{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.apnn-v5-detail .apnn-v9-controls button{appearance:none;border:1px solid #adc4d9;border-radius:8px;background:white;color:#18496f;padding:6px 10px;font-weight:800;font-size:13px;min-height:34px;cursor:pointer}
.apnn-v5-detail .apnn-v9-controls button:focus-visible,.apnn-v5-detail .apnn-v8-page:focus-visible,.apnn-v5-detail .apnn-v9-viewport:focus-visible{outline:3px solid #4f8ee0;outline-offset:2px}
.apnn-v5-detail .apnn-v9-scale{font-size:12px;min-width:42px;text-align:center;color:#173b57;font-weight:800}
.apnn-v5-detail .apnn-v9-viewport{height:min(57vh,560px);overflow:auto;border:1px solid #cedce8;background:#e7edf4;border-radius:10px;overscroll-behavior:contain;touch-action:pan-x pan-y;}
.apnn-v5-detail .apnn-v9-image{width:100%;max-width:none!important;height:auto!important;display:block;margin:auto;object-fit:contain;}
.apnn-v5-detail .apnn-v9-viewer>small{display:block;margin-top:9px;font-size:11px;line-height:1.4;color:#597185}
.apnn-v5-detail .apnn-v9-error{padding:12px;border-radius:9px;background:#fff1f0;color:#9d3431;font-size:13px}
@media(max-width:480px){.apnn-v5-detail .apnn-v9-viewer{padding:8px}.apnn-v5-detail .apnn-v9-viewport{height:53vh}.apnn-v5-detail .apnn-v9-controls button{padding:5px 8px}}

/* APRODAP Noticias Nacionales V10: página visible directamente */
.apnn-v5-detail .apnn-v9-viewer{margin-top:16px!important}
.apnn-v5-detail .apnn-v9-viewport{height:min(70vh,760px)}
.apnn-v5-detail .apnn-v9-image{display:block}
@media(max-width:480px){.apnn-v5-detail .apnn-v9-viewport{height:65vh}}
