/* ===== EDEN BIENES RAICES — JP MORGAN STYLE ===== */
:root {
  --primary: #1a2e28;
  --primary-deep: #0d1a15;
  --accent: #c5a55a;
  --accent-light: #d9bf7a;
  --cream: #f7f5f2;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-mid: #555;
  --text-light: #888;
  --dark: #0a0a0a;
  --radius: 4px;
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Outfit', 'Helvetica Neue', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 2rem; }
.center { text-align: center; }
.full-w { width: 100%; }
img { max-width: 100%; height: auto; }

/* PRELOADER */
#preloader { position: fixed; inset: 0; background: var(--primary-deep); z-index: 9999; display: flex; align-items: center; justify-content: center; transition: opacity .6s, visibility .6s; }
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-spinner { width: 32px; height: 32px; border: 2px solid rgba(197,165,90,.12); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== NAV ========== */
nav { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 9000; transition: background .3s, box-shadow .3s, padding .3s; background: transparent; }
nav.scrolled { background: #fff; box-shadow: 0 1px 8px rgba(0,0,0,.08); }
.nav-inner { max-width: 1140px; margin: 0 auto; padding: 1.2rem 2rem; display: flex; justify-content: space-between; align-items: center; }
nav.scrolled .nav-inner { padding: .8rem 2rem; }

.nav-logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.nav-logo-img { height: 40px; width: 40px; object-fit: contain; border-radius: 50%; transition: all .3s; }
.nav-logo-text { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: #fff; letter-spacing: .15em; transition: color .3s; text-transform: uppercase; }
nav.scrolled .nav-logo-text { color: var(--primary); }
nav.scrolled .nav-logo-img { height: 36px; width: 36px; }

.nav-links { display: flex; list-style: none; gap: 2.5rem; align-items: center; }
.nav-links a { text-decoration: none; color: rgba(255,255,255,.75); font-weight: 300; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; transition: all .3s; }
.nav-links a:hover { color: #fff; }
nav.scrolled .nav-links a { color: var(--text-mid); }
nav.scrolled .nav-links a:hover { color: var(--primary); }
.nav-cta { background: transparent !important; color: var(--accent) !important; padding: .45rem 1.3rem; border: 1px solid var(--accent); border-radius: 0; font-weight: 400 !important; }
.nav-cta:hover { background: var(--accent) !important; color: #fff !important; }
nav.scrolled .nav-cta { color: var(--accent) !important; border-color: var(--accent); }
nav.scrolled .nav-cta:hover { background: var(--accent) !important; color: #fff !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; z-index: 1001; }
.hamburger span { width: 20px; height: 1px; background: #fff; transition: all .3s; display: block; }
nav.scrolled .hamburger span { background: var(--text); }

/* ========== HERO ========== */
.hero { position: relative; height: 100vh; min-height: 700px; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; overflow: hidden; background: var(--primary-deep); }
.hero-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: .35; }
.hero-dim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,16,12,.75) 0%, rgba(13,26,21,.55) 40%, rgba(10,10,10,.85) 100%); z-index: 1; }
.hero-body { position: relative; z-index: 2; max-width: 720px; padding: 0 2rem; }
.hero-line { width: 1px; height: 50px; background: linear-gradient(to bottom, transparent, var(--accent)); margin: 0 auto 2rem; }
.hero-eyebrow { font-size: .62rem; font-weight: 400; letter-spacing: .4em; text-transform: uppercase; color: var(--accent); margin-bottom: 2rem; }
.hero h1 { font-family: var(--font-display); font-size: 5rem; font-weight: 700; line-height: 1.05; margin-bottom: 0; letter-spacing: -.01em; text-shadow: 0 2px 40px rgba(0,0,0,.3); }
.hero h1 em { font-style: italic; color: var(--accent-light); font-weight: 700; }
.hero-divider { width: 60px; height: 1px; background: var(--accent); margin: 2rem auto; opacity: .6; }
.hero-sub { font-size: .85rem; line-height: 2; color: rgba(255,255,255,.45); margin-bottom: 3rem; font-weight: 300; letter-spacing: .03em; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-bottom { position: absolute; bottom: -1px; left: 0; right: 0; z-index: 2; line-height: 0; }
.hero-bottom svg { width: 100%; height: 120px; display: block; }

/* HERO BUTTONS */
.btn-hero-primary { display: inline-flex; align-items: center; justify-content: center; padding: .85rem 2.8rem; font-size: .72rem; font-weight: 500; text-decoration: none; background: var(--accent); color: #fff; border: 1px solid var(--accent); cursor: pointer; font-family: var(--font-body); transition: all .4s; letter-spacing: .12em; text-transform: uppercase; border-radius: 0; }
.btn-hero-primary:hover { background: transparent; color: var(--accent); transform: translateY(-2px); }
.btn-hero-secondary { display: inline-flex; align-items: center; padding: .85rem 2.8rem; font-size: .72rem; font-weight: 300; text-decoration: none; background: transparent; color: rgba(255,255,255,.65); border: 1px solid rgba(255,255,255,.15); cursor: pointer; font-family: var(--font-body); transition: all .4s; letter-spacing: .12em; text-transform: uppercase; border-radius: 0; }
.btn-hero-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* BUTTONS */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 2.2rem; font-size: .78rem; font-weight: 400; text-decoration: none; background: var(--accent); color: #fff; border: 1px solid var(--accent); cursor: pointer; font-family: var(--font-body); transition: all .35s; letter-spacing: .08em; text-transform: uppercase; border-radius: 0; }
.btn-primary:hover { background: var(--accent-light); border-color: var(--accent-light); transform: translateY(-1px); }
.btn-outline { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 2.2rem; font-size: .78rem; font-weight: 300; text-decoration: none; background: transparent; color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.2); cursor: pointer; font-family: var(--font-body); transition: all .35s; letter-spacing: .08em; text-transform: uppercase; border-radius: 0; }
.btn-outline:hover { border-color: rgba(255,255,255,.5); color: #fff; transform: translateY(-1px); }

/* ========== STATS ========== */
.stats { background: var(--cream); padding: 4rem 0; }
.stats-row { display: flex; justify-content: center; align-items: center; gap: 5rem; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-number { font-family: var(--font-display); font-size: 3.2rem; font-weight: 600; color: var(--primary); display: block; line-height: 1; }
.stat-number::after { content: '+'; color: var(--accent); font-weight: 400; }
.stat-label { font-size: .65rem; color: var(--text-light); margin-top: .5rem; text-transform: uppercase; letter-spacing: .15em; display: block; font-weight: 400; }

/* ========== SEARCH ========== */
.search { background: var(--cream); padding: 0 0 3.5rem; }
.search-card { background: var(--white); border: 1px solid rgba(0,0,0,.06); padding: 2rem 2.5rem; box-shadow: 0 4px 30px rgba(0,0,0,.03); border-radius: var(--radius); }
.search-card h3 { font-family: var(--font-display); font-size: 1.4rem; color: var(--primary); margin-bottom: 1.3rem; text-align: center; font-weight: 500; }
.search-row { display: flex; gap: 1rem; align-items: end; flex-wrap: wrap; }
.sf { flex: 1; min-width: 140px; }
.sf label { display: block; font-size: .6rem; font-weight: 500; color: var(--text-light); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .3rem; }
.sf select, .sf input { width: 100%; padding: .6rem .8rem; border: 1px solid #ddd; border-radius: var(--radius); font-size: .8rem; font-family: var(--font-body); color: var(--text); background: var(--white); transition: all .3s; }
.sf select:focus, .sf input:focus { outline: none; border-color: var(--primary); }
.search-go { white-space: nowrap; min-width: 100px; }

/* ========== WAVE DIVIDERS ========== */
.wave-divider { line-height: 0; overflow: hidden; margin-top: -1px; }
.wave-divider svg { width: 100%; height: 100px; display: block; }
.cream-to-white { background: var(--cream); }
.white-to-cream { background: var(--white); }
.cream-to-dark { background: var(--cream); }
.dark-to-white { background: var(--primary); }
.white-to-dark2 { background: var(--white); }
.dark-to-darker { background: var(--primary); }

/* ========== SECTION HEADERS ========== */
.sec-head { text-align: center; max-width: 500px; margin: 0 auto 3.5rem; }
.sec-head h2 { font-family: var(--font-display); font-size: 2.6rem; color: var(--primary); margin-bottom: .6rem; line-height: 1.15; font-weight: 500; }
.sec-head p { color: var(--text-light); font-size: .85rem; line-height: 1.7; font-weight: 300; }
.label { display: inline-block; font-size: .6rem; font-weight: 500; letter-spacing: .25em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }
.label.light { color: var(--accent-light); }

/* ========== PROPERTIES ========== */
.properties { padding: 5rem 0; background: var(--white); }
.filters { display: flex; gap: .4rem; justify-content: center; margin-bottom: 3rem; flex-wrap: wrap; }
.fbtn { background: transparent; border: 1px solid #ddd; padding: .4rem 1.2rem; border-radius: 0; font-size: .7rem; font-weight: 400; cursor: pointer; transition: all .3s; color: var(--text-light); font-family: var(--font-body); letter-spacing: .05em; text-transform: uppercase; }
.fbtn:hover, .fbtn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.prop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; transition: all .45s ease; border: 1px solid rgba(0,0,0,.06); }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 50px rgba(0,0,0,.06); }
.card-img { height: 200px; position: relative; overflow: hidden; }
.ci1 { background: linear-gradient(135deg, #2a3d34, #5a7d6a); }
.ci2 { background: linear-gradient(135deg, #3a4d44, #6b8d7a); }
.ci3 { background: linear-gradient(135deg, #4a5d54, #7b9d8a); }
.ci4 { background: linear-gradient(135deg, #1a2d24, #4a6d5a); }
.ci5 { background: linear-gradient(135deg, #2d4038, #5e806e); }
.ci6 { background: linear-gradient(135deg, #3d5048, #6e907e); }
.tag-badge { position: absolute; top: .8rem; left: .8rem; padding: .2rem .6rem; font-size: .6rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #fff; border-radius: 0; }
.tag-badge.venta { background: var(--primary); }
.tag-badge.arriendo { background: var(--accent); }
.tag-badge.lote { background: var(--text-mid); }

.card-body { padding: 1.3rem 1.4rem; }
.card-loc { font-size: .65rem; color: var(--text-light); margin-bottom: .3rem; display: flex; align-items: center; gap: .3rem; letter-spacing: .05em; text-transform: uppercase; }
.card-loc::before { content: ''; width: 4px; height: 4px; background: var(--accent); border-radius: 50%; display: inline-block; }
.card-body h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; color: var(--primary); margin-bottom: .3rem; line-height: 1.3; }
.card-price { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--primary); margin-bottom: .7rem; }
.card-price small { font-family: var(--font-body); font-size: .6rem; font-weight: 400; color: var(--text-light); letter-spacing: .05em; }
.card-feats { display: flex; gap: .5rem; padding-top: .7rem; border-top: 1px solid #f0eeeb; flex-wrap: wrap; }
.card-feats span { font-size: .65rem; color: var(--text-light); background: var(--cream); padding: .2rem .5rem; border-radius: 2px; }
.card-link { display: inline-block; margin-top: .6rem; font-size: .72rem; font-weight: 400; color: var(--accent); text-decoration: none; transition: all .3s; letter-spacing: .05em; text-transform: uppercase; }
.card-link:hover { color: var(--primary); }

/* ========== SERVICES ========== */
.servicios { padding: 5rem 0; background: var(--cream); }
.serv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.serv { background: var(--white); padding: 2.2rem 1.6rem; border-radius: var(--radius); transition: all .4s; border: 1px solid rgba(0,0,0,.04); }
.serv:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,.04); }
.serv-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; color: var(--accent); }
.serv h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--primary); margin-bottom: .4rem; font-weight: 500; }
.serv p { font-size: .8rem; color: var(--text-light); line-height: 1.7; font-weight: 300; }

/* ========== NOSOTROS ========== */
.nosotros { padding: 6rem 0; background: var(--primary); color: #fff; }
.nos-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 5rem; align-items: center; }
.nos-left h2 { font-family: var(--font-display); font-size: 2.5rem; color: #fff; margin-bottom: .8rem; line-height: 1.15; font-weight: 400; }
.nos-left h2 em { font-style: italic; color: var(--accent-light); }
.nos-sub { color: rgba(255,255,255,.45); line-height: 1.8; margin-bottom: 2.2rem; font-size: .85rem; font-weight: 300; }
.nos-list { display: flex; flex-direction: column; gap: 1.3rem; }
.nos-item { display: flex; gap: 1rem; align-items: flex-start; }
.nos-dot { width: 6px; height: 6px; min-width: 6px; background: var(--accent); border-radius: 0; margin-top: 7px; }
.nos-item strong { font-size: .82rem; color: rgba(255,255,255,.9); display: block; margin-bottom: .15rem; font-weight: 400; }
.nos-item p { font-size: .75rem; color: rgba(255,255,255,.35); line-height: 1.5; font-weight: 300; }
.nos-right { display: flex; justify-content: center; }
.nos-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.nos-stat-item { border: 1px solid rgba(197,165,90,.15); padding: 1.8rem 1.5rem; text-align: center; transition: border-color .3s; }
.nos-stat-item:hover { border-color: rgba(197,165,90,.4); }
.nos-num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--accent); display: block; line-height: 1; margin-bottom: .4rem; }
.nos-desc { font-size: .68rem; color: rgba(255,255,255,.4); display: block; letter-spacing: .04em; line-height: 1.4; }

/* ========== TESTIMONIALS ========== */
.testimonios { padding: 5rem 0; background: var(--white); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testi { background: var(--cream); border-radius: var(--radius); padding: 2rem; transition: all .4s; border: 1px solid rgba(0,0,0,.03); }
.testi:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.04); }
.testi.featured { background: var(--primary); color: #fff; }
.testi-stars { color: var(--accent); font-size: .85rem; letter-spacing: 3px; margin-bottom: .8rem; }
.testi p { font-size: .84rem; line-height: 1.75; color: var(--text-mid); font-style: italic; margin-bottom: 1.2rem; font-weight: 300; }
.testi.featured p { color: rgba(255,255,255,.65); }
.testi-author { display: flex; align-items: center; gap: .6rem; }
.testi-av { width: 34px; height: 34px; border-radius: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 500; font-size: .65rem; letter-spacing: .05em; }
.av1 { background: var(--primary); }
.av2 { background: var(--accent); }
.av3 { background: var(--text-mid); }
.testi-author strong { display: block; font-size: .78rem; color: var(--primary); font-weight: 500; }
.testi.featured .testi-author strong { color: #fff; }
.testi-author small { font-size: .65rem; color: var(--text-light); display: block; }
.testi.featured .testi-author small { color: rgba(255,255,255,.4); }

/* ========== CONTACT ========== */
.contacto { padding: 6rem 0; background: var(--primary); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.contact-info h2 { font-family: var(--font-display); font-size: 2.4rem; color: #fff; margin-bottom: .8rem; line-height: 1.15; font-weight: 400; }
.contact-info h2 em { font-style: italic; color: var(--accent-light); }
.contact-info p { color: rgba(255,255,255,.5); line-height: 1.8; margin-bottom: 1.5rem; font-size: .85rem; font-weight: 300; }
.contact-checks { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.contact-checks li { color: rgba(255,255,255,.6); font-size: .82rem; padding-left: 1.2rem; position: relative; font-weight: 300; }
.contact-checks li::before { content: '\2014'; position: absolute; left: 0; color: var(--accent); }

.contact-form-wrap { background: var(--white); border-radius: var(--radius); padding: 2.5rem; box-shadow: 0 20px 60px rgba(0,0,0,.15); }
.contact-form-wrap h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--primary); margin-bottom: 1.3rem; text-align: center; font-weight: 500; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.field { margin-bottom: .7rem; }
.field label { display: block; font-size: .6rem; font-weight: 500; color: var(--text-light); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .25rem; }
.field input, .field select, .field textarea { width: 100%; padding: .6rem .8rem; border: 1px solid #ddd; border-radius: var(--radius); font-size: .8rem; font-family: var(--font-body); color: var(--text); background: var(--white); transition: all .3s; resize: none; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); }

/* ========== FOOTER ========== */
footer { background: var(--dark); color: rgba(255,255,255,.5); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-logo { height: 44px; width: auto; object-fit: contain; margin-bottom: .8rem; }
.footer-brand p { font-size: .78rem; line-height: 1.7; color: rgba(255,255,255,.3); font-weight: 300; }
.footer-col h4 { color: rgba(255,255,255,.7); font-size: .65rem; margin-bottom: .8rem; text-transform: uppercase; letter-spacing: .15em; font-weight: 500; }
.footer-col a { display: block; color: rgba(255,255,255,.3); text-decoration: none; font-size: .78rem; margin-bottom: .5rem; transition: color .3s; font-weight: 300; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 0; border-top: 1px solid rgba(255,255,255,.05); font-size: .68rem; color: rgba(255,255,255,.2); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: rgba(255,255,255,.2); text-decoration: none; transition: color .3s; }
.footer-legal a:hover { color: var(--accent); }

/* ========== WHATSAPP ========== */
.wa { position: fixed; bottom: 2rem; right: 2rem; width: 50px; height: 50px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(37,211,102,.3); z-index: 999; transition: all .3s; }
.wa:hover { transform: scale(1.06); box-shadow: 0 6px 20px rgba(37,211,102,.4); }

/* ========== REVEAL ========== */
.reveal { opacity: 0; transform: translateY(25px); transition: all .8s cubic-bezier(.25, 0, .15, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .prop-grid { grid-template-columns: repeat(2, 1fr); }
  .serv-grid { grid-template-columns: repeat(2, 1fr); }
  .nos-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nos-right { order: -1; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.active {
    display: flex; flex-direction: column; position: fixed; inset: 0;
    background: rgba(13,26,21,.98); backdrop-filter: blur(20px);
    justify-content: center; align-items: center; gap: 2.5rem; z-index: 999;
  }
  .nav-links.active a { color: rgba(255,255,255,.8) !important; font-size: .95rem; letter-spacing: .1em; }
  .hero h1 { font-size: 3rem; }
  .hero-line { height: 35px; margin-bottom: 1.5rem; }
  .hero-divider { margin: 1.5rem auto; }
  .btn-hero-primary, .btn-hero-secondary { padding: .75rem 2rem; font-size: .68rem; }
  .prop-grid, .testi-grid { grid-template-columns: 1fr; }
  .serv-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 2.5rem; }
  .stat-number { font-size: 2.4rem; }
  .search-row { flex-direction: column; }
  .sf { min-width: 100%; }
  .search-go { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: .6rem; text-align: center; }
  .form-2col { grid-template-columns: 1fr; }
  .sec-head h2, .contact-info h2, .nos-left h2 { font-size: 2rem; }
  .nos-stats { gap: 1rem; }
  .nos-stat-item { padding: 1.3rem 1rem; }
  .nos-num { font-size: 1.8rem; }
  .hero-bottom svg { height: 70px; }
  .wave-divider svg { height: 60px; }
}
