/* Fase 3.0.34: carrusel accesible + explorador, CSS aislado del tema clásico. */
.ag-featured{margin:clamp(20px,4vw,50px) 0;padding:clamp(16px,3vw,28px);border-radius:18px;background:color-mix(in srgb,var(--ag-brand,#14665a) 6%,white);border:1px solid #d6e2e6}
.ag-featured .ag-home-posts-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}
.ag-featured .ag-home-posts-heading h2{margin:.1rem 0;font-size:clamp(1.5rem,3vw,2.1rem);line-height:1.2;color:#172f3a}
.ag-carousel-shell{position:relative;min-width:0}.ag-carousel-controls{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin:8px 0}.ag-carousel-arrow{display:inline-grid;place-items:center;width:44px;height:44px;padding:0;border-radius:50%;background:var(--ag-brand,#14665a);color:white;font-size:26px;line-height:1}.ag-carousel-arrow:disabled{opacity:.35;cursor:not-allowed}.ag-carousel-status{font-size:.88rem;font-weight:700;color:#354b5b}
.ag-editorial-carousel{display:flex!important;gap:16px;overflow-x:auto!important;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding-inline:4px;overscroll-behavior-inline:contain;padding:4px 4px 16px;scrollbar-width:thin;max-width:100%;min-width:0}
.ag-editorial-carousel>.ag-carousel-card{flex:0 0 min(360px,86%)!important;scroll-snap-align:start;max-width:100%;min-width:0;display:flex;flex-direction:column;padding:22px;background:#fff;border:1px solid #d4e0e5;border-radius:16px;box-shadow:0 7px 22px #0e354214;overflow-wrap:anywhere;min-height:230px}
.ag-carousel-card h3{font-size:clamp(1.12rem,2.2vw,1.4rem);line-height:1.32;margin:9px 0}.ag-carousel-card h3 a{color:#164c63}.ag-carousel-kind{font-size:.8rem;color:#426276;font-weight:700;margin:0}.ag-carousel-excerpt{color:#354c57;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.ag-carousel-footer{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:.78rem;color:#58717d;margin-top:auto}.ag-carousel-open{margin-top:12px;font-weight:700}.ag-editorial-links,.ag-explorer-links,.ag-editorial-pages{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}
.ag-editorial-empty{padding:25px;border:1px dashed #aabec8;border-radius:13px;background:#fff;color:#3c5a67}
.ag-explorer{min-width:0;max-width:1150px;margin:auto}.ag-explorer-head{padding:clamp(20px,4vw,36px);border-radius:17px;background:#edf5f4;margin-bottom:20px}.ag-explorer-head h1{margin:0;font-size:clamp(1.6rem,3.5vw,2.4rem)}
.ag-explorer-form{display:grid!important;grid-template-columns:minmax(220px,2fr) repeat(2,minmax(150px,1fr)) auto;gap:12px;align-items:end;background:#fff;border:1px solid #d9e4e7;border-radius:15px;padding:18px;margin-bottom:18px}.ag-explorer-form label{display:grid;gap:6px;min-width:0}.ag-explorer-form input,.ag-explorer-form select{width:100%;max-width:100%}.ag-filter-clear{align-self:center;justify-self:end;font-size:.9rem}.ag-explorer-count{margin:13px 0;color:#47616c;font-weight:700}
.ag-editorial-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,255px),1fr));gap:16px}.ag-editorial-card{background:#fff;border:1px solid #d4e0e5;border-radius:15px;padding:20px;min-width:0;overflow-wrap:anywhere}.ag-editorial-card h2{font-size:1.2rem;line-height:1.35;margin:12px 0}.ag-editorial-card h2 a{color:#17526d}.ag-card-meta{font-size:.8rem;color:#537080;font-weight:700}
@media(max-width:900px){.ag-explorer-form{grid-template-columns:repeat(2,minmax(0,1fr))}.ag-explorer-form label:first-child{grid-column:1/-1}}
@media(max-width:550px){.ag-featured{padding:14px}.ag-explorer-form{grid-template-columns:1fr}.ag-explorer-form label:first-child{grid-column:auto}.ag-editorial-carousel>.ag-carousel-card{flex-basis:92%!important}.ag-carousel-arrow{width:42px;height:42px}.ag-explorer-head{padding:18px}}
@media(prefers-reduced-motion:reduce){.ag-editorial-carousel{scroll-behavior:auto!important}}

/* Fase 3.0.36: explorador y carrusel limitados a su contenedor. */
.ag-featured,.ag-explorer,.ag-editorial-grid,.ag-editorial-carousel,.ag-carousel-shell{min-width:0;max-width:100%}
.ag-editorial-carousel{overscroll-behavior-x:contain}
.ag-carousel-card{min-width:0}
@media(max-width:600px){
 .ag-featured{padding:12px}
 .ag-featured .ag-home-posts-heading{gap:9px}
 .ag-featured .ag-home-posts-heading .btn{width:100%;text-align:center}
 .ag-editorial-carousel>.ag-carousel-card{flex-basis:min(92%,320px)!important;padding:16px}
 .ag-explorer-form{grid-template-columns:minmax(0,1fr);padding:13px}
 .ag-explorer-form>*,.ag-explorer-form label:first-child{grid-column:auto;min-width:0}
 .ag-editorial-links .btn{flex:1 1 100%;text-align:center}
}
