/* JT Solar · Recursos Noviembre 2026 · ajuste visual v2 */

/* Navegación visual por categorías */
.resource-category-rail{padding:.45rem 0 2.25rem;background:#fff}
.resource-category-rail__head{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin-bottom:.85rem}
.resource-category-rail__head h2{margin:0;font-size:clamp(1.35rem,2.4vw,1.8rem);letter-spacing:-.025em}
.resource-category-rail__head p{margin:0;color:var(--muted);font-size:.94rem}
.resource-category-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}
.resource-category-card{position:relative;min-height:138px;border-radius:18px;overflow:hidden;text-decoration:none;color:#fff;border:1px solid rgba(60,60,60,.1);box-shadow:0 8px 24px rgba(60,60,60,.07);isolation:isolate}
.resource-category-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.resource-category-card__overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(40,40,40,.86) 0%,rgba(40,40,40,.62) 62%,rgba(40,40,40,.25) 100%);z-index:1}
.resource-category-card__content{position:relative;z-index:2;display:flex;flex-direction:column;justify-content:flex-end;min-height:138px;padding:1rem 3rem 1rem 1rem}
.resource-category-card__content small{font-size:.7rem;font-weight:900;letter-spacing:.07em;text-transform:uppercase;color:#f3d579}
.resource-category-card__content strong{display:block;margin:.15rem 0 .2rem;font-size:1.2rem;line-height:1.08;color:#fff}
.resource-category-card__content span{font-size:.83rem;line-height:1.3;color:rgba(255,255,255,.88)}
.resource-category-card__arrow{position:absolute;z-index:3;right:.85rem;top:.85rem;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.92);color:#3c3c3c;font-weight:900}
.resource-category-card:hover img,.resource-category-card:focus-visible img{transform:scale(1.035)}
.resource-category-card:focus-visible{outline:3px solid #e6c058;outline-offset:3px}

/* Archivo mensual más compacto */
.resource-archive{padding-top:2.6rem}
.resource-listing-page .month-section{margin-top:2.8rem;padding-top:2.5rem;border-top:1px solid var(--line)}
.resource-listing-page .month-section:first-child{margin-top:0;padding-top:0;border-top:0}
.resource-listing-page .month-heading{margin-bottom:.85rem;align-items:center}
.resource-listing-page .month-heading h2{font-size:clamp(1.9rem,3.5vw,2.7rem);line-height:1;margin:.2rem 0 0;letter-spacing:-.04em}
.resource-listing-page .month-heading .kicker{font-size:.72rem}
.resource-listing-page .article-grid{width:min(100%,1040px);margin:0 auto;gap:.8rem}
.resource-listing-page .article-card{border-radius:16px;box-shadow:0 7px 22px rgba(60,60,60,.045)}
.resource-listing-page .article-card>img,.resource-listing-page .article-card-media{width:100%;height:168px;aspect-ratio:auto;object-fit:cover;background:#eee}
.resource-listing-page .article-card-media{position:relative;overflow:hidden}
.resource-listing-page .article-card-media img{width:100%;height:100%;object-fit:cover}
.resource-listing-page .article-card-body{padding:.95rem 1rem 1rem}
.resource-listing-page .article-meta{font-size:.69rem;letter-spacing:.045em}
.resource-listing-page .article-card h3{font-size:1.08rem;line-height:1.08;margin:.42rem 0 .45rem}
.resource-listing-page .article-card p{font-size:.91rem;line-height:1.42;margin:0 0 .72rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.resource-listing-page .article-card .read-more{font-size:.91rem}
.media-credit{position:absolute;right:.4rem;bottom:.38rem;z-index:2;padding:.22rem .4rem;border-radius:999px;background:rgba(0,0,0,.68);color:#fff;font-size:.58rem;line-height:1;letter-spacing:.01em}

/* Ampliación de noviembre: una sola línea visual */
.month-extra--compact{position:relative;display:grid;grid-template-columns:auto 1fr auto;gap:.65rem;align-items:center;width:min(100%,1040px);margin:.75rem auto 0;padding:.72rem .9rem;border:1px solid var(--line);border-radius:13px;background:#fff;text-decoration:none;color:inherit}
.month-extra--compact>span:first-child{font-size:.68rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em;color:var(--orange-accessible-dark)}
.month-extra--compact strong{font-size:.91rem;line-height:1.25}
.month-extra__arrow{font-weight:900;font-size:1rem}
.month-extra--compact:hover strong{text-decoration:underline}

/* Artículos de noviembre: imágenes presentes, pero contenidas */
.november-article .article-cover{margin-top:1.35rem}
.november-article .article-cover img{aspect-ratio:16/8.6;max-height:500px;object-fit:cover}
.november-article .article-inline-media{margin:1.65rem 0 1.85rem}
.november-article .article-inline-media img{display:block;width:100%;max-height:430px;aspect-ratio:16/9;object-fit:cover;border-radius:18px;border:1px solid var(--line)}
.november-article .article-inline-media figcaption{margin-top:.45rem;color:var(--muted);font-size:.82rem;line-height:1.45}
.november-article .article-inline-media a,.november-article .article-cover figcaption a{font-weight:700;text-underline-offset:3px}

/* Las páginas de categoría usan las mismas tarjetas compactas */
.resource-listing-page.category-listing .article-grid{width:min(100%,1040px);margin:0 auto}

@media(max-width:900px){
  .resource-category-cards{grid-template-columns:1fr 1fr}
  .resource-category-card:last-child{grid-column:1/-1}
  .resource-listing-page .article-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  .resource-category-rail{padding-bottom:1.5rem}
  .resource-category-rail__head{display:block}
  .resource-category-rail__head p{margin-top:.25rem}
  .resource-category-cards{grid-template-columns:1fr}
  .resource-category-card:last-child{grid-column:auto}
  .resource-category-card,.resource-category-card__content{min-height:122px}
  .resource-listing-page .article-grid{grid-template-columns:1fr}
  .resource-listing-page .article-card>img,.resource-listing-page .article-card-media{height:174px}
  .month-extra--compact{grid-template-columns:1fr auto}
  .month-extra--compact>span:first-child{grid-column:1/-1}
  .november-article .article-cover img{aspect-ratio:4/3;max-height:430px}
}
@media(prefers-reduced-motion:reduce){
  .resource-category-card img{transition:none}
}

/* Noviembre v3 · catálogo sin agrupación visual por meses */
.resource-catalog{padding-top:2.4rem}
.resource-catalog__head{display:flex;align-items:end;justify-content:space-between;gap:1.4rem;margin-bottom:1.05rem}
.resource-catalog__head h2{margin:.15rem 0 0;font-size:clamp(1.8rem,3vw,2.45rem);letter-spacing:-.035em}
.resource-catalog__head p{max-width:460px;margin:0;color:var(--muted);font-size:.9rem;line-height:1.45;text-align:right}
.resource-listing-page .resource-all-grid{width:min(100%,1180px);grid-template-columns:repeat(4,minmax(0,1fr));gap:.78rem}
.resource-listing-page .resource-all-grid .article-card>img,
.resource-listing-page .resource-all-grid .article-card-media{height:142px}
.resource-listing-page .resource-all-grid .article-card-body{padding:.82rem .88rem .9rem}
.resource-listing-page .resource-all-grid .article-card h3{font-size:1rem;line-height:1.1;margin:.38rem 0 .42rem}
.resource-listing-page .resource-all-grid .article-card p{font-size:.85rem;line-height:1.38;margin-bottom:.62rem}
.resource-listing-page .resource-all-grid .article-card .read-more{font-size:.86rem}
.article-meta-row{display:flex;align-items:center;justify-content:space-between;gap:.55rem;color:var(--muted);font-size:.66rem;font-weight:800;line-height:1.2;letter-spacing:.035em;text-transform:uppercase}
.article-meta-row span{color:var(--orange-accessible-dark)}
.article-meta-row time{white-space:nowrap}

.project-real-article .quick-facts{margin-top:1.15rem}
.project-real-article .project-gallery{margin-top:1.55rem;margin-bottom:1.8rem}
.project-real-article .project-gallery img{background:#eee}

@media(max-width:1080px){
  .resource-listing-page .resource-all-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  .resource-catalog__head{display:block}
  .resource-catalog__head p{margin-top:.35rem;text-align:left}
  .resource-listing-page .resource-all-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px){
  .resource-listing-page .resource-all-grid{grid-template-columns:1fr}
  .resource-listing-page .resource-all-grid .article-card>img,
  .resource-listing-page .resource-all-grid .article-card-media{height:170px}
}


/* Ajuste visual catálogo noviembre v4 */
.resource-catalog__head{margin-bottom:1.3rem}
.resource-subsection + .resource-subsection{margin-top:2.5rem;padding-top:2rem;border-top:1px solid var(--line)}
.resource-subsection__head{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin-bottom:.95rem}
.resource-subsection__head h3{margin:.15rem 0 0;font-size:clamp(1.35rem,2.2vw,1.8rem);letter-spacing:-.03em}
.resource-subsection__head p{margin:0;color:var(--muted);font-size:.92rem;line-height:1.45}
.resource-all-grid--latest .article-card{box-shadow:0 10px 26px rgba(60,60,60,.06)}
@media(max-width:760px){.resource-subsection__head{display:block}.resource-subsection__head p{margin-top:.3rem}}


/* Ecobulevar editorial v5 */
.november-article .video-embed{position:relative;width:100%;aspect-ratio:16/9;margin:1.15rem 0 .55rem;border-radius:18px;overflow:hidden;background:#111;border:1px solid var(--line)}
.november-article .video-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.november-article .video-credit{margin:.35rem 0 1.5rem;color:var(--muted);font-size:.82rem;line-height:1.45}
.november-article .article-inline-media--diagram img{object-fit:contain;background:#fff;max-height:620px}
.november-article .quick-facts{margin:1.35rem 0 1.7rem}
.november-article .quick-fact strong{font-size:1.12rem;line-height:1.12}
