/* AyudaGlobal 3.0.36 — Navegación única responsiva.
   Corrige el ancho 100% heredado por el tema clásico (captura Android 19/11).
   Ningún panel puede ensanchar el viewport. */
header.top{position:relative;z-index:90}
header.top .wrap.nav{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;min-width:0;gap:12px}
header.top .brand{min-width:0;flex:0 0 auto;max-width:260px;display:flex;align-items:center;gap:9px;text-decoration:none;overflow-wrap:anywhere}
header.top .ag-brand-copy{display:flex;flex-direction:column;min-width:0;flex:1 1 auto;gap:3px}
header.top .ag-brand-name{display:block;line-height:1.2;overflow-wrap:anywhere}
header.top .brand .ag-site-logo{flex:0 0 auto;object-fit:contain;object-position:center;max-width:80px;max-height:64px;height:auto;width:auto}
header.top .brand .ag-site-slogan{display:block;width:auto;font-weight:650;line-height:1.25}
header.top .ag-site-menu{flex:1 1 auto;min-width:0}
header.top .ag-menu-toggle{display:none}
header.top .ag-site-menu>nav{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:4px 7px;min-width:0;width:auto}
header.top .ag-site-menu>nav a{display:inline-flex;align-items:center;gap:5px;min-height:40px;padding:8px 7px;border-radius:8px;text-decoration:none;line-height:1.25;white-space:nowrap;font-size:clamp(.79rem,.95vw,.92rem)}
header.top .ag-site-menu>nav a:hover,header.top .ag-site-menu>nav a:focus-visible{background:#ffffff24;text-decoration:none}
header.top .ag-site-menu>nav img{width:25px;height:25px;border-radius:50%;object-fit:cover}
@media(max-width:1120px){
 header.top .wrap.nav,.ag-classic header.top .wrap.nav{min-height:68px;gap:8px;padding-block:9px;align-items:center;flex-wrap:nowrap}
 header.top .brand,.ag-classic header.top .brand{min-width:0;max-width:none;flex:1 1 0%;display:flex;align-items:center;flex-wrap:nowrap;gap:8px;margin:0;font-size:1.03rem;line-height:1.25}
 header.top .brand .ag-site-logo,.ag-classic header.top .brand .ag-site-logo{width:auto;height:auto;max-width:60px;max-height:60px;flex:0 0 auto}
 header.top .brand .ag-brand-copy{min-width:0;flex:1 1 auto;display:flex;flex-direction:column;gap:3px}
 header.top .brand .ag-brand-name{font-size:clamp(.98rem,3.2vw,1.2rem)}
 header.top .brand .ag-site-slogan,.ag-classic header.top .brand .ag-site-slogan{width:auto;font-size:.68rem;letter-spacing:0;overflow-wrap:anywhere}
 header.top .ag-site-menu{flex:0 0 auto;min-width:0;margin-left:auto}
 header.top .ag-menu-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 12px;list-style:none;user-select:none;cursor:pointer;color:#fff;background:#ffffff1c;border:1px solid #ffffff7d;border-radius:12px;font-weight:750;font-size:.95rem;white-space:nowrap}
 header.top .ag-menu-toggle::-webkit-details-marker{display:none}
 header.top .ag-menu-toggle::marker{content:''}
 header.top .ag-menu-toggle:hover,header.top .ag-menu-toggle:focus-visible{background:#ffffff30}
 header.top .ag-menu-icon{font-size:1.25rem;line-height:1}
 header.top .ag-menu-chevron{font-size:1.15rem;line-height:1;transition:transform .18s ease}
 header.top .ag-site-menu[open] .ag-menu-chevron{transform:rotate(180deg)}
 /* width:auto is critical: the legacy theme sets .top nav to width:100%. */
 header.top .ag-site-menu>nav,.ag-classic header.top .ag-site-menu>nav{box-sizing:border-box;display:none;position:absolute;left:clamp(12px,2.5vw,24px);right:clamp(12px,2.5vw,24px);top:calc(100% - 1px);width:auto;max-width:calc(100% - 24px);min-width:0;margin:0;padding:12px;border:1px solid #ffffff36;border-radius:0 0 16px 16px;background:#123849;box-shadow:0 20px 42px #071b326b;color:#fff;max-height:min(70dvh,600px);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:stretch;justify-content:stretch}
 header.top .ag-site-menu[open]>nav{display:grid}
 header.top .ag-site-menu>nav a,.ag-classic header.top .ag-site-menu>nav a{display:flex;align-items:center;min-width:0;width:100%;min-height:50px;padding:12px 14px;border-radius:11px;background:#ffffff12;color:#fff;text-decoration:none;font-size:.94rem;white-space:normal;overflow-wrap:anywhere}
 header.top .ag-site-menu>nav a:hover,header.top .ag-site-menu>nav a:focus-visible{background:#ffffff25}
}
@media(max-width:480px){
 header.top .wrap.nav,.ag-classic header.top .wrap.nav{gap:6px}
 header.top .brand,.ag-classic header.top .brand{gap:7px}
 header.top .brand .ag-site-logo,.ag-classic header.top .brand .ag-site-logo{max-width:52px;max-height:52px}
 header.top .brand .ag-brand-name{font-size:clamp(.87rem,4.3vw,1.12rem)}
 header.top .brand .ag-site-slogan{font-size:.61rem}
 header.top .ag-menu-toggle{font-size:.9rem;padding:8px 10px;gap:6px}
 header.top .ag-menu-chevron{display:none}
 header.top .ag-site-menu>nav a{padding:12px 10px;min-height:48px;font-size:.9rem}
}
@media(max-width:340px){
 header.top .brand .ag-site-logo,.ag-classic header.top .brand .ag-site-logo{max-width:42px;max-height:42px}
 header.top .ag-brand-name{font-size:.91rem}
 header.top .ag-site-menu>nav{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){header.top .ag-menu-chevron{transition:none}}
/* El buscador bíblico sigue inmediatamente debajo de Descubre AyudaGlobal. */
.ag-classic .ag-home-intro{padding-bottom:0}
.ag-classic .ag-home-intro>p:not(.ag-home-kicker){margin-bottom:0}
.ag-classic .ag-home-intro-features{padding-top:18px}
.ag-classic .ag-home-intro-features .ag-home-features{margin-top:4px}
.ag-home-bible-search input{min-width:0;max-width:100%}
@media(max-width:580px){
 .ag-home-bible-search{display:flex;flex-wrap:wrap}
 .ag-home-bible-search input,.ag-home-bible-search button{flex:1 1 100%;min-height:46px;max-width:100%}
}
