:root{font-family:Arial,Helvetica,sans-serif;color:#1f2937;background:#f4f6f9}
*{box-sizing:border-box}body{margin:0}header{background:#162033;color:white;padding:17px 28px;display:flex;justify-content:space-between;align-items:center}
header small{font-weight:normal;color:#b8c4d8}nav{background:white;padding:12px 28px;border-bottom:1px solid #dfe4ea;display:flex;flex-wrap:wrap;gap:16px}
nav a{text-decoration:none;color:#26354d;font-weight:600;font-size:14px}main{padding:28px;max-width:1550px;margin:auto}h1{margin-top:0}h2{margin-top:28px}
.rural-nav{background:#eaf2f0;border-bottom-color:#bdd5ce;gap:10px 20px}.rural-nav a:hover,.rural-nav a:focus{color:#075e49;text-decoration:underline}
.cards{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:14px;margin:16px 0 26px}.cards.six{grid-template-columns:repeat(6,minmax(150px,1fr))}.cards.two{grid-template-columns:repeat(2,minmax(220px,1fr))}
.card,.panel,.summary{background:white;border:1px solid #e0e5eb;border-radius:10px;padding:18px}.card b{font-size:21px;display:block;margin-bottom:5px}.card span,.help{color:#667085;font-size:14px}
table{width:100%;border-collapse:collapse;background:white;margin-top:16px;border:1px solid #e0e5eb}th,td{padding:10px;border-bottom:1px solid #e7ebf0;text-align:left;vertical-align:top;font-size:14px}th{background:#eef2f6}
.formgrid{display:grid;grid-template-columns:repeat(4,minmax(170px,1fr));gap:10px;background:white;padding:16px;border-radius:10px;border:1px solid #e0e5eb;margin:14px 0}
.formrow{display:flex;gap:10px;align-items:end}.stack{display:grid;gap:10px}label{display:grid;gap:5px;font-size:13px;font-weight:600}.check{display:flex;align-items:center;gap:8px}
input,select,button{padding:10px;border:1px solid #cbd5e1;border-radius:6px;background:white}button,.button{background:#26354d;color:white;text-decoration:none;cursor:pointer;border:0;padding:10px 13px;border-radius:6px;display:inline-block}.button.secondary{background:#667085}.button.small{padding:7px 9px;font-size:13px}
.inline{display:flex;gap:6px}.inline input,.inline select{max-width:130px}.status{font-weight:700}.pagado{color:#16713b}.parcial{color:#9a6700}.pendiente{color:#b42318}
.flash{background:#fff5cc;padding:12px;margin-bottom:16px;border:1px solid #e6d27c;border-radius:7px}.result{background:#e8f6ed;padding:12px;margin:15px 0;border:1px solid #aad5b8;border-radius:7px}.note{background:#fffdf3;padding:14px;border:1px solid #e8dfb5;border-radius:8px;margin:16px 0}
.actions{display:flex;gap:10px;margin-bottom:24px}.grid2{display:grid;grid-template-columns:1fr 1.3fr;gap:16px}.closebox{margin-top:18px;display:flex;gap:10px}details{margin:12px 0}summary{cursor:pointer;font-weight:700}
@media(max-width:1100px){.cards.six,.cards{grid-template-columns:repeat(2,1fr)}.formgrid{grid-template-columns:repeat(2,1fr)}.grid2{grid-template-columns:1fr}}
@media(max-width:650px){main{padding:16px}.cards,.cards.six,.cards.two,.formgrid{grid-template-columns:1fr}nav{gap:10px}.formrow,.closebox{flex-direction:column;align-items:stretch}}

header a{color:white}.loginbox{max-width:430px;margin:60px auto;background:white;padding:28px;border:1px solid #e5e7eb;border-radius:12px}
.stack{display:flex;flex-direction:column;gap:10px}.wide{grid-template-columns:repeat(4,minmax(160px,1fr))}
.warn{color:#b42318;font-weight:bold}.ownergrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(310px,1fr));gap:14px;margin-bottom:18px}
.ownercard span{display:block;margin-top:8px;font-size:14px}.smallform{margin-top:10px}
details summary{cursor:pointer;color:#26354d;font-weight:600}code{background:#eef2f7;padding:2px 5px;border-radius:4px}
@media(max-width:900px){.cards,.formgrid,.wide{grid-template-columns:1fr}nav a{display:inline-block;margin-bottom:8px}}
.logout-form{display:inline}.link-button{background:none;border:0;color:white;padding:0;text-decoration:underline;font:inherit;cursor:pointer}


/* V4.1 - Contratos */
.contract-form label>span:first-child{color:#344054;font-weight:700}
.checkbox-field{align-content:end}
.contract-create-action{display:flex;align-items:end}
.contract-create-action button{width:100%;min-height:42px}
.activate-form{margin-top:9px}
.button.success,.activate-form button{background:#16713b}
.button.success:hover,.activate-form button:hover{background:#125e31}
.contract-form input,.contract-form select{width:100%}


/* V4.2 - Edición de inmuebles */
.property-form label>span:first-child{color:#344054;font-weight:700}
.property-form input,.property-form select{width:100%}
.property-create-action{display:flex;align-items:end}
.property-create-action button{width:100%;min-height:42px}
.actions-cell{display:flex;gap:8px;flex-wrap:wrap}
.button.secondary{background:#667085}
.edit-actions{display:flex;gap:10px;align-items:end}
.edit-actions button,.edit-actions .button{min-width:150px;text-align:center}


/* V4.3 - Caja separada */
.cash-section{margin-top:26px;padding-top:2px}
.cash-section h2{margin-bottom:12px}
.cash-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-bottom:14px}
.cash-card b{font-size:24px}
.cash-card span{display:block;margin-top:6px;color:#667085}
.empty-state{background:white;border:1px dashed #cbd5e1;border-radius:8px;padding:16px;color:#667085}


/* V4.4 - Recibos y caja de expensas */
.expense-summary{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:14px;margin:12px 0 18px}
.expense-summary .card b{font-size:22px;display:block}
.expense-summary .card span{color:#667085}
.receipt-issue-row{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:center;background:white;border:1px solid #e5e7eb;border-radius:8px;padding:12px;margin-bottom:9px}
.receipt-card{background:white;border:1px solid #e5e7eb;border-radius:10px;padding:18px}
.receipt-actions{display:flex;gap:10px;margin:16px 0}
.inline-share{display:flex;gap:10px;max-width:720px}
.inline-share input{flex:1}
.success-box{background:#eaf6ee;border:1px solid #b7ddc3;padding:12px;border-radius:8px;margin-bottom:14px;color:#116329}
@media(max-width:900px){.expense-summary{grid-template-columns:1fr}.receipt-issue-row{grid-template-columns:1fr}.inline-share{flex-direction:column}}


/* V4.5 - Cheques rendidos al propietario */
.alert-text{color:#b42318;font-weight:700}
.muted{color:#667085;font-size:13px}
.ownercard .alert-text{display:block;margin-top:8px}


/* V4.5.5 - Cierre mensual definitivo */
.closing-status{margin:14px 0 20px;padding:14px 16px;border-radius:8px;border:1px solid}
.closing-status.closed{background:#f2f4f7;border-color:#98a2b3}
.closing-status.open{background:#eaf6ee;border-color:#b7ddc3;color:#116329}
.reopenbox{margin-top:18px;border-color:#f0b4aa;background:#fff7f5}
.reopenbox form{display:flex;gap:10px;align-items:center}
.reopenbox input{flex:1}
button.danger{background:#b42318}
button.danger:hover{background:#8f1c13}


/* V4.6.0 - Biblioteca contractual */
.page-title-row{display:flex;justify-content:space-between;align-items:center;gap:12px}
.variable-list{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 20px}
.variable-list code{background:#fff;border:1px solid #d0d5dd;border-radius:6px;padding:6px 8px}
.model-form textarea,.contract-generator textarea{width:100%;font-family:Arial,sans-serif}
.contract-preview{white-space:pre-wrap;background:#fff;border:1px solid #d0d5dd;border-radius:10px;padding:24px;line-height:1.55;max-width:1000px}
.contract-actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}
.muted{color:#667085}


/* V4.6.1 ESTABLE - terminación y reportes */
.report-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px;margin:14px 0 24px}
.report-card{background:#fff;border:1px solid #d0d5dd;border-radius:10px;padding:18px;display:flex;flex-direction:column;gap:10px}
.report-card h3{margin:0}
.report-card p{margin:0;color:#667085;min-height:42px}
.report-card input{width:100%}

.archived-contract-file { margin: 8px 0; padding: 8px; border: 1px solid #d8dee8; border-radius: 6px; background: #f8fafc; }
.archived-contract-file .button { margin-top: 4px; }

/* V4.8.9 - Tablero de Inicio */
.dashboard-section-title{margin:24px 0 10px;font-size:18px;color:#344054}
.dashboard-cards{grid-template-columns:repeat(4,minmax(200px,1fr))}
.dashboard-card{display:block;text-decoration:none;color:inherit;transition:transform .12s ease,border-color .12s ease,box-shadow .12s ease;min-height:118px}
.dashboard-card:hover{transform:translateY(-1px);border-color:#98a2b3;box-shadow:0 4px 12px rgba(16,24,40,.08)}
.dashboard-card small{display:block;margin-top:12px;color:#344054;font-weight:700}
.dashboard-alert{border-left:4px solid #e6b800}
.dashboard-detail-summary{display:inline-flex;gap:8px;align-items:baseline;margin:16px 0 4px}
.dashboard-detail-summary b{font-size:24px}
.table-scroll{overflow-x:auto}
.dashboard-detail-table{min-width:860px}
@media(max-width:1100px){.dashboard-cards{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.dashboard-cards{grid-template-columns:1fr}}

/* V4.8.14 - Trazabilidad de fondos pendientes de rendición */
.settlement-pending-detail{margin-top:14px;border-top:1px solid #e4e7ec;padding-top:10px}
.settlement-pending-detail summary{font-size:14px}
.settlement-trace-note{margin:10px 0 12px;line-height:1.45}
.settlement-pending-detail h3{margin:14px 0 4px;font-size:15px}
.settlement-detail-table{margin-top:8px;min-width:560px}
.settlement-detail-wide{min-width:1180px}


/* V4.8.25 - Panel visual de Propiedades */
.property-panel-title{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:14px}
.property-panel-title h1{font-size:32px;line-height:1.1;margin:0 0 6px;color:#101828}
.property-panel-subtitle{font-size:18px;color:#667085}
.property-add-shortcut{white-space:nowrap}
.property-toolbar{display:flex;align-items:end;gap:10px;flex-wrap:wrap;background:#fff;border:1px solid #e4e7ec;border-radius:12px;padding:12px 14px;margin:12px 0}
.property-toolbar label{min-width:220px}
.property-toolbar .property-search{flex:1;min-width:280px}
.property-toolbar .property-search input,.property-toolbar select{width:100%}
.property-toolbar label>span{color:#475467;font-size:12px}
.property-filter-pills{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.property-filter-pill{display:inline-flex;align-items:center;gap:8px;text-decoration:none;color:#344054;background:#fff;border:1px solid #d0d5dd;padding:9px 13px;border-radius:999px;font-size:14px;font-weight:700}
.property-filter-pill b{display:inline-grid;place-items:center;min-width:23px;height:23px;border-radius:999px;background:#f2f4f7;font-size:12px}
.property-filter-pill.active{background:#175cd3;border-color:#175cd3;color:#fff}
.property-filter-pill.active b{background:rgba(255,255,255,.2)}
.property-filter-pill.rented:not(.active){border-color:#b7e4cb}
.property-filter-pill.available:not(.active){border-color:#fecaca}
.property-filter-pill.expiring:not(.active){border-color:#fde68a}
.property-filter-pill.review:not(.active){border-color:#f5b7ad}

.property-kpis{display:grid;grid-template-columns:repeat(4,minmax(170px,1fr));gap:12px;margin:14px 0 18px}
.property-kpi{display:flex;align-items:center;gap:14px;text-decoration:none;color:#101828;background:#fff;border:1px solid #e4e7ec;border-radius:14px;padding:16px;min-height:92px}
.property-kpi:hover{border-color:#98a2b3;box-shadow:0 4px 14px rgba(16,24,40,.06)}
.property-kpi-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:13px;font-size:26px;font-weight:800;background:#eaf2ff;color:#175cd3;flex:0 0 auto}
.property-kpi.rented .property-kpi-icon{background:#e8f7ef;color:#067647}
.property-kpi.available .property-kpi-icon{background:#fff0f0;color:#d92d20}
.property-kpi.expiring .property-kpi-icon{background:#fff7df;color:#dc8b00}
.property-kpi small{display:block;color:#667085;font-size:13px;font-weight:700;margin-bottom:3px}
.property-kpi b{font-size:29px;line-height:1}
.property-review-alert{background:#fff7ed;border:1px solid #fed7aa;border-left:4px solid #ea580c;border-radius:10px;padding:12px 14px;margin:0 0 16px;line-height:1.45}
.property-review-alert a{color:#9a3412;font-weight:700}

.property-panel-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:18px;align-items:start}
.property-gallery{min-width:0}
.property-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.property-card{background:#fff;border:1px solid #e4e7ec;border-radius:14px;overflow:hidden;box-shadow:0 1px 2px rgba(16,24,40,.03);min-width:0}
.property-card:hover{border-color:#cbd5e1;box-shadow:0 6px 18px rgba(16,24,40,.07)}
.property-photo-wrap{position:relative;height:168px;background:#eef2f6;overflow:hidden}
.property-photo{width:100%;height:100%;object-fit:cover;display:block}
.property-photo-placeholder{height:100%;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;background:linear-gradient(135deg,#edf3fb,#f8fafc);color:#475467}
.property-photo-placeholder>span{font-size:48px;color:#7f9fc5;line-height:1}
.property-photo-placeholder small{font-size:12px}
.property-photo-placeholder.large{height:250px;border-radius:12px;border:1px dashed #cbd5e1}
.property-status-badge,.property-status-inline{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:800;border-radius:999px;padding:7px 10px;white-space:nowrap}
.property-status-badge{position:absolute;right:10px;bottom:10px;box-shadow:0 1px 4px rgba(16,24,40,.12)}
.property-status-badge.rented,.property-status-inline.rented{background:#dcfce7;color:#166534}
.property-status-badge.expiring,.property-status-inline.expiring{background:#fef3c7;color:#92400e}
.property-status-badge.available,.property-status-inline.available{background:#fee2e2;color:#b42318}
.property-status-badge.review,.property-status-inline.review{background:#ffedd5;color:#9a3412}
.property-status-badge.own-use,.property-status-inline.own-use{background:#e0e7ff;color:#3730a3}
.property-status-badge.inactive,.property-status-inline.inactive{background:#eaecf0;color:#475467}
.property-card-body{padding:14px}
.property-card-heading{display:flex;justify-content:space-between;gap:10px;align-items:start;margin-bottom:10px}
.property-card-heading h2{font-size:19px;margin:0 0 4px;color:#101828;overflow-wrap:anywhere}
.property-type{font-size:13px;color:#667085}
.property-line{display:flex;gap:8px;align-items:flex-start;font-size:13px;color:#475467;margin-top:7px;line-height:1.35}
.property-line>span:first-child{width:16px;flex:0 0 16px;color:#667085;text-align:center}
.property-line small{color:#667085}
.property-expiry-line{color:#344054}
.property-review-line{color:#9a3412}
.property-card-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:14px;padding-top:11px;border-top:1px solid #f0f2f5}
.property-card-actions .button{font-size:12px}

.property-side{display:grid;gap:14px;position:sticky;top:12px}
.property-side-card{background:#fff;border:1px solid #e4e7ec;border-radius:14px;padding:15px}
.property-side-card h2{font-size:18px;margin:0 0 12px;color:#101828}
.property-side-title{display:flex;align-items:center;justify-content:space-between;gap:10px}
.property-side-title a{font-size:12px;font-weight:700;color:#175cd3;text-decoration:none}
.property-upcoming-list{display:grid}
.property-upcoming-row{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:10px;align-items:center;text-decoration:none;color:#344054;padding:10px 0;border-top:1px solid #f2f4f7}
.property-upcoming-row:first-child{border-top:0;padding-top:2px}
.property-upcoming-row img,.property-upcoming-thumb{width:48px;height:42px;border-radius:8px;object-fit:cover}
.property-upcoming-thumb{display:grid;place-items:center;background:#eef4ff;color:#175cd3;font-weight:800;font-size:12px}
.property-upcoming-main{display:grid;min-width:0}
.property-upcoming-main b{font-size:13px;overflow-wrap:anywhere}
.property-upcoming-main small{color:#667085;font-size:11px;margin:2px 0}
.property-upcoming-main em{font-style:normal;font-size:12px;color:#475467}
.property-upcoming-main em.soon{color:#9a6700;font-weight:700}
.property-upcoming-days{font-size:11px;color:#667085;text-align:right;white-space:nowrap}
.property-side-empty{font-size:13px;color:#667085;padding:8px 0}
.property-legend-row{display:flex;align-items:flex-start;gap:10px;margin:10px 0}
.property-legend-row i{width:14px;height:14px;border-radius:50%;margin-top:2px;flex:0 0 14px}
.property-legend-row i.rented{background:#12b76a}.property-legend-row i.expiring{background:#fdb022}.property-legend-row i.available{background:#f04438}.property-legend-row i.own-use{background:#6172f3}.property-legend-row i.review{background:#f79009}
.property-legend-row span{display:grid}.property-legend-row b{font-size:13px}.property-legend-row small{font-size:11px;color:#667085;margin-top:2px;line-height:1.35}

.property-empty-state{background:#fff;border:1px dashed #cbd5e1;border-radius:14px;padding:34px;display:grid;gap:6px;text-align:center;color:#475467}
.property-empty-state b{color:#344054}
.property-admin-section{margin-top:22px;background:#fff;border:1px solid #d0d5dd;border-radius:12px;overflow:hidden}
.property-admin-section>summary{padding:15px 18px;color:#344054;background:#f8fafc}
.property-admin-content{padding:4px 18px 20px}
.property-admin-content h2{font-size:18px}
.property-photo-field{grid-column:span 2}
.property-photo-field input[type=file]{padding:8px}
.property-admin-table{min-width:920px}
.property-edit-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px;align-items:start}
.property-edit-form{margin:0}
.property-edit-summary{margin-bottom:14px}
.property-edit-photo-card{background:#fff;border:1px solid #e4e7ec;border-radius:12px;padding:14px;display:grid;gap:10px}
.property-edit-photo-card h2{font-size:17px;margin:0}
.property-edit-photo-card img{width:100%;height:250px;object-fit:cover;border-radius:10px}
.property-edit-photo-card>span{color:#667085;font-size:12px}
.property-remove-photo{align-self:end;padding-bottom:7px}

@media(max-width:1300px){
  .property-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .property-kpis{grid-template-columns:repeat(2,minmax(170px,1fr))}
}
@media(max-width:980px){
  .property-panel-layout,.property-edit-layout{grid-template-columns:1fr}
  .property-side{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}
  .property-edit-photo-card{order:-1}
}
@media(max-width:700px){
  .property-panel-title{align-items:flex-start;flex-direction:column}
  .property-panel-title h1{font-size:27px}
  .property-panel-subtitle{font-size:16px}
  .property-toolbar{align-items:stretch;flex-direction:column}
  .property-toolbar .property-search,.property-toolbar label{min-width:0;width:100%}
  .property-toolbar button,.property-toolbar .button{width:100%;text-align:center}
  .property-kpis,.property-grid,.property-side{grid-template-columns:1fr}
  .property-photo-wrap{height:190px}
  .property-photo-field{grid-column:auto}
  .property-upcoming-row{grid-template-columns:44px minmax(0,1fr)}
  .property-upcoming-row img,.property-upcoming-thumb{width:44px;height:40px}
  .property-upcoming-days{grid-column:2;text-align:left}
}

/* V4.8.26 - Panel de Propiedades agrupado por edificio / propiedad */
.property-kpi em{display:block;font-style:normal;color:#98a2b3;font-size:11px;margin-top:4px}
.property-group-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.property-group-card{background:#fff;border:1px solid #e4e7ec;border-radius:14px;overflow:hidden;box-shadow:0 1px 2px rgba(16,24,40,.03);min-width:0}
.property-group-card:hover{border-color:#cbd5e1;box-shadow:0 6px 18px rgba(16,24,40,.07)}
.group-photo-wrap{height:185px}
.group-card-body{display:flex;flex-direction:column;min-height:240px}
.property-status-badge.mixed,.property-status-inline.mixed{background:#e0f2fe;color:#075985}
.group-status-counts{display:flex;flex-wrap:wrap;gap:7px;margin:14px 0 6px}
.group-count{display:inline-flex;align-items:center;gap:4px;border-radius:999px;padding:7px 9px;font-size:12px;font-weight:700;background:#f2f4f7;color:#475467}
.group-count.rented{background:#ecfdf3;color:#067647}.group-count.available{background:#fef3f2;color:#b42318}.group-count.expiring{background:#fffaeb;color:#b54708}.group-count.review{background:#fff4ed;color:#b93815}.group-count.own-use{background:#eef4ff;color:#3538cd}
.group-next-expiry{margin-top:10px}.group-next-expiry small{display:inline;color:#667085}
.group-actions{margin-top:auto}.group-actions .button{min-width:120px;text-align:center}
.group-back-link{display:inline-block;margin-bottom:8px;color:#175cd3;text-decoration:none;font-weight:700;font-size:13px}
.group-detail-summary{display:grid;grid-template-columns:minmax(320px,430px) minmax(0,1fr);gap:18px;align-items:start;margin:14px 0 22px}
.group-detail-photo-card{background:#fff;border:1px solid #e4e7ec;border-radius:14px;padding:14px;overflow:hidden}
.group-detail-photo-card>img{width:100%;height:260px;object-fit:cover;border-radius:10px;display:block}
.group-photo-form{display:grid;gap:9px;margin-top:12px}.group-photo-form label{display:grid;gap:6px}.group-photo-form label span{font-size:12px;color:#475467;font-weight:700}.group-photo-form input[type=file]{width:100%}.group-photo-form small{color:#667085;font-size:11px}.group-photo-actions{display:flex;gap:8px;flex-wrap:wrap}
.group-detail-kpis{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:10px}
.group-detail-kpi,.group-detail-info{background:#fff;border:1px solid #e4e7ec;border-radius:12px;padding:14px}.group-detail-kpi small{display:block;color:#667085;font-size:12px;font-weight:700}.group-detail-kpi b{font-size:27px;color:#101828}.group-detail-kpi.rented{border-color:#b7e4cb}.group-detail-kpi.available{border-color:#fecaca}.group-detail-kpi.expiring{border-color:#fde68a}.group-detail-kpi.review{border-color:#fed7aa}
.group-detail-info{grid-column:span 2;display:grid;gap:4px}.group-detail-info b{font-size:12px;color:#475467}.group-detail-info span{color:#101828}.group-detail-info.important{border-left:4px solid #fdb022}
.group-units-title{margin:8px 0 12px;font-size:21px;color:#101828}
.unit-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.unit-card{background:#fff;border:1px solid #e4e7ec;border-radius:13px;padding:14px;min-width:0}.unit-card-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;border-bottom:1px solid #f2f4f7;padding-bottom:10px;margin-bottom:8px}.unit-card-head h3{margin:0 0 3px;font-size:17px;color:#101828;overflow-wrap:anywhere}.unit-card-head small{color:#667085}
@media(max-width:1200px){.property-group-grid,.unit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.group-detail-kpis{grid-template-columns:repeat(2,minmax(120px,1fr))}}
@media(max-width:900px){.group-detail-summary{grid-template-columns:1fr}.group-detail-photo-card>img{height:230px}}
@media(max-width:700px){.property-group-grid,.unit-grid{grid-template-columns:1fr}.group-detail-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.group-detail-info{grid-column:1/-1}.group-photo-wrap{height:200px}}
/* V4.8.28 - acceso directo y gestión de foto por propiedad */
.group-photo-shortcut{white-space:nowrap}
#foto-propiedad{scroll-margin-top:18px}
#foto-propiedad:target{outline:3px solid rgba(45,108,223,.18);outline-offset:3px}
.group-photo-heading{display:grid;gap:3px;margin-top:12px;padding-top:10px;border-top:1px solid #e4e7ec}
.group-photo-heading b{font-size:14px;color:#101828}
.group-photo-heading span{font-size:12px;color:#667085}
@media(max-width:700px){.group-actions .button{flex:1 1 auto;text-align:center}.group-photo-shortcut{white-space:normal}}

/* V5.0 BETA - Arrendamientos rurales */
.rural-kpis .card b{font-size:22px}.rural-form textarea,.rural-contract-form textarea{width:100%;padding:10px;border:1px solid #cbd5e1;border-radius:6px}.rural-span-2{grid-column:span 2}.rural-span-3{grid-column:span 3}.rural-inner-grid{border:0;padding:0;margin:0 0 14px}.rural-contract-form h3{margin:18px 0 10px}.rural-owner-row{display:grid;grid-template-columns:minmax(220px,2fr) 1fr 1fr auto;gap:8px;margin:8px 0}.rural-owner-row select,.rural-owner-row input{width:100%}.rural-notes{margin:14px 0}.rural-badge{display:inline-flex;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:800;background:#eef2f6;color:#344054}.rural-badge.familiar{background:#eef4ff;color:#3538cd}.rural-badge.tercero{background:#ecfdf3;color:#067647}.rural-sign-form{margin-top:14px}.rural-sign-form input,.rural-sign-form select{width:100%}
@media(max-width:850px){.rural-owner-row{grid-template-columns:1fr}.rural-span-2,.rural-span-3{grid-column:auto}}
