/* ----------------------------------------------------------
   PROJECT PAGES — restyle layer
   Loaded after each page's inline <style>, so these rules win
   at equal specificity. Same system as the home page:
   one family (PP Mori), sentence case, no tracked labels,
   no hairlines or glass, square media, flat pill buttons.
   ---------------------------------------------------------- */

:root {
  --font-mono: var(--font); /* retire the mono accent everywhere */
  --label: 0.875rem;
}

/* Small text: sentence case, readable, untracked */
.eyebrow,
.nav__back,
.proj-hero__status,
.info-item__label,
.placeholder-head__note,
.gallery__hero,
.gallery__item,
.media-placeholder__text,
.others__all,
.other-card__status,
.other-card__meta,
.footer__heading,
.footer__base,
.plano figcaption,
.units__table th,
.units__plan-btn,
.units__plan-soon,
.lang-switch,
.lang-switch__trigger {
  font-family: var(--font);
  font-size: var(--label);
  letter-spacing: 0;
  text-transform: none;
}

/* The "Proyecto" label above the title repeats the page; the status pill stays */
.proj-hero__meta .eyebrow { display: none; }

/* ---------- Buttons: flat fills, no outlines ---------- */
.btn {
  font-family: var(--font);
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-transform: none;
  padding: 0.9375rem 1.75rem;
  border: 0;
}
.btn:hover { background: var(--ink-soft); color: var(--bone); }
.btn--ghost { background: var(--stone-soft); color: var(--ink); }
.btn--ghost:hover { background: var(--stone); color: var(--ink); }
.btn--light { background: var(--bone); color: var(--ink); }
.btn--light:hover { background: var(--white); color: var(--ink); }

/* ---------- Nav: a plain bar ---------- */
.nav {
  background: var(--bone);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 0;
}
.nav__back {
  border: 0;
  background: var(--stone-soft);
  padding: 0.625rem 1.25rem;
}
.nav__back:hover { background: var(--ink); color: var(--bone); }

/* ---------- Hero ---------- */
.proj-hero__status { padding: 0.4375rem 0.875rem; }
.proj-hero__status--sold { background: var(--stone-soft); color: var(--ink); border: 0; }
.proj-hero__status--study { background: var(--stone-soft); color: var(--ink); border: 0; }

/* ---------- Info strip: a tone step instead of two rules ---------- */
.info-strip {
  border-top: 0;
  border-bottom: 0;
  background: var(--stone-soft);
  margin-bottom: clamp(4rem, 8vw, 7rem);
}
.info-item__label { color: var(--ink-soft); margin-bottom: 0.375rem; }
.info-item__value { font-size: 1.25rem; letter-spacing: -0.01em; }

/* Five-up strip (pages with a plans viewer) */
.info-strip__grid--5 { grid-template-columns: 1.4fr 1.4fr 0.7fr 1fr 1fr; }
.info-item__action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.125rem;
  font: inherit;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--bone);
  background: var(--ink);
  border: 0;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.info-item__action:hover { background: var(--ink-soft); }
.info-item__action:active { transform: translateY(1px); }
.info-item__action .arrow { transition: transform 0.3s var(--ease); }
.info-item__action:hover .arrow { transform: translateX(3px); }
@media (max-width: 960px) {
  .info-strip__grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .info-strip__grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-item--plans { grid-column: 1 / -1; }
}

/* ---------- Plan viewer ---------- */
.plans {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font);
}
.plans[open] { display: flex; flex-direction: column; }
.plans::backdrop { background: rgba(10, 10, 10, 0.6); }
.plans__bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem var(--gutter);
}
.plans__title {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.plans__tabs {
  display: flex;
  gap: 0.375rem;
  list-style: none;
  margin: 0 auto 0 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.plans__tabs button,
.plans__nav,
.plans__close {
  font: inherit;
  font-size: var(--label);
  color: var(--ink);
  background: var(--stone-soft);
  border: 0;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.plans__tabs button:hover,
.plans__nav:hover,
.plans__close:hover { background: var(--stone); }
.plans__tabs button.is-active { background: var(--ink); color: var(--bone); }
.plans__close {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  flex: none;
}
.plans__stage {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: var(--white);
  display: flex;
}
.plans__sheet { display: none; margin: auto; padding: 1rem; }
.plans__sheet.is-active { display: block; }
.plans__sheet img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 11rem); /* bar + footer + sheet padding */
  width: auto;
  height: auto;
}
.plans__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--gutter);
}
.plans__count { font-size: var(--label); color: var(--ink-soft); font-variant-numeric: tabular-nums; }

@media (max-width: 720px) {
  .plans__bar { flex-wrap: wrap; gap: 0.75rem; }
  .plans__title { flex: 1; }
  .plans__tabs { order: 3; width: 100%; margin: 0; }
  /* On a phone the sheet keeps a readable size and scrolls sideways */
  .plans__sheet img { max-width: none; max-height: none; width: 220vw; }
}

/* ---------- Media: rounded corners (page defaults), solid placeholders ---------- */
.gallery__hero,
.gallery__item { color: var(--ink-soft); }
.media-placeholder {
  border: 0;
  color: var(--ink-soft);
}
.plano a { border: 0; background: var(--white); transition: background 0.25s ease; }
.plano a:hover { background: var(--bone); }
.plano figcaption { color: var(--ink-soft); }

/* ---------- Units table: keep row rules (it is a real table), drop caps ---------- */
.units__table th { color: var(--ink-soft); }
.units__plan-btn { border: 0; background: var(--stone-soft); padding: 0.4375rem 0.875rem; cursor: pointer; line-height: 1.4; }
.units__plan-btn:hover { background: var(--ink); color: var(--bone); }
.units__plan-soon { color: var(--ink-soft); }

/* ---------- Price / CTA: running text in full ink ---------- */
.price-cta__sub,
.price-cta__desc { color: var(--bone); }

/* ---------- Other projects ---------- */
.others__all {
  border-bottom: 0;
  padding: 0.5rem 1rem;
  background: var(--stone-soft);
  border-radius: 9999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.others__all:hover { background: var(--ink); color: var(--bone); }
.other-card__status { padding: 0.375rem 0.75rem; }
.other-card__status--study {
  background: var(--stone-soft);
  color: var(--ink);
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.other-card__meta { color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* ---------- Footer ---------- */
.footer { border-top: 0; }
.footer__base { border-top: 0; color: var(--stone); }

/* ---------- Language switch ---------- */
.lang-switch__trigger { border: 0; box-shadow: 0 4px 16px rgba(10, 10, 10, 0.14); }
.lang-switch__trigger:hover { background: var(--white); box-shadow: 0 4px 16px rgba(10, 10, 10, 0.14); }
.lang-switch__menu { border: 0; }
