@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&display=swap");
/*
 * SO ImmoConsult – shared modern design system
 * Applies to all public pages. Page-specific styles live in assets/pages/.
 */
:root {
  --so-bg: #f4f1eb;
  --so-surface: #fffdf9;
  --so-surface-strong: #ffffff;
  --so-ink: #14171b;
  --so-muted: #676d74;
  --so-dark: #080b0f;
  --so-dark-2: #10151c;
  --so-gold: #c8aa78;
  --so-gold-light: #ead6b1;
  --so-gold-dark: #8b6b3d;
  --so-line: rgba(20, 23, 27, .12);
  --so-line-dark: rgba(255, 255, 255, .11);
  --so-success: #168a4a;
  --so-danger: #c93a3a;
  --so-radius-sm: 14px;
  --so-radius-md: 20px;
  --so-radius-lg: 30px;
  --so-shadow-sm: 0 12px 34px rgba(18, 22, 27, .08);
  --so-shadow-md: 0 24px 70px rgba(18, 22, 27, .13);
  --so-shadow-lg: 0 38px 100px rgba(5, 8, 12, .22);
  --accent-color: var(--so-gold);
  --dark-bg: var(--so-dark);
  --light-text: #f8f4ec;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body.site-page {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background:
    radial-gradient(circle at 8% 0%, rgba(200,170,120,.13), transparent 24rem),
    linear-gradient(180deg, #fbfaf7 0%, var(--so-bg) 100%);
  color: var(--so-ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.site-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(20,23,27,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,23,27,.018) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 78%);
}
body.site-page h1,
body.site-page h2,
body.site-page h3,
body.site-page h4,
body.site-page .display {
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: -.028em;
  text-wrap: balance;
}
body.site-page h1 { line-height: .98; }
body.site-page h2 { line-height: 1.05; }
body.site-page p { text-wrap: pretty; }
body.site-page img { max-width: 100%; }
body.site-page a { text-underline-offset: .18em; }
body.site-page :focus-visible { outline: 3px solid rgba(200,170,120,.62); outline-offset: 3px; }

.so-skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000000;
  transform: translateY(-150%);
  padding: .75rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-weight: 800;
  box-shadow: var(--so-shadow-md);
  transition: transform .2s ease;
}
.so-skip-link:focus { transform: translateY(0); }

/* Header / navigation */
body.site-page #main-header,
body.site-page > header:first-of-type {
  border-color: var(--so-line-dark) !important;
  background: rgba(8, 11, 15, .88) !important;
  box-shadow: 0 18px 55px rgba(0,0,0,.18);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}
body.site-page #main-header .max-w-7xl,
body.site-page > header:first-of-type .max-w-7xl { min-height: 76px; }
body.site-page header img { max-height: 50px; width: auto; object-fit: contain; }
body.site-page .nav-link {
  position: relative;
  color: rgba(255,255,255,.78) !important;
  font-family: "Manrope", "Inter", system-ui, sans-serif;
  font-size: .94rem;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
}
body.site-page .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -.45rem;
  height: 1px;
  background: linear-gradient(90deg, var(--so-gold), var(--so-gold-light));
  transition: right .22s ease;
}
body.site-page .nav-link:hover { color: #fff !important; }
body.site-page .nav-link:hover::after { right: 0; }
body.site-page #mobile-menu-button,
body.site-page #close-menu-button {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #fff;
}
body.site-page #mobile-menu-overlay {
  background:
    radial-gradient(circle at 50% 12%, rgba(200,170,120,.22), transparent 18rem),
    rgba(6,8,11,.98) !important;
  backdrop-filter: blur(24px);
}
body.site-page #mobile-menu-overlay a {
  color: #fff;
  font-family: "Manrope", "Inter", system-ui, sans-serif;
  font-size: clamp(1.35rem, 6vw, 2rem);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
body.site-page #mobile-menu-overlay a:hover { color: var(--so-gold-light); }

/* Generic content pages */
body.site-page:not(.page-home) main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding-top: clamp(7.5rem, 13vw, 10rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}
body.site-page:not(.page-home) main > section,
body.site-page:not(.page-home) main > article,
body.site-page:not(.page-home) main > div {
  border-radius: var(--so-radius-lg);
}
body.page-legal main > section,
body.page-legal main > article,
body.page-legal .legal-content {
  background: rgba(255,253,249,.93) !important;
  border: 1px solid rgba(20,23,27,.10);
  box-shadow: var(--so-shadow-md);
}
body.page-legal main h1 {
  font-size: clamp(2.8rem, 7vw, 5.8rem) !important;
  color: var(--so-ink) !important;
}
body.page-legal main h2,
body.page-legal main h3 { color: var(--so-ink) !important; }
body.page-legal main p,
body.page-legal main li { color: #4f565f !important; }
body.page-legal main a { color: #75562f; font-weight: 650; }
body.page-legal .legal-main > div[id$="-content"]{
  display: grid;
  gap: 1.1rem;
}
body.page-legal .legal-main > div[id$="-content"] section{
  margin: 0 !important;
  padding: clamp(1.2rem, 2vw, 1.7rem);
  border-radius: 22px;
  border: 1px solid rgba(20,23,27,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(247,241,232,.92));
  box-shadow: 0 12px 30px rgba(18,22,27,.05);
}
body.page-legal .legal-main > div[id$="-content"] h1{
  margin-bottom: .4rem;
}
body.page-legal .legal-main > div[id$="-content"] h2{
  margin-top: 0 !important;
  font-size: clamp(1.55rem, 3.2vw, 2.2rem) !important;
}
body.page-legal .legal-main > div[id$="-content"] h3{
  color: #222831;
  font-size: 1.12rem;
}

/* Sections and cards */
body.site-page section { isolation: isolate; }
body.site-page .bg-white { background-color: var(--so-surface-strong) !important; }
body.site-page .bg-gray-50 { background-color: #f5f2ec !important; }
body.site-page .bg-black { background-color: var(--so-dark) !important; }
body.site-page .rounded-xl { border-radius: var(--so-radius-sm) !important; }
body.site-page .rounded-2xl { border-radius: var(--so-radius-md) !important; }
body.site-page .rounded-3xl { border-radius: var(--so-radius-lg) !important; }
body.site-page .shadow-sm { box-shadow: var(--so-shadow-sm) !important; }
body.site-page .shadow-lg,
body.site-page .shadow-xl,
body.site-page .shadow-2xl { box-shadow: var(--so-shadow-md) !important; }
body.site-page .border-gray-100,
body.site-page .border-gray-200,
body.site-page .border-gray-300 { border-color: var(--so-line) !important; }

/* Buttons */
body.site-page .cta-button,
body.site-page .so-btn,
body.site-page button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 50px;
  padding: .92rem 1.3rem;
  border: 1px solid rgba(255,255,255,.24) !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #e5cfa9 0%, #c6a878 52%, #9a7848 100%) !important;
  color: #16130f !important;
  font-family: "Manrope", "Inter", system-ui, sans-serif;
  font-weight: 700 !important;
  letter-spacing: 0;
  box-shadow: 0 16px 36px rgba(139,107,61,.24), inset 0 1px 0 rgba(255,255,255,.5) !important;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
body.site-page .cta-button:hover,
body.site-page .so-btn:hover,
body.site-page button[type="submit"]:hover {
  transform: translateY(-2px);
  filter: brightness(1.035);
  box-shadow: 0 22px 48px rgba(139,107,61,.32), inset 0 1px 0 rgba(255,255,255,.6) !important;
}
body.site-page .secondary-button,
body.site-page .so-btn--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 1px solid var(--so-line) !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.68) !important;
  color: var(--so-ink) !important;
  font-family: "Manrope", "Inter", system-ui, sans-serif;
  font-weight: 650 !important;
  box-shadow: none !important;
  backdrop-filter: blur(12px);
}

/* Forms */
body.site-page input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body.site-page textarea,
body.site-page select,
body.site-page .form-input,
body.site-page .so-input {
  width: 100%;
  min-height: 52px;
  padding: .9rem 1rem !important;
  border: 1px solid rgba(20,23,27,.15) !important;
  border-radius: 15px !important;
  background: rgba(255,255,255,.92) !important;
  color: #15181c !important;
  font-family: "Inter", sans-serif;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
body.site-page textarea { min-height: 130px; resize: vertical; }
body.site-page input::placeholder,
body.site-page textarea::placeholder { color: #8a9097 !important; }
body.site-page input:focus,
body.site-page textarea:focus,
body.site-page select:focus {
  outline: none !important;
  border-color: rgba(139,107,61,.6) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(200,170,120,.17) !important;
}
body.site-page input[type="checkbox"],
body.site-page input[type="radio"] { accent-color: var(--so-gold-dark); }
body.site-page label { font-weight: 650; }

/* Tables */
body.site-page table { border-collapse: separate; border-spacing: 0; }
body.site-page th { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
body.site-page tr { transition: background-color .18s ease; }
body.site-page tbody tr:hover { background: rgba(200,170,120,.07); }

/* Shared floating UI */
.so-hidden { display: none !important; }
#so-toast-container {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 999999;
  display: flex;
  width: min(580px, calc(100% - 2rem));
  transform: translateX(-50%);
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
#so-exit-modal {
  position: fixed;
  inset: 0;
  z-index: 999998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(3,5,8,.76);
  backdrop-filter: blur(14px);
}
#so-exit-modal > div {
  width: min(580px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 40px 120px rgba(0,0,0,.46);
}
#so-exit-modal > div > div:first-child {
  background: linear-gradient(135deg, #0a0e13, #171e27);
}
#so-sticky-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99997;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#so-sticky-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .78rem 1rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: #fff;
  font-size: .88rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 16px 38px rgba(0,0,0,.24);
  backdrop-filter: blur(12px);
  transition: transform .2s ease, box-shadow .2s ease;
}
#so-sticky-actions a:hover { transform: translateY(-2px); box-shadow: 0 22px 48px rgba(0,0,0,.3); }
#so-sticky-actions a[href*="wa.me"] { background: linear-gradient(135deg, #1da85d, #08723c); }
#so-sticky-actions a:not([href*="wa.me"]) { background: linear-gradient(135deg, #1d252f, #080b0f); }

/* Footer */
body.site-page footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--so-line-dark) !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(200,170,120,.16), transparent 24rem),
    linear-gradient(145deg, #080b0f, #111720) !important;
  color: #fff;
}
body.site-page footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 34px 34px;
}
body.site-page footer > * { position: relative; }
body.site-page footer h4 { color: #fff !important; }
body.site-page footer p,
body.site-page footer li,
body.site-page footer address { color: rgba(255,255,255,.66) !important; }
body.site-page footer a { color: rgba(255,255,255,.78); }
body.site-page footer a:hover { color: var(--so-gold-light); }

/* Motion */
[data-so-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.75,.25,1);
}
[data-so-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-so-reveal] { opacity: 1; transform: none; }
}

@media (max-width: 767px) {
  html { scroll-padding-top: 88px; }
  body.site-page:not(.page-home) main { width: min(100% - 1rem, 1180px); padding-top: 6.5rem; }
  body.site-page #main-header .max-w-7xl,
  body.site-page > header:first-of-type .max-w-7xl { min-height: 66px; }
  #so-sticky-actions {
    right: 8px;
    bottom: 8px;
    left: 8px;
    flex-direction: row;
    justify-content: center;
    padding: 7px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    background: rgba(8,11,15,.78);
    backdrop-filter: blur(16px);
  }
  #so-sticky-actions a { flex: 1; min-width: 0; min-height: 44px; padding: .65rem .7rem; border-radius: 14px; font-size: .78rem; }
  body.site-page footer { padding-bottom: 6.5rem !important; }
}

/* Migrated inline presentation helpers */
.so-accent { color: var(--so-gold-dark) !important; }
.so-dark-section { background-color: var(--so-dark) !important; }
.so-progress-initial { width: 0; }
.so-accent-control { accent-color: var(--so-gold-dark); }
.so-link-white { color: #fff !important; }
.so-borderless-frame { border: 0 !important; }
.so-field-spacing { margin-bottom: 20px; }
.so-source-note { font-size: .65rem; }
body.site-page .so-btn-whatsapp {
  border-color: #168b4d !important;
  background: linear-gradient(135deg, #24b86a, #08723c) !important;
  color: #fff !important;
}
body.site-page .so-btn-phone {
  border-color: #111827 !important;
  background: linear-gradient(135deg, #222c39, #0b1017) !important;
  color: #fff !important;
}
body.page-legal main.legal-main {
  background: transparent !important;
  padding-inline: 0 !important;
}
