/* ==========================================================================
   CasasDelMayoreo.com — bright theme, shared with WholesaleDistrictHomes.com
   White and lightly tinted surfaces, soft cards, pill buttons. Navy for text,
   the identity bar and the footer; gold is the accent.
   Type: Playfair Display (headings) / Inter (UI) / Cormorant Garamond (paragraphs).
   Built for large type, generous spacing, two columns at most, and text that
   may run about a quarter longer in Spanish.
   ========================================================================== */

:root {
  --navy: #0B1F3A;
  --navy-2: #163259;
  --gold: #F2B33D;
  --gold-d: #E3A223;
  --gold-light: #FFD77A;
  --gold-ink: #8A6100;
  --gold-soft: #FFF3D2;
  --sun: #FFF9EA;
  --mist: #F1F6FC;
  --paper: #FFFFFF;
  --line: #E1E8F1;
  --slate: #33445C;
  --muted: #5A6B82;
  --blue: #1D5FBF;
  --link: #0B6FB8;
  --display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --r: 16px;
  --r-sm: 10px;
  --shadow: 0 26px 56px -34px rgba(11, 31, 58, .45);
  --shadow-sm: 0 12px 28px -20px rgba(11, 31, 58, .38);
  --header-h: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.65; color: var(--slate); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); color: var(--navy); line-height: 1.18; margin: 0 0 .5em; font-weight: 700; overflow-wrap: break-word; }
h1 { font-size: clamp(2.5rem, 7vw, 4.2rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: .16em; }
a:hover { color: var(--navy); }
figure { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.idbar :focus-visible, footer :focus-visible { outline-color: var(--gold-light); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 820px; margin: 0 auto; padding: 0 22px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -70px; z-index: 300; background: var(--gold); color: var(--navy); padding: 10px 16px; font-weight: 600; border-radius: 999px; }
.skip:focus { top: 8px; }

.eyebrow { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.eyebrow::before { content: ""; display: inline-block; vertical-align: middle; width: 24px; height: 3px; margin: -2px 10px 0 0; border-radius: 3px; background: var(--gold); }
.lede, .area-body > p, .person > p:not(.lic):not(.contact):not(.spanish), .callout p, .q p, .step p { font-family: var(--serif); font-size: 1.28rem; line-height: 1.55; font-weight: 500; color: var(--slate); }
.lim { max-width: 640px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; font-family: var(--sans); font-weight: 700; font-size: .92rem; letter-spacing: .02em; text-decoration: none; padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; line-height: 1.3; text-align: center; transition: background-color .15s ease, border-color .15s ease, transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); box-shadow: 0 14px 26px -16px rgba(226, 162, 35, .9); }
.btn-gold:hover { background: var(--gold-d); border-color: var(--gold-d); color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-line { background: #fff; color: var(--navy); border-color: #B9C7D9; }
.btn-line:hover { border-color: var(--navy); }
.btn.wide { width: 100%; }
.cta-pair { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Sticky top ---------- */
.top { position: sticky; top: 0; z-index: 200; }
.idbar { background: var(--navy); color: rgba(255, 255, 255, .92); font-size: .68rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; text-align: center; padding: 7px 0; line-height: 1.5; }
.idbar .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 10px; }
.idbar strong { color: var(--gold-light); font-weight: 600; }
.idbar .sep { color: rgba(255, 215, 122, .65); }
.idbar a { color: #fff; text-decoration: none; white-space: nowrap; font-weight: 700; }
.anchors { background: rgba(255, 255, 255, .96); backdrop-filter: saturate(170%) blur(12px); -webkit-backdrop-filter: saturate(170%) blur(12px); border-bottom: 1px solid var(--line); }
.anchors .wrap { display: flex; align-items: center; gap: 2px; min-height: 58px; overflow-x: auto; scrollbar-width: none; }
.anchors .wrap::-webkit-scrollbar { display: none; }
.anchors a { flex: 0 0 auto; color: var(--slate); text-decoration: none; font-size: .82rem; font-weight: 500; padding: 12px 10px; white-space: nowrap; border-radius: 999px; }
.anchors a:hover { color: var(--navy); background: var(--mist); }
.anchors .brand { font-family: var(--display); font-size: 1.05rem; font-weight: 800; color: var(--navy); padding-left: 0; margin-right: auto; display: inline-flex; align-items: center; gap: 9px; background: none; }
.anchors .brand svg { width: 26px; height: 26px; flex: 0 0 auto; }
.anchors .nav-cta { background: var(--gold); color: var(--navy); font-weight: 700; padding: 10px 18px; margin-left: 8px; }
.anchors .nav-cta:hover { background: var(--gold-d); color: var(--navy); }
.lang { display: inline-flex; flex: 0 0 auto; border: 1.5px solid #B9C7D9; border-radius: 999px; overflow: hidden; margin-left: 6px; }
.lang button { font: 700 .76rem var(--sans); letter-spacing: .06em; color: var(--slate); background: #fff; border: 0; padding: 9px 12px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--navy); color: #fff; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, #FFFFFF 0%, #FFF6DD 100%); padding: 44px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "copy who"; gap: 48px; align-items: center; }
.hero-copy { grid-area: copy; min-width: 0; }
.who-pair { grid-area: who; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; min-width: 0; }
.who { position: relative; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); background: var(--mist); aspect-ratio: 4 / 5; }
.who img { width: 100%; height: 100%; object-fit: cover; object-position: center 10%; }
.who-tag { position: absolute; left: 8px; right: 8px; bottom: 8px; background: rgba(255, 255, 255, .96); border-radius: 12px; padding: 10px 14px; line-height: 1.3; }
.who-tag b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.08rem; color: var(--navy); }
.who-tag a { display: block; font-size: .86rem; font-weight: 700; color: var(--navy); text-decoration: none; margin-top: 4px; white-space: nowrap; }
.who-tag span { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.pill { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); box-shadow: var(--shadow-sm); line-height: 1.4; }
.pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); flex: 0 0 auto; }
.hero h1 { margin: 18px 0 14px; }
.hero .sub { font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 2.4vw, 1.45rem); line-height: 1.4; color: var(--navy); max-width: 640px; }
.hero .lede { max-width: 620px; }
.name-note { font-size: .82rem; line-height: 1.5; color: var(--muted); max-width: 560px; margin: 22px 0 0; }
.street { width: 100%; margin-top: 36px; }

/* ---------- Bands ---------- */
.band { padding: 76px 0; }
.band.tint { background: var(--mist); }
.band.tint-sun { background: var(--sun); }

/* ---------- Market photos ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.photo-grid figure { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--mist); }
.photo-grid figure:first-child { grid-column: span 2; grid-row: span 2; }
.photo-grid img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Area cards ---------- */
.area-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; margin-top: 34px; }
.area { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); }
.area picture { display: block; background: var(--sun); border-bottom: 1px solid var(--line); }
.area img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.street { border-radius: var(--r) var(--r) 0 0; box-shadow: var(--shadow); }
.area-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 26px; }
.area-body h3 { font-size: 1.55rem; }
.price-line { font-size: .95rem; color: var(--slate); background: var(--gold-soft); border-radius: var(--r-sm); padding: 10px 14px; margin-top: auto; }
.price-line b { font-family: var(--display); font-size: 1.3rem; color: var(--navy); white-space: nowrap; }
.area .btn { margin-top: 6px; }

/* ---------- Price table ---------- */
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 10px 24px 22px; margin-top: 26px; }
table.prices { width: 100%; border-collapse: collapse; }
.prices th { text-align: left; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 14px 0 10px; border-bottom: 2px solid var(--navy); }
.prices th:last-child, .prices td:last-child { text-align: right; }
.prices td { padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.prices td:first-child { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--navy); padding-right: 12px; }
.prices td b { font-family: var(--display); font-size: 1.35rem; color: var(--navy); white-space: nowrap; }
.prices td small { display: block; font-size: .74rem; color: var(--muted); }
.bars { display: grid; gap: 9px; margin: 24px 0 6px; }
.bars div { display: grid; grid-template-columns: minmax(0, 9.5em) 1fr; gap: 12px; align-items: center; font-size: .78rem; color: var(--slate); }
.bars i { display: block; height: 14px; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--gold-d)); }
.caption { font-size: .86rem; color: var(--slate); margin: 16px 0 0; }
.fine-note { font-size: .86rem; color: var(--muted); margin-top: 16px; }

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.step { counter-increment: s; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px; box-shadow: var(--shadow-sm); }
.step h3 { margin: 0 0 2px; }
.step h3::before { content: counter(s) ". "; color: var(--gold-ink); }
.step p { margin: 0; }
.callout { margin-top: 26px; background: var(--gold-soft); border-left: 5px solid var(--gold); border-radius: var(--r-sm); padding: 22px 24px; }
.callout h3 { margin-bottom: 6px; }
.callout p { margin: 0; }

/* ---------- Forms ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 28px; }
#lead .form-card { margin-top: 26px; }
.field { margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-size: .8rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; padding: 0; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select { width: 100%; font: 400 1rem var(--sans); color: var(--navy); background: #fff; border: 1.5px solid #8FA1B8; border-radius: var(--r-sm); padding: 12px 13px; min-height: 52px; }
.field input:focus, .field select:focus { outline: 3px solid var(--link); outline-offset: 1px; border-color: var(--navy); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.checks legend { grid-column: 1 / -1; }
.check { display: flex !important; align-items: center; gap: 10px; min-height: 48px; font-size: .95rem !important; font-weight: 500 !important; color: var(--slate) !important; margin: 0 !important; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 8px 12px; cursor: pointer; }
.check input { width: 22px; height: 22px; flex: 0 0 auto; accent-color: var(--navy); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: .78rem; line-height: 1.5; color: var(--muted); margin: 14px 0 0; }
.form-err { display: none; font-size: .9rem; font-weight: 600; color: #A12B12; margin: 12px 0 0; }
.form-err.show { display: block; }
.form-ok { display: none; font-family: var(--display); font-size: 1.3rem; font-weight: 700; color: var(--navy); margin: 0; padding: 18px 0; }
.form-ok.show { display: block; }

/* ---------- FAQ ---------- */
.faq { margin-top: 26px; display: grid; gap: 12px; }
.q { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 22px; }
.q summary { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--navy); padding: 18px 30px 18px 0; list-style: none; position: relative; min-height: 52px; }
.q summary::-webkit-details-marker { display: none; }
.q summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.5rem; color: var(--gold-ink); }
.q[open] summary::after { content: "–"; }
.q p { margin: 0 0 20px; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 44px; align-items: start; margin-top: 30px; }
.team-photo { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); background: var(--mist); }
.team-photo img { width: 100%; }
.people { display: grid; gap: 22px; }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px 26px; box-shadow: var(--shadow-sm); }
.person h3 { font-size: 1.5rem; margin-bottom: 6px; }
.lic { font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.person > p:not(.lic):not(.contact):not(.spanish) { margin: 12px 0; }
.contact { font-size: .98rem; margin: 0; }
.contact a { font-weight: 700; white-space: nowrap; }
.contact a[href^="mailto"] { white-space: normal; overflow-wrap: anywhere; }
.spanish { font-family: var(--display); font-weight: 700; color: var(--gold-ink); margin: 10px 0 0; }

/* ---------- Footer ---------- */
footer { background: var(--navy); color: rgba(255, 255, 255, .86); padding: 56px 0 44px; font-size: .9rem; }
footer a { color: #fff; }
.f-id { font-family: var(--display); font-size: 1.5rem; font-weight: 800; color: #fff; margin: 0 0 8px; }
.f-role { margin: 0 0 4px; }
.f-contact { margin: 12px 0 0; }
.f-contact a { font-weight: 700; white-space: nowrap; }
.f-marks { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 24px 0; }
.mark { display: inline-flex; align-items: center; gap: 10px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.mark svg { width: 30px; height: 30px; color: var(--gold-light); }
.fine { border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 20px; font-size: .8rem; line-height: 1.6; color: rgba(255, 255, 255, .78); }
.fine p { margin: 0 0 8px; }

/* ---------- Sticky bottom bar (phones) ---------- */
.bar { display: none; }

@media (max-width: 860px) {
  :root { --header-h: 118px; }
  .anchors a:not(.brand):not(.nav-cta) { display: none; }
  .hero { padding-top: 22px; }
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "who" "copy"; gap: 22px; }
  .who-pair { grid-template-columns: 1fr; gap: 10px; }
  /* portrait first, as a compact card */
  .who { aspect-ratio: auto; display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 10px; }
  .who img { width: 96px; height: 96px; border-radius: 12px; }
  .who-tag { position: static; padding: 0; background: none; }
  .band { padding: 56px 0; }
  .area-grid, .split, .team-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .split { gap: 26px; }
  .team-photo { max-width: 360px; }
  .step { grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding: 16px; }
  body { padding-bottom: 68px; }
  .bar { display: grid; grid-template-columns: 1fr 1fr 1.25fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 250; background: var(--navy); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -8px 24px -12px rgba(11, 31, 58, .5); }
  .bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 64px; padding: 6px 4px; color: #fff; text-decoration: none; font-size: .78rem; font-weight: 700; text-align: center; line-height: 1.2; }
  .bar a + a { border-left: 1px solid rgba(255, 255, 255, .18); }
  .bar svg { width: 22px; height: 22px; }
  .bar .go { background: var(--gold); color: var(--navy); }
}
@media (max-width: 560px) {
  .two, .checks { grid-template-columns: 1fr; }
  .form-card { padding: 20px; }
  .price-card { padding: 6px 16px 18px; }
  .cta-pair .btn { flex: 1 1 100%; }
  .bars div { grid-template-columns: minmax(0, 7.5em) 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
@media print { .top, .bar { display: none; } }
