@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fonts/outfit.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fonts/figtree.woff2") format("woff2"); }

:root {
  --ink: #141b2b;
  --ink-soft: #3c4a60;
  --muted: #6b7484;
  --paper: #faf8f4;
  --tint: #f1ece3;
  --line: #e3ddd2;
  --accent: #a87a12;
  --brand-yellow: #f6d547;
  --accent-soft: #fbf0c4;
  --whatsapp: #1f9d55;
  --radius: 14px;
  --display: "Outfit", system-ui, sans-serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
h1 em { font-style: normal; color: var(--accent); }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .9em;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 36em; }
.ico { width: 18px; height: 18px; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.4em; border-radius: 999px;
  font: 600 1rem var(--sans); text-decoration: none;
  border: 1.5px solid transparent; transition: transform .15s, background .15s, color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-small { padding: .6em 1.1em; font-size: .93rem; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #232d43; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #188547; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 248, 244, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 84px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 58px; width: auto; }
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a { text-decoration: none; font-weight: 500; color: var(--ink-soft); }
.main-nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 64px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-photo { margin: 0; position: relative; }
.hero-photo img {
  border-radius: 22px; width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 55% 30%;
  box-shadow: 0 30px 60px -30px rgba(21, 35, 58, .45);
}
.hero-photo figcaption {
  position: absolute; left: -24px; bottom: 28px;
  background: #fff; border-radius: 12px; padding: 12px 16px;
  box-shadow: 0 12px 30px -12px rgba(21, 35, 58, .35);
  display: flex; flex-direction: column; font-size: .85rem; color: var(--muted);
}
.rating { font-weight: 600; color: var(--ink); font-size: .95rem; }
.stars { color: #e3bc00; letter-spacing: 1px; margin-right: 4px; }

.trust {
  list-style: none; padding: 0; margin: 56px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.trust li { padding: 22px 20px 0 0; display: flex; flex-direction: column; }
.trust li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.trust strong { font-family: var(--display); font-size: 1.9rem; font-weight: 600; line-height: 1.1; }
.trust span { color: var(--muted); font-size: .92rem; }

/* Sections */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p:last-child { color: var(--ink-soft); }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head-row h2 { margin: 0; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service { background: var(--paper); padding: 32px 28px; }
.service-num { font-family: var(--display); color: var(--accent); font-size: .95rem; font-weight: 600; display: block; margin-bottom: 18px; }
.service p { color: var(--ink-soft); margin: 0; font-size: .98rem; }

/* Listings */
.listings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.listing {
  background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none;
  display: flex; flex-direction: column; border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s;
}
.listing:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(21, 35, 58, .4); }
.listing-photo { position: relative; aspect-ratio: 4 / 3; background: var(--line); }
.listing-photo img { width: 100%; height: 100%; object-fit: cover; }
.listing-tag {
  position: absolute; top: 12px; left: 12px; background: var(--paper); color: var(--ink);
  font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; letter-spacing: .03em;
}
.listing-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 2px; }
.listing-op { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 600; }
.listing-title { font-family: var(--display); font-size: 1.2rem; font-weight: 600; }
.listing-zone { color: var(--muted); font-size: .92rem; }
.listing-details { color: var(--ink-soft); font-size: .92rem; margin-top: 6px; }
.listing-price { font-family: var(--display); font-size: 1.5rem; font-weight: 600; margin-top: 10px; }
.listing-more {
  border: 1.5px dashed #cfc6b6; background: transparent; justify-content: center; align-items: center;
  text-align: center; padding: 32px; gap: 10px; color: var(--ink-soft);
}
.listing-more strong { font-family: var(--display); font-size: 1.35rem; font-weight: 600; color: var(--ink); }
.listing-cta {
  margin-top: 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 22px 26px; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line);
}
.listing-cta p { margin: 0; color: var(--ink-soft); }
.listing-cta strong { color: var(--ink); }

/* About */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 72px; align-items: start; }
.about-copy > p { color: var(--ink-soft); }
.team { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 20px 32px; }
.team li { display: flex; align-items: center; gap: 12px; }
.team strong { display: block; font-weight: 600; }
.team small { color: var(--muted); }
.avatar {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-family: var(--display); font-weight: 600;
}
.quotes { display: flex; flex-direction: column; gap: 18px; }
.quotes blockquote { margin: 0; padding: 24px 26px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.quotes blockquote p { font-family: var(--display); font-size: 1.12rem; line-height: 1.5; color: var(--ink); margin-bottom: .6em; }
.quotes cite { font-style: normal; font-size: .88rem; color: var(--muted); }
.text-link { color: var(--ink); font-weight: 600; text-decoration-color: var(--accent); text-underline-offset: 4px; }

/* Contact */
.section-ink { background: var(--ink); color: #fff; }
.section-ink .lead { color: #c6cedb; }
.section-ink .eyebrow { color: var(--brand-yellow); }
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.contact-data { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin: 0; }
.contact-data dt { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-yellow); font-weight: 600; margin-bottom: 6px; }
.contact-data dd { margin: 0; color: #dfe4ec; }
.contact-data a { color: #fff; }

/* Footer */
.site-footer { background: #0d1220; color: #8f9ab0; font-size: .9rem; }
.footer-logo { height: 40px; width: auto; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 20px; }
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; gap: 20px; }
.footer-inner a { color: #c6cedb; text-decoration: none; }

/* Floating WhatsApp */
.fab-whatsapp {
  position: fixed; right: 18px; bottom: 18px; z-index: 30;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--whatsapp); color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .4);
}
.fab-whatsapp svg { width: 28px; height: 28px; }

/* Responsive */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .header-call { margin-left: auto; }
  .hero-grid, .about, .contact { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo figcaption { left: 12px; bottom: 12px; }
  .services, .listings { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: 1fr 1fr; }
  .trust li:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .header-inner { height: 64px; }
  .brand img { height: 40px; }
  .header-call span { display: none; }
  .header-call { padding: .6em; }
  .hero { padding: 36px 0 40px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .section { padding: 64px 0; }
  .services, .listings { grid-template-columns: 1fr; }
  .contact-data { grid-template-columns: 1fr; }
  .trust { margin-top: 36px; }
}

/* Páginas legales */
.legal-header .header-inner { justify-content: space-between; }
.legal { max-width: 760px; margin: 0 auto; padding: 56px 20px 88px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: .3em; }
.legal .updated { color: var(--muted); font-size: .92rem; margin-bottom: 2.5em; }
.legal h2 { font-size: 1.35rem; margin: 2.2em 0 .7em; }
.legal h3 { font-size: 1.08rem; margin: 1.8em 0 .5em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: .5em; }
.legal li strong, .legal p strong { color: var(--ink); }
.legal .datos { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 1em 0 1.5em; }
.legal .datos p { margin: 0 0 .35em; }
.legal a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* Inmueble sin foto */
.listing-photo.no-photo { display: grid; place-items: center; background: var(--accent-soft); }
.listing-photo.no-photo .placeholder { width: 72px; height: 72px; opacity: .85; }
