/* Mejoras visuales USAMA R.L. */
:root{--usama-green:#08752c;--usama-deep:#103d29;--usama-mint:#eaf5ee;--usama-ink:#203129}
body{font-family:"Open Sans",Arial,sans-serif}
header .navigation{background:#fff;box-shadow:0 8px 28px rgba(12,55,31,.08);border-bottom:1px solid #edf2ee}
header .navbar-brand img{max-height:66px;width:auto}
header .navbar-nav .nav-link{font-weight:700;transition:color .2s}
header .navbar-nav .nav-link:hover{color:var(--usama-green)}
.usama-publications{padding:76px 0;background:linear-gradient(180deg,#f6faf7,#fff)}
.usama-section-heading{text-align:center;max-width:720px;margin:0 auto 34px}
.usama-section-heading>span{font-size:12px;letter-spacing:2px;font-weight:800;color:var(--usama-green)}
.usama-section-heading h2{font-size:clamp(27px,4vw,38px);font-weight:800;color:var(--usama-deep);margin:10px 0}
.usama-section-heading p{color:#697970}
.usama-post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.usama-post-card{background:#fff;border:1px solid #e6eee8;border-radius:18px;overflow:hidden;box-shadow:0 12px 34px rgba(19,61,39,.07);transition:transform .25s,box-shadow .25s}
.usama-post-card:hover{transform:translateY(-5px);box-shadow:0 18px 40px rgba(19,61,39,.13)}
.usama-post-image{height:210px;display:block;background:#edf4ef;overflow:hidden}
.usama-post-image img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.usama-post-card:hover .usama-post-image img{transform:scale(1.04)}
.usama-post-placeholder{height:210px;display:grid;place-items:center;background:linear-gradient(135deg,#0c6d32,#164a32);color:#fff;font-size:26px;font-weight:800;letter-spacing:3px}
.usama-post-body{padding:22px}
.usama-post-meta{display:flex;justify-content:space-between;gap:10px;align-items:center;color:#75847a;font-size:11px}
.usama-post-meta span{background:#e9f5ed;color:#08752c;border-radius:30px;padding:6px 10px;font-weight:800}
.usama-post-body h3{font-size:19px;line-height:1.35;color:#183b29;margin:17px 0 10px;font-weight:800}
.usama-post-body p{font-size:14px;line-height:1.65;color:#68766e;min-height:46px}
.usama-read-more{font-weight:800;color:#08752c;font-size:13px}
.usama-read-more span{font-size:19px;margin-left:5px}
.usama-all-posts{text-align:center;margin-top:34px}
.usama-all-posts a{display:inline-block;padding:13px 22px;border-radius:30px;background:#08752c;color:#fff;font-weight:800}
.usama-empty-posts{text-align:center;padding:35px;border:1px dashed #cbdacf;border-radius:15px;color:#697970;background:#fff}
.usama-detail-page{background:#f5f8f6;min-height:100vh;color:#203129}
.usama-detail-header{height:86px;background:white;display:flex;align-items:center;justify-content:space-between;padding:0 max(5vw,20px);box-shadow:0 4px 18px #153a2410}
.usama-detail-header img{max-height:58px;max-width:190px}
.usama-detail-header a:last-child{font-weight:800;color:#08752c}
.usama-detail-wrap{max-width:900px;margin:55px auto;background:white;padding:clamp(24px,5vw,55px);border-radius:20px;box-shadow:0 12px 38px #153a2410}
.usama-detail-meta{color:#08752c;font-weight:800;font-size:13px}
.usama-detail-wrap h1{font-size:clamp(28px,4vw,42px);line-height:1.2;color:#103d29;margin:14px 0}
.usama-detail-summary{font-size:18px;color:#63736a;line-height:1.6}
.usama-detail-image{width:100%;max-height:560px;object-fit:contain;background:#f4f7f5;border-radius:14px;margin:24px 0}
.usama-detail-content{font-size:16px;line-height:1.9;color:#3d4c43;margin:20px 0}
.usama-download{display:inline-block;background:#08752c;color:#fff;padding:13px 20px;border-radius:10px;font-weight:800}
.usama-detail-footer{text-align:center;padding:25px;color:#7b8980;font-size:13px}
@media(max-width:900px){.usama-post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.usama-publications{padding:55px 0}}
@media(max-width:600px){.usama-post-grid{grid-template-columns:1fr}.usama-post-image,.usama-post-placeholder{height:220px}.usama-detail-header{height:74px}.usama-detail-header img{max-width:145px;max-height:48px}.usama-detail-wrap{margin:20px 12px;padding:24px 18px}}

/* Ajustes de estructura para que el encabezado no dependa de recursos externos. */
header .header-top-bar{background:#397900;color:#fff;padding:10px 0;font-size:13px}
header .header-top-bar a,header .header-top-bar a:hover{color:#fff}
header .navigation{min-height:92px;padding:12px 0}
header .navigation .container{display:flex;align-items:center;flex-wrap:wrap}
header .navbar-brand{display:flex;align-items:center;margin-right:auto}
header .navbar-brand img{max-height:66px;width:auto}
header .navbar-collapse{flex-grow:1}
header .navbar-nav{display:flex;align-items:center;gap:2px;list-style:none;margin:0 0 0 auto;padding:0}
header .navbar-nav .nav-item{list-style:none}
header .navbar-nav .nav-link{display:block;padding:12px 13px;color:#24352b;font-size:14px}
header .navbar-nav .nav-link:hover,header .navbar-nav .nav-item.active>.nav-link{color:#397900}
header .navbar-toggler{border:1px solid #d8e3da;border-radius:7px;padding:8px 12px;color:#397900}
header .backtop{border:0;background:transparent;padding:5px 10px}
header .backtop img{max-width:80px;height:auto}
@media(max-width:991px){header .navigation .container{justify-content:space-between}header .navbar-collapse{flex-basis:100%;width:100%}header .navbar-nav{display:block;margin:12px 0 0;padding:8px 0;border-top:1px solid #edf2ee}header .navbar-nav .nav-link{padding:10px 4px}header .backtop{margin-left:auto;margin-right:10px}}

/* Portada: anuncios con vista previa de archivos, tres columnas en escritorio. */
.usama-post-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
.usama-post-preview{position:relative;background:#f0f4f1;min-height:290px;overflow:hidden}
.usama-post-pdf{display:block;width:100%;height:310px;border:0;background:#fff}
.usama-post-preview .usama-post-image{height:310px;display:flex;align-items:center;justify-content:center;background:#f0f4f1}
.usama-post-preview .usama-post-image img{width:100%;height:100%;object-fit:contain}
.usama-post-preview .usama-post-placeholder{height:310px}
.usama-preview-actions{display:flex;justify-content:center;gap:10px;padding:9px;background:#f7faf8;border-top:1px solid #e2ebe4}
.usama-preview-actions a{font-size:12px;font-weight:800;color:#08752c;padding:5px 10px;border:1px solid #cfe1d3;border-radius:7px;background:#fff}
.usama-post-body{display:flex;flex-direction:column;align-items:flex-start;min-height:220px}
.usama-post-body .usama-read-more{margin-top:auto}
@media(max-width:900px){.usama-post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.usama-post-grid{grid-template-columns:1fr}.usama-post-pdf{height:340px}.usama-post-preview .usama-post-image,.usama-post-preview .usama-post-placeholder{height:280px}}

/* Conserva el movimiento automático del carrusel de tasas de la portada. */
.testimonial-wrap-2.usama-rates-carousel{display:flex;flex-wrap:nowrap;overflow:hidden;gap:0;transition:transform .65s ease;will-change:transform}
.testimonial-wrap-2.usama-rates-carousel>.testimonial-block{display:block;flex:0 0 50%;max-width:50%;box-sizing:border-box}
@media(max-width:900px){.testimonial-wrap-2.usama-rates-carousel>.testimonial-block{flex-basis:100%;max-width:100%}}
