/* =========================================================================
   Varela Rudyk - Brokers Inmobiliarios
   Trust-first real-estate theme
   Palette: #15467A ocean blue primary + #B8893E warm gold accent + cool grey neutrals
   Typography: Sora (display/headings) + Manrope (body)
   Mobile-first. Breakpoints: 480 / 768 / 1024 / 1280px
   Radius system: cards 14px, inputs 10px, buttons pill (999px)
   ========================================================================= */

:root {
  /* Brand colors */
  --color-primary: #15467A;
  --color-primary-dark: #0C2D4D;
  --color-primary-light: #2A5F92;
  --color-primary-soft: #E8EFF7;
  --color-primary-tint: #F0F5FA;
  --color-accent: #B8893E;
  --color-accent-dark: #956E2F;
  --color-accent-soft: #F5EDDD;
  --color-success: #2E7D5B;

  /* Neutrals (cool grey) */
  --color-ink: #0F1B2D;
  --color-body: #3D4D63;
  --color-muted: #6A7890;
  --color-line: #DCE3ED;
  --color-line-soft: #E8EDF4;
  --color-bg: #FFFFFF;
  --color-bg-soft: #F3F6FA;
  --color-bg-card: #FFFFFF;
  --color-bg-dark: #0C2D4D;

  /* Status */
  --c-error: #B91C1C;
  --c-error-bg: #FDF2F2;

  /* Typography */
  --font-display: 'Sora', system-ui, -apple-system, Arial, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, Arial, sans-serif;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 5.5rem;

  /* Radius */
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* Layout */
  --container: 1200px;
  --header-h: 72px;

  /* Shadows (tinted to background hue) */
  --shadow-sm: 0 1px 3px rgba(15, 27, 45, 0.07), 0 1px 2px rgba(15, 27, 45, 0.05);
  --shadow-md: 0 4px 16px rgba(21, 70, 122, 0.09), 0 2px 6px rgba(15, 27, 45, 0.05);
  --shadow-lg: 0 20px 48px rgba(21, 70, 122, 0.14), 0 6px 16px rgba(15, 27, 45, 0.06);

  /* Transitions */
  --t-fast: 0.18s ease;
  --t-med: 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-slow: 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-body);
  line-height: 1.7;
  font-size: 1rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; height: auto; }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--color-primary-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-ink);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.625rem, 3.2vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }

p { max-width: 65ch; }

ul { list-style: none; }

/* Focus visible */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Accessibility helpers ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 0;
  top: -100px;
  z-index: 2000;
  background: var(--color-ink);
  color: #fff;
  padding: 0.7rem 1.3rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 0 0 8px 0;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section--soft { background: var(--color-bg-soft); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 3.5rem); }

.text-center { text-align: center; }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }

/* ---------- Section heading ---------- */
.section-head {
  margin-bottom: var(--space-6);
  max-width: 60ch;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head h2 { margin-bottom: var(--space-3); }
.section-head .lead {
  font-size: 1.1rem;
  color: var(--color-muted);
  line-height: 1.65;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: var(--space-3);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--t-fast), background var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(21, 70, 122, 0.22);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  box-shadow: 0 6px 20px rgba(21, 70, 122, 0.3);
}

.btn--accent {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(184, 137, 62, 0.22);
}
.btn--accent:hover {
  background: var(--color-accent-dark);
  color: #fff;
  box-shadow: 0 6px 20px rgba(184, 137, 62, 0.3);
}

.btn--white {
  background: #fff;
  color: var(--color-primary-dark);
}
.btn--white:hover { background: var(--color-bg-soft); color: var(--color-primary-dark); }

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-line);
}
.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
  background: var(--color-primary-tint);
}

.btn--ghost-light {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn--ghost-light:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.btn--secondary {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}
.btn--secondary:hover {
  background: var(--color-primary-tint);
  color: var(--color-primary-dark);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--t-fast), border-color var(--t-fast);
}
.site-header.scrolled {
  box-shadow: 0 2px 12px rgba(15,27,45,0.06);
  border-bottom-color: var(--color-line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}
.brand { display: inline-flex; flex-shrink: 0; }
.brand-logo { width: auto; height: 40px; }

/* Desktop nav */
.primary-nav {
  display: none;
  align-items: center;
  gap: var(--space-5);
}
.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.nav-list a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-ink);
  padding: 0.4rem 0;
  position: relative;
}
.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--t-fast);
}
.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after { width: 100%; }
.nav-list a:hover { color: var(--color-primary); }

.nav-cta { display: flex; align-items: center; gap: var(--space-4); }
.nav-cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary-dark);
  white-space: nowrap;
}
.nav-cta-phone svg { color: var(--color-accent); }

/* Hamburger */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--color-line);
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 0 10px;
  z-index: 1100;
  position: relative;
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform var(--t-med), opacity var(--t-fast);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile nav drawer */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12,45,77,0.4);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-med), visibility var(--t-med);
}
.nav-overlay.open { opacity: 1; visibility: visible; }

@media (max-width: 1023px) {
  .primary-nav {
    display: flex;
    position: fixed;
    top: 0;
    right: -100%;
    width: min(340px, 85vw);
    height: 100vh;
    height: 100dvh;
    background: var(--color-bg);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: calc(var(--header-h) + 1rem) 1.5rem 2rem;
    box-shadow: -8px 0 30px rgba(15,27,45,0.12);
    transition: right var(--t-med);
    z-index: 1080;
    gap: 1.5rem;
    overflow-y: auto;
  }
  .primary-nav.open { right: 0; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-list li { border-bottom: 1px solid var(--color-line-soft); }
  .nav-list a {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
  }
  .nav-list a::after { display: none; }
  .nav-cta { flex-direction: column; align-items: stretch; gap: 1rem; }
  .nav-cta-phone { justify-content: center; padding: 0.6rem; }
  .nav-toggle { display: inline-flex; }
}

@media (min-width: 1024px) {
  .primary-nav { display: flex; }
  .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--color-primary-dark) 0%, var(--color-primary) 55%, #1A5085 100%);
  color: #fff;
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(184,137,62,0.15), transparent 65%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.15;
  margin-bottom: var(--space-4);
}
.hero-text {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.88);
  max-width: 50ch;
  margin-bottom: var(--space-5);
}
.hero .eyebrow { color: var(--color-accent); }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.hero-art { display: none; }
.hero-art img {
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}

@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--space-7); }
  .hero-art { display: block; }
}

/* ---------- Search bar ---------- */
.search-bar {
  background: var(--color-bg);
  border-radius: var(--r-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-top: var(--space-6);
  max-width: 100%;
}
.search-field { display: flex; flex-direction: column; gap: 0.35rem; }
.search-field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--color-muted);
  letter-spacing: 0.04em;
}
.search-field select {
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--color-line);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-ink);
  background: var(--color-bg);
  cursor: pointer;
  transition: border-color var(--t-fast);
}
.search-field select:focus { border-color: var(--color-primary); outline: none; }
.search-submit { display: flex; align-items: flex-end; }

@media (min-width: 600px) {
  .search-bar { grid-template-columns: 1fr 1fr 1fr auto; align-items: end; }
}

/* ---------- Property cards ---------- */
.properties-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 600px) { .properties-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .properties-grid { grid-template-columns: repeat(3, 1fr); } }

.prop-card {
  background: var(--color-bg-card);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-line-soft);
  transition: transform var(--t-med), box-shadow var(--t-med);
  display: flex;
  flex-direction: column;
}
.prop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.prop-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--color-primary-soft);
}
.prop-media svg { width: 100%; height: 100%; }
.prop-tags {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.tag {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-pill);
  letter-spacing: 0.02em;
}
.tag--venta { background: var(--color-primary); color: #fff; }
.tag--alquiler { background: var(--color-success); color: #fff; }
.tag--destacada { background: var(--color-accent); color: #fff; }
.tag--oportunidad { background: #C2410C; color: #fff; }

.prop-body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
.prop-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-ink);
}
.prop-loc {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}
.prop-loc svg { flex-shrink: 0; color: var(--color-accent); }
.prop-specs {
  display: flex;
  gap: var(--space-4);
  padding-block: 0.5rem;
  border-top: 1px solid var(--color-line-soft);
  border-bottom: 1px solid var(--color-line-soft);
}
.prop-specs li {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.875rem;
  color: var(--color-body);
}
.prop-specs svg { color: var(--color-primary); flex-shrink: 0; }
.prop-desc {
  font-size: 0.925rem;
  color: var(--color-body);
  line-height: 1.6;
  flex: 1;
}
.prop-cta { margin-top: auto; padding-top: 0.4rem; }

/* ---------- Services (asymmetric grid) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 600px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
}

.service-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--r-lg);
  padding: var(--space-5);
  transition: border-color var(--t-med), box-shadow var(--t-med), transform var(--t-med);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.service-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.service-card .icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: var(--color-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.service-card .icon img { width: 30px; height: 30px; }
.service-card h3 { color: var(--color-ink); }
.service-card p { font-size: 0.95rem; color: var(--color-body); }

/* ---------- Stats band ---------- */
.stats-band {
  background: var(--color-bg-dark);
  color: #fff;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat span {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.78);
}

/* ---------- About split ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
}
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: var(--space-7); }
}
.about-art img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.about-copy .lead {
  font-size: 1.1rem;
  color: var(--color-body);
  margin-bottom: var(--space-4);
}
.checklist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: var(--space-5);
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--color-body);
}
.checklist svg {
  flex-shrink: 0;
  color: var(--color-success);
  margin-top: 3px;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial {
  background: var(--color-bg-card);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--r-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.testimonial .stars { color: var(--color-accent); font-size: 1.1rem; letter-spacing: 2px; }
.testimonial blockquote {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-ink);
  font-style: italic;
  flex: 1;
}
.testimonial figcaption cite {
  display: flex;
  flex-direction: column;
  font-style: normal;
}
.testimonial figcaption strong {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-ink);
  font-size: 0.95rem;
}
.testimonial figcaption span {
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-fast);
}
.faq-item[open] { border-color: var(--color-primary-light); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--color-ink);
  list-style: none;
  user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-icon {
  flex-shrink: 0;
  color: var(--color-accent);
  transition: transform var(--t-med);
}
.faq-item[open] .faq-icon { transform: rotate(180deg); }
.faq-a {
  padding: 0 1.3rem 1.2rem;
  color: var(--color-body);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  padding-block: clamp(3rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(184,137,62,0.12), transparent 60%);
  pointer-events: none;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band p { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 55ch; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1.3fr 1fr; gap: var(--space-7); align-items: start; }
}

/* Forms */
.contact-form {
  background: var(--color-bg-card);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--r-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 480px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-ink);
}
.req { color: var(--c-error); }
.form-control {
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--color-line);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-ink);
  background: var(--color-bg);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  width: 100%;
}
.form-control::placeholder { color: var(--color-muted); }
.form-control:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(21,70,122,0.12);
}
textarea.form-control { min-height: 120px; resize: vertical; }
.form-group.has-error .form-control {
  border-color: var(--c-error);
  box-shadow: 0 0 0 3px rgba(185,28,28,0.1);
}
.form-error {
  font-size: 0.85rem;
  color: var(--c-error);
  min-height: 1.2em;
}
.form-success {
  background: #E8F5EF;
  color: #1B5E3F;
  border: 1px solid #A5D6A7;
  border-radius: var(--r-md);
  padding: 0.9rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Contact info card */
.contact-info { display: flex; flex-direction: column; gap: var(--space-4); }
.info-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--r-lg);
  padding: var(--space-5);
}
.info-card h3 { margin-bottom: var(--space-4); color: var(--color-ink); }
.info-list { display: flex; flex-direction: column; gap: var(--space-4); }
.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: var(--color-body);
}
.info-list svg { flex-shrink: 0; color: var(--color-accent); margin-top: 3px; }
.info-list strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 0.15rem;
}

.map-embed {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--color-line-soft);
  box-shadow: var(--shadow-sm);
}
.map-embed iframe { width: 100%; height: 280px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.7);
  padding-top: var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-7);
}
@media (min-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; } }

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-block: var(--space-3);
  max-width: 40ch;
}
.footer-social { display: flex; gap: 0.6rem; margin-top: var(--space-3); }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  transition: background var(--t-fast), color var(--t-fast);
}
.footer-social a:hover { background: var(--color-accent); color: #fff; }

.footer-col h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-4);
  font-family: var(--font-display);
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li { font-size: 0.9rem; color: rgba(255,255,255,0.65); }
.footer-col ul li a { color: rgba(255,255,255,0.65); }
.footer-col ul li a:hover { color: var(--color-accent); }
.footer-col .info-list li { color: rgba(255,255,255,0.65); }
.footer-col .info-list svg { color: var(--color-accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-block: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-fab {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  width: 56px;
  height: 56px;
  border-radius: var(--r-pill);
  background: #1FA653;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(31,166,83,0.4);
  z-index: 900;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.whatsapp-fab svg { width: 30px; height: 30px; }
.whatsapp-fab:hover {
  transform: scale(1.06);
  background: #1FA653;
  color: #fff;
  box-shadow: 0 8px 26px rgba(31,166,83,0.5);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

/* ---------- Page hero (sub-pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(184,137,62,0.12), transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: var(--space-3); }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 55ch; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: var(--space-4);
  color: rgba(255,255,255,0.6);
}
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span[aria-current] { color: var(--color-accent); }

/* ---------- Propiedades page layout ---------- */
.props-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 1024px) {
  .props-layout { grid-template-columns: 260px 1fr; align-items: start; }
}

.filters-panel {
  background: var(--color-bg-card);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--r-lg);
  padding: var(--space-5);
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.filters-panel h3 {
  font-size: 1.05rem;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-line-soft);
}
.filter-group { margin-bottom: var(--space-5); }
.filter-group h4 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin-bottom: var(--space-3);
}
.filter-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
  font-size: 0.925rem;
  color: var(--color-body);
  cursor: pointer;
}
.filter-option input { accent-color: var(--color-primary); width: 16px; height: 16px; }

.props-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}
.props-count { font-size: 0.95rem; color: var(--color-muted); }
.props-count strong { color: var(--color-ink); font-family: var(--font-display); }

.filters-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border: 1.5px solid var(--color-line);
  border-radius: var(--r-md);
  background: var(--color-bg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--color-ink);
}
@media (min-width: 1024px) { .filters-toggle { display: none; } }

@media (max-width: 1023px) {
  .filters-panel { display: none; }
  .filters-panel.open { display: block; position: static; }
}

.no-results {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  color: var(--color-muted);
}
.no-results.hidden { display: none; }
.prop-card.hidden { display: none; }

/* ---------- Nosotros page ---------- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 600px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }

.team-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--r-lg);
  padding: var(--space-5);
  text-align: center;
}
.team-card .avatar {
  width: 88px;
  height: 88px;
  border-radius: var(--r-pill);
  background: var(--color-primary-soft);
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
}
.team-card h3 { margin-bottom: 0.25rem; }
.team-card .role { color: var(--color-accent-dark); font-weight: 600; font-size: 0.9rem; font-family: var(--font-display); margin-bottom: var(--space-3); }
.team-card p { font-size: 0.925rem; color: var(--color-body); }

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 600px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }

.value-item {
  padding: var(--space-4) 0;
}
.value-item .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 0.3rem;
}
.value-item h3 { margin-bottom: 0.4rem; }
.value-item p { font-size: 0.95rem; color: var(--color-body); }

/* ---------- Servicios page: detailed service blocks ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--color-line-soft);
}
.service-detail:last-child { border-bottom: none; }
@media (min-width: 768px) {
  .service-detail { grid-template-columns: 1fr 1fr; gap: var(--space-7); }
  .service-detail--rev .service-detail-text { order: 2; }
}
.service-detail-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--r-lg);
  background: var(--color-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.service-detail-icon img { width: 36px; height: 36px; }
.service-detail-text h3 { margin-bottom: var(--space-3); }
.service-detail-text p { margin-bottom: var(--space-3); color: var(--color-body); }
.service-detail-text ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: var(--space-4);
}
.service-detail-text ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--color-body);
}
.service-detail-text ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--color-accent);
  margin-top: 9px;
  flex-shrink: 0;
}

.feature-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
@media (min-width: 600px) { .feature-band { grid-template-columns: repeat(3, 1fr); } }
.feature-tile {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--r-lg);
  padding: var(--space-5);
}
.feature-tile strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.feature-tile span { font-size: 0.925rem; color: rgba(255,255,255,0.85); }

/* ---------- Responsive utilities ---------- */
@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .whatsapp-fab, .nav-toggle, .nav-overlay { display: none !important; }
  .hero, .cta-band { background: #fff !important; color: #000 !important; }
  .hero h1, .hero p { color: #000 !important; }
}
