/* ===========================================================
   Managerial Real Estate · Carlos Herman
   Fonts:  Source Serif 4 (display) · Source Sans 3 (UI/body)
   Palette: Navy #0F2A4A · Gold #C9A24B · KW Red #B5252A
            Green tasar #2E7D4F · Body bg #F5F5F4 · Soft #EFEFEC
   =========================================================== */

:root {
  --navy:        #0F2A4A;
  --navy-700:    #1B3A60;
  --navy-100:    #6B7A91;
  --gold:        #C9A24B;
  --gold-soft:   #E0C384;
  --red:         #B5252A;
  --red-700:     #971C20;
  --green:       #2E7D4F;
  --green-700:   #1F6B3F;
  --gray-btn:    #BDBFC4;
  --gray-btn-700:#A8AAAF;
  --ink:         #1A2238;
  --ink-soft:    #4A5468;
  --line:        #E4E5E8;
  --bg:          #FFFFFF;
  --bg-soft:     #F1F2F4;
  --bg-help:     #ECEEF1;
  --shadow-card: 0 2px 8px rgba(15, 42, 74, 0.06), 0 12px 28px rgba(15, 42, 74, 0.08);

  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans:  "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-size: 16px;
  line-height: 1.55;
}

/* ===================== HEADER ===================== */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.brand-link { color: inherit; }

.brand-logo {
  width: 44px;
  height: 60px;
  flex-shrink: 0;
}

.brand-text {
  line-height: 1;
}
.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.5px;
  color: var(--navy);
}
.brand-sub {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 3.5px;
  color: var(--navy);
  margin-top: 2px;
}
.brand-divider {
  height: 1px;
  background: var(--line);
  margin: 8px 0 6px;
  width: 70%;
}
.brand-agent {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
}
.brand-kw {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: 2.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* Contact pill */
.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.contact-pill i {
  font-size: 18px;
  color: var(--ink-soft);
}
.contact-pill strong {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.2;
}
.contact-pill em {
  display: block;
  font-style: normal;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.2;
}
.contact-pill:hover strong { color: var(--navy); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--ink-soft);
  font-size: 18px;
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--bg-soft); color: var(--navy); }

/* ===================== NAV ===================== */
.primary-nav {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}
.primary-nav .nav-link {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink-soft);
  padding: 14px 8px;
  position: relative;
  transition: color .15s;
}
.primary-nav .nav-link:hover { color: var(--navy); }
.primary-nav .nav-link.active {
  color: var(--navy);
  font-weight: 600;
}
.primary-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  height: clamp(280px, 38vw, 460px);
  overflow: hidden;
}
.hero-image {
  position: absolute;
  inset: 0;
  background-image: url("images/panoramica.jpg");
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,42,74,.55) 0%, rgba(15,42,74,.18) 55%, rgba(15,42,74,0) 100%);
}
.hero-inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 24px;
  padding-bottom: 24px;
  color: #fff;
}
.hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.18;
  color: #fff;
  margin: 0 0 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
  max-width: 900px;
}
.hero-strong { font-weight: 700; }
.hero-accent { color: var(--gold-soft); font-weight: 600; }

.hero-sub {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.8vw, 18px);
  margin: 0 0 4px;
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.hero-locations {
  font-family: var(--font-sans);
  font-size: clamp(14px, 1.6vw, 17px);
  color: rgba(255,255,255,.92);
  margin: 0;
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
}

/* ===================== PROFILE ===================== */
.profile-section {
  padding: 44px 0 56px;
  background: var(--bg);
}
.profile-photo {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 5 / 6;
  border-radius: 6px;
  overflow: hidden;
  background: #e9eaec;
  box-shadow: var(--shadow-card);
}
.profile-photo svg { width: 100%; height: 100%; display: block; }

.profile-name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  color: var(--navy);
  margin: 0 0 14px;
  letter-spacing: -.5px;
}
.profile-role {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  margin: 0 0 6px;
}
.profile-affiliation {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  margin: 0 0 18px;
}
.profile-pitch {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0 0 22px;
  max-width: 620px;
}

.contact-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
}
.contact-line i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--bg);
}
.contact-line:hover { color: var(--navy); }
.contact-line:hover i { color: var(--navy); border-color: var(--navy-100); }

/* ===================== BUTTONS ===================== */
.btn-mre {
  height: 55px;
  --pad-y: 12px;
  --pad-x: 22px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 6px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  transition: transform .12s ease, box-shadow .15s ease, background .15s, border-color .15s;
  letter-spacing: 0.1px;
  white-space: nowrap;
}
.btn-mre i { font-size: 16px; }
.btn-mre:hover { transform: translateY(-1px); color: #fff; box-shadow: 0 6px 14px rgba(15,42,74,.18); }
.btn-mre:active { transform: translateY(0); }

.btn-mre-green { background: var(--green); }
.btn-mre-green:hover { background: var(--green-700); }

.btn-mre-navy  { background: var(--navy); }
.btn-mre-navy:hover { background: var(--navy-700); }

.btn-mre-gray  { background: var(--gray-btn); color: var(--ink); }
.btn-mre-gray:hover { background: var(--gray-btn-700); color: var(--ink); }
.btn-mre-gray i { color: var(--ink-soft); }

.btn-mre-red   { background: var(--red); }
.btn-mre-red:hover { background: var(--red-700); }

/* ===================== HELP / SERVICE CARDS ===================== */
.help-section {
  padding: 56px 0 44px;
  background: var(--bg-help);
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(26px, 2.6vw, 34px);
  color: var(--navy);
  margin: 0 0 28px;
  letter-spacing: -.3px;
}
.title-accent {
  position: relative;
  font-weight: 700;
}
.title-accent::after {
  content: "";
  position: absolute;
  left: 0%;
  right: 0%;
  bottom: 0px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

.service-card {
  background: var(--bg);
  border-radius: 10px;
  padding: 16px 18px 22px;
  box-shadow: var(--shadow-card);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(15,42,74,.08), 0 18px 36px rgba(15,42,74,.10);
}
.service-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  background-color: #e9eaec;
  margin-bottom: 18px;
}
.service-image-vender {
  background-image: url("images/vender.jpg");
}
.service-image-comprar {
  background-image: url("images/comprar.jpg");
}
.service-image-invertir {
  background-image: url("images/invertir.jpg");
}

.service-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 28px);
  color: var(--navy);
  text-align: center;
  margin: 0 0 6px;
}
.service-title strong { font-weight: 700; }

.service-text {
  text-align: center;
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

/* ===================== TAGLINE ===================== */
.tagline-section {
  padding: 10px 0 60px;
  background: var(--bg-help);
}
.tagline {
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--ink);
  margin: 0;
}
.tagline strong { color: var(--navy); font-weight: 600; }

.values-row {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  font-size: 17px;
  color: var(--ink-soft);
}
.values-row li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.values-row i {
  color: var(--navy);
  font-size: 18px;
}

/* ===================== WHATSAPP FAB ===================== */
.wa-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
  z-index: 1000;
  transition: transform .15s ease, box-shadow .15s ease;
}
.wa-fab:hover {
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55);
}
.wa-fab::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.35);
  animation: wa-pulse 2.2s ease-out infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(.85); opacity: .8; }
  80%  { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* ===================== RESPONSIVE TWEAKS ===================== */
@media (max-width: 991.98px) {
  .primary-nav .nav { flex-wrap: wrap; }
  .primary-nav .nav-link { padding: 10px 6px; font-size: 14px; }
  .contact-pill { justify-content: flex-start; }
}

@media (max-width: 575.98px) {
  .hero { height: 320px; }
  .hero-title { font-size: 24px; line-height: 1.22; }
  .profile-photo { max-width: 180px; margin: 0 auto; }
  .profile-section { text-align: center; }
  .profile-section .profile-pitch,
  .profile-section .profile-actions,
  .profile-section .profile-contact { justify-content: center; }
  .profile-actions .btn-mre { flex: 1 1 100%; }
  .brand-text .brand-divider { width: 50%; }
  .wa-fab { right: 14px; bottom: 14px; }
}
