:root{
  --green:#3c873f;
  --green-dark:#2f6f33;
  --brown:#713e11;
  --brown-dark:#5b310d;
  --white:#ffffff;
  --ink:#713e11;
  --muted:#713e11;
  --soft:#f5f8f4;
  --line:#d8e2d8;
  --gold:#c7a23a;
}
body{color:var(--brown);font-weight:700}
p,.lead,.property-description,.service-list p,.contact-card-text,.footer p{text-align:justify;text-justify:inter-word}
.section-kicker,.eyebrow{display:none!important}
.section h2,.partner-section h2,.filter-panel-header h2,.property-results-heading h2,.property-map-heading h2{margin-top:0}
.text-link,.clear-filters,.category-card span,.property-type{color:var(--brown)}
.btn.primary,.btn.whatsapp{background:var(--green);border-color:var(--green);color:var(--white)}
.btn.primary:hover,.btn.whatsapp:hover{background:var(--green-dark);border-color:var(--green-dark)}
.btn.outline{border-color:var(--brown);color:var(--brown)}
.btn.outline:hover{background:var(--brown);color:var(--white)}
.commercial-callout,.contact-card{background:var(--green);color:var(--white)}
.commercial-callout p,.contact-card p,.contact-card span,.contact-card small{color:var(--white)}
.footer{background:#16351f}

/* Home: prioridad comercial y consistencia visual */
.category-grid-priority{grid-template-columns:repeat(4,minmax(0,1fr));align-items:start}
.category-grid-priority .category-card{height:100%;display:flex;flex-direction:column;align-items:center}
.category-grid-priority .category-image{width:100%;position:relative}
.category-grid-priority .category-card h3{min-height:68px;display:flex;align-items:center;justify-content:center;margin-bottom:4px}
.category-icon{position:absolute;left:50%;bottom:0;transform:translate(-50%,35%);width:92px;height:92px;border-radius:50%;display:grid;place-items:center;background:var(--green);border:5px solid var(--white);box-shadow:0 10px 25px rgba(0,0,0,.16)}
.category-icon svg{width:54px;height:54px;fill:none;stroke:var(--white);stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
.category-card-apartment h3{margin-top:48px}

/* Hero dinámico de propiedades */
.page-hero.properties-hero{background-image:url('../img/property-heroes/warehouse-hd.jpg');background-position:center 22%}
.page-hero.properties-hero.properties-hero--land{background-image:url('../img/property-heroes/land-hd.jpg');background-position:center 18%}
.page-hero.properties-hero.properties-hero--warehouse{background-image:url('../img/property-heroes/warehouse-hd.jpg');background-position:center 22%}
.page-hero.properties-hero.properties-hero--house{background-image:url('../img/property-heroes/house-hd.jpg');background-position:center 18%}
.page-hero.properties-hero.properties-hero--apartment{background-image:url('../img/property-heroes/apartment-hd.jpg');background-position:center 35%}
.properties-hero h1{max-width:900px}
.properties-hero p{max-width:780px}

/* Filtros tipo select */
.property-filter-selects{padding:30px}
.select-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:24px}
.select-filter-grid label{display:grid;gap:9px;font-weight:800;color:var(--ink)}
.select-filter-grid label>span{font-size:13px}
.select-filter-grid select{width:100%;min-height:50px;padding:0 44px 0 15px;border:1px solid var(--line);border-radius:8px;background:var(--white);color:var(--ink);font:inherit;font-weight:700;cursor:pointer;appearance:auto}
.select-filter-grid select:focus{outline:2px solid rgba(60,135,63,.22);border-color:var(--green)}

/* Tarjetas */
.property-card h2,.property-card .features,.property-card .price{text-align:left}
.property-media{position:relative}
.property-status-ribbon{position:absolute;z-index:4;top:25px;left:-48px;width:190px;padding:10px 8px;transform:rotate(-42deg);text-align:center;color:var(--white);font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;box-shadow:0 6px 16px rgba(0,0,0,.25)}
.property-status-ribbon.status-sold{background:#c62828}
.property-status-ribbon.status-rented{background:#2268b3}
.property-status-ribbon.status-reserved{background:#f2c94c;color:var(--brown)}
.property-status-ribbon.status-unavailable{background:#5f6368}
.property-status.status-available{background:var(--green)}
.featured-fleur{position:absolute;z-index:5;right:14px;top:12px;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.94);border:1px solid rgba(199,162,58,.55);box-shadow:0 7px 18px rgba(0,0,0,.2)}
.featured-fleur img{width:34px;height:34px}
.property-card-featured{border-color:rgba(199,162,58,.55);box-shadow:0 16px 38px rgba(113,62,17,.12)}
.property-card-featured .property-operation{top:70px}
.property-map-card-compact{justify-content:center;gap:12px;padding:13px 15px;border-color:rgba(113,62,17,.28);background:#fffaf5;color:var(--brown)}
.property-map-card-compact .map-pin-icon{background:var(--brown)}
.property-map-card-compact strong{font-size:14px;color:var(--brown)}
.property-map-card-compact:hover{border-color:var(--brown);box-shadow:0 10px 25px rgba(113,62,17,.12)}

/* Detalle */
.property-detail-main-image .featured-fleur-detail{right:16px;top:16px}
.property-detail-main-image:has(.featured-fleur-detail) .property-status{top:74px}
.property-map-section{border:2px solid var(--brown);box-shadow:0 14px 32px rgba(113,62,17,.10);background:linear-gradient(180deg,#fff,#fffaf5)}
.property-map-embed{border:1px solid rgba(113,62,17,.30);box-shadow:inset 0 0 0 4px rgba(113,62,17,.04)}
.property-actions .property-action:nth-child(1),.property-actions .property-action:nth-child(2){background:var(--green)!important;border-color:var(--green)!important;color:var(--white)!important}
.property-actions .property-action:nth-child(3),.property-actions .property-action:nth-child(4){background:var(--brown)!important;border-color:var(--brown)!important;color:var(--white)!important}
.property-actions .property-action:nth-child(1):hover,.property-actions .property-action:nth-child(2):hover{background:var(--green-dark)!important}
.property-actions .property-action:nth-child(3):hover,.property-actions .property-action:nth-child(4):hover{background:var(--brown-dark)!important}

@media(max-width:1050px){
  .category-grid-priority{grid-template-columns:repeat(2,minmax(0,1fr))}
  .select-filter-grid{grid-template-columns:1fr 1fr}
  .select-filter-grid label:last-child{grid-column:1/-1}
}
@media(max-width:620px){
  .category-grid-priority,.select-filter-grid{grid-template-columns:1fr}
  .select-filter-grid label:last-child{grid-column:auto}
  .property-filter-selects{padding:22px 18px}
  .category-grid-priority .category-card h3{min-height:auto}
}

/* v3.1.2: evita repintados innecesarios durante navegación */
.property-card,.category-card{content-visibility:auto;contain-intrinsic-size:420px}

/* v3.1.3: banners independientes de alta resolución */
.page-hero.properties-hero{background-size:cover;background-repeat:no-repeat}
.page-hero.properties-hero.properties-hero--land{background-position:center 50%}
.page-hero.properties-hero.properties-hero--warehouse{background-position:center 52%}
.page-hero.properties-hero.properties-hero--house{background-position:center 52%}
.page-hero.properties-hero.properties-hero--apartment{background-position:center 42%}

/* v3.1.4: despacho inmobiliario agrario */
.agrarian-section{padding:0 8vw 100px;background:linear-gradient(180deg,#fff 0%,#f6f8f4 100%)}
.agrarian-shell{max-width:1380px;margin:0 auto;border:1px solid rgba(113,62,17,.18);border-radius:18px;background:#fff;box-shadow:0 22px 55px rgba(60,80,55,.10);overflow:hidden}
.agrarian-intro{padding:58px 62px 44px;background:linear-gradient(135deg,#f7faf5 0%,#fff 70%)}
.agrarian-heading{display:flex;align-items:center;gap:22px;margin-bottom:24px}
.agrarian-mark{width:82px;height:82px;flex:0 0 82px;border-radius:50%;display:grid;place-items:center;background:var(--green);box-shadow:0 12px 28px rgba(60,135,63,.22)}
.agrarian-mark svg{width:49px;height:49px;fill:none;stroke:#fff;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.agrarian-heading h2{font-family:'Playfair Display',serif;font-size:clamp(35px,4vw,54px);line-height:1.08;margin:0;color:var(--ink)}
.agrarian-heading h3{font-size:19px;line-height:1.5;margin:7px 0 0;color:var(--brown)}
.agrarian-intro p{max-width:1050px;line-height:1.8;margin:12px 0;color:var(--ink);text-align:justify}
.agrarian-intro .agrarian-lead{font-size:20px;font-weight:700;color:var(--brown)}
.agrarian-services{padding:46px 62px;border-top:1px solid var(--line)}
.agrarian-services>h3,.agrarian-benefits>h3{font-family:'Playfair Display',serif;font-size:32px;margin:0 0 28px;color:var(--ink)}
.agrarian-service-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.agrarian-service-card{min-height:146px;padding:24px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 10px 25px rgba(16,40,21,.05)}
.agrarian-service-card span{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--green);color:#fff;font-size:12px;font-weight:900}
.agrarian-service-card p{margin:18px 0 0;line-height:1.62;color:var(--ink);text-align:left;font-weight:700}
.agrarian-benefits{padding:44px 62px;background:var(--brown);color:#fff}
.agrarian-benefits>h3{color:#fff;text-align:center}
.agrarian-benefit-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.agrarian-benefit-card{min-height:132px;padding:24px 16px;border:1px solid rgba(255,255,255,.2);border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;background:rgba(255,255,255,.06)}
.agrarian-benefit-icon{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:#fff;color:var(--brown)}
.agrarian-benefit-icon svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.agrarian-benefit-card strong{font-size:16px;color:#fff}
.agrarian-cta{padding:38px 62px;display:flex;justify-content:space-between;align-items:center;gap:32px;background:#fff}
.agrarian-cta h3{font-family:'Playfair Display',serif;font-size:30px;margin:0 0 8px;color:var(--ink)}
.agrarian-cta p{margin:0;max-width:760px;line-height:1.65;color:var(--brown);text-align:justify}
.agrarian-cta .btn{flex:0 0 auto;min-width:245px}
@media(max-width:1050px){.agrarian-service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.agrarian-benefit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.agrarian-cta{align-items:flex-start;flex-direction:column}}
@media(max-width:620px){.agrarian-section{padding:0 6vw 72px}.agrarian-intro,.agrarian-services,.agrarian-benefits,.agrarian-cta{padding:30px 24px}.agrarian-heading{align-items:flex-start;flex-direction:column}.agrarian-mark{width:68px;height:68px;flex-basis:68px}.agrarian-service-grid,.agrarian-benefit-grid{grid-template-columns:1fr}.agrarian-service-card{min-height:auto}.agrarian-cta .btn{width:100%;min-width:0}.agrarian-heading h3{font-size:17px}}


/* v3.1.6: identidad tipográfica — todo texto antes negro pasa a café corporativo y negrita */
:where(.site-header,.section,.category-section,.property-filter-selects,.property-results-heading,.property-card,.property-detail,.agrarian-section,.partner-section,.contact-section) :where(h1,h2,h3,h4,h5,h6,p,li,label,dt,dd,small,strong,span){font-weight:700}
.site-header,.nav,.menu-toggle,.section,.category-section,.property-filter-selects,.property-results-heading,.property-card,.property-detail,.agrarian-section,.partner-section,.contact-section{color:var(--brown)}
/* Las áreas de contraste conservan texto blanco aprobado. */
.hero,.page-hero,.commercial-callout,.contact-card,.agrarian-benefits,.footer,.copyright,.btn.primary,.btn.whatsapp,.property-status-ribbon,.property-actions .property-action{color:var(--white)}
.hero p,.page-hero p,.commercial-callout p,.contact-card p,.contact-card span,.contact-card small,.agrarian-benefits,.agrarian-benefits strong{color:var(--white)}
