/* ── Theme variables & base ── */
:root { --ink: #493d35; --cream: #eee9dd; --sand: #ddd3c2; --coral: #b28f4a; --muted: #756a5e; --line: #d9cfbe; --serif: 'Manrope', sans-serif; --sans: 'Manrope', sans-serif; }
body { background: #e4ddcf; color: var(--ink); font-size: 16px; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1; background: radial-gradient(circle at 14% 5%, #f8f4eb 0 2%, transparent 25%), radial-gradient(circle at 92% 40%, #d4c29f, transparent 26%); }
.grain { opacity: .018; }
a { color: inherit; text-decoration: none; }
h1, h2, em { font-family: var(--sans); font-style: normal; }
h2 { font-weight: 700; line-height: 1.02; letter-spacing: -.065em; font-size: clamp(40px, 4.6vw, 65px); }
h2 em { color: var(--coral); }

/* ── Header ── */
.site-header { position: fixed; top: 18px; left: 50%; width: min(1180px, calc(100% - 40px)); height: 74px; min-height: 74px; margin: 0; padding: 0 24px; transform: translateX(-50%); border: 0; border-radius: 99px; background: var(--ink); color: #fff; box-shadow: 0 10px 28px rgba(73,61,53,.2); backdrop-filter: blur(16px); }
.site-header.is-scrolled { background: #493d35; box-shadow: 0 12px 30px rgba(73,61,53,.26); }
.brand { width: 118px; height: 44px; display: flex; align-items: center; background: var(--ink); border-radius: 9px; padding: 7px 9px; }
.brand img { width: 32px; height: 37px; }
.desktop-nav { margin-left: 0; gap: 20px; font: 600 10px var(--sans); letter-spacing: 0; text-transform: none; }
.desktop-nav a { color: #fff; opacity: 1; }
.header-cta, .submit-btn { background: var(--coral); color: #fff; border-radius: 9px; font-weight: 700; letter-spacing: 0; text-transform: none; box-shadow: 0 8px 18px rgba(178,143,74,.28); }

/* ── Hero ── */
.hero { width: 100%; height: auto; min-height: 650px; margin: 0 0 -50px; border-radius: 0; overflow: hidden; background: var(--ink); box-shadow: 0 18px 38px rgba(73,61,53,.18); }
.hero-media { position: absolute; inset: 0; }
.hero-image { position: absolute; inset: 0; transform: scale(1.03) !important; opacity: 0; filter: saturate(.8) brightness(.94); transition: opacity 1.1s ease, transform 6s ease; animation: none; }
.hero-image.active { opacity: 1; transform: scale(1) !important; }
.hero-image:nth-child(1) { background-image: url('../images/vista aerea.webp'); }
.hero-image:nth-child(2) { background-image: url('../images/vista desde el rio.webp'); }
.hero-image:nth-child(3) { background-image: url('../images/piscina borde infinito.webp'); }
.hero-image:nth-child(4) { background-image: url('../images/sala soho.webp'); }
.hero-overlay { background: linear-gradient(90deg, rgba(19,17,43,.82) 0%, rgba(19,17,43,.42) 49%, rgba(19,17,43,.08)); }
.hero-content { left: max(24px, calc((100% - 1180px) / 2)); top: 20%; width: min(540px, calc(100% - 48px)); max-width: 540px; }
.hero-content h1 { white-space: normal; max-width: 610px; font: 700 clamp(48px, 5.5vw, 76px)/1.02 var(--sans); letter-spacing: -.065em; }
.hero-content h1 em { font: inherit; color: #ddbd79; }
.hero-copy { max-width: 370px; font-size: 16px; line-height: 1.65; }
.hero-foot { justify-content: flex-start; left: max(24px, calc((100% - 1180px) / 2)); right: max(24px, calc((100% - 1180px) / 2)); bottom: 68px; font-family: var(--sans); font-weight: 600; letter-spacing: 0; text-transform: none; }
.scroll-line { width: 54px; background: #ddbd79; }
.hero-pagination { display: flex; gap: 7px; margin-left: auto; }.hero-pagination button { width: 28px; height: 3px; padding: 0; border: 0; background: rgba(255,255,255,.4); cursor: pointer; }.hero-pagination button.active { background: #ddbd79; }

/* ── Sections ── */
.section-pad { width: min(1180px, calc(100% - 40px)); margin: 0 auto 34px; padding: 68px 60px; border-radius: 20px; background: #f8f4eb; box-shadow: 0 12px 30px rgba(73,61,53,.08); }
.hero + .spaces { position: relative; z-index: 3; margin-top: -50px; }
.section-tag, .eyebrow, .kicker { color: var(--coral); font: 700 10px var(--sans); letter-spacing: .08em; }
.section-tag span, .eyebrow span { color: #c5a462; }
.section-note { font-size: 14px; }
.spaces .section-head { margin-bottom: 34px; }
.intro { min-height: 0; }
.intro-grid { margin-top: 50px; gap: 8%; }
.large-copy { font-size: 26px; font-weight: 700; line-height: 1.25; }
.intro-text, .details-grid p, .plans-copy > p { color: var(--muted); }
.text-link { border: 0; padding: 12px 17px; color: #fff; background: var(--coral); border-radius: 8px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.stat-row { gap: 0; margin-top: 70px; padding-top: 0; border-top: 0; background: #eee6d7; border-radius: 14px; overflow: hidden; }
.stat { width: 33.33%; padding: 24px 28px; border-right: 1px solid #d9cfbe; }
.stat:last-child { border: 0; }.stat strong { color: var(--coral); font-family: var(--sans); font-size: 28px; font-weight: 700; }.stat span { font-family: var(--sans); font-size: 10px; font-weight: 600; }

/* ── Mid gallery ── */
.mid-gallery { position: relative; width: 100%; min-height: 610px; margin: 34px 0; overflow: hidden; color: #fff; background: var(--ink); }
.mid-gallery-media, .mid-gallery-overlay { position: absolute; inset: 0; }
.mid-gallery-slide { position: absolute; inset: 0; background-position: center; background-size: cover; opacity: 0; transform: scale(1.04); transition: opacity 1s ease, transform 7s ease; }
.mid-gallery-slide.active { opacity: 1; transform: scale(1); }
.mid-gallery-overlay { background: linear-gradient(90deg, rgba(36,29,25,.86), rgba(36,29,25,.24) 68%, rgba(36,29,25,.12)), linear-gradient(0deg, rgba(36,29,25,.62), transparent 55%); }
.mid-gallery-content { position: absolute; z-index: 1; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; width: min(760px, calc(100% - 48px)); max-width: none; margin: auto; padding: 40px 24px 70px; text-align: center; }
.mid-gallery-content h2 { max-width: 760px; color: #fff; font-size: clamp(42px, 5.5vw, 78px); }
.mid-gallery-content h2 em { color: #ddbd79; }
.mid-gallery-content > p:last-child { max-width: 430px; color: rgba(255,255,255,.82); line-height: 1.7; }
.mid-gallery-foot { position: absolute; z-index: 1; bottom: 28px; left: max(24px, calc((100% - 1180px) / 2)); right: max(24px, calc((100% - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; font: 10px var(--sans); font-weight: 700; letter-spacing: .08em; }
.mid-gallery-pagination { display: flex; gap: 8px; }.mid-gallery-pagination button { width: 32px; height: 3px; border: 0; padding: 0; background: rgba(255,255,255,.45); cursor: pointer; }.mid-gallery-pagination button.active { background: #ddbd79; }

/* ── Details ── */
.details { background: #f8f4eb; }
.details-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 54px; }
.details-grid article { min-height: 260px; padding: 28px; background: var(--cream); }
.details-grid article > span { color: var(--coral); font: 11px var(--mono); }
.details-grid h3 { font: 500 30px/.98 var(--serif); letter-spacing: -.04em; margin: 48px 0 20px; }
.details-grid p { max-width: 270px; color: var(--muted); line-height: 1.65; margin: 0; }
.details { background: #f8f4eb; }.details-grid { gap: 18px; }.details-grid article { min-height: 245px; padding: 28px; border: 1px solid #e4dbcb; border-radius: 14px; background: #fbf8f1; }.details-grid article > span { display: grid; place-items: center; width: 32px; height: 32px; color: var(--coral); background: #eee0bf; border-radius: 50%; font-family: var(--sans); font-weight: 700; }.details-grid h3 { font-family: var(--sans); font-size: 24px; font-weight: 700; line-height: 1.1; margin-top: 42px; }

/* ── Gallery grid ── */
.spaces { background: #f8f4eb; }.gallery-grid { gap: 18px; }.gallery-item { border-radius: 14px; box-shadow: 0 8px 18px rgba(73,61,53,.12); }.gallery-item img { filter: saturate(.9); }.gallery-large { height: 440px; }.gallery-tall { height: 535px; margin-top: 80px; }.gallery-small { height: 320px; margin-top: -100px; }.gallery-wide { height: 340px; }
.spaces .gallery-grid { display: flex; flex-wrap: wrap; gap: 14px; }
.spaces .gallery-item, .spaces .gallery-large, .spaces .gallery-tall, .spaces .gallery-small, .spaces .gallery-wide { width: auto; height: auto; margin: 0; border-radius: 12px; }
.spaces .gallery-large img { object-position: center 72%; }
.spaces .gallery-tall img { object-position: center 55%; }
.spaces .gallery-small img { object-position: center 45%; }
.spaces .gallery-wide img { object-position: center 52%; }
.spaces figcaption { bottom: 14px; left: 16px; padding: 7px 9px; border-radius: 5px; background: rgba(73,61,53,.7); font-size: 9px; }
.gallery-item, .plan-visual, .header-cta, .submit-btn { border-radius: 5px; }
.gallery-item { border-radius: 8px; }
.gallery-item img, .plan-image { cursor: zoom-in; }

/* Reset masonry offsets — force compact flex layout over base styles.css */
.spaces .gallery-grid { display: flex !important; flex-wrap: wrap !important; gap: 14px !important; align-items: stretch !important; }
.spaces .gallery-grid > .gallery-item { width: auto !important; height: 315px !important; min-height: 0 !important; margin: 0 !important; flex: 1 1 calc(50% - 7px) !important; max-width: calc(50% - 7px) !important; }

/* ── Plans ── */
.plans { display: grid; grid-template-columns: .82fr 1.18fr; background: #f8f4eb; }
.plan-visual { min-height: 410px; border: 1px solid #e4dbcb; border-radius: 14px; }
.plan-tabs { border: 0; gap: 10px; }
.plan-tabs button { padding: 11px 14px; border: 1px solid #d9cfbe; border-radius: 8px; background: #f4eee3; color: var(--muted); font-family: var(--sans); font-weight: 700; text-transform: none; letter-spacing: 0; }
.plan-tabs button.active { border: 1px solid var(--coral); background: var(--coral); color: #fff; }
.plan-visual { aspect-ratio: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; border: 1px solid #e4dbcb; border-radius: 14px; background: #f2ede3; }
.plan-image, .plan-image.active { width: 100%; max-width: none; max-height: none; height: 100%; padding: 0; object-fit: cover; object-position: center; display: none; mix-blend-mode: normal; }
.plan-image.active { display: block; }
.plan-label { right: 14px; bottom: 14px; padding: 8px 10px; background: rgba(248,244,235,.9); }

/* ── Contact ── */
.contact { width: 100%; min-height: 760px; margin: 34px 0; border-radius: 0; box-shadow: 0 16px 35px rgba(73,61,53,.15); }
.contact-image { background-position: center; filter: saturate(.78); background-attachment: fixed; }
.contact:after { background: linear-gradient(90deg, rgba(52,41,31,.9), rgba(73,61,53,.52) 54%, rgba(73,61,53,.25)); }
.contact-content { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 112px 60px; display: grid; grid-template-columns: 1fr 520px; gap: 8%; align-items: center; }
.contact-content h2 { max-width: 650px; font-size: clamp(48px, 5.7vw, 82px); color: #fff; }
.contact-content > p { max-width: 430px; color: rgba(255,255,255,.8); }
.contact-content form { grid-column: 2; grid-row: 1 / span 3; width: 100%; margin: 0; background: #f8f4eb; padding: 32px 38px 36px; border-radius: 10px; box-shadow: 0 22px 60px rgba(0,0,0,.2); }
.contact-content form label { border-color: rgba(32,34,31,.28); }
.contact-content form label span { color: var(--muted); }
.contact-content form input { color: var(--ink); font-size: 17px; }
.contact-content form input::placeholder { color: rgba(32,34,31,.55); }
.contact-content form select { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 17px; cursor: pointer; }
.contact-content form select option { color: var(--ink); background: var(--cream); }
.contact-content .submit-btn { margin-top: 28px; }

/* ── Footer ── */
.site-footer { padding: 58px max(5vw, calc((100% - 1060px) / 2)); background: #493d35; }
.partner-logos { gap: 32px; }
.partner-logos img { width: 142px; max-width: 142px; height: 58px; max-height: 58px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.footer-main > p { justify-self: center; align-self: center; margin: 0; color: rgba(255,255,255,.86); font: italic 500 clamp(22px, 2.2vw, 32px)/1.15 'Playfair Display', Georgia, serif; text-align: center; }

/* ── Lightbox ── */
.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 5vw; background: rgba(35,29,25,.88); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; cursor: zoom-out; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 92vw; max-height: 90vh; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 70px rgba(0,0,0,.4); }
.lightbox-close { position: absolute; top: 24px; right: 30px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; color: #fff; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; }

/* ── Responsive ── */
@media (max-width: 980px) and (min-width: 761px) { .desktop-nav { gap: 12px; font-size: 9px; } .header-cta { padding: 12px 14px; } }

@media (max-width: 760px) {
  .site-header { top: 8px; width: calc(100% - 24px); height: 62px; min-height: 62px; border-radius: 12px; }
  .brand { width: 82px; height: 39px; }
  .desktop-nav { top: 62px; background: var(--ink); color: #fff; border-radius: 0 0 12px 12px; display: none; position: absolute; left: 0; right: 0; margin: 0; padding: 24px 8%; flex-direction: column; gap: 22px; border-top: 1px solid rgba(255,255,255,.15); }
  .desktop-nav.open { display: flex; }
  .desktop-nav a, .menu-toggle { color: #fff; }
  .menu-toggle { display: block; padding: 10px 20px; border: 1px solid rgba(255,255,255,.3); border-radius: 99px; background: rgba(255,255,255,.08); font-weight: 700; letter-spacing: 0; text-transform: none; cursor: pointer; }
  .hero, .section-pad, .contact { width: calc(100% - 24px); border-radius: 14px; }
  .hero { min-height: 580px; width: 100%; margin: 0 0 -28px; border-radius: 0; }
  .hero-content { left: 8%; top: 18%; }
  .hero-content h1 { font-size: 47px; white-space: normal; }
  .hero-foot { left: 8%; right: 8%; bottom: 48px; }
  .hero-pagination button { width: 18px; }
  .section-pad { padding: 42px 24px; }
  .hero + .spaces { margin-top: -28px; }
  .stat-row { display: block; }
  .stat { width: 100%; border-right: 0; border-bottom: 1px solid #e7e4f7; }
  .details-grid { display: block; }
  .details-grid article { margin-bottom: 12px; min-height: auto; }
  .spaces .gallery-grid { flex-direction: column !important; gap: 10px !important; }
  .spaces .gallery-grid > .gallery-item { flex: 0 0 auto !important; max-width: none !important; height: 220px !important; }
  .plans { display: block; }
  .contact { width: 100%; border-radius: 0; min-height: 850px; }
  .contact-content { width: calc(100% - 32px); padding: 78px 16px; display: block; }
  .contact-content form { margin-top: 38px; width: 100%; padding: 26px 22px 28px; }
  .partner-logos { gap: 10px; flex-wrap: wrap; }
  .partner-logos img { width: 90px; max-width: 90px; height: 42px; max-height: 42px; padding: 7px 9px; }
  .hero-image, .river-image, .contact-image { background-attachment: scroll; }
}

/* WhatsApp CTA */
.whatsapp-cta,
.whatsapp-cta:link,
.whatsapp-cta:visited,
.whatsapp-cta:hover,
.whatsapp-cta:active,
.whatsapp-cta:focus {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 19px;
  border-radius: 9px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: none;
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.28);
}
.whatsapp-cta:hover { filter: brightness(0.95); }
.whatsapp-cta span { margin-left: 2px; }
.whatsapp-cta svg { width: 15px; height: 15px; flex: none; }
