.news-section{padding-top:10px}
.news-section-head{max-width:none;display:flex;align-items:flex-end;justify-content:space-between;gap:22px}
.news-section-head>div{max-width:720px}
.news-join{flex:none;min-height:46px;padding-inline:16px;margin-bottom:2px}
.news-shell{overflow:hidden;border:1px solid var(--line);border-radius:var(--radius-xl);background:linear-gradient(135deg,rgba(68,184,234,.055),rgba(79,132,238,.045)),var(--surface);box-shadow:var(--shadow);backdrop-filter:blur(24px)}
.news-feed{max-height:520px;overflow-y:auto;overscroll-behavior:contain;padding:9px;scrollbar-width:thin;scrollbar-color:rgba(79,132,238,.32) transparent;scrollbar-gutter:stable}
.news-feed::-webkit-scrollbar{width:7px}
.news-feed::-webkit-scrollbar-track{background:transparent}
.news-feed::-webkit-scrollbar-thumb{background:rgba(79,132,238,.24);border-radius:999px}
.news-item{margin:0 0 8px;overflow:hidden;border:1px solid var(--line);border-radius:21px;background:rgba(255,255,255,.56);transition:border-color .2s ease,background .25s ease}
.news-item:last-child{margin-bottom:0}
.news-item[open]{border-color:rgba(79,132,238,.20);background:rgba(255,255,255,.74)}
.news-item-summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;padding:16px 17px;-webkit-tap-highlight-color:transparent}
.news-item-summary::-webkit-details-marker{display:none}
.news-summary-main{min-width:0}
.news-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:.76rem;font-weight:650}
.news-meta-dot{width:3px;height:3px;border-radius:50%;background:currentColor;opacity:.55}
.news-summary-text{margin:7px 0 0;color:var(--text);font-size:.96rem;line-height:1.52;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;white-space:pre-line}
.news-content{padding:0 17px 17px;border-top:1px solid var(--line)}
.news-post-text{margin:15px 0 0;color:var(--text);font-size:.96rem;line-height:1.62;white-space:pre-wrap;overflow-wrap:anywhere}
.news-media-link{display:block;margin-top:14px;border-radius:17px;overflow:hidden;border:1px solid var(--line);background:var(--surface-soft)}
.news-media{width:100%;max-height:340px;object-fit:cover}
.news-post-link{display:inline-flex;align-items:center;gap:7px;margin-top:14px;color:var(--blue-2);font-size:.86rem;font-weight:750}
.news-post-link i{font-size:16px}
.news-feed-footer{min-height:52px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;border-top:1px solid var(--line);color:var(--muted);font-size:.82rem}
.news-feed-footer>a{display:inline-flex;align-items:center;gap:7px;color:var(--blue-2);font-weight:750;white-space:nowrap}
.news-loading,.news-error{min-height:190px;display:flex;align-items:center;justify-content:center;gap:11px;padding:28px;text-align:center;color:var(--muted)}
.news-loading{flex-direction:column}
.news-spinner{width:24px;height:24px;border-radius:50%;border:2px solid rgba(79,132,238,.18);border-top-color:var(--blue-2);animation:newsSpin .8s linear infinite}
.news-error{flex-direction:column}
.news-error strong{color:var(--text);font-size:1rem}
.news-error p{margin:0;max-width:440px;line-height:1.55}
.news-error a{display:inline-flex;align-items:center;gap:7px;margin-top:4px;color:var(--blue-2);font-weight:750}
html[data-theme="dark"] .news-item{background:rgba(21,26,36,.62)}
html[data-theme="dark"] .news-item[open]{background:rgba(21,26,36,.84)}
@keyframes newsSpin{to{transform:rotate(360deg)}}
@media(max-width:680px){
  .news-section{padding-top:4px}
  .news-section-head{align-items:stretch;flex-direction:column;gap:14px}
  .news-section-head .news-join{width:100%;margin:0}
  .news-shell{border-radius:24px}
  .news-feed{max-height:470px;padding:7px}
  .news-item{border-radius:18px}
  .news-item-summary{padding:14px 14px;gap:10px}
  .news-content{padding:0 14px 15px}
  .news-summary-text,.news-post-text{font-size:.93rem}
  .news-feed-footer{align-items:flex-start;flex-direction:column;padding:11px 14px}
}
@media(prefers-reduced-motion:reduce){.news-spinner{animation:none}.news-summary-action i{transition:none}}


/* Noticias: aprovechar mejor el espacio disponible */
body[data-rocla-view="news"] #noticias.wrap{width:min(1360px,calc(100% - 32px))}
body[data-rocla-view="news"] .news-section-head>div{max-width:900px}
body[data-rocla-view="news"] .news-shell{border-radius:30px}
body[data-rocla-view="news"] .news-feed{padding:14px;max-height:calc(100svh - 286px)}
body[data-rocla-view="news"] .news-item{margin-bottom:12px;border-radius:24px}
body[data-rocla-view="news"] .news-item-summary{padding:20px 22px;gap:18px}
body[data-rocla-view="news"] .news-summary-text{font-size:1.02rem;line-height:1.58;-webkit-line-clamp:4}
body[data-rocla-view="news"] .news-meta{font-size:.79rem}
body[data-rocla-view="news"] .news-summary-action{width:38px;height:38px}
body[data-rocla-view="news"] .news-content{padding:0 22px 22px}
body[data-rocla-view="news"] .news-post-text{font-size:1.01rem;line-height:1.68}
body[data-rocla-view="news"] .news-media{max-height:520px;object-fit:contain;background:rgba(0,0,0,.025)}
body[data-rocla-view="news"] .news-feed-footer{padding:12px 20px}
@media(min-width:1180px){
  body[data-rocla-view="news"] .news-feed{padding:16px}
  body[data-rocla-view="news"] .news-item-summary{padding:22px 26px}
  body[data-rocla-view="news"] .news-content{padding:0 26px 24px}
}
@media(max-width:680px){
  body[data-rocla-view="news"] #noticias.wrap{width:min(100% - 14px,640px)}
  body[data-rocla-view="news"] .news-shell{border-radius:22px}
  body[data-rocla-view="news"] .news-feed{padding:6px;max-height:calc(100svh - 274px)}
  body[data-rocla-view="news"] .news-item{margin-bottom:7px;border-radius:18px}
  body[data-rocla-view="news"] .news-item-summary{padding:15px 15px;gap:10px}
  body[data-rocla-view="news"] .news-summary-text{font-size:.96rem;line-height:1.56;-webkit-line-clamp:4}
  body[data-rocla-view="news"] .news-content{padding:0 15px 16px}
  body[data-rocla-view="news"] .news-post-text{font-size:.96rem;line-height:1.62}
  body[data-rocla-view="news"] .news-media{max-height:460px}
}


/* Noticias siempre expandidas */
.news-item{padding:0}
.news-item-header{padding:18px 22px 0}
.news-item-summary{display:none!important}
.news-content{border-top:0;padding:0 22px 22px}
.news-post-text{margin-top:10px}
body[data-rocla-view="news"] .news-item-header{padding:20px 26px 0}
body[data-rocla-view="news"] .news-content{padding:0 26px 24px}
@media(max-width:680px){
  .news-item-header{padding:14px 15px 0}
  .news-content{padding:0 15px 16px}
  body[data-rocla-view="news"] .news-item-header{padding:14px 15px 0}
  body[data-rocla-view="news"] .news-content{padding:0 15px 16px}
}


/* Feed editorial: separación, jerarquía y lectura cómoda */
body[data-rocla-view="news"] .news-shell{
  background:#eef3f8;
  border-color:rgba(31,42,71,.07);
  box-shadow:none;
  padding:0;
}
html[data-theme="dark"] body[data-rocla-view="news"] .news-shell{
  background:#111720;
  border-color:rgba(255,255,255,.055);
}
body[data-rocla-view="news"] .news-feed{
  display:flex;
  flex-direction:column;
  gap:18px;
  padding:18px;
}
body[data-rocla-view="news"] .news-item{
  margin:0;
  overflow:hidden;
  border:1px solid rgba(31,42,71,.075);
  border-radius:24px;
  background:#fff;
  box-shadow:0 3px 12px rgba(31,42,71,.055);
}
html[data-theme="dark"] body[data-rocla-view="news"] .news-item{
  background:#1a202a;
  border-color:rgba(255,255,255,.075);
  box-shadow:0 3px 14px rgba(0,0,0,.18);
}
body[data-rocla-view="news"] .news-item-header{
  padding:20px 24px 0;
}
.news-item-identity{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.news-item-avatar{
  width:42px;
  height:42px;
  flex:none;
  object-fit:contain;
  border-radius:13px;
  background:rgba(79,132,238,.07);
}
.news-item-identity-copy{
  min-width:0;
  display:grid;
  gap:3px;
}
.news-item-channel{
  color:var(--text);
  font-size:.98rem;
  line-height:1.2;
  letter-spacing:-.02em;
}
body[data-rocla-view="news"] .news-meta{
  font-size:.76rem;
  font-weight:600;
  line-height:1.35;
}
body[data-rocla-view="news"] .news-content{
  padding:0 24px 22px;
}
body[data-rocla-view="news"] .news-post-text{
  max-width:70ch;
  margin:16px 0 0;
  font-size:1rem;
  line-height:1.7;
}
body[data-rocla-view="news"] .news-media-link{
  margin-top:18px;
  border-radius:18px;
  background:#f4f7fb;
}
html[data-theme="dark"] body[data-rocla-view="news"] .news-media-link{
  background:#111720;
}
body[data-rocla-view="news"] .news-media{
  width:100%;
  max-height:560px;
  object-fit:contain;
}
.news-item-footer{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  min-height:54px;
  padding:9px 20px;
  border-top:1px solid rgba(31,42,71,.07);
  background:rgba(247,249,252,.72);
}
html[data-theme="dark"] .news-item-footer{
  border-top-color:rgba(255,255,255,.065);
  background:rgba(14,19,27,.34);
}
body[data-rocla-view="news"] .news-post-link{
  margin:0;
  min-height:36px;
  padding:0 12px;
  border-radius:999px;
  background:rgba(52,133,255,.09);
  color:#3485ff;
  font-size:.84rem;
  font-weight:760;
}
body[data-rocla-view="news"] .news-feed-footer{
  background:transparent;
  border-top-color:rgba(31,42,71,.07);
}
html[data-theme="dark"] body[data-rocla-view="news"] .news-feed-footer{
  border-top-color:rgba(255,255,255,.06);
}
@media(max-width:680px){
  body[data-rocla-view="news"] .news-feed{
    gap:13px;
    padding:8px;
  }
  body[data-rocla-view="news"] .news-item{
    border-radius:19px;
  }
  body[data-rocla-view="news"] .news-item-header{
    padding:15px 15px 0;
  }
  .news-item-avatar{
    width:38px;
    height:38px;
    border-radius:12px;
  }
  body[data-rocla-view="news"] .news-content{
    padding:0 15px 17px;
  }
  body[data-rocla-view="news"] .news-post-text{
    margin-top:13px;
    max-width:none;
    font-size:.96rem;
    line-height:1.64;
  }
  body[data-rocla-view="news"] .news-media-link{
    margin-top:15px;
    border-radius:15px;
  }
  .news-item-footer{
    min-height:50px;
    padding:7px 12px;
  }
}


/* Feed de página: un solo scroll, sin contenedor maestro */
body[data-rocla-view="news"] .support-fab{display:none}
body[data-rocla-view="news"] #noticias.wrap{
  width:min(980px,calc(100% - 28px));
}
body[data-rocla-view="news"] #noticias{
  min-height:0;
  padding-top:18px;
  padding-bottom:42px;
}
body[data-rocla-view="news"] .news-section-head{
  max-width:920px;
  margin-bottom:22px;
  align-items:flex-end;
  gap:18px;
}
body[data-rocla-view="news"] .news-section-head>div{
  max-width:720px;
}
body[data-rocla-view="news"] .news-section-head h2{
  margin-top:8px;
  margin-bottom:6px;
  font-size:clamp(2.1rem,5vw,3.3rem);
}
body[data-rocla-view="news"] .news-section-head p{
  max-width:640px;
  line-height:1.5;
}
body[data-rocla-view="news"] .news-join{
  width:auto;
  min-height:42px;
  padding:0 15px;
  margin:0;
  align-self:flex-end;
}
body[data-rocla-view="news"] .news-shell,
html[data-theme="dark"] body[data-rocla-view="news"] .news-shell{
  overflow:visible;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  padding:0;
}
body[data-rocla-view="news"] .news-feed{
  display:flex;
  flex-direction:column;
  gap:18px;
  max-height:none;
  min-height:0;
  overflow:visible;
  overscroll-behavior:auto;
  padding:0;
  scrollbar-width:auto;
  scrollbar-gutter:auto;
}
body[data-rocla-view="news"] .news-item{
  margin:0;
  border:1px solid rgba(31,42,71,.075);
  border-radius:22px;
  background:#fff;
  box-shadow:0 4px 14px rgba(31,42,71,.05);
}
html[data-theme="dark"] body[data-rocla-view="news"] .news-item{
  background:#1a202a;
  border-color:rgba(255,255,255,.07);
  box-shadow:0 4px 16px rgba(0,0,0,.16);
}
body[data-rocla-view="news"] .news-item-header{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:14px;
  padding:18px 22px 0;
}
body[data-rocla-view="news"] .news-item-channel{
  flex:none;
  font-size:.95rem;
  font-weight:760;
}
body[data-rocla-view="news"] .news-meta{
  justify-content:flex-end;
  text-align:right;
  font-size:.74rem;
}
body[data-rocla-view="news"] .news-content{
  padding:0 22px 20px;
}
body[data-rocla-view="news"] .news-post-text{
  max-width:70ch;
  margin:14px 0 0;
  font-size:1rem;
  line-height:1.68;
}
body[data-rocla-view="news"] .news-media-link{
  margin-top:17px;
  border-radius:16px;
}
body[data-rocla-view="news"] .news-media{
  width:100%;
  max-height:580px;
  object-fit:contain;
}
body[data-rocla-view="news"] .news-item-footer{
  min-height:50px;
  padding:7px 14px;
  background:transparent;
}
body[data-rocla-view="news"] .news-post-link{
  min-height:34px;
  padding:0 10px;
  background:transparent;
}
.news-feed-footer{display:none!important}

@media(max-width:680px){
  body[data-rocla-view="news"] #noticias.wrap{
    width:calc(100% - 24px);
  }
  body[data-rocla-view="news"] #noticias{
    padding-top:10px;
    padding-bottom:28px;
  }
  body[data-rocla-view="news"] .news-section-head{
    gap:10px;
    margin-bottom:18px;
  }
  body[data-rocla-view="news"] .news-section-head h2{
    font-size:clamp(2rem,10vw,2.75rem);
  }
  body[data-rocla-view="news"] .news-section-head p{
    font-size:.96rem;
    line-height:1.5;
  }
  body[data-rocla-view="news"] .news-join{
    width:auto!important;
    min-height:40px;
    padding:0 14px;
    align-self:flex-start;
  }
  body[data-rocla-view="news"] .news-feed{
    gap:14px;
  }
  body[data-rocla-view="news"] .news-item{
    border-radius:18px;
  }
  body[data-rocla-view="news"] .news-item-header{
    align-items:flex-start;
    justify-content:flex-start;
    flex-direction:column;
    gap:4px;
    padding:14px 15px 0;
  }
  body[data-rocla-view="news"] .news-meta{
    justify-content:flex-start;
    text-align:left;
  }
  body[data-rocla-view="news"] .news-content{
    padding:0 15px 16px;
  }
  body[data-rocla-view="news"] .news-post-text{
    margin-top:12px;
    max-width:none;
    font-size:.96rem;
    line-height:1.62;
  }
  body[data-rocla-view="news"] .news-media-link{
    margin-top:14px;
    border-radius:14px;
  }
  body[data-rocla-view="news"] .news-item-footer{
    min-height:46px;
    padding:6px 10px;
  }
}


/* Ajustes de CTA e icono de Noticias */
body[data-rocla-view="news"] .news-section-head{
  align-items:flex-end;
}
body[data-rocla-view="news"] .news-join{
  margin-left:auto;
  align-self:flex-end;
  background:#3485ff;
  color:#fff;
  border-color:transparent;
  box-shadow:0 8px 20px rgba(52,133,255,.22);
}
body[data-rocla-view="news"] .news-join:hover{
  background:#2f7bf0;
  color:#fff;
  border-color:transparent;
}
body[data-rocla-view="news"] .news-join:focus-visible{
  outline:3px solid rgba(52,133,255,.24);
  outline-offset:3px;
}
.news-entry-icon{
  position:relative;
}
.news-entry-icon::after{
  content:"";
  position:absolute;
  top:-2px;
  right:-2px;
  width:9px;
  height:9px;
  border-radius:50%;
  background:#ff3b30;
  border:2px solid var(--bg);
  box-shadow:0 1px 4px rgba(255,59,48,.28);
}
@media(max-width:680px){
  body[data-rocla-view="news"] .news-section-head{
    align-items:stretch;
  }
  body[data-rocla-view="news"] .news-join{
    align-self:flex-end;
    margin-left:auto;
  }
}


/* Noticias en el encabezado */
.header-news-button{
  position:relative;
  width:40px;
  height:40px;
  flex:none;
  display:grid;
  place-items:center;
  border-radius:50%;
  border:1px solid rgba(79,132,238,.12);
  background:rgba(255,255,255,.62);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  color:var(--text);
  transition:transform .18s ease,background .25s ease,border-color .25s ease,color .25s ease;
}
.header-news-button:hover{
  transform:translateY(-1px);
  border-color:rgba(79,132,238,.24);
}
.header-news-button:focus-visible{
  outline:3px solid rgba(79,132,238,.24);
  outline-offset:3px;
}
.header-news-button i{
  font-size:19px;
  line-height:1;
}
.header-news-dot{
  position:absolute;
  top:5px;
  right:5px;
  width:8px;
  height:8px;
  border-radius:50%;
  background:#ff3b30;
  border:2px solid var(--bg);
  box-shadow:0 1px 4px rgba(255,59,48,.28);
}
html[data-theme="dark"] .header-news-button{
  background:rgba(24,29,40,.72);
  border-color:rgba(255,255,255,.08);
}
@media(max-width:680px){
  .header-news-button{
    width:38px;
    height:38px;
  }
  .header-news-button i{
    font-size:18px;
  }
  .header-news-dot{
    top:4px;
    right:4px;
  }
}
@media(max-width:380px){
  .header-news-button{
    width:36px;
    height:36px;
  }
  .header-news-button i{
    font-size:17px;
  }
}


/* Campana alineada exactamente con Luna/Sol */
.site-header .header-news-button{
  width:46px;
  height:46px;
  border-radius:50%;
  border:1px solid rgba(79,132,238,.12);
  background:rgba(255,255,255,.66);
  box-shadow:none;
  color:var(--muted);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.site-header .header-news-button:hover{
  transform:none;
  border-color:rgba(79,132,238,.12);
  background:rgba(255,255,255,.72);
  box-shadow:none;
}
.site-header .header-news-button i{
  font-size:18px;
  line-height:1;
  font-weight:400;
}
html[data-theme="dark"] .site-header .header-news-button{
  background:rgba(24,29,40,.78);
  border-color:rgba(255,255,255,.12);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.035);
  color:var(--muted);
}
@media(max-width:680px){
  .site-header .header-news-button{
    width:42px;
    height:42px;
  }
}
@media(max-width:380px){
  .site-header .header-news-button{
    width:40px;
    height:40px;
  }
}


/* Indicador de noticia destacado */
.site-header .header-news-dot{
  width:12px;
  height:12px;
  top:3px;
  right:3px;
  border-width:2px;
}
@media(max-width:680px){
  .site-header .header-news-dot{
    width:12px;
    height:12px;
    top:2px;
    right:2px;
  }
}
