/* Altum Reservado page CSS: only what sits inside visuals and the client's own parts (kit: assets/kit). */

/* committee placeholders: one style for every unknown fact */
.pending { display: inline-block; padding: 2px 10px; border: 1px dashed var(--p-accent); border-radius: 999px; color: var(--p-accent); font-size: var(--t-label, 13px); font-weight: 500; line-height: 1.5; white-space: nowrap; }
.pending--block { display: block; white-space: normal; border-radius: var(--r-md); padding: var(--s-3) var(--s-4); }
.pending--soon { border-style: solid; }
.ground-inverse .pending { color: var(--p-inv-ink); border-color: var(--p-inv-ink); }

/* hero: the client's logo (black letters) sits in the light box */
.hero__logo { display: block; width: 96px; height: auto; margin-bottom: var(--s-5); }

.nav__logo img { border-radius: 6px; margin-right: 8px; vertical-align: middle; }

/* photo frames inside splits */
.r-plan, .r-tall, .r-map { height: min(620px, calc(100svh - 280px)); }
.r-plan .frame__img { object-fit: contain; background: #fff; }
.r-map { background: #f3f3f1; border-radius: var(--r-lg); overflow: hidden; }
.r-map .frame__img { object-fit: cover; width: 100%; height: 100%; }

/* apartments: plan + specs card */
.r-unit { padding: 0; align-items: stretch; }
.r-unit__pic { aspect-ratio: 3 / 2; height: auto; }
.r-unit__pic .frame__img { object-fit: contain; background: #fff; }
.r-unit__body { display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-5) var(--s-5) var(--s-5) 0; }
.r-unit__body h3 { margin: 0; font-family: var(--font-display); font-size: var(--t-h3); font-weight: 400; }
.r-unit__body .btn-row { margin-top: auto; align-items: center; }
.r-note { margin-top: var(--s-5); }
#apartamentos .group + .group { padding-top: 0; }

/* picture-develops frame */
.develop { margin: 0; border-radius: var(--r-lg); overflow: hidden; height: min(600px, calc(100svh - 280px)); }
.develop > img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* finishes */
.r-finish { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6) var(--s-5); }
.r-finish h3 { margin: 0 0 var(--s-3); font-size: var(--t-card); font-weight: 500; }
.r-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); font-size: 16px; line-height: 1.5; }

/* gallery wall: 7 x 2 portrait tiles at desktop */
.r-gal-head { align-items: end; }
.r-wall { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-top: var(--s-7); }
.g-item { margin: 0; overflow: hidden; border-radius: 0; aspect-ratio: 3 / 4; }
.g-item.is-out { display: none; }
.g-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.g-btn img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.g-btn:hover img { transform: scale(1.03); }
.tabs .tab { min-height: 44px; }

/* video and 360 slots */
.r-slot h3 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin: 0 0 var(--s-4); font-size: var(--t-card); font-weight: 500; }
.r-slot__pic { aspect-ratio: 3 / 2; height: auto; }

/* payment */
.r-col-h { margin: 0 0 var(--s-3); font-size: var(--t-card); font-weight: 500; }
.r-pay-foot { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); margin-top: var(--s-7); align-items: start; }
.r-pay-foot p { margin: 0; font-size: 16px; line-height: 1.6; }

/* distances */
.r-dist { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.r-km { list-style: none; margin: 0; padding: 0; }
.r-km li { display: flex; justify-content: space-between; gap: var(--s-3); padding: 9px 0; border-bottom: 1px solid color-mix(in srgb, var(--p-ink) 13%, transparent); font-size: 16px; }
.r-km b { font-weight: 500; white-space: nowrap; }
.r-roads { margin: var(--s-5) 0; font-size: 16px; line-height: 1.6; }

/* contact form */
.r-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.r-check label { display: flex; gap: var(--s-3); align-items: flex-start; font-size: 15px; line-height: 1.5; }
.r-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.r-footer-logo img { display: block; width: 160px; height: auto; }

/* floating buttons (shared behaviour from main.js) */
.floats { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; display: grid; gap: 12px; transition: opacity .3s, transform .3s; }
.floats.is-away { opacity: 0; transform: translateY(12px); pointer-events: none; }
.float { width: 52px; height: 52px; border-radius: 50%; color: #fff; display: grid; place-items: center; transition: transform .2s; }
.float[hidden] { display: none; }
.float:hover { transform: translateY(-2px); }
.float-ig { background: var(--p-ink); }
.float-wa { background: #1f8a54; }

/* lightbox (shared behaviour from main.js) */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(15,12,10,.94); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; padding: 24px; overscroll-behavior: contain; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 14px; }
.lightbox img { max-height: 82vh; max-width: 100%; width: auto; border-radius: var(--r-md); }
.lightbox figcaption { color: #e9dfd0; font-size: 16px; }
.lightbox button { background: none; border: 0; color: #fff; font-size: 44px; line-height: 1; opacity: .8; min-width: 44px; min-height: 44px; cursor: pointer; }
.lightbox button:hover { opacity: 1; }
.lb-close { position: absolute; top: 16px; right: 24px; }

@media (max-width: 1023px) {
  .r-plan, .r-tall, .r-map, .develop { height: auto; aspect-ratio: 4 / 3; margin-top: var(--s-6); }
  .r-unit__body { padding: var(--s-5); }
  .r-wall { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 639px) {
  .r-wall { grid-template-columns: 1fr 1fr; }
  .g-item { aspect-ratio: 4 / 3; }
  .r-finish, .r-dist, .r-pay-foot, .r-form-row { grid-template-columns: 1fr; }
  .lightbox { grid-template-columns: 40px 1fr 40px; padding: 8px; }
  .floats .float-ig { display: none; }
  .floats .float { width: 48px; height: 48px; }
}

/* round 2 */
.r-pic { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.r-pic .frame__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.r-unit { align-items: center; }
.r-unit__pic { aspect-ratio: 3 / 2; }
.r-unit__pic .frame__img { object-fit: contain; }
.r-unit__body { padding: 0; }
.r-unit__body h3, .r-slot h3, .r-col-h, .r-finish h3 { font-family: var(--font-text); font-size: var(--t-card); font-weight: 500; }
.r-linkbtn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; min-height: 44px; }
.r-slot__state { margin: 0 0 var(--s-4); }
.r-slot h3 { margin-bottom: var(--s-2); }
.r-pay-pic { aspect-ratio: auto; height: 100%; min-height: 320px; }
.rows__value { overflow-wrap: anywhere; }
.pending { color: var(--p-ink); white-space: normal; }
.ground-inverse .pending { color: var(--p-inv-ink); }
#galeria .tabs { display: flex; gap: var(--s-2); }
.r-wall { grid-template-columns: repeat(6, 1fr); }
.g-item { aspect-ratio: 1 / 1; }
@media (max-width: 1023px) { .r-wall { grid-template-columns: repeat(3, 1fr); } .r-pay-pic { min-height: 0; aspect-ratio: 4 / 3; } }
@media (max-width: 639px) {
  .r-wall { grid-template-columns: 1fr 1fr; }
  .g-item { aspect-ratio: 4 / 3; }
  .nav__actions { display: none; }
  .hero__logo { width: 56px; margin-bottom: var(--s-3); }
}

/* round 3 */
.r-unit { align-items: start; }
@media (max-width: 639px) {
  .nav__actions { display: flex; }
  .r-logo-word { display: none; }
}

/* round 4: rows read name over value on a phone; sections that stack take two phone screens */
.rows .rows__value { text-align: right; }
@media (max-width: 639px) {
  .hero__logo { display: none; }
  .rows > li { grid-template-columns: 1fr; padding-block: var(--s-3); gap: 2px; }
  .rows .rows__value { text-align: left; color: var(--muted); }
  .r-unit__body .btn-row { flex-direction: row; gap: var(--s-5); }
  #proyecto, #interiores, #acabados, #ubicacion, #pago, #contacto { --hm: 2; }
}
@media (max-width: 639px) {
  .r-unit__pic, .r-slot__pic { aspect-ratio: 16 / 10; }
  .r-unit__body { gap: var(--s-3); }
  .r-note { margin-top: var(--s-3); }
}
@media (max-width: 639px) {
  .hero .btn--secondary { display: none; }
  #apartamentos .rows > li { padding-block: var(--s-2); }
}
#acabados .rows > li { grid-template-columns: 150px minmax(0, 1fr); }
#acabados .rows .rows__value { text-align: left; }
@media (max-width: 639px) { #acabados .rows > li { grid-template-columns: 1fr; } }

/* round 5 */
.rows .rows__value { white-space: normal; min-width: 0; }
.r-unit__body h3, .r-col-h, .r-slot h3 { font-family: var(--font-display); font-weight: 400; }
.r-contact-pic { margin-top: var(--s-6); aspect-ratio: 3 / 1; }
@media (max-width: 639px) {
  .rows .rows__value { color: var(--p-ink); justify-self: start; }
  .r-contact-pic { aspect-ratio: 16 / 10; }
}

/* Client request: no empty bands. On tablets/phones a section is as tall as its content
   (the kit's 1-2 screen minimum left large blank areas); the pinned #terraza keeps its height. */
@media (max-width: 900px) {
  main > section:not(.hero):not(#terraza) { min-height: 0 !important; }
  main > section:not(.hero):not(#terraza) { padding-block: var(--s-7) var(--s-6); }
  /* The fixed WhatsApp button covered row values on phones: the header CTA and the
     contact section already carry the action. */
  .floats { display: none; }
  /* Hero photo: a real picture, not a thin strip above the text. */
  .hero .hero__bg { height: 34svh; min-height: 0; object-fit: cover; }
  .hero { height: auto !important; min-height: 100svh; padding-top: calc(34svh + 64px) !important; }
}
/* Menu jumps land with the heading below the fixed nav. */
html { scroll-padding-top: 72px; }

/* Spam trap: hidden from people, filled only by bots. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
