/* ============================================================
   IRÉ Bienes Raíces — Sitio web institucional
   Diseño boutique premium · Verde profundo · Dorado · Beige
   ============================================================ */

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;text-size-adjust:100%}
img,svg,video{display:block;max-width:100%}
button{font:inherit;border:0;background:none;cursor:pointer;color:inherit}
a{color:inherit;text-decoration:none}
input,textarea,select{font:inherit;color:inherit}

:root{
  --verde:        #004B2E;
  --verde-deep:   #00351F;
  --verde-soft:   #0E5E3D;
  --dorado:       #B59648;
  --dorado-soft:  #D4B872;
  --dorado-pale:  #E5CB85;
  --beige:        #F5F0E6;
  --beige-2:      #EFE7D5;
  --crema:        #FFFDF7;
  --texto:        #1F1F1F;
  --texto-suave:  #4A4A4A;
  --linea:        rgba(31,31,31,.08);
  --shadow-soft:  0 24px 60px -28px rgba(0,75,46,.35);
  --shadow-card:  0 18px 40px -22px rgba(0,75,46,.30);
  --radius:       18px;
  --radius-sm:    12px;
  --maxw:         1240px;
  --serif:        'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sans:         'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html,body{background:var(--crema)}
body{
  font-family:var(--sans); color:var(--texto); line-height:1.6;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
  cursor:none;
}
@media (max-width: 900px), (hover: none){ body{cursor:auto} }
/* keep native caret on inputs */
input,textarea,select,[contenteditable]{cursor:text}
button,a,label,summary,[role="button"]{cursor:none}
@media (max-width: 900px), (hover: none){
  button,a,label,summary,[role="button"]{cursor:pointer}
}

/* ============== Cursor aura ============== */
.aura,.aura-dot{
  position:fixed; top:0; left:0; pointer-events:none; z-index:9999;
  transform:translate3d(-200px,-200px,0);
  will-change:transform;
}
.aura{
  width:380px; height:380px; margin:-190px 0 0 -190px; border-radius:50%;
  background:radial-gradient(circle, rgba(181,150,72,.30) 0%, rgba(181,150,72,.10) 35%, rgba(181,150,72,0) 70%);
  filter:blur(2px);
  transition:width .35s ease, height .35s ease, margin .35s ease, opacity .35s ease;
  mix-blend-mode:screen;
}
.aura-dot{
  width:10px; height:10px; margin:-5px 0 0 -5px; border-radius:50%;
  background:var(--dorado);
  box-shadow:0 0 18px rgba(181,150,72,.85), 0 0 40px rgba(181,150,72,.45);
}
body.hover-link .aura{ width:540px; height:540px; margin:-270px 0 0 -270px; }
body.hover-link .aura-dot{ background:var(--crema); box-shadow:0 0 22px rgba(255,253,247,.9), 0 0 50px rgba(181,150,72,.55); }
@media (max-width: 900px), (hover: none){ .aura, .aura-dot{display:none} }
@media (prefers-reduced-motion: reduce){ .aura, .aura-dot{display:none} body{cursor:auto} button,a,label,summary,[role="button"]{cursor:pointer} }

/* ============== Helpers ============== */
.container{max-width:var(--maxw);margin:0 auto;padding:0 clamp(20px,4vw,40px)}
.section{padding:clamp(70px,10vw,120px) 0;position:relative}
.eyebrow{
  display:inline-flex;align-items:center;gap:12px;
  font-size:11px;letter-spacing:.32em;text-transform:uppercase;font-weight:500;
  color:var(--dorado);
}
.eyebrow::before{content:"";width:32px;height:1px;background:var(--dorado)}
.section-title{
  font-family:var(--serif); font-weight:500; color:var(--verde);
  font-size:clamp(34px,4.4vw,52px); line-height:1.1;
  margin:14px 0 18px; letter-spacing:-.005em;
}
.section-title .gold{
  color:var(--dorado); font-style:italic;
}
.section-lead{
  color:var(--texto-suave); max-width:640px;
  font-size:clamp(15px,1.2vw,17px);
}
.section-head{margin-bottom:48px}
.section-head.center{text-align:center;margin-inline:auto;max-width:760px}
.section-head.center .eyebrow{justify-content:center}
.section-head.center .section-lead{margin-inline:auto}

.btn{
  display:inline-flex;align-items:center;gap:10px;
  padding:14px 26px;border-radius:999px;
  font-size:13px;letter-spacing:.16em;text-transform:uppercase;font-weight:500;
  transition:transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease, border-color .25s ease;
  white-space:nowrap;
}
.btn svg{width:16px;height:16px;flex-shrink:0}
.btn-primary{
  background:var(--verde); color:#fff;
  box-shadow:0 14px 30px -12px rgba(0,75,46,.55);
}
.btn-primary:hover{background:var(--verde-deep);transform:translateY(-2px);box-shadow:0 18px 36px -12px rgba(0,75,46,.65)}
.btn-ghost{
  background:transparent; color:var(--verde);
  border:1.5px solid var(--dorado);
}
.btn-ghost:hover{background:var(--verde);color:#fff;border-color:var(--verde);transform:translateY(-2px)}
.btn-wa{background:#25D366;color:#fff}
.btn-wa:hover{background:#1EB855;transform:translateY(-2px)}

/* ============== Header / Nav ============== */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,253,247,.85);
  backdrop-filter:saturate(180%) blur(14px);
  -webkit-backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid transparent;
  transition:background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled{
  background:rgba(255,253,247,.96);
  border-bottom-color:var(--linea);
  box-shadow:0 6px 24px -18px rgba(0,75,46,.30);
}
.nav{
  max-width:var(--maxw); margin:0 auto;
  padding:18px clamp(20px,4vw,40px);
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.brand{display:flex;align-items:center;gap:12px}
.brand-mark{
  width:46px;height:46px;border-radius:50%;
  background:var(--crema); border:1.5px solid var(--dorado);
  display:grid;place-items:center; position:relative;
  box-shadow:0 4px 12px rgba(0,75,46,.10);
}
.brand-mark::after{content:"";position:absolute;inset:-5px;border-radius:50%;border:1px solid rgba(181,150,72,.35)}
.brand-mark svg{width:22px;height:22px;color:var(--verde)}
.brand-text .b1{font-family:var(--serif);font-weight:600;font-size:22px;letter-spacing:.14em;color:var(--verde);line-height:1}
.brand-text .b2{margin-top:4px;font-size:9px;letter-spacing:.42em;color:var(--dorado);font-weight:500}

.nav-links{display:flex;align-items:center;gap:30px}
.nav-links a{
  font-size:13.5px; font-weight:500; color:var(--texto);
  position:relative; padding:6px 0;
  transition:color .25s ease;
}
.nav-links a::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:1.5px;
  background:var(--dorado); transform:scaleX(0); transform-origin:center;
  transition:transform .3s ease;
}
.nav-links a:hover{color:var(--verde)}
.nav-links a:hover::after, .nav-links a.active::after{transform:scaleX(1)}
.nav-links a.active{color:var(--verde)}

.nav-cta{display:inline-flex;align-items:center;gap:8px;background:var(--verde);color:#fff;padding:10px 18px;border-radius:999px;font-size:13px;letter-spacing:.04em;font-weight:500;box-shadow:0 8px 22px -10px rgba(0,75,46,.55);transition:all .25s ease}
.nav-cta:hover{background:var(--verde-deep);transform:translateY(-2px)}
.nav-cta svg{width:15px;height:15px}

.hamburger{display:none;width:42px;height:42px;border-radius:50%;background:var(--beige);border:1px solid var(--linea);align-items:center;justify-content:center}
.hamburger span{position:relative;display:block;width:18px;height:1.6px;background:var(--verde);transition:all .3s ease}
.hamburger span::before,.hamburger span::after{content:"";position:absolute;left:0;width:18px;height:1.6px;background:var(--verde);transition:all .3s ease}
.hamburger span::before{top:-6px}.hamburger span::after{top:6px}
.hamburger.open span{background:transparent}
.hamburger.open span::before{top:0;transform:rotate(45deg)}
.hamburger.open span::after{top:0;transform:rotate(-45deg)}

@media (max-width: 1000px){
  .nav-links{
    position:fixed; inset:72px 0 0 0; flex-direction:column; gap:8px;
    background:var(--crema); padding:32px 24px;
    transform:translateY(-110%); transition:transform .35s ease;
    border-top:1px solid var(--linea); height:calc(100dvh - 72px);
  }
  .nav-links a{font-size:18px;padding:14px 0;width:100%;border-bottom:1px solid var(--linea)}
  .nav-links.open{transform:translateY(0)}
  .hamburger{display:inline-flex}
  .nav-cta span{display:none}
  .nav-cta{padding:10px 12px}
}

/* ============== HERO (background image) ============== */
.hero{
  position:relative;
  min-height:clamp(560px, 78vh, 820px);
  display:flex; align-items:center;
  overflow:hidden;
  padding:clamp(60px,8vw,120px) 0 clamp(100px,12vw,160px);
  background-color:var(--beige);
  isolation:isolate;
}
/* base background image (desktop) */
.hero::before{
  content:""; position:absolute; inset:0; z-index:-2;
  background-image:url('../img/bg-desktop.png');
  background-repeat:no-repeat;
  background-position:center right;
  background-size:cover;
  animation:slowZoom 24s ease-in-out infinite alternate;
}
@keyframes slowZoom{
  from{transform:scale(1) translateX(0)}
  to  {transform:scale(1.06) translateX(-1.5%)}
}
/* overlay gradient — keeps left side legible */
.hero::after{
  content:""; position:absolute; inset:0; z-index:-1;
  background:
    linear-gradient(95deg,
      var(--crema) 0%,
      rgba(255,253,247,.96) 22%,
      rgba(255,253,247,.78) 38%,
      rgba(255,253,247,.35) 55%,
      rgba(255,253,247,.05) 72%,
      transparent 85%),
    radial-gradient(900px 500px at 0% 100%, rgba(0,75,46,.10), transparent 60%);
}
/* curved bottom transition into trust strip */
.hero .curve{
  position:absolute; left:0; right:0; bottom:-1px; height:90px; z-index:1;
  background:radial-gradient(60% 100% at 50% 100%, var(--verde) 0%, var(--verde) 60%, transparent 61%);
  transform:translateY(46px);
  pointer-events:none;
}
.hero .container{position:relative;z-index:2}

.hero-grid{
  display:grid; gap:clamp(20px,3vw,40px);
  grid-template-columns:1.1fr 1fr; align-items:center;
}
@media(max-width:960px){.hero-grid{grid-template-columns:1fr}}

.hero-copy{max-width:620px}
.hero-icon{width:54px;height:54px;color:var(--dorado);margin-bottom:20px;filter:drop-shadow(0 6px 14px rgba(181,150,72,.35))}
.hero h1{
  font-family:var(--serif); font-weight:500; color:var(--verde);
  font-size:clamp(40px,6vw,78px); line-height:1.04;
  letter-spacing:-.005em; margin-bottom:24px;
  text-shadow:0 1px 0 rgba(255,253,247,.6);
}
.hero h1 .gold{
  font-style:italic;
  background:linear-gradient(90deg,#C9A85A 0%,#B59648 35%,#E5CB85 60%,#B59648 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  background-size:220% 100%; animation:shimmer 7s linear infinite;
}
@keyframes shimmer{0%{background-position:0% 50%}100%{background-position:220% 50%}}
.hero-lead{color:var(--texto-suave);max-width:480px;font-size:17px;line-height:1.65;margin-bottom:32px}
.hero-ctas{display:flex;flex-wrap:wrap;gap:14px}
.hero-quote{margin-top:40px;display:inline-flex;align-items:center;gap:14px;color:var(--verde)}
.hero-quote .line{width:44px;height:1px;background:var(--dorado)}
.hero-quote span{font-family:var(--serif);font-style:italic;font-size:19px}

/* heart badge — floats over the photo (right column kept as anchor) */
.hero-side{position:relative;min-height:1px}
.heart-badge{
  position:absolute; right:clamp(0px, 2vw, 30px); bottom:clamp(-20px, 0vw, 0px);
  width:138px; height:138px;
  background:var(--verde); border:2px solid var(--dorado); color:#fff;
  display:grid;place-items:center;text-align:center;line-height:1.15;
  font-family:var(--serif);
  border-radius:50% 50% 50% 50% / 55% 55% 45% 45%;
  transform:rotate(-6deg);
  box-shadow:0 22px 44px -12px rgba(0,53,31,.55);
  animation:floatY 6s ease-in-out infinite;
  z-index:3;
}
.heart-badge::before{content:"";position:absolute;inset:6px;border-radius:inherit;border:1px dashed rgba(255,253,247,.45)}
.heart-badge .h1{font-size:13px;letter-spacing:.1em;opacity:.85}
.heart-badge .h2{font-size:30px;color:var(--dorado-soft);font-style:italic;margin:2px 0}
.heart-badge .h3{font-size:11px;letter-spacing:.12em;opacity:.85}
@keyframes floatY{0%,100%{transform:rotate(-6deg) translateY(0)}50%{transform:rotate(-6deg) translateY(-10px)}}

/* ----- Mobile: switch background, stack copy over photo ----- */
@media (max-width: 768px){
  .hero{
    min-height:88vh;
    padding:clamp(40px,8vw,72px) 0 clamp(220px,38vh,360px);
    align-items:flex-start;
  }
  .hero::before{
    background-image:url('../img/bg-mobile.png');
    background-position:center bottom;
  }
  .hero::after{
    background:
      linear-gradient(180deg,
        var(--crema) 0%,
        rgba(255,253,247,.95) 25%,
        rgba(255,253,247,.65) 42%,
        rgba(255,253,247,.10) 58%,
        transparent 72%),
      radial-gradient(80% 40% at 50% 100%, rgba(0,53,31,.18), transparent 70%);
  }
  .heart-badge{
    right:18px; bottom:90px; width:110px; height:110px;
  }
  .heart-badge .h2{font-size:24px}
  .heart-badge .h1,.heart-badge .h3{font-size:11px}
  .hero h1{text-shadow:0 1px 2px rgba(255,253,247,.85)}
}
@media (max-width: 420px){
  .heart-badge{ right:14px; bottom:80px; width:96px; height:96px; }
  .heart-badge .h2{font-size:20px}
  .heart-badge .h1,.heart-badge .h3{font-size:10px}
}

/* trust strip */
.trust-strip{
  position:relative;z-index:3;
  background:linear-gradient(180deg,var(--verde) 0%, var(--verde-deep) 100%);
  color:#fff;
}
.trust-strip .container{
  display:flex;flex-wrap:wrap;gap:24px 36px;
  align-items:center;justify-content:center;
  padding-block:24px;
}
.trust-pill{display:inline-flex;align-items:center;gap:10px;font-size:12px;letter-spacing:.22em;text-transform:uppercase;color:rgba(255,255,255,.92)}
.trust-pill svg{width:18px;height:18px;color:var(--dorado-soft)}
.trust-pill + .trust-pill::before{content:"";width:1px;height:18px;background:rgba(255,255,255,.18);margin-right:14px}
@media(max-width:600px){.trust-pill+.trust-pill::before{display:none}}

/* ============== Sobre nosotros ============== */
.about{background:var(--crema)}
.about-grid{display:grid;grid-template-columns:1fr 1.05fr;gap:clamp(40px,6vw,80px);align-items:center}
@media(max-width:920px){.about-grid{grid-template-columns:1fr}}
.about-visual{position:relative;aspect-ratio:4/4.2;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-soft)}
.about-visual img{width:100%;height:100%;object-fit:cover}
.about-visual::after{content:"";position:absolute;inset:0;background:linear-gradient(160deg,transparent 50%,rgba(0,75,46,.25))}
.about-visual .stamp{
  position:absolute;left:24px;bottom:24px;color:#fff;
  font-family:var(--serif);font-style:italic;font-size:22px;
}
.about-values{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin-top:36px}
.value{
  display:flex;align-items:flex-start;gap:14px;
  padding:18px 18px;border-radius:var(--radius-sm);
  background:var(--beige);
  border:1px solid rgba(181,150,72,.18);
  transition:transform .25s ease, box-shadow .25s ease;
}
.value:hover{transform:translateY(-3px);box-shadow:var(--shadow-card)}
.value-ico{
  flex-shrink:0;width:42px;height:42px;border-radius:50%;
  background:var(--crema);border:1px solid var(--dorado);
  display:grid;place-items:center;color:var(--verde);
}
.value-ico svg{width:20px;height:20px}
.value h4{font-family:var(--serif);font-size:18px;color:var(--verde);font-weight:600;margin-bottom:2px}
.value p{font-size:13.5px;color:var(--texto-suave);line-height:1.5}

/* ============== Servicios ============== */
.services{background:var(--beige)}
.services-grid{
  display:grid;gap:24px;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
}
.service-card{
  background:var(--crema);
  border-radius:var(--radius);
  padding:30px 26px;
  border:1px solid var(--linea);
  position:relative; overflow:hidden;
  transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card::before{
  content:"";position:absolute;left:0;top:0;height:3px;width:0;
  background:linear-gradient(90deg,var(--dorado),var(--dorado-pale));
  transition:width .35s ease;
}
.service-card:hover{transform:translateY(-6px);box-shadow:var(--shadow-card);border-color:rgba(181,150,72,.35)}
.service-card:hover::before{width:100%}
.service-ico{
  width:54px;height:54px;border-radius:14px;
  background:linear-gradient(160deg,var(--verde),var(--verde-soft));
  display:grid;place-items:center;color:var(--dorado-pale);
  margin-bottom:18px;
  box-shadow:0 10px 24px -10px rgba(0,75,46,.55);
}
.service-ico svg{width:24px;height:24px}
.service-card h3{font-family:var(--serif);font-size:22px;color:var(--verde);font-weight:600;margin-bottom:8px}
.service-card p{font-size:14.5px;color:var(--texto-suave);line-height:1.6}

/* ============== Propiedades ============== */
.properties{background:var(--crema)}
.filters{
  display:flex;flex-wrap:wrap;gap:12px;
  align-items:center; justify-content:center;
  background:var(--beige); border:1px solid rgba(181,150,72,.18);
  padding:14px 18px; border-radius:999px;
  margin:0 auto 40px; max-width:980px;
}
.filters select, .filters input{
  background:var(--crema); border:1px solid var(--linea);
  padding:10px 14px; border-radius:999px; font-size:13.5px;
  min-width:140px; color:var(--texto);
  transition:border-color .25s ease, box-shadow .25s ease;
  appearance:none; -webkit-appearance:none;
}
.filters select{
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23004B2E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat:no-repeat;background-position:right 14px center;padding-right:34px;
}
.filters select:focus, .filters input:focus{outline:none;border-color:var(--dorado);box-shadow:0 0 0 3px rgba(181,150,72,.18)}
.filters .seg{display:inline-flex;background:var(--crema);border-radius:999px;padding:4px;border:1px solid var(--linea)}
.filters .seg button{
  padding:8px 16px;border-radius:999px;font-size:13px;font-weight:500;color:var(--texto-suave);
  transition:all .2s ease;
}
.filters .seg button.active{background:var(--verde);color:#fff;box-shadow:0 6px 14px -6px rgba(0,75,46,.45)}

.properties-grid{
  display:grid; gap:28px;
  grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
}
.prop-card{
  background:var(--crema); border-radius:var(--radius); overflow:hidden;
  border:1px solid var(--linea);
  transition:transform .3s ease, box-shadow .3s ease;
  display:flex;flex-direction:column;
}
.prop-card:hover{transform:translateY(-6px);box-shadow:var(--shadow-card)}
.prop-media{position:relative;aspect-ratio:4/3;overflow:hidden;background:var(--beige)}
.prop-media img{width:100%;height:100%;object-fit:cover;transition:transform .8s ease}
.prop-card:hover .prop-media img{transform:scale(1.08)}
.prop-tag{
  position:absolute;top:14px;left:14px;
  background:var(--verde);color:#fff;font-size:10.5px;
  padding:6px 12px;border-radius:999px;
  letter-spacing:.18em;text-transform:uppercase;font-weight:500;
}
.prop-tag.arriendo{background:var(--dorado);color:#1F1F1F}
.prop-fav{
  position:absolute;top:14px;right:14px;width:36px;height:36px;border-radius:50%;
  background:rgba(255,253,247,.92);color:var(--verde);
  display:grid;place-items:center;
  transition:background .25s ease, color .25s ease;
}
.prop-fav:hover{background:var(--verde);color:#fff}
.prop-fav svg{width:16px;height:16px}

.prop-body{padding:22px 22px 18px;display:flex;flex-direction:column;flex:1}
.prop-loc{font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--dorado);font-weight:500;display:inline-flex;align-items:center;gap:6px}
.prop-loc svg{width:12px;height:12px}
.prop-title{font-family:var(--serif);font-size:22px;color:var(--verde);font-weight:600;margin:6px 0 10px;line-height:1.2}
.prop-price{font-family:var(--serif);font-size:24px;color:var(--texto);font-weight:600;margin-bottom:14px}
.prop-price small{font-size:12px;color:var(--texto-suave);font-weight:500;letter-spacing:.12em;text-transform:uppercase;margin-left:6px}

.prop-feats{display:flex;flex-wrap:wrap;gap:14px;color:var(--texto-suave);font-size:13px;padding-top:14px;border-top:1px dashed var(--linea);margin-top:auto}
.prop-feats span{display:inline-flex;align-items:center;gap:6px}
.prop-feats svg{width:15px;height:15px;color:var(--verde)}

.prop-actions{display:flex;gap:10px;padding:0 22px 22px}
.prop-actions .btn{flex:1;padding:11px 14px;font-size:11.5px;letter-spacing:.14em}

.empty{
  grid-column:1/-1;text-align:center;padding:60px 20px;color:var(--texto-suave);
  background:var(--beige); border-radius:var(--radius);
  font-family:var(--serif); font-size:20px; font-style:italic;
}

/* ============== Propietarios CTA ============== */
.owners{
  background:linear-gradient(135deg,var(--verde) 0%, var(--verde-deep) 100%);
  color:#fff; position:relative; overflow:hidden;
}
.owners::before{
  content:"";position:absolute;top:-100px;right:-100px;width:400px;height:400px;
  background:radial-gradient(circle,rgba(181,150,72,.18) 0%,transparent 70%);
}
.owners::after{
  content:"";position:absolute;bottom:-100px;left:-100px;width:400px;height:400px;
  background:radial-gradient(circle,rgba(181,150,72,.10) 0%,transparent 70%);
}
.owners .container{position:relative;z-index:2}
.owners-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:clamp(30px,5vw,60px);align-items:center}
@media(max-width:860px){.owners-grid{grid-template-columns:1fr;text-align:center}}
.owners .eyebrow{color:var(--dorado-pale)}
.owners .eyebrow::before{background:var(--dorado-pale)}
.owners h2{font-family:var(--serif);font-size:clamp(34px,4.4vw,52px);font-weight:500;line-height:1.1;margin:14px 0 18px}
.owners h2 em{color:var(--dorado-pale);font-style:italic}
.owners p{font-size:17px;color:rgba(255,255,255,.82);max-width:540px;margin-bottom:30px}
@media(max-width:860px){.owners p{margin-inline:auto}}
.owners-stats{display:flex;flex-direction:column;gap:18px}
.stat{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(181,150,72,.30);
  border-radius:var(--radius);
  padding:24px 26px;
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
}
.stat .num{font-family:var(--serif);font-size:42px;color:var(--dorado-pale);line-height:1;font-weight:600}
.stat .lbl{font-size:13px;letter-spacing:.16em;text-transform:uppercase;color:rgba(255,255,255,.75);margin-top:8px}

/* ============== Testimonios ============== */
.testimonials{background:var(--beige)}
.testi-grid{display:grid;gap:24px;grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.testi{
  background:var(--crema); border-radius:var(--radius); padding:30px;
  border:1px solid var(--linea); position:relative;
  transition:transform .3s ease, box-shadow .3s ease;
}
.testi:hover{transform:translateY(-4px);box-shadow:var(--shadow-card)}
.testi::before{
  content:"\201C"; position:absolute; top:-6px; left:24px;
  font-family:var(--serif); font-size:90px; color:var(--dorado); line-height:1;
}
.stars{display:flex;gap:3px;margin-bottom:14px;color:var(--dorado)}
.stars svg{width:16px;height:16px;fill:currentColor}
.testi-text{font-size:15px;color:var(--texto-suave);line-height:1.7;margin-bottom:22px;font-style:italic}
.testi-author{display:flex;align-items:center;gap:14px}
.testi-avatar{
  width:48px;height:48px;border-radius:50%;
  background:linear-gradient(135deg,var(--verde),var(--verde-soft));
  color:var(--dorado-pale); font-family:var(--serif); font-size:20px; font-weight:600;
  display:grid;place-items:center;flex-shrink:0;
}
.testi-author .name{font-weight:600;color:var(--verde);font-size:14.5px}
.testi-author .role{font-size:12px;color:var(--texto-suave);letter-spacing:.06em}

/* ============== Blog ============== */
.blog{background:var(--crema)}
.blog-grid{display:grid;gap:28px;grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.post{
  background:var(--crema); border-radius:var(--radius); overflow:hidden;
  border:1px solid var(--linea);
  transition:transform .3s ease, box-shadow .3s ease;
  display:flex;flex-direction:column;
}
.post:hover{transform:translateY(-6px);box-shadow:var(--shadow-card)}
.post-media{aspect-ratio:16/10;background:var(--beige);position:relative;overflow:hidden}
.post-media .ph{position:absolute;inset:0;background:linear-gradient(135deg,var(--beige) 0%,var(--beige-2) 100%);display:grid;place-items:center;color:var(--dorado)}
.post-media .ph svg{width:48px;height:48px;opacity:.6}
.post-body{padding:24px;flex:1;display:flex;flex-direction:column}
.post-cat{font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:var(--dorado);font-weight:500;margin-bottom:8px}
.post h3{font-family:var(--serif);font-size:21px;color:var(--verde);font-weight:600;margin-bottom:10px;line-height:1.25}
.post p{font-size:14.5px;color:var(--texto-suave);margin-bottom:18px;flex:1}
.post-link{display:inline-flex;align-items:center;gap:8px;color:var(--verde);font-weight:500;font-size:13.5px;letter-spacing:.06em}
.post-link svg{width:14px;height:14px;transition:transform .25s ease}
.post-link:hover svg{transform:translateX(4px)}

/* ============== Contacto ============== */
.contact{background:var(--beige)}
.contact-grid{display:grid;grid-template-columns:1fr 1.15fr;gap:clamp(30px,5vw,60px);align-items:start}
@media(max-width:920px){.contact-grid{grid-template-columns:1fr}}

.contact-info{background:var(--verde);color:#fff;border-radius:var(--radius);padding:40px;position:relative;overflow:hidden}
.contact-info::before{
  content:"";position:absolute;top:-80px;right:-80px;width:260px;height:260px;
  background:radial-gradient(circle,rgba(181,150,72,.20) 0%,transparent 70%);
}
.contact-info h3{font-family:var(--serif);font-size:28px;font-weight:500;margin-bottom:14px;position:relative}
.contact-info h3 em{color:var(--dorado-pale);font-style:italic}
.contact-info > p{color:rgba(255,255,255,.78);margin-bottom:28px;font-size:15px;position:relative}
.contact-list{display:flex;flex-direction:column;gap:18px;position:relative}
.contact-item{display:flex;align-items:flex-start;gap:14px;color:rgba(255,255,255,.92);font-size:14.5px}
.contact-ico{
  flex-shrink:0;width:42px;height:42px;border-radius:50%;
  background:rgba(181,150,72,.18);border:1px solid rgba(181,150,72,.45);
  display:grid;place-items:center;color:var(--dorado-pale);
}
.contact-ico svg{width:18px;height:18px}
.contact-item .lbl{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--dorado-pale);margin-bottom:4px;font-weight:500}
.contact-item a:hover{color:var(--dorado-pale)}
.socials{display:flex;gap:10px;margin-top:30px;position:relative}
.socials a{
  width:40px;height:40px;border-radius:50%;
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.18);
  display:grid;place-items:center;color:#fff;
  transition:all .25s ease;
}
.socials a:hover{background:var(--dorado);border-color:var(--dorado);color:var(--verde);transform:translateY(-3px)}
.socials svg{width:16px;height:16px}

.contact-form{background:var(--crema);border-radius:var(--radius);padding:40px;border:1px solid var(--linea);box-shadow:var(--shadow-card)}
.contact-form h3{font-family:var(--serif);font-size:26px;color:var(--verde);font-weight:500;margin-bottom:8px}
.contact-form > p{color:var(--texto-suave);margin-bottom:26px;font-size:14.5px}
.field{margin-bottom:18px}
.field label{display:block;font-size:12.5px;font-weight:500;color:var(--verde);margin-bottom:8px;letter-spacing:.04em}
.field input, .field select, .field textarea{
  width:100%; background:var(--crema);
  border:1.5px solid var(--linea);
  padding:12px 16px; border-radius:12px;
  font-size:14.5px; color:var(--texto);
  transition:border-color .25s ease, box-shadow .25s ease;
}
.field textarea{resize:vertical;min-height:120px;font-family:var(--sans)}
.field input:focus, .field select:focus, .field textarea:focus{outline:none;border-color:var(--dorado);box-shadow:0 0 0 3px rgba(181,150,72,.18)}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media(max-width:560px){.field-row{grid-template-columns:1fr}}
.form-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}
.form-msg{margin-top:14px;padding:12px 16px;border-radius:12px;font-size:13.5px;display:none}
.form-msg.ok{display:block;background:rgba(0,75,46,.08);color:var(--verde);border:1px solid rgba(0,75,46,.2)}
.form-msg.err{display:block;background:rgba(181,80,80,.08);color:#a13a3a;border:1px solid rgba(181,80,80,.25)}

/* ============== Footer ============== */
.site-footer{background:var(--verde-deep);color:rgba(255,255,255,.82);padding:60px 0 28px}
.footer-grid{display:grid;gap:40px;grid-template-columns:1.4fr 1fr 1fr 1fr}
@media(max-width:860px){.footer-grid{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.footer-grid{grid-template-columns:1fr}}
.footer-brand .brand-mark{background:transparent;border-color:var(--dorado)}
.footer-brand .brand-mark svg{color:var(--dorado-pale)}
.footer-brand .brand-text .b1{color:#fff}
.footer-brand p{margin-top:18px;color:rgba(255,255,255,.65);font-size:14px;max-width:300px}
.footer-col h5{font-family:var(--serif);color:var(--dorado-pale);font-size:18px;font-weight:600;margin-bottom:18px}
.footer-col ul{list-style:none;display:flex;flex-direction:column;gap:10px}
.footer-col a{font-size:13.5px;color:rgba(255,255,255,.72);transition:color .25s ease}
.footer-col a:hover{color:var(--dorado-pale)}
.footer-bottom{
  margin-top:48px;padding-top:24px;border-top:1px solid rgba(255,255,255,.10);
  display:flex;flex-wrap:wrap;justify-content:space-between;gap:14px;
  font-size:12.5px;color:rgba(255,255,255,.55);
}
.footer-bottom em{color:var(--dorado-pale);font-style:italic;font-family:var(--serif);font-size:14px}

/* ============== Floating WhatsApp ============== */
.fab-wa{
  position:fixed;right:20px;bottom:20px;z-index:60;
  width:60px;height:60px;border-radius:50%;
  background:#25D366;color:#fff;
  display:grid;place-items:center;
  box-shadow:0 14px 30px -10px rgba(37,211,102,.55);
  transition:transform .3s ease, box-shadow .3s ease;
}
.fab-wa::before{
  content:"";position:absolute;inset:-8px;border-radius:50%;
  background:rgba(37,211,102,.30);animation:pulse 2.4s ease-out infinite;z-index:-1;
}
.fab-wa svg{width:30px;height:30px}
.fab-wa:hover{transform:scale(1.08);box-shadow:0 18px 40px -12px rgba(37,211,102,.70)}
@keyframes pulse{0%{transform:scale(1);opacity:.6}100%{transform:scale(1.6);opacity:0}}

/* ============== Reveal on scroll ============== */
.r{opacity:0;transform:translateY(28px);transition:opacity .9s ease, transform .9s ease}
.r.in{opacity:1;transform:translateY(0)}
.r.delay-1{transition-delay:.12s}
.r.delay-2{transition-delay:.24s}
.r.delay-3{transition-delay:.36s}

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
  .r{opacity:1!important;transform:none!important}
}

/* ============================================================
   Mobile responsive refinements
   ============================================================ */

/* ---- Tablet & below (≤ 900px) ---- */
@media (max-width: 900px){
  .container{padding:0 22px}
  .section{padding:clamp(56px,9vw,90px) 0}
  .section-title{font-size:clamp(30px,5vw,42px)}
  .section-head{margin-bottom:36px}

  /* Filters — limpios, en columna, controles cómodos al tap */
  .filters{
    display:grid;
    grid-template-columns:1fr 1fr;
    grid-template-areas:
      "seg    seg"
      "tipo   precio"
      "zona   zona";
    gap:10px;
    max-width:480px;
    padding:14px;
    border-radius:18px;
    background:var(--beige);
    border:1px solid rgba(181,150,72,.22);
    box-shadow:var(--shadow-card);
  }
  .filters .seg{
    grid-area:seg;
    display:grid; grid-template-columns:repeat(3,1fr);
    width:100%; padding:4px; gap:0;
    background:var(--crema);
    border:1px solid var(--linea);
    border-radius:999px;
  }
  .filters .seg button{padding:11px 6px; font-size:12.5px; letter-spacing:.04em}
  .filters #f-tipo{grid-area:tipo}
  .filters #f-precio{grid-area:precio}
  .filters #f-zona{grid-area:zona}
  .filters select,
  .filters input{
    width:100%; min-width:0; height:48px;
    border-radius:12px; font-size:14.5px;
    background-color:var(--beige);
    border:1px solid rgba(181,150,72,.18);
  }
  .filters select{background-position:right 12px center; padding-right:34px}
  .filters select:focus, .filters input:focus{background-color:var(--crema)}

  /* Trust strip wraps cleaner */
  .trust-strip .container{gap:14px 22px; padding-block:18px}
  .trust-pill{font-size:11px; letter-spacing:.18em}
}

/* ---- Phone (≤ 640px) ---- */
@media (max-width: 640px){
  /* HERO — título arriba, imagen al medio, CTAs + corazón abajo */
  .hero{
    min-height:calc(100dvh - 76px);
    padding:24px 0 22px;
    display:flex; align-items:stretch;
    overflow:hidden;
  }
  .hero .container{display:flex; flex:1; width:100%}
  .hero-grid{flex:1; display:flex; flex-direction:column; gap:0}
  .hero-copy{flex:1; display:flex; flex-direction:column; max-width:100%}

  .hero::before{
    background-image:url('../img/bg-mobile.png');
    background-size:cover;
    background-position:center 56%;
    background-repeat:no-repeat;
  }
  /* Gradient en U: crema arriba, transparente al medio, crema abajo */
  .hero::after{
    background:
      linear-gradient(180deg,
        var(--crema) 0%,
        rgba(255,253,247,.96) 14%,
        rgba(255,253,247,.55) 26%,
        rgba(255,253,247,.05) 40%,
        rgba(255,253,247,.05) 56%,
        rgba(255,253,247,.55) 72%,
        rgba(255,253,247,.95) 88%,
        var(--crema) 100%
      );
  }

  .hero h1{
    font-size:clamp(30px, 7.6vw, 38px);
    line-height:1.08;
    margin-bottom:14px;
    text-shadow:0 1px 3px rgba(255,253,247,.85);
  }
  .hero h1 br{display:none}
  .hero h1 .gold{display:inline}
  .hero-icon{width:40px;height:40px;margin-bottom:12px}
  .hero-lead{font-size:14.5px;margin-bottom:0}

  /* CTAs y quote empujados al fondo del hero */
  .hero-ctas{margin-top:auto; padding-top:18px; gap:10px}
  .hero-ctas .btn{flex:1 1 auto;justify-content:center;padding:13px 18px;font-size:11.5px;letter-spacing:.16em}
  .hero-quote{margin-top:14px; margin-bottom:6px}
  .hero-quote span{font-size:15px}
  .hero-quote .line{width:28px}

  /* Corazón flotante: arriba de los CTAs, esquina derecha sobre la foto */
  .hero-side{
    position:absolute; right:14px; bottom:150px;
    width:96px; height:96px;
    pointer-events:none; z-index:3;
  }
  .heart-badge{
    position:absolute; inset:0; left:auto; right:0; bottom:0;
    width:96px; height:96px;
    transform:rotate(-6deg);
    pointer-events:auto;
  }
  .heart-badge .h2{font-size:22px}
  .heart-badge .h1,.heart-badge .h3{font-size:10.5px}
  /* hide bottom curve on mobile to avoid overlap with heart */
  .hero .curve{display:none}

  /* SOBRE NOSOTROS */
  .about-grid{gap:30px}
  .about-visual{aspect-ratio:4/3.4}
  .about-visual .stamp{font-size:18px;left:18px;bottom:18px}
  .about-values{grid-template-columns:1fr; gap:12px; margin-top:24px}
  .value{padding:16px}
  .value-ico{width:38px;height:38px}
  .value h4{font-size:16px}

  /* SERVICIOS */
  .services-grid{grid-template-columns:1fr; gap:16px}
  .service-card{padding:24px 22px}
  .service-ico{width:48px;height:48px;margin-bottom:14px}
  .service-card h3{font-size:20px}

  /* PROPIEDADES */
  .properties-grid{grid-template-columns:1fr; gap:20px}
  .prop-body{padding:18px 18px 14px}
  .prop-title{font-size:20px}
  .prop-price{font-size:22px}
  .prop-actions{padding:0 18px 18px; gap:8px}
  .prop-actions .btn{padding:11px 10px; font-size:11px; letter-spacing:.12em}

  /* PROPIETARIOS */
  .owners h2{font-size:30px}
  .owners p{font-size:15.5px;margin-bottom:24px}
  .owners-stats{gap:14px}
  .stat{padding:20px 22px}
  .stat .num{font-size:34px}
  .stat .lbl{font-size:11.5px}

  /* TESTIMONIOS */
  .testi{padding:26px 22px}
  .testi-text{font-size:14.5px}

  /* BLOG */
  .post-body{padding:20px}
  .post h3{font-size:19px}

  /* CONTACTO */
  .contact-info,.contact-form{padding:28px 22px;border-radius:16px}
  .contact-info h3{font-size:24px}
  .contact-form h3{font-size:22px}
  .field{margin-bottom:14px}
  .field input, .field select, .field textarea{padding:12px 14px; font-size:15px}
  .form-actions .btn{flex:1 1 auto; justify-content:center}

  /* FOOTER */
  .site-footer{padding:48px 0 24px}
  .footer-grid{gap:30px}
  .footer-bottom{flex-direction:column-reverse; align-items:flex-start; gap:10px; text-align:left}

  /* FAB WhatsApp más pequeño y compacto */
  .fab-wa{width:54px;height:54px;right:14px;bottom:14px}
  .fab-wa svg{width:26px;height:26px}
}

/* ---- Small phone (≤ 380px) ---- */
@media (max-width: 380px){
  .container{padding:0 16px}
  .nav{padding:14px 16px; gap:10px}
  .brand-mark{width:42px;height:42px}
  .brand-mark svg{width:20px;height:20px}
  .brand-text .b1{font-size:20px}
  .brand-text .b2{font-size:8.5px}
  .nav-cta{padding:9px 11px}
  .nav-cta svg{width:14px;height:14px}

  .hero{padding:20px 0 18px}
  .hero h1{font-size:28px}
  .hero-lead{font-size:14px}
  .hero-ctas .btn{font-size:11px;padding:12px 14px;letter-spacing:.12em}
  .hero-side{right:10px; bottom:140px; width:84px; height:84px}
  .heart-badge{width:84px;height:84px;right:0;bottom:0}
  .heart-badge .h2{font-size:18px}
  .heart-badge .h1,.heart-badge .h3{font-size:9.5px}

  .section-title{font-size:26px}
  .eyebrow{font-size:10px;letter-spacing:.24em}

  .trust-strip .container{gap:10px 16px;padding-block:16px}
  .trust-pill{font-size:10px;letter-spacing:.14em;gap:6px}
  .trust-pill svg{width:15px;height:15px}

  .stars svg{width:14px;height:14px}
  .testi-author .name{font-size:14px}
}

/* ---- Avoid horizontal overflow from large modal/decoration ---- */
@media (max-width: 640px){
  .owners::before,.owners::after,
  .contact-info::before{width:280px;height:280px}
}
