/* ============================================================
   Costa & Llave — inmobiliaria, paleta navy + dorado arena.
   ============================================================ */

:root {
  --color-bg: #fffdf9;
  --color-bg-alt: #f7f2e8;
  --color-navy: #142433;
  --color-navy-dark: #0b1620;
  --color-sand: #c99a4b;
  --color-sand-dark: #a97f38;
  --color-ink: #2b2b2b;
  --color-muted: #6b6b6b;
  --color-line: #e7ded0;

  --font-display: 'Cormorant Garamond', serif;
  --font-sans: 'Work Sans', sans-serif;
  --max-width: 1180px;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-sans); background: var(--color-bg); color: var(--color-ink); line-height: 1.6; }
h1, h2, h3 { font-family: var(--font-display); color: var(--color-navy); line-height: 1.15; margin: 0 0 0.4em; font-weight: 700; }
p { color: var(--color-muted); margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.76rem; font-weight: 700; color: var(--color-sand-dark); margin-bottom: 0.75em; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.85em 1.7em; border-radius: 4px; font-weight: 700; font-size: 0.92rem; border: 2px solid transparent; cursor: pointer; transition: all 0.15s ease; }
.btn-primary { background: var(--color-sand); color: #fff; }
.btn-primary:hover { background: var(--color-sand-dark); }
.btn-block { width: 100%; }

/* header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 253, 249, 0.95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--color-line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 82px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--color-navy); }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--color-navy); color: var(--color-sand); border-radius: 4px; font-weight: 700; }
.main-nav { display: flex; align-items: center; gap: 30px; font-size: 0.92rem; font-weight: 600; }
.main-nav a:hover { color: var(--color-sand-dark); }
.nav-cta { background: var(--color-navy); color: #fff !important; padding: 0.6em 1.3em; border-radius: 4px; }
.nav-cta:hover { background: var(--color-navy-dark); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--color-navy); border-radius: 2px; }

/* hero */
.hero { padding: 100px 0 70px; text-align: center; background: linear-gradient(180deg, var(--color-bg-alt), var(--color-bg)); }
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.2rem); }
.hero h1 em { color: var(--color-sand-dark); font-style: normal; }
.hero-lead { font-size: 1.06rem; max-width: 52ch; margin: 0 auto 2em; }

.search-bar { display: flex; gap: 10px; max-width: 620px; margin: 0 auto; background: #fff; border: 1px solid var(--color-line); border-radius: 6px; padding: 10px; box-shadow: 0 10px 30px rgba(20,36,51,0.08); }
.search-bar select, .search-bar input { border: none; background: none; padding: 10px 12px; font-family: inherit; font-size: 0.92rem; flex: 1; }
.search-bar select:focus, .search-bar input:focus { outline: none; }
.search-bar .btn { flex-shrink: 0; }

/* sections */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }

/* filters + properties */
.filters { display: flex; gap: 12px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn { background: #fff; border: 1px solid var(--color-line); padding: 10px 22px; border-radius: 999px; font-size: 0.88rem; font-weight: 600; cursor: pointer; color: var(--color-muted); }
.filter-btn:hover { border-color: var(--color-sand); color: var(--color-sand-dark); }
.filter-btn.active { background: var(--color-navy); color: #fff; border-color: var(--color-navy); }

.properties-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.property-card { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.property-card.hidden { display: none; }
.property-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(20,36,51,0.1); }
.property-image { position: relative; height: 180px; }
.i1 { background: linear-gradient(135deg, #c99a4b, #6f5324); }
.i2 { background: linear-gradient(135deg, #2f5b7a, #142433); }
.i3 { background: linear-gradient(135deg, #8a8a8a, #3a3a3a); }
.i4 { background: linear-gradient(135deg, #7d9a6e, #35472e); }
.i5 { background: linear-gradient(135deg, #b98a5e, #59422a); }
.i6 { background: linear-gradient(135deg, #4d6a86, #17232e); }
.property-tag { position: absolute; top: 12px; left: 12px; background: var(--color-navy); color: #fff; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.property-tag.alquiler { background: var(--color-sand); }
.property-body { padding: 22px; }
.property-body h3 { font-size: 1.15rem; margin-bottom: 0.3em; }
.property-price { font-family: var(--font-sans); font-weight: 700; color: var(--color-sand-dark); font-size: 1.05rem; margin-bottom: 12px; }
.property-meta { display: flex; gap: 14px; flex-wrap: wrap; }
.property-meta li { font-size: 0.82rem; color: var(--color-muted); border: 1px solid var(--color-line); border-radius: 999px; padding: 4px 10px; }

/* process */
.process { background: var(--color-bg-alt); }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.process-step { text-align: center; }
.step-number { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--color-navy); color: var(--color-sand); font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin-bottom: 16px; }

/* contact */
.contact-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.contact-form { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); padding: 32px; }
.form-row { margin-bottom: 18px; }
label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; color: var(--color-navy); }
input, select { width: 100%; padding: 0.75em 0.9em; border: 1px solid var(--color-line); border-radius: 6px; background: #fff; font-family: inherit; }
input:focus, select:focus { outline: none; border-color: var(--color-sand); }
.form-status { margin-top: 14px; font-size: 0.9rem; font-weight: 700; color: var(--color-sand-dark); }

/* footer */
.site-footer { background: var(--color-navy); color: #c7d2dc; padding: 56px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .brand { color: #fff; }
.footer-brand p { max-width: 32ch; font-size: 0.88rem; margin-top: 10px; }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.footer-links h4 { color: #fff; font-family: var(--font-sans); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer-links a { display: block; font-size: 0.9rem; margin-bottom: 10px; }
.footer-links a:hover { color: var(--color-sand); }
.footer-bottom { padding: 20px 0; font-size: 0.8rem; text-align: center; }

/* floating CTA */
.floating-cta {
  position: fixed; bottom: 24px; right: 24px; background: var(--color-sand); color: #fff;
  padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(201,154,75,0.4); z-index: 90; transition: transform 0.2s ease;
}
.floating-cta:hover { transform: translateY(-3px); background: var(--color-sand-dark); }

/* responsive */
@media (max-width: 960px) {
  .properties-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .search-bar { flex-direction: column; }
}
@media (max-width: 720px) {
  .main-nav { position: absolute; top: 82px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--color-line); flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 24px 20px; display: none; }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--color-line); }
  .nav-cta { margin-top: 12px; text-align: center; }
  .nav-toggle { display: flex; }
  .properties-grid { grid-template-columns: 1fr; }
  .floating-cta { padding: 12px 18px; font-size: 0.82rem; }
  section { padding: 64px 0; }
  .hero { padding: 64px 0 48px; }
}
