: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)}


/* v3.1.9: mobile estable, categorías HD y nuevo logo de footer */
html,body{max-width:100%;overflow-x:hidden}
main{max-width:100%;overflow-x:clip}
.category-grid-priority,.category-grid-priority .category-card,.category-grid-priority .category-image{min-width:0;max-width:100%}
.category-grid-priority .category-image img{display:block;width:100%;height:100%;object-fit:cover;image-rendering:auto}
.category-card-land .category-image img{object-position:center 50%}
.category-card-warehouse .category-image img{object-position:center 52%}
.category-card-house .category-image img{object-position:center 52%}
.category-card-apartment .category-image img{object-position:center 48%}
.category-grid-priority .category-card h3{margin-top:46px}
.footer-logo-panel{display:inline-flex;align-items:center;justify-content:center;width:min(100%,310px);padding:16px 18px;background:#fff;border-radius:14px;box-shadow:0 10px 26px rgba(0,0,0,.14)}
.footer .footer-logo-panel img{display:block;width:100%;height:auto;max-width:275px;max-height:none;object-fit:contain;object-position:center;background:#fff;border-radius:0;padding:0;filter:none}
.agrarian-commitment{margin-top:18px;padding-top:18px;border-top:1px solid rgba(113,62,17,.15)}
.agrarian-service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}

@media(max-width:620px){
  .site-header{width:100%;max-width:100%;padding-left:6vw;padding-right:6vw}
  .category-section{overflow:hidden}
  .category-grid-priority{width:100%;gap:52px}
  .category-grid-priority .category-card{width:100%;max-width:520px;margin:0 auto}
  .category-grid-priority .category-image{width:100%;aspect-ratio:4/3!important;border-radius:28px!important;overflow:hidden}
  .category-grid-priority .category-card:hover .category-image{transform:none}
  .category-grid-priority .category-icon{width:72px;height:72px;border-width:4px;transform:translate(-50%,38%)}
  .category-grid-priority .category-icon svg{width:42px;height:42px;stroke-width:3.5}
  .category-grid-priority .category-card h3{font-size:30px;min-height:0;margin:42px 0 8px;line-height:1.12}
  .category-grid-priority .category-card span:not(.category-icon){font-size:14px}
  .commercial-callout{width:auto;max-width:100%}
  .footer{width:100%;max-width:100%;padding:48px 6vw;gap:30px}
  .footer-brand{min-width:0}
  .footer-logo-panel{width:min(100%,290px);padding:14px 16px}
  .footer p{max-width:100%}
  .agrarian-shell{border-radius:14px}
  .agrarian-intro,.agrarian-services,.agrarian-benefits,.agrarian-cta{padding:28px 20px}
  .agrarian-service-grid,.agrarian-benefit-grid{grid-template-columns:1fr}
  .agrarian-service-card{min-width:0}
}

/* v3.1.10: logo principal, precio unitario y respiración del hero en móvil */
.site-header .brand img{width:150px;height:76px;max-height:76px;object-fit:contain;object-position:left center}
.price .price-unit{font:inherit;font-size:.82em;font-weight:800;white-space:nowrap;color:inherit}

@media(max-width:620px){
  .site-header .brand img{width:104px;height:62px;max-height:62px;object-fit:contain;object-position:left center}
  .hero{min-height:560px;height:calc(100svh - 74px)}
  .hero-content{max-width:88%;margin-left:6vw;margin-right:6vw}
  .hero h1{font-size:36px;line-height:1.06;margin:0 0 16px}
  .hero p{font-size:15px;line-height:1.5;max-width:92%;margin:0}
  .hero .actions{gap:10px;margin-top:22px}
  .hero .btn{padding:13px 19px}
  .hero-overlay{background:linear-gradient(90deg,rgba(14,28,17,.78) 0%,rgba(14,28,17,.50) 54%,rgba(14,28,17,.12) 100%)}
}

/* v3.1.11: hero móvil distribuido y logo principal transparente de mayor presencia */
.site-header .brand img{
  width:auto;
  height:80px;
  max-height:80px;
  object-fit:contain;
  object-position:left center;
  background:transparent;
}

.hero-bottom{display:block}

@media(max-width:620px){
  .site-header{
    height:92px;
    padding-left:5vw;
    padding-right:5vw;
  }
  .site-header .brand img{
    width:auto;
    height:84px;
    max-height:84px;
  }
  .nav{top:92px}

  .hero{
    min-height:520px;
    height:calc(100svh - 92px);
    align-items:stretch;
  }
  .hero-content{
    width:100%;
    max-width:none;
    height:100%;
    margin:0;
    padding:34px 6vw 26px;
    display:flex;
    flex-direction:column;
  }
  .hero h1{
    max-width:94%;
    margin:0;
    font-size:30px;
    line-height:1.08;
  }
  .hero-bottom{
    margin-top:auto;
    width:100%;
  }
  .hero p{
    max-width:100%;
    margin:0 0 16px;
    font-size:14px;
    line-height:1.45;
  }
  .hero .actions{
    width:100%;
    margin-top:0;
    display:flex;
    flex-direction:row;
    align-items:stretch;
    gap:8px;
  }
  .hero .btn{
    flex:1 1 0;
    min-width:0;
    padding:12px 8px;
    font-size:12px;
    line-height:1.15;
    white-space:nowrap;
  }
  .hero-overlay{
    background:linear-gradient(180deg,rgba(14,28,17,.76) 0%,rgba(14,28,17,.30) 34%,rgba(14,28,17,.18) 58%,rgba(14,28,17,.74) 100%);
  }
}

@media(max-width:380px){
  .site-header .brand img{height:78px;max-height:78px}
  .hero h1{font-size:28px}
  .hero p{font-size:13px}
  .hero .btn{font-size:11px;padding-left:6px;padding-right:6px}
}

/* v3.1.12: hero móvil con toda la información concentrada en la zona inferior */
@media(max-width:620px){
  .hero-content{
    justify-content:flex-end;
    padding-top:28px;
    padding-bottom:24px;
  }
  .hero h1{
    margin:0 0 12px;
    max-width:96%;
    font-size:28px;
    line-height:1.06;
  }
  .hero-bottom{
    margin-top:0;
  }
  .hero p{
    margin-bottom:14px;
  }
  .hero-overlay{
    background:linear-gradient(180deg,rgba(14,28,17,.18) 0%,rgba(14,28,17,.10) 45%,rgba(14,28,17,.34) 64%,rgba(14,28,17,.82) 100%);
  }
}

@media(max-width:380px){
  .hero h1{font-size:26px}
}
