/* Acceso incorporado al menú público del sitio */
.agc-site-access-item>a,.agc-site-access-item .wp-block-navigation-item__content{font-weight:780!important;text-decoration:none!important;transition:background .16s ease,color .16s ease,border-color .16s ease,transform .16s ease}
.agc-site-access-item.is-button>a,.agc-site-access-item.is-button .wp-block-navigation-item__content{display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:.7em 1.05em!important;border:1px solid var(--agc-brand)!important;border-radius:999px!important;background:var(--agc-brand)!important;color:#fff!important;line-height:1!important}
.agc-site-access-item.is-button>a:hover,.agc-site-access-item.is-button .wp-block-navigation-item__content:hover{background:var(--agc-brand-dark)!important;border-color:var(--agc-brand-dark)!important;color:#fff!important;transform:translateY(-1px)}
.agc-site-access-item.is-link>a,.agc-site-access-item.is-link .wp-block-navigation-item__content{color:var(--agc-brand)!important;border-bottom:2px solid var(--agc-brand)!important}
.agc-site-access-item.is-link>a:hover,.agc-site-access-item.is-link .wp-block-navigation-item__content:hover{color:var(--agc-brand-dark)!important;border-color:var(--agc-brand-dark)!important}

/* Contenedor de las páginas privadas */
.agc-system-page .agc-app-page{width:100%;max-width:none;margin:0;padding:18px clamp(12px,2.8vw,42px) 58px;box-sizing:border-box;background:linear-gradient(180deg,#f7f9f7 0,#eef3ef 100%);min-height:76vh}
.agc-system-page .agc-app-page>*{max-width:1760px;margin-left:auto;margin-right:auto}
.agc-system-shell{width:100%;color:var(--agc-ink);font-family:inherit}
.agc-system-shell *{box-sizing:border-box}
.agc-system-header{position:relative;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:72px;padding:13px 18px;border:1px solid var(--agc-line);border-bottom:0;border-radius:18px 18px 0 0;background:#fff;box-shadow:0 10px 30px rgba(25,48,34,.07)}
.agc-system-brand{display:flex;align-items:center;gap:11px;color:var(--agc-ink)!important;text-decoration:none!important;min-width:0}
.agc-brand-mark{display:grid;place-items:center;flex:0 0 auto;width:40px;height:40px;border-radius:13px;background:var(--agc-brand);color:#fff;font-size:20px;font-weight:900;line-height:1;box-shadow:0 6px 16px rgba(47,111,69,.22);overflow:hidden}
.agc-brand-mark.has-logo{padding:4px;background:#fff;border:1px solid var(--agc-line);box-shadow:0 6px 16px rgba(25,48,34,.12)}
.agc-brand-logo-image{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain}
.agc-system-brand>span:last-child,.agc-login-brand>span:last-child{display:flex;flex-direction:column;min-width:0;line-height:1.05}
.agc-system-brand b,.agc-login-brand b{font-size:15px;letter-spacing:.015em}
.agc-system-brand small,.agc-login-brand small{margin-top:4px;color:#758179;font-size:9px;font-weight:750;text-transform:uppercase;letter-spacing:.13em}
.agc-system-header-actions{display:flex;align-items:center;gap:10px;color:#657168;font-size:12px}
.agc-header-site-link,.agc-logout-link{display:inline-flex;align-items:center;gap:5px;padding:7px 9px;border-radius:8px;color:#536058!important;text-decoration:none!important;font-weight:700}
.agc-header-site-link:hover{background:var(--agc-soft);color:var(--agc-brand)!important}
.agc-logout-link{border:1px solid #d7dfda;background:#fff}
.agc-logout-link:hover{border-color:#efc8ca;background:#fff3f3;color:#9b3034!important}
.agc-system-user-name{padding-left:9px;border-left:1px solid var(--agc-line);font-weight:650}
.agc-sidebar-toggle{display:none;align-items:center;gap:6px;padding:8px 10px;border:1px solid var(--agc-line);border-radius:9px;background:#fff;color:var(--agc-ink);font:inherit;font-size:12px;font-weight:750;cursor:pointer}
.agc-system-layout{position:relative;display:grid;grid-template-columns:258px minmax(0,1fr);align-items:stretch;min-height:610px}
.agc-system-sidebar{position:relative;z-index:25;display:flex;flex-direction:column;gap:9px;padding:17px 13px 14px;border-radius:0 0 0 18px;background:linear-gradient(180deg,#183527 0,#10271c 100%);color:#fff;box-shadow:0 14px 32px rgba(17,39,28,.14)}
.agc-sidebar-home,.agc-sidebar-group-title,.agc-sidebar-item{display:flex;align-items:center;gap:9px;color:rgba(255,255,255,.83)!important;text-decoration:none!important;border-radius:10px;transition:background .15s ease,color .15s ease,transform .15s ease}
.agc-sidebar-home{padding:11px 12px;font-size:13px;font-weight:800}
.agc-sidebar-home:hover,.agc-sidebar-home.is-active{background:#fff;color:var(--agc-brand-dark)!important}
.agc-sidebar-home .dashicons,.agc-sidebar-group-title .dashicons:first-child{font-size:18px;width:18px;height:18px}
.agc-sidebar-area-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:2px 0 8px}
.agc-area-switch{display:flex;align-items:center;gap:8px;min-width:0;padding:10px 9px;border:1px solid rgba(255,255,255,.12);border-radius:11px;background:rgba(255,255,255,.055);color:#fff!important;text-decoration:none!important;transition:background .16s ease,border-color .16s ease,transform .16s ease}
.agc-area-switch:hover{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.2);transform:translateY(-1px)}
.agc-area-switch.is-active{background:#fff;color:var(--agc-brand-dark)!important;border-color:#fff;box-shadow:0 6px 14px rgba(0,0,0,.13)}
.agc-area-switch>.dashicons{flex:0 0 auto;font-size:17px;width:17px;height:17px}
.agc-area-switch>span:last-child{display:flex;min-width:0;flex-direction:column;line-height:1.05}
.agc-area-switch small{color:inherit;font-size:7px;font-weight:750;text-transform:uppercase;letter-spacing:.12em;opacity:.65}
.agc-area-switch b{margin-top:3px;overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.agc-sidebar-group{padding-top:8px;border-top:1px solid rgba(255,255,255,.11)}
.agc-sidebar-group-title{padding:10px 10px;font-size:12px;font-weight:850}
.agc-sidebar-group-title>.dashicons:last-child{margin-left:auto;font-size:13px;width:13px;height:13px;opacity:.55}
.agc-sidebar-group-title:hover,.agc-sidebar-group.is-current .agc-sidebar-group-title{background:rgba(255,255,255,.09);color:#fff!important}
.agc-sidebar-group-items{display:flex;flex-direction:column;gap:3px;padding:3px 0 0 8px}
.agc-sidebar-item{position:relative;padding:8px 10px;font-size:11.5px;line-height:1.2}
.agc-sidebar-item .dashicons{font-size:15px;width:15px;height:15px;opacity:.72}
.agc-sidebar-item:hover{background:rgba(255,255,255,.08);color:#fff!important;transform:translateX(2px)}
.agc-sidebar-item.is-active{background:#fff;color:var(--agc-brand-dark)!important;font-weight:850;box-shadow:0 6px 14px rgba(0,0,0,.12)}
.agc-sidebar-item.is-active .dashicons{opacity:1}
.agc-sidebar-footer{display:flex;flex-direction:column;margin-top:auto;padding:13px 11px;border-radius:11px;background:rgba(255,255,255,.07)}
.agc-sidebar-footer small{color:rgba(255,255,255,.55);font-size:9px;text-transform:uppercase;letter-spacing:.09em}
.agc-sidebar-footer b{margin-top:4px;font-size:11px;color:#fff}
.agc-sidebar-backdrop{display:none}
.agc-system-content{min-width:0;padding:27px;border:1px solid var(--agc-line);border-left:0;border-radius:0 0 18px 0;background:#fff;box-shadow:0 14px 32px rgba(25,48,34,.08);overflow:hidden}
.agc-system-content .agc-wrap{margin:0;padding:0;max-width:none}
.agc-system-content .agc-front-wrap>.agc-page-heading{margin-bottom:22px}
.agc-system-content .agc-front-wrap>.agc-page-heading h1{font-size:30px!important}
.agc-system-content .agc-table-scroll{width:100%}
.agc-system-content .notice{margin-top:0}

/* Pantalla de ingreso */
.agc-login-shell{min-height:68vh;display:grid;place-items:center;padding:38px 16px;background:radial-gradient(circle at top right,rgba(47,111,69,.14),transparent 34%),linear-gradient(180deg,#f7faf8,#edf3ef)}
.agc-login-card{width:min(510px,100%);padding:35px;border:1px solid var(--agc-line);border-radius:22px;background:#fff;box-shadow:0 24px 70px rgba(25,48,34,.15)}
.agc-login-brand{display:flex;align-items:center;gap:11px;width:max-content;margin:0 0 26px;color:var(--agc-ink)!important;text-decoration:none!important}
.agc-login-card h1{margin:0;color:var(--agc-ink);font-size:30px;line-height:1.1;letter-spacing:-.035em}
.agc-login-card>p{margin:11px 0 16px;color:var(--agc-muted);font-size:14px;line-height:1.55}
.agc-login-areas{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:22px}
.agc-login-areas span{padding:6px 9px;border-radius:999px;background:var(--agc-soft);color:var(--agc-brand-dark);font-size:10px;font-weight:800}
.agc-login-card form{padding-top:18px;border-top:1px solid var(--agc-line)}
.agc-login-card form p{margin:0 0 14px}
.agc-login-card label{display:block;margin-bottom:6px;color:var(--agc-ink);font-size:12px;font-weight:750}
.agc-login-card input[type=text],.agc-login-card input[type=password]{width:100%;min-height:44px;padding:10px 12px;border:1px solid #b9c5bd;border-radius:10px;background:#fff;color:var(--agc-ink);font:inherit}
.agc-login-card input:focus{border-color:var(--agc-brand);outline:2px solid rgba(47,111,69,.16)}
.agc-login-card .login-remember{display:flex;align-items:center;gap:7px;color:var(--agc-muted);font-size:12px}
.agc-login-card .login-remember label{font-weight:600}
.agc-login-card .login-submit input{width:100%;min-height:44px;border:0;border-radius:10px;background:var(--agc-brand);color:#fff;font:inherit;font-weight:850;cursor:pointer}
.agc-login-card .login-submit input:hover{background:var(--agc-brand-dark)}
.agc-login-links{display:flex;justify-content:space-between;gap:12px;margin-top:13px;font-size:11px}
.agc-login-links a,.agc-lost-password{color:var(--agc-brand)!important;text-decoration:none!important;font-weight:700}
.agc-primary-link,.agc-secondary-link,.agc-access-button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 15px;border-radius:10px;text-decoration:none!important;font-weight:800}
.agc-primary-link,.agc-access-button{background:var(--agc-brand);color:#fff!important}
.agc-primary-link:hover,.agc-access-button:hover{background:var(--agc-brand-dark);color:#fff!important}
.agc-secondary-link{margin-left:7px;border:1px solid var(--agc-line);color:var(--agc-ink)!important}
.agc-login-required,.agc-access-denied{max-width:630px;margin:55px auto;padding:30px;border:1px solid var(--agc-line);border-radius:18px;background:#fff;text-align:center;box-shadow:var(--agc-shadow)}
.agc-login-required .agc-brand-mark{margin:0 auto 14px}
.agc-login-required h2{margin:0 0 8px}
.agc-login-required p{margin:0 0 18px;color:var(--agc-muted)}
.agc-access-denied{border-top:5px solid var(--agc-danger)}
.agc-floating-access{position:fixed;right:22px;bottom:22px;z-index:99999;display:flex;align-items:center;gap:7px;padding:11px 15px;border-radius:999px;background:var(--agc-brand);color:#fff!important;text-decoration:none!important;box-shadow:0 10px 30px rgba(25,48,34,.25);font-size:12px;font-weight:800}
.agc-floating-access:hover{background:var(--agc-brand-dark);color:#fff!important}

@media(max-width:1050px){
  .agc-system-page .agc-app-page{padding:10px 8px 40px}
  .agc-system-header{border-radius:13px 13px 0 0;padding:11px 13px}
  .agc-sidebar-toggle{display:inline-flex}
  .agc-system-brand{margin-right:auto}
  .agc-system-layout{grid-template-columns:1fr}
  .agc-system-sidebar{position:fixed;z-index:999991;left:0;top:0;bottom:0;width:min(310px,86vw);border-radius:0;transform:translateX(-105%);transition:transform .2s ease;overflow-y:auto}
  .agc-system-shell.is-sidebar-open .agc-system-sidebar{transform:translateX(0)}
  .agc-sidebar-backdrop{position:fixed;z-index:999990;inset:0;display:block;border:0;background:rgba(10,22,15,.48);opacity:0;pointer-events:none;transition:opacity .2s ease}
  .agc-system-shell.is-sidebar-open .agc-sidebar-backdrop{opacity:1;pointer-events:auto}
  .agc-system-content{border-left:1px solid var(--agc-line);border-radius:0 0 13px 13px;padding:20px}
  body.agc-sidebar-lock{overflow:hidden}
}
@media(max-width:720px){
  .agc-system-header-actions .agc-system-user-name,.agc-header-site-link span:last-child{display:none}
  .agc-header-site-link{padding:7px}
  .agc-system-brand b{font-size:13px}
  .agc-system-brand small{font-size:8px}
  .agc-brand-mark{width:36px;height:36px;border-radius:11px;font-size:18px}
  .agc-system-content{padding:15px}
  .agc-system-content .agc-front-wrap>.agc-page-heading h1{font-size:26px!important}
  .agc-login-card{padding:27px 21px;border-radius:17px}
  .agc-login-card h1{font-size:27px}
  .agc-login-links{flex-direction:column}
  .agc-floating-access{right:12px;bottom:12px}
}
@media(max-width:500px){
  .agc-system-header-actions{gap:5px}
  .agc-system-user-name{display:none}
  .agc-header-site-link{display:none}
  .agc-sidebar-toggle span:last-child{display:none}
  .agc-sidebar-toggle{padding:8px}
  .agc-system-brand>span:last-child{display:none}
  .agc-secondary-link{margin:8px 0 0;width:100%}
  .agc-primary-link{width:100%}
}


/* ===== AGC PANEL POLISH V2 · 2026-07-23 ===== */
body.agc-system-page{margin:0!important;background:#edf4ef!important;color:#143428}
body.agc-system-page #header,
body.agc-system-page #page>hr{display:none!important}
body.agc-system-page #page{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;background:linear-gradient(180deg,#f4f9f6 0%,#eaf2ed 100%)}
body.agc-system-page #content{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
body.agc-system-page #wpadminbar{background:linear-gradient(90deg,#10271c,#073626)!important;box-shadow:0 6px 18px rgba(4,39,27,.18)}
body.agc-system-page #wpadminbar .ab-item,
body.agc-system-page #wpadminbar a.ab-item{color:rgba(255,255,255,.88)!important}
body.agc-system-page .agc-app-page{min-height:calc(100vh - 90px);padding:22px clamp(14px,2.8vw,42px) 42px;background:radial-gradient(circle at 95% 0,rgba(37,211,102,.10),transparent 30%),linear-gradient(180deg,#f5faf7 0%,#eaf2ed 100%)}
body.agc-system-page .agc-system-shell{filter:drop-shadow(0 18px 44px rgba(9,55,38,.10))}
body.agc-system-page .agc-system-header{position:sticky;top:0;z-index:60;min-height:78px;padding:14px 20px;border:1px solid rgba(255,255,255,.13);border-bottom:0;border-radius:20px 20px 0 0;background:linear-gradient(135deg,#073626 0%,#0a6546 70%,#0b8057 100%);box-shadow:0 12px 32px rgba(4,39,27,.20);color:#fff}
body.admin-bar.agc-system-page .agc-system-header{top:32px}
body.agc-system-page .agc-system-brand{color:#fff!important}
body.agc-system-page .agc-brand-mark{width:46px;height:46px;padding:5px;border:1px solid rgba(255,255,255,.7);border-radius:14px;background:#fff url("https://agroambiental.org/wp-content/uploads/2026/05/cropped-LOGO-AGROAMBIENTAL-Cuadrado.png") center/36px 36px no-repeat!important;color:transparent!important;font-size:0!important;box-shadow:0 8px 20px rgba(0,0,0,.22)}
body.agc-system-page .agc-brand-mark.has-logo{background-color:#fff!important}
body.agc-system-page .agc-system-brand b{color:#fff!important;font-size:16px;letter-spacing:.02em}
body.agc-system-page .agc-system-brand small{color:rgba(255,255,255,.70)!important}
body.agc-system-page .agc-system-header-actions{color:rgba(255,255,255,.78)}
body.agc-system-page .agc-system-user-name{border-left-color:rgba(255,255,255,.25);color:rgba(255,255,255,.84)}
body.agc-system-page .agc-header-site-link,
body.agc-system-page .agc-logout-link{min-height:38px;padding:8px 11px;border:1px solid rgba(255,255,255,.22);border-radius:10px;background:rgba(255,255,255,.09);color:#fff!important;backdrop-filter:blur(8px)}
body.agc-system-page .agc-header-site-link:hover{border-color:rgba(255,255,255,.42);background:rgba(255,255,255,.17);color:#fff!important}
body.agc-system-page .agc-logout-link:hover{border-color:#ffd4d6;background:#fff1f2;color:#9b3034!important}
body.agc-system-page .agc-sidebar-toggle{border-color:rgba(255,255,255,.28);background:rgba(255,255,255,.11);color:#fff}
body.agc-system-page .agc-sidebar-toggle:hover{background:rgba(255,255,255,.19)}
body.agc-system-page .agc-system-layout{border-radius:0 0 20px 20px;overflow:clip}
body.agc-system-page .agc-system-sidebar{border-radius:0;background:linear-gradient(180deg,#163d2b 0%,#0a2b1d 100%);box-shadow:12px 18px 34px rgba(10,43,29,.12)}
body.agc-system-page .agc-system-content{border-radius:0!important;background:linear-gradient(180deg,#fff 0%,#fbfdfc 100%);box-shadow:none}
body.agc-system-page .agc-area-card{border:1px solid rgba(255,255,255,.08)}
body.agc-system-page #footer{display:flex!important;align-items:center;justify-content:space-between;gap:18px;min-height:82px;margin:0!important;padding:20px clamp(20px,4vw,58px)!important;border:0!important;background:linear-gradient(135deg,#073626,#0a5f42)!important;color:#fff!important;box-shadow:0 -8px 30px rgba(4,39,27,.10)}
body.agc-system-page #footer p{display:none!important}
body.agc-system-page #footer:before{content:"AGROAMBIENTAL · PANEL DE GESTIÓN";font-size:15px;font-weight:900;letter-spacing:.035em;color:#fff}
body.agc-system-page #footer:after{content:"Gestión interna segura · Mar del Plata";font-size:12px;font-weight:650;color:rgba(255,255,255,.68)}
@media(max-width:782px){body.admin-bar.agc-system-page .agc-system-header{top:46px}body.agc-system-page .agc-app-page{padding:14px 10px 28px}body.agc-system-page .agc-system-header{min-height:68px;padding:10px 12px;border-radius:15px 15px 0 0}body.agc-system-page .agc-brand-mark{width:40px;height:40px;background-size:31px 31px!important}body.agc-system-page #footer{min-height:76px;flex-direction:column;align-items:flex-start;gap:5px;padding:18px 20px!important}}
@media(max-width:500px){body.agc-system-page .agc-system-header-actions{gap:6px}body.agc-system-page .agc-logout-link{padding:8px 10px}body.agc-system-page #footer:before{font-size:13px}}
@media(prefers-reduced-motion:reduce){body.agc-system-page .agc-system-shell{filter:none}}
/* ===== FIN AGC PANEL POLISH V2 ===== */


/* Public map density zones v2.0.12 */
.agc-density-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:32px;margin:0 0 22px}.agc-density-heading>div{max-width:620px}.agc-density-heading h2{margin:5px 0 0;color:#063f33;font-size:clamp(25px,3vw,42px);line-height:1.05;letter-spacing:-.035em}.agc-density-heading>p{max-width:460px;margin:0;color:#49645d;font-size:15px;line-height:1.6}.agc-density-legend{display:flex;flex-wrap:wrap;gap:12px 24px;padding:14px 18px;border:1px solid #d5e7df;border-radius:16px;background:#f7fbf9}.agc-density-legend span{display:inline-flex;align-items:center;gap:9px;color:#214c42;font-weight:700}.agc-density-legend i{width:16px;height:16px;border-radius:50%;border:2px solid transparent}.agc-density-legend .is-density-low{background:rgba(110,231,183,.55);border-color:#2aa876}.agc-density-legend .is-density-medium{background:rgba(16,185,129,.55);border-color:#0f8a62}.agc-density-legend .is-density-high{background:rgba(5,150,105,.72);border-color:#046c4e}.agc-map-app.is-public .agc-building-map{min-height:620px}.leaflet-tooltip.agc-density-count{display:flex;align-items:center;justify-content:center;min-width:42px;height:42px;margin:0;padding:0 8px;border:2px solid #fff;border-radius:999px;background:#064e3b;color:#fff;box-shadow:0 7px 18px rgba(2,44,34,.28);font-size:15px;font-weight:900;line-height:1;transform:translate(-50%,-50%);pointer-events:none}.leaflet-tooltip.agc-density-count:before{display:none}.agc-density-circle{transition:fill-opacity .18s ease,stroke-width .18s ease}.agc-density-circle:hover{stroke-width:4;fill-opacity:.42}.agc-density-popup b{display:block;margin:9px 0 4px;color:#063f33;font-size:20px}.agc-density-popup small{display:block;color:#5a6f69}.agc-density-popup p{margin:12px 0 0;color:#38574f;line-height:1.45}.agc-density-popup .agc-map-popup-status.is-alta{background:#dff8ec;color:#046c4e}.agc-density-popup .agc-map-popup-status.is-media{background:#e8faf3;color:#0f7657}.agc-density-popup .agc-map-popup-status.is-baja{background:#effaf6;color:#25815f}
@media(max-width:780px){.agc-density-heading{display:block}.agc-density-heading>p{margin-top:14px}.agc-density-legend{display:grid;grid-template-columns:1fr;gap:9px}.agc-map-app.is-public .agc-building-map{min-height:500px}.leaflet-tooltip.agc-density-count{min-width:36px;height:36px;font-size:13px}}
