/* Portales ilustrados AdoptaYa v227 — estilos encapsulados */
.ay-portal-entry{position:relative;max-width:1200px;margin:30px auto;border-radius:24px;overflow:hidden;box-shadow:0 15px 42px #44301526;background:#fff;isolation:isolate}.ay-portal-entry img{display:block;width:100%;height:auto}.ay-portal-action{position:absolute;left:6.5%;top:63%;width:30%;height:12%;border:0;background:transparent;cursor:pointer;border-radius:40px}.ay-portal-action:focus-visible,.ay-portal-entry:focus-visible{outline:4px solid #ff641e;outline-offset:-5px}.ay-portal-page{min-height:100vh;padding:24px max(12px,calc((100vw - 1240px)/2));background:#e9dfc8 url("https://ptdtplxvmqipppxqbcml.supabase.co/storage/v1/object/public/adoptaya-web-static/v294/db798978b91fef0caae6cb5112a998595883bc04f8c87123add8851e0ecd2ea2.jpg") center top / cover fixed;color:#39271b}.ay-portal-page[data-kind="shelters"]{background-image:url("https://ptdtplxvmqipppxqbcml.supabase.co/storage/v1/object/public/adoptaya-web-static/v294/1aeaf9d63c622af1bce5233dbbf8a1b0d90a27408feedb7de45b2ec2e7f5a232.jpg")}.ay-portal-page-inner{padding:18px;border-radius:22px;background:#fff9eddd;box-shadow:0 18px 55px #3d2c2250;backdrop-filter:blur(5px)}.ay-portal-page-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:10px 16px 22px}.ay-portal-page-head h1{font-size:clamp(25px,4vw,44px);margin:0;color:#432917}.ay-portal-back{border:0;border-radius:30px;background:#ff641e;color:white;padding:12px 20px;font-weight:800;cursor:pointer}.ay-portal-page #sectionAnimals,.ay-portal-page #buscar-protectora{display:block!important;max-width:100%;margin:0;visibility:visible!important}.ay-portal-page #sectionAnimals .board-box,.ay-portal-page #buscar-protectora .advanced-search-wrapper{max-width:100%}.ay-portal-page .board-filter-fold{margin-bottom:14px}.ay-portal-page .board-filter-fold:not([open]) .board-filter-panel{display:none}.ay-portal-page .cork-grid{grid-template-columns:repeat(auto-fit,minmax(155px,1fr))}.ay-portal-page #grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.ay-portal-page .cork-heading{padding-top:6px}
@media(max-width:700px){.ay-portal-entry{margin:18px 10px;border-radius:17px;cursor:pointer}.ay-portal-entry img{width:100%;height:auto}.ay-portal-action{display:none}.ay-portal-page{padding:12px 7px;background-attachment:scroll}.ay-portal-page-inner{padding:8px}.ay-portal-page-head{padding:10px 8px 14px}.ay-portal-page .cork-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.ay-portal-page .cork-grid>*{min-width:0}.ay-portal-page #grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}}
@media(min-width:701px){.ay-portal-entry{cursor:default}}

/* v228: portal pages isolated from the home layout */
.ay-portal-entry[hidden],.ay-portal-page[hidden],#sectionAnimals[hidden],#buscar-protectora[hidden]{display:none!important}
body.ay-portal-active{overflow:hidden!important}
body.ay-portal-active #ayPortalPage{position:fixed!important;inset:0!important;z-index:9000!important;display:block!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;box-sizing:border-box;width:100%!important;height:100dvh!important;min-height:0!important;margin:0!important;padding:clamp(12px,2vw,28px)!important;background-color:#e9dfc8;background-size:cover;background-position:center top;background-attachment:scroll}
#ayPortalPage *,#ayPortalPage *::before,#ayPortalPage *::after{box-sizing:border-box}
#ayPortalPage .ay-portal-page-inner{width:min(100%,1250px);margin:0 auto;padding:clamp(10px,2vw,25px);min-width:0}
#ayPortalPage .ay-portal-page-head{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
#ayPortalPage #ayPortalContent{min-width:0;width:100%}
#ayPortalPage #sectionAnimals,#ayPortalPage #buscar-protectora{display:block!important;position:relative!important;float:none!important;transform:none!important;inset:auto!important;width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;overflow:visible!important}
#ayPortalPage .board-box,#ayPortalPage .advanced-search-wrapper{width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important}
#ayPortalPage .cork-grid,#ayPortalPage #animalsGrid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr))!important;gap:clamp(10px,2vw,22px)!important;min-width:0!important}
#ayPortalPage .cork-grid>*{min-width:0!important;max-width:100%!important}
#ayPortalPage .cork-board-viewport{max-width:100%;overflow-x:hidden}
#ayPortalPage input,#ayPortalPage select{max-width:100%;min-width:0}
#ayPortalPage .ay-portal-back{flex-shrink:0}
@media(max-width:700px){
body.ay-portal-active #ayPortalPage{padding:8px!important;background-size:auto 100%;}
#ayPortalPage .ay-portal-page-inner{padding:10px 8px;border-radius:15px}
#ayPortalPage .ay-portal-page-head{padding:8px 6px 14px;align-items:flex-start}
#ayPortalPage .ay-portal-page-head h1{font-size:clamp(23px,7vw,31px);line-height:1.15}
#ayPortalPage .board-box{padding:18px 10px!important;border-width:5px!important}
#ayPortalPage .cork-grid,#ayPortalPage #animalsGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;padding:4px!important}
#ayPortalPage .cork-grid>*{width:auto!important;min-width:0!important}
#ayPortalPage .advanced-search-wrapper{padding:12px 8px!important}
#ayPortalPage .shelter-search-header,#ayPortalPage .cork-heading{max-width:100%;min-width:0}
}
@media(max-width:370px){#ayPortalPage .cork-grid,#ayPortalPage #animalsGrid{grid-template-columns:minmax(0,1fr)!important}}
