/* ============ Residencial Don Chimbín 5 ============ */

:root {
  --navy: #16294d;
  --navy-deep: #0f1d38;
  --amber: #dfa04b;
  --blue: #4a9fd8;
  --lime: #a3c14f;
  --yellow: #e5d34f;
  --wa: #25d366;
  --wa-dark: #1eb457;
  --paper: #fdfbf7;
  --tint: #f4f1ea;
  --ink: #22293a;
  --muted: #5b6474;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(22, 41, 77, .12);
  --font-sans: 'Outfit', system-ui, sans-serif;
  --font-script: 'Great Vibes', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

/* ---------- Color bar (facade motif) ---------- */
.colorbar { display: flex; height: 5px; }
.colorbar i { flex: 1; }
.colorbar i:nth-child(1) { background: var(--amber); }
.colorbar i:nth-child(2) { background: var(--blue); }
.colorbar i:nth-child(3) { background: var(--lime); }
.colorbar i:nth-child(4) { background: var(--yellow); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }

.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 8px 24px rgba(37, 211, 102, .35); }
.btn--wa:hover { background: var(--wa-dark); }

.btn--ghost {
  border: 2px solid rgba(255, 255, 255, .75);
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .15); }

.btn--nav { padding: .5rem 1.1rem; font-size: .9rem; }
.btn--block { justify-content: center; width: 100%; }

.ico-wa { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
.ico { width: 1.4em; height: 1.4em; fill: currentColor; flex: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: #fff;
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: .65rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav__brand { display: flex; align-items: center; }
.nav__brand img { height: 36px; width: auto; }

.nav__links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav__links a {
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  opacity: .85;
  transition: opacity .2s;
}
.nav__links a:hover { opacity: 1; }

.nav__actions { display: flex; align-items: center; gap: .9rem; }

.lang-toggle {
  display: flex;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  overflow: hidden;
}
.lang-toggle button {
  background: none;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 600;
  padding: .35rem .7rem;
  cursor: pointer;
  opacity: .6;
}
.lang-toggle button.is-active { background: rgba(255, 255, 255, .18); opacity: 1; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__burger span { width: 24px; height: 2px; background: #fff; transition: transform .25s, opacity .25s; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url('../assets/building-3.jpeg') center / cover no-repeat;
  animation: heroZoom 18s ease-out forwards;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 29, 56, .75) 0%, rgba(22, 41, 77, .45) 45%, rgba(15, 29, 56, .88) 100%);
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

.hero__content {
  position: relative;
  text-align: center;
  padding: 6rem 1.25rem 2rem;
  max-width: 860px;
  margin: 0 auto;
}
.hero__logo { line-height: 0; }
.hero__logo img {
  width: clamp(280px, 55vw, 620px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 6px 30px rgba(0, 0, 0, .45));
}
.hero__location {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: .8rem;
  font-size: clamp(.9rem, 2vw, 1.05rem);
  font-weight: 500;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  padding: .45rem 1.1rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.hero__location .ico { width: 1.1em; height: 1.1em; }
.hero__lead {
  margin: 1.3rem auto 2rem;
  max-width: 560px;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 300;
  opacity: .95;
}
.hero__ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero__stats {
  position: relative;
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 4.5rem);
  padding: 2rem 1.25rem 2.6rem;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat__num {
  display: block;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  font-weight: 800;
  color: var(--yellow);
  line-height: 1.1;
}
.stat__label { font-size: .85rem; font-weight: 500; opacity: .9; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 1.25rem; }
.section--tint { background: var(--tint); }
.section--navy { background: var(--navy); color: #fff; }
.section__inner { max-width: 1200px; margin: 0 auto; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }

.kicker {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--amber);
  line-height: 1;
  margin-bottom: .4rem;
}
.kicker--light { color: var(--yellow); }

.section__title {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section__text { color: var(--muted); font-size: 1.05rem; }
.section--navy .section__text { color: rgba(255, 255, 255, .8); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

/* framed image with color-block edge */
.framed {
  position: relative;
  border-radius: var(--radius);
}
.framed::before {
  content: '';
  position: absolute;
  inset: -14px 14px 14px -14px;
  border-radius: var(--radius);
  background: var(--amber);
  z-index: 0;
}
.framed--lime::before { background: var(--lime); }
.framed img {
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 1;
}

/* checklist */
.checklist { list-style: none; margin: 1.4rem 0; }
.checklist li {
  position: relative;
  padding: .35rem 0 .35rem 2rem;
  font-weight: 500;
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .62rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9.5 16.2l-3.7-3.7 1.4-1.4 2.3 2.3 6.3-6.3 1.4 1.4z'/%3E%3C/svg%3E") center / 80% no-repeat;
}

.badges { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.2rem; }
.badge {
  padding: .4rem 1rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  color: #fff;
}
.badge--amber { background: var(--amber); }
.badge--blue { background: var(--blue); }
.badge--lime { background: var(--lime); }

/* ---------- Apartment features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}
.feature {
  display: flex;
  align-items: center;
  gap: .8rem;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.05rem 1.2rem;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(22, 41, 77, .07);
  border-left: 4px solid var(--amber);
  transition: transform .2s ease;
}
.feature:hover { transform: translateY(-3px); }
.feature .ico { color: var(--navy); }

.apt-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.6rem;
}
.apt-highlight {
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy-deep);
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.apt-highlight--amber,
.apt-highlight--yellow { background: #fff; border-left: 4px solid var(--amber); box-shadow: 0 4px 18px rgba(22, 41, 77, .07); }
.apt-highlight__level {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
  opacity: .7;
}

/* ---------- Amenities ---------- */
.grid-2--flip > figure { order: -1; }
.amenities { display: flex; flex-direction: column; gap: .9rem; margin-top: 1.4rem; }
.amenity {
  display: flex;
  align-items: center;
  gap: .9rem;
  background: #fff;
  padding: .95rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(22, 41, 77, .07);
}
.amenity__dot { width: .8rem; height: .8rem; border-radius: 50%; flex: none; background: var(--lime); }

/* ---------- Prices ---------- */
.price-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  margin-bottom: 2.6rem;
}
.price-banner__label {
  display: block;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 600;
  color: var(--yellow);
}
.price-banner__amount {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
}
.price-banner__schemes p { font-size: .95rem; opacity: .85; }
.chips { display: flex; gap: .6rem; flex-wrap: wrap; margin: .6rem 0; }
.chip {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  padding: .35rem .95rem;
  font-size: .9rem;
  font-weight: 600;
}
.price-banner__mode { font-weight: 500; }

.levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
}
.level {
  --accent: var(--amber);
  position: relative;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.5rem;
  border-top: 6px solid var(--accent);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .25);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease;
}
.level:hover { transform: translateY(-6px); }
.level--amber { --accent: var(--amber); }
.level--blue { --accent: var(--blue); }
.level--lime { --accent: var(--lime); }
.level--yellow { --accent: var(--yellow); }

.level__ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--accent);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  padding: .3rem .9rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
}
.level--yellow .level__ribbon { color: var(--navy-deep); }

.level__name { font-size: 1.15rem; font-weight: 600; margin-bottom: 1rem; }
.level__big { font-size: 2rem; font-weight: 800; color: var(--accent); }

.level__rows { flex: 1; margin-bottom: 1.3rem; }
.level__rows > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .8rem;
  padding: .55rem 0;
  border-bottom: 1px dashed #e4e0d6;
}
.level__rows dt { font-size: .88rem; color: var(--muted); }
.level__rows dd { font-weight: 700; white-space: nowrap; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery__item {
  border: none;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--navy);
}
.gallery__item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform .35s ease, opacity .35s ease;
}
.gallery__item:hover img { transform: scale(1.05); opacity: .85; }

/* ---------- Location ---------- */
.location { text-align: center; max-width: 640px; }
.location__pin { width: 3rem; height: 3rem; fill: var(--amber); margin: 0 auto 1rem; }
.location .btn { margin-top: 1.4rem; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #fff; }
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 2.5rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.footer__logo { width: min(280px, 100%); height: auto; }
.footer__tagline { margin-top: .9rem; font-size: .95rem; opacity: .8; font-style: italic; }

.footer__contact { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; }
.footer__phone { font-size: .9rem; opacity: .75; }
.footer__social { display: flex; align-items: center; gap: .7rem; margin-top: .4rem; font-weight: 500; }
.footer__social a { opacity: .85; transition: opacity .2s; }
.footer__social a:hover { opacity: 1; }
.footer__social .ico { width: 1.5rem; height: 1.5rem; fill: #fff; }

.footer__dev p:first-child { font-size: .85rem; opacity: .7; }
.footer__devname { font-weight: 700; font-size: 1.1rem; }

.footer__copy {
  text-align: center;
  padding: 1.2rem;
  font-size: .8rem;
  opacity: .5;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 90;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: var(--wa);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .45);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 2rem; height: 2rem; fill: #fff; }
.wa-float::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--wa);
  animation: waPulse 2.2s ease-out infinite;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 29, 56, .95);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: min(92vw, 1300px);
  max-height: 86vh;
  border-radius: 10px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, .5);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 255, 255, .25); }
.lightbox__close { top: 1.2rem; right: 1.2rem; }
.lightbox__nav--prev { left: 1.2rem; }
.lightbox__nav--next { right: 1.2rem; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg { animation: none; }
  .wa-float::after { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    gap: 0;
    padding: .5rem 0 1rem;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: .8rem 1.5rem; }
  .nav__burger { display: flex; }
  .btn--nav span { display: none; }
  .btn--nav { padding: .55rem; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-2--flip > figure { order: 0; }
  .price-banner { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 560px) {
  .apt-highlights { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__item img { height: 210px; }
  .hero__stats { gap: 1.2rem; }
  .stat { flex: 1 1 38%; }
}
