/* ------------------------------------------------------------ */
/* INDEX — APARTAMENTO BAJAMAR — PREMIUM EDITORIAL              */
/* ------------------------------------------------------------ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: 'Montserrat', sans-serif;
  color: var(--bj-text, #1a1a1a);
}

.in1 {
  margin: 0;
  padding: 0;
  width: 100%;
}


/* ============================================ */
/* HERO — FULLSCREEN                            */
/* ============================================ */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.55) contrast(1.05);
  animation: heroKenBurns 12s ease-out forwards;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.35) 100%),
    linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
  max-width: 780px;
  padding: 0 2rem;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bj-gold, #c8a84e);
  margin-bottom: 1.2rem;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  animation: wipeIn 0.7s ease-out 0.3s forwards;
}

.hero__h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  opacity: 0;
  transform: translateY(30px);
  filter: blur(8px);
  animation: slideUpBlur 0.8s ease-out 0.5s forwards;
}

.hero__sub {
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.6;
  opacity: 0;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2.5rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  transform: translateY(20px);
  animation: slideUp 0.7s ease-out 0.7s forwards;
}

.hero__cta {
  display: inline-block;
  padding: 0.75rem 2.4rem;
  border: 1.5px solid #fff;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  border-radius: 0;
  transition: background 0.3s ease, color 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.7s ease-out 0.9s forwards;
}

.hero__cta:hover {
  background: #fff;
  color: var(--bj-navy, #002244);
}

@keyframes heroKenBurns {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

@keyframes wipeIn {
  to { opacity: 1; clip-path: inset(0 0 0 0); }
}

@keyframes slideUpBlur {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}


/* ============================================ */
/* SECCIÓN: EL APARTAMENTO                      */
/* ============================================ */

.sec-apartamento {
  background: #fff;
  padding: 120px 2rem;
  text-align: center;
}

.sec-apartamento__inner {
  max-width: 680px;
  margin: 0 auto;
}

.sec-apartamento__eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bj-gold, #c8a84e);
  margin-bottom: 1.5rem;
}

.sec-apartamento__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--bj-navy, #002244);
  margin-bottom: 1.5rem;
}

.sec-apartamento__text {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.8;
  color: #555;
  margin-bottom: 2.5rem;
}

.sec-apartamento__cta {
  display: inline-block;
  padding: 0.7rem 2rem;
  border: 1.5px solid var(--bj-navy, #002244);
  color: var(--bj-navy, #002244);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  border-radius: 0;
  transition: background 0.3s ease, color 0.3s ease;
}

.sec-apartamento__cta:hover {
  background: var(--bj-navy, #002244);
  color: #fff;
}


/* ============================================ */
/* GALERÍA — FULL BLEED 2×2                     */
/* ============================================ */

.sec-gallery {
  width: 100%;
  padding: 0;
}

.sec-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  width: 100%;
}

.sec-gallery__grid img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  display: block;
  border-radius: 0;
}


/* ============================================ */
/* SECCIÓN: ENTORNO — PARALLAX                  */
/* ============================================ */

.sec-entorno {
  position: relative;
  width: 100%;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sec-entorno__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 1;
}

.sec-entorno__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 22, 44, 0.7);
  z-index: 2;
}

.sec-entorno__content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
  max-width: 680px;
  padding: 100px 2rem;
}

.sec-entorno__eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bj-gold, #c8a84e);
  margin-bottom: 1.5rem;
}

.sec-entorno__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.5rem;
}

.sec-entorno__text {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2.5rem;
}

.sec-entorno__cta {
  display: inline-block;
  padding: 0.7rem 2rem;
  border: 1.5px solid #fff;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  border-radius: 0;
  transition: background 0.3s ease, color 0.3s ease;
}

.sec-entorno__cta:hover {
  background: #fff;
  color: var(--bj-navy, #002244);
}


/* ============================================ */
/* SECCIÓN: CTA FINAL                           */
/* ============================================ */

.sec-cta {
  background: var(--bj-navy, #002244);
  padding: 100px 2rem;
  text-align: center;
}

.sec-cta__inner {
  max-width: 600px;
  margin: 0 auto;
}

.sec-cta__eyebrow {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bj-gold, #c8a84e);
  margin-bottom: 1.5rem;
}

.sec-cta__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 2.5rem;
}

.sec-cta__btn {
  display: inline-block;
  padding: 0.8rem 2.8rem;
  border: 1.5px solid #fff;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  border-radius: 0;
  transition: background 0.3s ease, color 0.3s ease;
}

.sec-cta__btn:hover {
  background: #fff;
  color: var(--bj-navy, #002244);
}


/* ============================================ */
/* RESPONSIVE — TABLET (≤ 992px)                */
/* ============================================ */

@media (max-width: 992px) {
  .sec-apartamento {
    padding: 80px 2rem;
  }

  .sec-apartamento__title {
    font-size: 2.4rem;
  }

  .sec-gallery__grid img {
    min-height: 240px;
  }

  .sec-entorno__content {
    padding: 80px 2rem;
  }

  .sec-entorno__title {
    font-size: 2.4rem;
  }

  .sec-cta {
    padding: 80px 2rem;
  }

  .sec-cta__title {
    font-size: 2.2rem;
  }
}


/* ============================================ */
/* RESPONSIVE — MOBILE (≤ 768px)                */
/* ============================================ */

@media (max-width: 768px) {
  .hero__h1 {
    font-size: 2.6rem;
  }

  .hero__sub {
    font-size: 1rem;
  }

  .sec-apartamento {
    padding: 72px 1.5rem;
  }

  .sec-apartamento__title {
    font-size: 2rem;
  }

  .sec-apartamento__text {
    font-size: 1rem;
  }

  .sec-gallery__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2px;
  }

  .sec-gallery__grid img {
    min-height: 200px;
  }

  .sec-entorno__bg {
    background-attachment: scroll; /* parallax off on mobile */
  }

  .sec-entorno__content {
    padding: 64px 1.5rem;
  }

  .sec-entorno__title {
    font-size: 2rem;
  }

  .sec-entorno__text {
    font-size: 1rem;
  }

  .sec-cta {
    padding: 64px 1.5rem;
  }

  .sec-cta__title {
    font-size: 2rem;
  }
}


/* ============================================ */
/* RESPONSIVE — SMALL MOBILE (≤ 480px)          */
/* ============================================ */

@media (max-width: 480px) {
  .hero__h1 {
    font-size: 2.2rem;
  }

  .hero__eyebrow {
    font-size: 0.6rem;
  }

  .sec-apartamento__title {
    font-size: 1.8rem;
  }

  .sec-entorno__title {
    font-size: 1.8rem;
  }

  .sec-cta__title {
    font-size: 1.8rem;
  }

  .sec-gallery__grid img {
    min-height: 220px;
  }
}
