/* Innversiones CRM 2.1 · UX/UI refinement · scoped and compatible with legacy modules */
:root{--innv-forest:#12372d;--innv-pine:#205441;--innv-copper:#ae9867;--innv-bg:#f5f7f5;--innv-border:#e2e9e4;--innv-muted:#65786c;--innv-focus:#c2a26e}
html{scroll-padding-top:90px}
body{overflow-x:hidden}
.innv-skip-link{position:fixed;top:-80px;left:18px;z-index:9999;padding:12px 20px;border-radius:8px;background:#fff;color:#12372d;box-shadow:0 7px 20px #0003;font-weight:750}
.innv-skip-link:focus{top:14px}
:is(a,button,input,textarea,select,summary):focus-visible{outline:3px solid var(--innv-focus)!important;outline-offset:3px}
button:disabled,.btn:disabled{opacity:.52;cursor:not-allowed}
/* Stable, compact public navigation and property cards */
.site-header{min-height:94px;height:auto;padding:8px 0;box-shadow:0 3px 22px #153a2910}
.nav-bar>.logo{box-shadow:0 7px 20px #15291e12}
.main-nav a{font-size:14px;line-height:1.5;padding:7px 3px}
.main-nav a:hover{text-decoration:underline;text-decoration-color:var(--innv-copper);text-underline-offset:8px}
.hero{height:auto;min-height:510px;padding:75px 0 90px}
.hero h1{font-size:clamp(36px,4.5vw,66px);line-height:1.08;max-width:850px;letter-spacing:-.045em}
.hero-content{padding-bottom:8px}
.search-form{box-shadow:0 18px 48px #102e231c;border-color:#dce6df}
.property-card{border-radius:18px;box-shadow:0 8px 25px #102e230c}
.property-card .property-image{height:238px}
.property-card .property-details{padding:20px}
.property-card .property-price{font-size:20px}
.property-card img{color:transparent}
/* Admin shell */
.dashboard-body{background:#f3f6f3;color:#21382d}
.sidebar{background:linear-gradient(175deg,#0d2e24,#183f31 76%,#15362b);box-shadow:5px 0 26px #15291e17}
.side-nav a{border-radius:11px;margin-bottom:2px;font-size:13.5px;transition:background-color .16s ease,transform .16s ease}
.side-nav a:hover{background:#ffffff19;transform:translateX(2px)}
.side-nav .active{color:#fff!important;background:#ffffff29!important;box-shadow:inset 3px 0 0 #c6a974}
.sidebar-bottom{padding-bottom:10px}
.dashboard-top{position:sticky;top:0;z-index:25;height:76px;box-shadow:0 3px 14px #0b30230b}
.admin-main{padding:30px 34px 75px;max-width:1680px}
.admin-heading{margin-bottom:22px;gap:14px}
.admin-heading h1{font-size:clamp(26px,2.6vw,36px);font-weight:730;line-height:1.18}
.admin-heading p{font-size:14px;line-height:1.6}
.admin-heading .btn{font-size:13px}
.panel{border-radius:16px;border-color:var(--innv-border);box-shadow:0 8px 26px #17372906}
.stats-grid{gap:16px}
.stat-card{border-radius:16px;padding:24px;border-color:var(--innv-border);box-shadow:0 8px 22px #0e352609;min-height:150px}
.stat-card strong{font-size:40px;font-variant-numeric:tabular-nums;font-weight:730}
.stat-card small{font-size:13px;color:#60786c}
.stat-card span{font-size:12px}
.dashboard-body .btn{border-radius:10px;font-weight:700}
.dashboard-body :is(input,textarea,select){border-radius:10px;border-color:#d4ded7;min-height:45px;background:#fff}
.dashboard-body :is(input,textarea,select):focus{box-shadow:0 0 0 4px #31735721;border-color:#366b55}
.dashboard-body label{font-size:13px;color:#2b4839}
.dashboard-body label small.innv-field-hint{display:block;font-weight:400;font-size:11px;color:var(--innv-muted)}
.admin-form .panel h2{margin-bottom:18px}
.admin-form .panel>h2:first-child{display:flex;align-items:center;gap:9px;font-size:20px}
.admin-form .panel>h2:first-child:before{content:"";display:inline-block;background:#b5a16b;width:4px;height:23px;border-radius:4px}
.admin-form .panel{scroll-margin-top:90px}
.admin-form textarea{line-height:1.6}
.admin-form .form-buttons{gap:12px}
.innv-form-jumps{display:flex;flex-wrap:wrap;gap:9px;margin:-4px 0 18px}
.innv-form-jumps a{padding:9px 14px;border:1px solid #d9e5dc;border-radius:100px;background:white;font-size:12px;font-weight:700;color:#285443}
.innv-form-jumps a:hover{background:#ebf3ec;border-color:#afcdb9}
.v21-agent-section{background:#f6faf6;border:1px solid #dce7df;border-radius:14px;padding:20px}
.v21-agent-section h3{font-size:18px;margin-top:0}
.v21-private{border-radius:999px;background:#f6efdc;color:#866d35}
.v21-image-manager{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:14px}
.v21-image-manager .v21-image-item{display:flex;flex-direction:column;background:#fff;border:1px solid #e1e8e2;border-radius:12px;overflow:hidden}
.v21-image-manager .v21-image-item img{width:100%;height:130px;border-radius:0;object-fit:cover}
.v21-image-label{margin:8px 10px 2px;background:#f5f1e5;font-size:11px;align-self:flex-start}
.v21-image-actions{gap:6px;padding:8px;justify-content:flex-start}
.v21-image-actions button{font-size:12px!important;min-height:38px;min-width:38px}
.v21-image-actions button[name="image_action"][value^="cover:"]{flex:1}
.v21-image-actions button.delete-photo{margin-left:auto}
/* Inventory search and cards */
.innv-toolbar{padding:18px 22px;margin-bottom:18px}
.innv-filter-form{display:flex;flex-wrap:wrap;align-items:end;gap:12px}
.innv-filter-form label{flex:1 1 230px;min-width:0}
.innv-filter-form label:has(select){flex:0 1 220px}
.innv-filter-form :is(.btn){min-height:45px}
.innv-toolbar-summary{font-size:12px;color:#64766a;margin:12px 0 0}
.innv-toolbar-summary a{color:#195743;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.innv-property-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.innv-inventory-card{display:grid;grid-template-columns:185px minmax(0,1fr);background:#fff;border:1px solid #e1e8e1;border-radius:17px;min-width:0;overflow:hidden;box-shadow:0 8px 24px #10362708}
.innv-inventory-media{position:relative;min-height:100%;background:#f2f5f1}
.innv-inventory-media img{width:100%;height:100%;object-fit:cover;display:block;min-height:235px}
.innv-inventory-media .status{position:absolute;top:12px;left:12px;font-size:11px;box-shadow:0 3px 12px #0001}
.innv-media-placeholder{display:flex;align-items:center;justify-content:center;min-height:235px;height:100%;padding:12px;color:#718175;font-size:13px;background:linear-gradient(135deg,#edf2ee,#e0e8e0)}
.innv-inventory-copy{padding:18px;min-width:0;display:flex;flex-direction:column}
.innv-inventory-code{font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:#7c8b80;font-weight:800}
.innv-inventory-copy h2{font-size:17px;line-height:1.28;margin:7px 0;letter-spacing:-.02em;overflow-wrap:anywhere}
.innv-inventory-location{font-size:12px;color:#647469;margin-bottom:8px}
.innv-inventory-price{font-size:18px;letter-spacing:-.02em;color:#184e3b;margin-bottom:8px}
.innv-inventory-foot{font-size:11px;color:#718275;display:flex;gap:6px 12px;flex-wrap:wrap;margin-top:auto;padding:8px 0}
.innv-inventory-actions{display:flex;gap:8px;flex-wrap:wrap;border-top:1px solid #edf1ed;padding-top:10px}
.innv-inventory-actions .btn{min-height:38px;padding:9px 12px;font-size:12px;flex:1}
.innv-draft-note{font-size:11px;color:#7c8a7f;display:flex;align-items:center}
.innv-empty-panel{text-align:center;padding:46px 20px}.innv-empty-panel h2{font-size:23px}.innv-empty-panel p{color:#65796c}
/* Agents */
.innv-agent-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.innv-agent-search-panel{padding:18px 22px}
.innv-agent-list-card{border-radius:16px;background:#fff;border:1px solid #e2e9e3;padding:20px;display:flex;flex-direction:column;gap:14px;box-shadow:0 9px 26px #10362708;min-width:0}
.innv-agent-list-head{display:flex;gap:10px;align-items:flex-start}
.innv-agent-avatar{width:46px;height:46px;border-radius:14px;background:#eaf1ec;color:#235f46;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:22px;flex-shrink:0;text-transform:uppercase}
.innv-agent-list-meta{min-width:0;flex:1}.innv-agent-list-meta h2{font-size:16px;margin:2px 0 5px;line-height:1.25;overflow-wrap:anywhere}
.innv-agent-list-meta p{font-size:12px;color:#7c8b80;margin:0}
.innv-agent-list-head .status{font-size:10px}
.innv-agent-list-body{font-size:12px;line-height:1.6;color:#566e5f}
.innv-agent-list-body p{margin:3px 0;overflow-wrap:anywhere}
.innv-agent-list-body strong{color:#264b39}
.innv-agent-list-body a{color:#14583e;text-decoration:underline;text-underline-offset:2px}
.innv-agent-list-bottom{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px;color:#62776a;font-size:11px;border-top:1px solid #edf1ed;padding-top:12px;margin-top:auto}
.innv-agent-list-card>.btn{width:100%}
.innv-agent-form-panel{max-width:970px}
/* Client forms and readability */
.lead-card{box-shadow:0 7px 24px #10362709}
.lead-card .status{margin:2px 0}
.agenda-item{gap:12px}
.dashboard-body :is(.panel,.innv-inventory-card,.innv-agent-list-card) a:not(.btn):hover{text-decoration:underline;text-underline-offset:3px}
@media(max-width:1280px){.innv-agent-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.innv-property-admin-grid{grid-template-columns:1fr}}
@media(max-width:760px){
 .site-header{min-height:72px;padding:5px 0}.hero{min-height:480px;padding:54px 0 80px}.hero h1{font-size:clamp(35px,8.5vw,53px)}
 .sidebar{left:-290px;width:268px;max-width:85vw;transition:left .2s ease;z-index:91}
 .menu-open .sidebar{left:0}
 .innv-menu-backdrop{position:fixed;inset:0;z-index:85;background:#08201796;border:0;width:100%;height:100%;padding:0}
 .dashboard-top{height:66px;padding:0 14px}
 .admin-main{padding:20px 14px 78px}
 .admin-heading{align-items:stretch;flex-direction:column;margin-bottom:18px}
 .admin-heading h1{font-size:27px}
 .admin-heading .btn{width:100%;min-height:49px}
 .stats-grid{gap:10px}
 .stat-card{padding:17px;min-height:120px}
 .stat-card strong{font-size:31px}
 .panel{padding:18px}
 .innv-filter-form{flex-direction:column;align-items:stretch;gap:10px}
 .innv-filter-form label,.innv-filter-form label:has(select){flex:auto;width:100%}
 .innv-filter-form .btn{width:100%}
 .innv-agent-grid{grid-template-columns:1fr}
 .innv-inventory-card{grid-template-columns:125px minmax(0,1fr)}
 .innv-inventory-media img,.innv-media-placeholder{min-height:240px}
 .innv-inventory-copy{padding:12px}
 .innv-inventory-copy h2{font-size:15px}
 .innv-inventory-price{font-size:16px}
 .innv-inventory-foot{font-size:10px}
 .innv-inventory-actions .btn{padding:9px 6px}
 .innv-form-jumps{flex-wrap:nowrap;overflow-x:auto;margin:0 -3px 16px;padding:3px 3px 10px;scrollbar-width:thin}
 .innv-form-jumps a{white-space:nowrap;font-size:11px}
 .v21-image-manager{grid-template-columns:repeat(2,minmax(0,1fr))}
 .v21-image-manager .v21-image-item img{height:130px}
 .v21-image-actions{gap:4px}
 .v21-image-actions button{font-size:11px!important;min-height:40px}
 .v21-agent-section{padding:15px}
 .main-nav{top:100%;z-index:50}
}
@media(max-width:430px){.innv-inventory-card{grid-template-columns:1fr}.innv-inventory-media{height:180px}.innv-inventory-media img,.innv-media-placeholder{min-height:180px;height:180px}.innv-inventory-copy{padding:16px}.innv-inventory-actions .btn{padding:10px 12px}.innv-inventory-copy h2{font-size:17px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* Five dashboard metrics on wide desktops */
@media(min-width:1281px){.stats-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
.innv-section-anchor{display:block;position:relative;scroll-margin-top:95px}
