/* ─────────────────────────────────────────────────────────────────────────────
   The site's look, one copy, shared by the six pages built on it:
     index.html · about.html, and the same two under es/.

   One quiet column, Apple-style: a headline, one action, a few short facts,
   the doors, a short note, a footer. The pages carry no styles of their own,
   so a change here is a change on all six; the other pages (privacy, terms,
   404) still carry their own inline styles.

   THE THEME. Each page's inline <head> script sets data-theme="light"|"dark"
   on <html> before first paint (the visitor's saved choice, else the system's),
   so the tokens below key off that attribute rather than a media query: the
   toggle has to be able to override the system.

   THE MARK. The 5050 split circle's solid left half must contrast the ground
   it sits on: near-black on a light page, white on a dark one. The divider is
   brand blue on light and a soft white on dark (the brand rules).
   ───────────────────────────────────────────────────────────────────────────── */

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --bg: #fbfbfd;
  --panel: #ffffff;
  --card: var(--panel);       /* the name the dashboard's forms use for it */
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #e3e5ea;
  --brand: #1a56db;
  --brand-hover: #1648b8;
  --brand-ink: #1a56db;
  --on-brand: #ffffff;
  --soft: #f0f4ff;
  --error: #c62828;
  --header-bg: rgba(251, 251, 253, 0.88);
  --mark-left: #0f1117;
  --mark-divider: #1a56db;
  --wordmark: #0d1837;
}

[data-theme="dark"] {
  --bg: #09111f;
  --panel: #0f1a2e;
  --ink: #f5f5f7;
  --muted: #a1a6b3;
  --line: #22304a;
  --brand-hover: #2a64e6;
  --brand-ink: #8fb0ff;
  --soft: #12203a;
  --error: #f87171;
  --header-bg: rgba(9, 17, 31, 0.88);
  --mark-left: #ffffff;
  --mark-divider: rgba(255, 255, 255, 0.35);
  --wordmark: #ffffff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul { margin: 0; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
[id] { scroll-margin-top: 76px; }

.wrap {
  max-width: 980px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* kit:header */
/* Generated from the dashboard's design kit (scripts/website-chrome.ts): edit the kit, not this. */
.site-wrap { max-width:980px; margin:0 auto; padding-left:max(20px, env(safe-area-inset-left, 0px)); padding-right:max(20px, env(safe-area-inset-right, 0px)); }
  .site-top { --mark-left:#0f1117; --mark-divider:#1a56db; --wordmark:#0d1837; --header-bg:rgba(251,251,253,.88);
    position:sticky; top:0; z-index:50; background:var(--header-bg);
    -webkit-backdrop-filter:saturate(180%) blur(16px); backdrop-filter:saturate(180%) blur(16px); border-bottom:1px solid var(--line);
    font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Helvetica Neue","Segoe UI",Roboto,Helvetica,Arial,sans-serif; }
  [data-theme="dark"] .site-top { --mark-left:#ffffff; --mark-divider:rgba(255,255,255,.35); --wordmark:#ffffff; --header-bg:rgba(9,17,31,.88); }
  .site-top.site-static { position:relative; }
  .site-top .site-wrap { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:60px; }
  .site-brand { display:inline-flex; align-items:center; gap:10px; min-height:44px; color:var(--wordmark); font-weight:600; font-size:16px; letter-spacing:-.01em; white-space:nowrap; text-decoration:none; }
  .site-brand svg { width:28px; height:28px; flex:none; }
  .site-actions { display:flex; align-items:center; gap:4px; }
  .site-link { display:inline-flex; align-items:center; min-height:44px; padding:0 10px; font-size:15px; font-weight:500; color:var(--ink); text-decoration:none; }
  .site-link:hover { color:var(--brand-ink); }
  .site-link[aria-current] { color:var(--brand-ink); font-weight:600; }
  .site-top .theme-switch { margin:0 6px 0 2px; }
  .site-top a:focus-visible, .site-top button:focus-visible { outline:2px solid var(--brand); outline-offset:3px; border-radius:8px; }
  .site-btn { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:0 18px; border:0; border-radius:999px;
    background:var(--brand); color:var(--on-brand, #fff); font:inherit; font-size:15px; font-weight:600; white-space:nowrap; cursor:pointer; text-decoration:none; transition:background-color .15s; }
  .site-btn:hover { background:color-mix(in srgb, var(--brand) 88%, #000); }
  .site-btn:active { transform:scale(.98); }
  .site-menu-btn { display:none; width:44px; height:44px; margin-right:-10px; padding:0; align-items:center; justify-content:center; background:none; border:0; border-radius:999px; color:var(--ink); cursor:pointer; }
  .site-menu-btn svg, .site-menu-close svg { width:22px; height:22px; }
  @media (max-width:699px) { .site-wide { display:none !important; } .site-menu-btn { display:inline-flex; } }
  .site-menu { position:fixed; inset:0; z-index:100; display:flex; flex-direction:column; background:var(--bg); color:var(--ink); overflow-y:auto;
    padding:max(8px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
    font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Helvetica Neue","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    opacity:0; transform:translateY(-8px); transition:opacity .2s ease, transform .2s ease; }
  .site-menu[hidden] { display:none; }
  .site-menu.open { opacity:1; transform:none; }
  @media (prefers-reduced-motion:reduce) { .site-menu { transition:none; } }
  .site-menu-top { display:flex; justify-content:flex-end; align-items:center; min-height:52px; }
  .site-menu-close { width:44px; height:44px; margin-right:-10px; padding:0; display:inline-flex; align-items:center; justify-content:center; background:none; border:0; border-radius:999px; color:inherit; cursor:pointer; }
  .site-menu-links { display:flex; flex-direction:column; margin:0; padding:8px 8px 0; list-style:none; }
  .site-menu-links a, .site-menu-links button { display:block; width:100%; padding:8px 0; background:none; border:0; text-align:left; font:inherit; font-size:28px; font-weight:600; letter-spacing:-.02em; line-height:1.2; color:inherit; text-decoration:none; cursor:pointer; }
  .site-menu-links a:hover, .site-menu-links button:hover { color:var(--brand-ink); }
  .site-menu-theme { padding:28px 8px 0; }
  .site-menu a:focus-visible, .site-menu button:focus-visible, .site-menu-btn:focus-visible { outline:2px solid var(--brand); outline-offset:2px; border-radius:8px; }
  html.site-menu-open { overflow:hidden; }
  .theme-switch { display:inline-flex; align-items:center; gap:2px; padding:2px; border-radius:999px; background:color-mix(in srgb, currentColor 9%, transparent); color:var(--ink); vertical-align:middle; }
  .theme-switch button { position:relative; width:30px; height:30px; padding:0; display:inline-flex; align-items:center; justify-content:center; background:none; border:0; border-radius:999px; color:inherit; opacity:.62; cursor:pointer; }
  .theme-switch button:hover { opacity:1; }
  .theme-switch button:focus-visible { outline:2px solid var(--brand); outline-offset:1px; }
  .theme-switch button[aria-checked="true"] { opacity:1; background:color-mix(in srgb, currentColor 16%, transparent); }
  .theme-switch svg { width:16px; height:16px; }
  /* On touch: a 36px pill whose buttons still take a 44px tap (the ::before
     reaches past the pill). */
  @media (pointer:coarse) { .theme-switch button { width:40px; height:32px; } .theme-switch button::before { content:""; position:absolute; inset:-6px 0; } }
/* /kit:header */

/* ── Buttons. One kind: the brand blue pill. ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--brand); color: var(--on-brand);
  font: inherit; font-size: 17px; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: background-color 0.15s;
}
.btn:hover { background: var(--brand-hover); text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }


/* ── Hero. Visible on first paint: no fade-in. ──
   A soft brand wash behind it that fades into the page, the same as an agent's
   profile page (owner, 2026-11-24: "make them all look the same"; the
   dashboard's agent-page.service `.hero-band`). Drawn full width under the
   centred column; `main` clips its sideways overflow. */
main { overflow-x: clip; }
.hero { padding-block: 72px 64px; text-align: center; position: relative; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  pointer-events: none;
  background:
    radial-gradient(900px 420px at 50% -80px, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--brand) 7%, var(--bg)) 0%, var(--bg) 100%);
}
.hero h1 {
  font-size: clamp(40px, 8.4vw, 72px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700;
  max-width: 13ch; margin: 0 auto; text-wrap: balance;
}
.hero .sub {
  margin: 20px auto 0; max-width: 32ch;
  font-size: clamp(19px, 2.6vw, 23px); line-height: 1.4; color: var(--muted); text-wrap: balance;
}
.hero .actions { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.phone { font-size: 16px; color: var(--muted); }
/* Words that must not break across lines ("Real Estate," and "done right." in the headline). */
.keep { white-space: nowrap; }
.phone a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; color: var(--ink); font-weight: 600; }

/* ── Sections ── */
.block { padding-block: 64px; border-top: 1px solid var(--line); }
.kicker { font-size: 15px; font-weight: 600; color: var(--brand-ink); margin-bottom: 8px; }
h2 { font-size: clamp(30px, 5.6vw, 44px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; text-wrap: balance; }
.lede { margin-top: 14px; max-width: 46ch; font-size: 19px; color: var(--muted); }

.facts { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.fact h3 { font-size: 21px; letter-spacing: -0.015em; }
.fact p { margin-top: 6px; color: var(--muted); }

/* The one worked example. */
.example { margin-top: 40px; background: var(--soft); border-radius: 22px; padding: 26px 24px; max-width: 560px; }
.example .cap { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.rows { display: grid; gap: 10px; font-variant-numeric: tabular-nums; }
.row { display: flex; justify-content: space-between; gap: 16px; font-size: 18px; }
.row.total { border-top: 1px solid var(--line); padding-top: 12px; font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.row.total span:last-child { color: var(--brand-ink); }

/* The doors: one per reason to call. */
.doors { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.door { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.door h3 { font-size: 22px; letter-spacing: -0.015em; }
.door p { color: var(--muted); flex: 1; }
.door a { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-top: 6px; font-weight: 600; }
.door a + a { margin-top: -8px; font-weight: 500; color: var(--muted); }   /* a page to read, under the card's one action */
.door a + a:hover { color: var(--ink); }

/* People (about). */
.people { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.person { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.person h3 { font-size: 22px; letter-spacing: -0.015em; }
.person .role { font-size: 15px; color: var(--brand-ink); font-weight: 600; margin-top: 2px; }
.person p:last-child { margin-top: 10px; color: var(--muted); }

.closing { text-align: center; }
.closing .lede { margin-inline: auto; }
.closing .btn { margin-top: 28px; }

/* ── The contact panel (owner, 2026-11-21: one "Contact us", one panel, two
      ways in). It opens under the hero; two tabs, Schedule a call (the
      dashboard's booking form) and Send a message (the page's lead form).
      assets/js/contact-panel.js. ── */
.contact-panel { padding-bottom: 56px; }
.contact-card {
  max-width: 720px; margin: 0 auto; padding: 18px 20px 24px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 22px;
}
.contact-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.contact-head h2 { font-size: 24px; letter-spacing: -0.02em; }
.contact-head h2:focus { outline: none; }
.contact-close {
  width: 44px; height: 44px; flex: none; padding: 0; margin-right: -8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; border-radius: 22px; color: var(--muted); cursor: pointer;
}
.contact-close:hover { color: var(--ink); background: var(--soft); }
.contact-close svg { width: 18px; height: 18px; }
.contact-status { padding: 28px 0; text-align: center; color: var(--muted); }
/* A tab's content arrives with a short fade, never piece by piece (the
   booking form is loaded in the background when the panel opens). */
.contact-panel [role="tabpanel"]:not([hidden]) { animation: contact-in 0.18s ease-out; }
@keyframes contact-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .contact-panel [role="tabpanel"]:not([hidden]) { animation: none; } }
/* The booking form stays out of sight until it has drawn whole
   (contact-panel.js), then fades in. */
#pane-call { position: relative; }
#booking { transition: opacity 0.2s ease-out; }
#booking.contact-pending { position: absolute; left: 0; right: 0; top: 0; opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { #booking { transition: none; } }
@media (max-width: 500px) { .contact-card { padding: 14px 16px 20px; } }
.contact-tabs { display: flex; gap: 4px; padding: 4px; margin: 6px 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
/* Two options that must read as two (owner, 2026-11-21: "hard to see that
   there's two different options"): the chosen one is solid brand blue, the
   other plain text on the outlined track, each with its own icon. */
.contact-tabs [role="tab"] {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 12px; border: 0; border-radius: 999px; background: none;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; cursor: pointer;
  /* The switch is instant, with no tap flash: a fade plus the browser's square
     tap highlight showed both tabs lit at once (owner, 2026-11-22: it "looked
     like it glitched both tabs"). A press gives the touch its feedback. */
  -webkit-tap-highlight-color: transparent;
}
.contact-tabs [role="tab"]:active { transform: scale(0.97); }
.contact-tabs [role="tab"] svg { width: 18px; height: 18px; flex: none; }
@media (hover: hover) { .contact-tabs [role="tab"]:not([aria-selected="true"]):hover { background: var(--soft); } }
.contact-tabs [role="tab"][aria-selected="true"] { background: var(--brand); color: var(--on-brand); }
.contact-tabs [role="tab"]:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* A phone: icon above the label, which may wrap, so both fit in any language
   ("Programar una llamada" did not, side by side, at 320px). */
@media (max-width: 420px) {
  .contact-tabs { border-radius: 18px; }
  .contact-tabs [role="tab"] { flex: 1 1 0; min-width: 0; flex-direction: column; gap: 4px; min-height: 60px; padding: 8px 6px; border-radius: 14px; white-space: normal; text-align: center; line-height: 1.2; font-size: 14px; }
}
.contact-tabs [role="tab"][hidden] { display: none; }
.contact-lede { margin-bottom: 14px; font-size: 18px; font-weight: 600; }
.contact-phone { margin-top: 18px; text-align: center; color: var(--muted); font-size: 15px; }


/* ── Footer ── */
/* kit:footer */
/* Generated from the dashboard's design kit (scripts/website-chrome.ts): edit the kit, not this. */
.site-footer{--mark-left:#0f1117;--mark-divider:#1a56db;border-top:1px solid var(--line);padding-block:32px 48px;color:var(--muted);font-size:14px;line-height:1.6;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Helvetica Neue","Segoe UI",Roboto,Helvetica,Arial,sans-serif;text-align:left}
[data-theme="dark"] .site-footer{--mark-left:#ffffff;--mark-divider:rgba(255,255,255,.35)}
.site-footer .site-foot-in{max-width:980px;margin:0 auto;padding-left:max(20px,env(safe-area-inset-left,0px));padding-right:max(20px,env(safe-area-inset-right,0px))}
.site-footer p{margin:0}
.site-footer .footer-brand{display:flex;align-items:center;gap:10px}
.site-footer .footer-brand svg{width:20px;height:20px;flex:none}
.site-footer .footer-broker{font-weight:600;color:var(--ink)}
.site-footer .links{display:flex;flex-wrap:wrap;gap:0 18px;margin:6px 0}
.site-footer .links a{display:inline-flex;align-items:center;min-height:44px;color:var(--muted);text-decoration:underline;text-underline-offset:2px}
.site-footer .links a:hover{color:var(--ink)}
.site-footer .meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 24px;margin-top:10px}
.site-footer .eho{display:inline-flex;align-items:center;gap:8px}
.site-footer .eho svg{width:22px;height:22px;flex:none}
.site-footer .social{display:flex;gap:4px}
.site-footer .social a{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);border-radius:12px}
.site-footer .social a:hover{color:var(--ink)}
.site-footer .social svg{width:18px;height:18px}
/* /kit:footer */

@media (prefers-reduced-motion: reduce) {
  .btn:active { transform: none; }
  .btn { transition: none; }
}
