@import url('assets/colors_and_type.css');

/* ============================================================
   RB CAPITAL — Landing: Casa en Scorpio 5-1, Durango
   Conversion landing for Meta campaigns
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg-page); color: var(--fg-1); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--sm { max-width: var(--container-sm); }

/* ---------- Buttons ---------- */
.btn { font-family: var(--font-sans); font-size: 15px; font-weight: 600; padding: 16px 28px; border-radius: var(--r-2); border: 0; transition: background var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard), filter var(--dur-fast); letter-spacing: 0.01em; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 10px; line-height: 1; }
.btn:active { filter: brightness(0.96); }
.btn--primary { background: var(--brand-teal); color: #fff; }
.btn--primary:hover { background: var(--brand-teal-deep); }
.btn--wa { background: #25D366; color: #073b22; }
.btn--wa:hover { background: #1ebe5a; }
.btn--ghost { background: rgba(255,255,255,0.10); color: #fff; border: 1px solid rgba(255,255,255,0.45); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,0.18); }
.btn--block { display: flex; width: 100%; }
.btn--lg { padding: 18px 32px; font-size: 16px; }
.btn svg { width: 19px; height: 19px; }

/* ---------- Eyebrow ---------- */
.eyebrow { font-family: var(--font-sans); font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--brand-teal); }
.eyebrow--on-dark { color: rgba(255,255,255,0.82); }
.eyebrow--gold { color: var(--brand-gold); }

/* ---------- Header ---------- */
.hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 76px; display: flex; align-items: center; transition: background var(--dur-base) var(--ease-standard), box-shadow var(--dur-base), border-color var(--dur-base); border-bottom: 1px solid transparent; }
.hdr__inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); width: 100%; display: flex; align-items: center; gap: 16px; }
.hdr__brand { display: flex; align-items: center; }
.hdr__logo { height: 54px; width: auto; display: block; }
.hdr__logo--dark { display: none; }
.hdr__right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.hdr__phone { font-size: 14px; font-weight: 600; letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 8px; transition: color var(--dur-base); white-space: nowrap; }
.hdr__phone svg { width: 16px; height: 16px; }
.hdr__cta { padding: 11px 20px; font-size: 14px; }
/* transparent over hero */
.hdr--top { background: transparent; }
.hdr--top .hdr__phone { color: #fff; }
.hdr--top .hdr__logo--dark { display: none; }
.hdr--top .hdr__logo--white { display: block; }
/* solid after scroll */
.hdr--solid { background: rgba(255,255,255,0.92); backdrop-filter: blur(14px); border-bottom-color: var(--ink-200); box-shadow: var(--sh-1); }
.hdr--solid .hdr__phone { color: var(--ink-800); }
.hdr--solid .hdr__phone:hover { color: var(--brand-teal-deep); }
.hdr--solid .hdr__logo--white { display: none; }
.hdr--solid .hdr__logo--dark { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.03); }
.hero__scrim { position: absolute; inset: 0; background:
   linear-gradient(94deg, rgba(4,32,36,0.86) 0%, rgba(4,32,36,0.62) 34%, rgba(4,32,36,0.18) 60%, rgba(4,32,36,0) 80%),
   linear-gradient(180deg, rgba(4,32,36,0.55) 0%, rgba(4,32,36,0.12) 24%, rgba(4,32,36,0.0) 46%, rgba(4,32,36,0.45) 82%, rgba(4,32,36,0.72) 100%); }
.hero__inner { position: relative; max-width: var(--container); margin: 0 auto; padding: 104px var(--gutter) clamp(36px, 6vh, 72px); width: 100%; }
.hero__loc { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.hero__loc svg { width: 15px; height: 15px; }
.hero__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(38px, 6.4vw, 82px); line-height: 1.02; letter-spacing: -0.02em; color: #fff; text-wrap: balance; max-width: 16ch; text-shadow: 0 2px 24px rgba(4,32,36,0.4); }
.hero__title em { font-style: italic; font-weight: 400; }
.hero__lead { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; color: rgba(255,255,255,0.9); max-width: 52ch; margin-top: 20px; text-wrap: pretty; }
.hero__price { display: flex; align-items: baseline; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero__price-num { font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.02em; color: #fff; font-variant-numeric: tabular-nums; }
.hero__price-tag { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.72); }
.hero__price--hidden .hero__price-num { font-size: clamp(22px, 2.4vw, 30px); }
.hero__actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero__trust { display: flex; gap: 22px 28px; margin-top: 34px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.22); }
.hero__trust-item { display: flex; flex-direction: column; gap: 3px; }
.hero__trust-num { font-family: var(--font-display); font-size: clamp(26px, 3vw, 38px); font-weight: 400; color: #fff; line-height: 1; letter-spacing: -0.01em; }
.hero__trust-lbl { font-size: 10.5px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.7); }

/* urgency ribbon */
.urgency { display: inline-flex; align-items: center; gap: 9px; background: rgba(201,162,78,0.16); border: 1px solid rgba(201,162,78,0.55); color: #fff; padding: 8px 16px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 20px; backdrop-filter: blur(4px); }
.urgency__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-gold); box-shadow: 0 0 0 0 rgba(201,162,78,0.7); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(201,162,78,0.6);} 70% { box-shadow: 0 0 0 8px rgba(201,162,78,0);} 100% { box-shadow: 0 0 0 0 rgba(201,162,78,0);} }

/* ---------- Section ---------- */
.section { padding: clamp(64px, 9vh, 104px) 0; }
.section--bone { background: var(--brand-bone); }
.section--tint { background: var(--brand-teal-paper); }
.section__head { max-width: 720px; margin-bottom: 48px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -0.02em; color: var(--ink-900); margin-top: 12px; text-wrap: balance; }
.section__lead { font-size: 17px; line-height: 1.6; color: var(--fg-2); margin-top: 16px; max-width: 60ch; text-wrap: pretty; }

/* ---------- Highlights ---------- */
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink-200); border: 1px solid var(--ink-200); border-radius: var(--r-3); overflow: hidden; }
.highlight { background: #fff; padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; }
.highlight__ic { width: 30px; height: 30px; color: var(--brand-teal); }
.highlight__ic svg { width: 100%; height: 100%; stroke-width: 1.6; }
.highlight h3 { font-family: var(--font-sans); font-weight: 600; font-size: 17px; color: var(--ink-900); letter-spacing: -0.005em; }
.highlight p { font-size: 14.5px; line-height: 1.55; color: var(--fg-2); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 12px; }
.gallery__item { position: relative; overflow: hidden; border-radius: var(--r-2); cursor: pointer; background: var(--ink-100); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item--xl { grid-column: span 2; grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__more { position: absolute; inset: 0; background: rgba(1,75,84,0.62); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; color: #fff; backdrop-filter: blur(1px); }
.gallery__more span { font-family: var(--font-display); font-size: 30px; font-weight: 400; }
.gallery__more small { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(14,26,29,0.94); display: none; align-items: center; justify-content: center; }
.lb.is-open { display: flex; }
.lb__img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: var(--r-2); box-shadow: var(--sh-4); }
.lb__close { position: absolute; top: 20px; right: 24px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,0.12); border: 0; color: #fff; display: flex; align-items: center; justify-content: center; }
.lb__close:hover { background: rgba(255,255,255,0.22); }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,0.12); border: 0; color: #fff; display: flex; align-items: center; justify-content: center; }
.lb__nav:hover { background: rgba(255,255,255,0.22); }
.lb__nav--prev { left: 24px; }
.lb__nav--next { right: 24px; }
.lb__count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-size: 13px; letter-spacing: 0.1em; color: rgba(255,255,255,0.8); font-variant-numeric: tabular-nums; }
.lb svg { width: 22px; height: 22px; }

/* ---------- Amenities ---------- */
.amen { columns: 2; column-gap: 56px; max-width: 720px; }
.amen__item { break-inside: avoid; display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--ink-100); font-size: 15px; color: var(--ink-800); }
.amen__item svg { width: 17px; height: 17px; color: var(--brand-teal); flex-shrink: 0; }

/* ---------- Financing ---------- */
.fin { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fin__card { background: #fff; border: 1px solid var(--ink-200); border-radius: var(--r-3); padding: 28px 26px; transition: box-shadow var(--dur-base), border-color var(--dur-base); }
.fin__card:hover { box-shadow: var(--sh-2); border-color: var(--brand-teal-soft); }
.fin__ic { width: 26px; height: 26px; color: var(--brand-teal); margin-bottom: 16px; }
.fin__card h3 { font-family: var(--font-sans); font-weight: 600; font-size: 16px; color: var(--ink-900); margin-bottom: 8px; }
.fin__card p { font-size: 14px; line-height: 1.55; color: var(--fg-2); }

/* ---------- Form / Agendar ---------- */
.agendar { background: var(--brand-teal-shade); color: #fff; position: relative; overflow: hidden; }
.agendar__grid { display: grid; grid-template-columns: 1fr 460px; gap: 64px; align-items: start; }
.agendar__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(30px, 4vw, 52px); line-height: 1.04; letter-spacing: -0.02em; color: #fff; margin-top: 14px; text-wrap: balance; }
.agendar__lead { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,0.82); margin-top: 18px; max-width: 46ch; }
.agendar__points { margin-top: 30px; display: flex; flex-direction: column; gap: 14px; }
.agendar__point { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: rgba(255,255,255,0.92); }
.agendar__point svg { width: 20px; height: 20px; color: var(--brand-teal-soft); flex-shrink: 0; margin-top: 1px; }
.agendar__advisor { margin-top: 34px; display: flex; align-items: center; gap: 22px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.18); }
.agendar__advisor-logo { height: 66px; width: auto; }
.agendar__advisor-logo { height: 66px; width: auto; border-radius: 0; object-fit: contain; border: 0; }
.agendar__advisor-name { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: #fff; letter-spacing: -0.01em; }
.agendar__advisor-role { font-size: 12.5px; color: rgba(255,255,255,0.7); margin-top: 2px; letter-spacing: 0.02em; }

.form { background: #fff; padding: 34px 32px 30px; border-radius: var(--r-3); box-shadow: var(--sh-3); }
.form__head { margin-bottom: 22px; }
.form__head h3 { font-family: var(--font-sans); font-weight: 700; font-size: 21px; color: var(--ink-900); letter-spacing: -0.01em; }
.form__head p { font-size: 13.5px; color: var(--fg-3); margin-top: 5px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field > span { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--ink-700); text-transform: uppercase; }
.field input, .field select { font-family: var(--font-sans); padding: 14px 14px; font-size: 15px; border: 1px solid var(--ink-300); border-radius: var(--r-2); background: #fff; color: var(--ink-900); transition: border-color var(--dur-fast), box-shadow var(--dur-fast); width: 100%; }
.field input:focus, .field select:focus { outline: none; border-color: var(--brand-teal); box-shadow: 0 0 0 3px rgba(2,138,152,0.12); }
.field__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__legal { font-size: 11px; color: var(--fg-3); text-align: center; margin-top: 14px; line-height: 1.5; }
.form__legal a { color: var(--brand-teal-deep); }
.form__or { display: flex; align-items: center; gap: 14px; margin: 16px 0; color: var(--fg-4); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.form__or::before, .form__or::after { content: ""; height: 1px; background: var(--ink-200); flex: 1; }
.form__sent { text-align: center; padding: 30px 6px; }
.form__sent-ic { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-teal-mist); color: var(--brand-teal-deep); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.form__sent-ic svg { width: 28px; height: 28px; }
.form__sent h3 { font-family: var(--font-display); font-size: 28px; font-weight: 500; color: var(--ink-900); margin-bottom: 8px; }
.form__sent p { font-size: 14.5px; color: var(--fg-2); line-height: 1.55; }

/* ---------- Location ---------- */
.loc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--ink-200); border-radius: var(--r-3); overflow: hidden; }
.loc__info { padding: 44px 44px; display: flex; flex-direction: column; justify-content: center; }
.loc__map { min-height: 380px; background: var(--ink-100); }
.loc__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.loc__addr { font-size: 16px; color: var(--ink-800); line-height: 1.6; margin: 16px 0 24px; }

/* ---------- Final CTA band ---------- */
.band { background: var(--brand-teal); color: #fff; text-align: center; padding: clamp(56px, 8vh, 88px) 0; }
.band h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(30px, 4vw, 52px); line-height: 1.06; letter-spacing: -0.02em; color: #fff; text-wrap: balance; max-width: 20ch; margin: 0 auto; }
.band p { font-size: 17px; color: rgba(255,255,255,0.85); margin-top: 16px; }
.band__actions { display: flex; gap: 14px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.band .btn--primary { background: #fff; color: var(--brand-teal-deep); }
.band .btn--primary:hover { background: var(--brand-bone); }

/* ---------- Footer ---------- */
.footer { background: var(--brand-teal-shade); color: rgba(255,255,255,0.8); padding: 56px 0 28px; border-top: 1px solid rgba(255,255,255,0.1); }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer__logo { height: 88px; width: auto; margin-bottom: 14px; }
.footer__tag { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.62); max-width: 36ch; }
.footer__col h4 { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.92); margin-bottom: 12px; }
.footer__line { font-size: 13.5px; color: rgba(255,255,255,0.72); padding: 4px 0; display: block; }
.footer__base { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__small { font-size: 11px; color: rgba(255,255,255,0.5); letter-spacing: 0.04em; }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 58px; height: 58px; border-radius: 50%; background: #25D366; box-shadow: 0 8px 24px rgba(37,211,102,0.4); display: flex; align-items: center; justify-content: center; transition: transform var(--dur-base) var(--ease-out); }
.wa-float:hover { transform: translateY(-3px); }
.wa-float svg { width: 30px; height: 30px; color: #fff; }

/* ---------- Sticky mobile CTA bar ---------- */
.mobar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: rgba(255,255,255,0.96); backdrop-filter: blur(12px); border-top: 1px solid var(--ink-200); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); display: none; gap: 10px; box-shadow: 0 -4px 20px rgba(14,26,29,0.08); }
.mobar__price { display: flex; flex-direction: column; justify-content: center; padding-right: 4px; }
.mobar__price-num { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--brand-teal-deep); line-height: 1; }
.mobar__price-lbl { font-size: 9.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); margin-top: 3px; }
.mobar .btn { flex: 1; padding: 14px 12px; }
.mobar__wa { flex: 0 0 auto !important; width: 50px; padding: 14px !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .agendar__grid { grid-template-columns: 1fr; gap: 40px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery__item--xl { grid-column: span 2; grid-row: span 2; }
  .gallery__item--wide { grid-column: span 2; }
  .loc { grid-template-columns: 1fr; }
  .loc__map { min-height: 300px; order: 2; }
}
@media (max-width: 760px) {
  .hdr__phone { display: none; }
  .highlights { grid-template-columns: 1fr; }
  .fin { grid-template-columns: 1fr; }
  .amen { columns: 1; }
  .hero__trust { gap: 18px 22px; }
  .wa-float { display: none; }
  .mobar { display: flex; }
  body { padding-bottom: 76px; }
  .band__actions .btn { flex: 1; }
  .footer__inner { gap: 32px; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  html { scroll-behavior: auto; }
}
