/* ===== Lote N°70 — La Perla, Alcalá — Landing Page ===== */

:root {
  --green-950: #0c1a10;
  --green-900: #10240f;
  --green-800: #163819;
  --green-700: #1e4d24;
  --green-600: #2c6b32;
  --amber-500: #f2a71b;
  --amber-400: #ffbc3d;
  --amber-600: #d68c0a;
  --cream: #f7f3ea;
  --cream-dim: #e8e0cd;
  --ink: #14201a;
  --white: #ffffff;
  --shadow-lg: 0 20px 60px rgba(10, 20, 12, 0.35);
  --shadow-sm: 0 4px 16px rgba(10, 20, 12, 0.18);
  --radius: 18px;
  --maxw: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  margin: 0;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p { margin: 0; }

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-600);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--amber-500);
  display: inline-block;
}

.eyebrow--light { color: var(--amber-400); }
.eyebrow--light::before { background: var(--amber-400); }

section { position: relative; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
}

.topbar.scrolled {
  background: rgba(12, 26, 16, 0.85);
  backdrop-filter: blur(10px);
  padding: 10px 24px;
  box-shadow: var(--shadow-sm);
}

.brand {
  display: flex;
  flex-direction: column;
  color: var(--white);
  font-family: 'Poppins', sans-serif;
}

.brand strong {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-400);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn--whatsapp {
  background: #25D366;
  color: #06331c;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}
.btn--whatsapp:hover { background: #2ee878; box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45); }

.btn--sm { padding: 9px 18px; font-size: 13px; }

.btn--amber {
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  color: #251500;
  box-shadow: 0 8px 24px rgba(214, 140, 10, 0.4);
}
.btn--amber:hover { box-shadow: 0 10px 30px rgba(214, 140, 10, 0.5); }

.btn--outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.6);
  color: var(--white);
}
.btn--outline:hover { background: rgba(255,255,255,0.12); }

.icon-wa { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0a1710;
}

.hero video, .hero .poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,16,10,.55) 0%, rgba(8,16,10,.15) 30%, rgba(8,16,10,.35) 60%, rgba(6,14,8,.92) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 24px 56px;
  color: var(--white);
  text-align: center;
  margin: 0 auto;
  max-width: 780px;
}

.hero-kicker {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-400);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
  backdrop-filter: blur(6px);
}

.hero h1 {
  font-size: clamp(2.4rem, 9vw, 4.2rem);
  color: var(--white);
  text-shadow: 0 4px 30px rgba(0,0,0,.35);
}

.hero h1 em {
  font-style: normal;
  color: var(--amber-400);
  display: block;
}

.hero-sub {
  margin-top: 16px;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: var(--cream-dim);
  font-weight: 400;
  line-height: 1.5;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.hero-stat {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 10px 18px;
  font-family: 'Poppins', sans-serif;
}

.hero-stat b {
  display: block;
  font-size: 1.05rem;
  color: var(--amber-400);
}

.hero-stat span {
  font-size: 11px;
  color: var(--cream-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.scroll-cue {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,.75);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: bob 2.2s ease-in-out infinite;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.8), transparent);
}
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,6px);} }

/* ---------- Story ---------- */
.story {
  background: var(--cream);
  padding: 96px 0 88px;
}

.story-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 56px;
  align-items: center;
}

.story-copy { max-width: 560px; }

.story blockquote {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 600;
  line-height: 1.38;
  color: var(--green-900);
  margin: 20px 0 24px;
}

.story blockquote strong { color: var(--amber-600); }

.story p.lead {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #45523f;
}

/* Narrated vertical video card (inside story-grid) */
.video-frame {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
  aspect-ratio: 9/16;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #0a1710;
  border: 6px solid var(--green-950);
  cursor: pointer;
}

.video-frame video {
  width: 100%; height: 100%;
  object-fit: cover;
}

.video-sound {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(10, 20, 13, 0.55);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
  font-size: 11.5px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease;
}
.video-sound:hover { background: rgba(10,20,13,.75); }

/* ---------- Stat strip ---------- */
.stripe {
  background: var(--green-900);
  padding: 30px 0;
}

.stripe .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 22px;
  text-align: center;
}

.stripe-item b {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--amber-400);
}

.stripe-item span {
  font-size: 12px;
  color: var(--cream-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Section shells ---------- */
.section { padding: 88px 0; }
.section--tight { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-top: 12px;
  color: var(--green-900);
}
.section-head p {
  margin-top: 14px;
  font-size: 1.02rem;
  color: #4a5644;
  line-height: 1.65;
}

.section--dark { background: var(--green-950); color: var(--cream); }
#ubicacion { background: #010201; }
.section--dark .section-head h2 { color: var(--white); }
.section--dark .section-head p { color: var(--cream-dim); }

/* ---------- Location ---------- */
.loc-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.loc-grid figure {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loc-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.loc-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.98rem;
  color: var(--cream-dim);
  line-height: 1.5;
}

.loc-list .pin {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(242, 167, 27, 0.15);
  color: var(--amber-400);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  margin-top: 2px;
}

.loc-list b { color: var(--white); }

/* ---------- Feature / benefit cards ---------- */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(20,32,26,0.05);
  transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card .ic {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
  color: #241300;
}

.card h3 {
  font-size: 1.05rem;
  color: var(--green-900);
  margin-bottom: 8px;
}

.card p {
  font-size: 0.93rem;
  color: #566152;
  line-height: 1.55;
}

/* benefits on dark */
.section--dark .card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: none;
}
.section--dark .card h3 { color: var(--white); }
.section--dark .card p { color: var(--cream-dim); }
.section--dark .card:hover { background: rgba(255,255,255,0.07); }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery a {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-sm);
}

.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.gallery a:hover img { transform: scale(1.06); }

.gallery a::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.55));
  opacity: 0;
  transition: opacity .3s ease;
}
.gallery a:hover::after { opacity: 1; }

.gallery a span {
  position: absolute;
  bottom: 12px; left: 12px; right: 12px;
  color: var(--white);
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: all .3s ease;
}
.gallery a:hover span { opacity: 1; transform: translateY(0); }

.gallery--2 { grid-template-columns: repeat(2, 1fr); }
.gallery--2 a { aspect-ratio: 4/3; }

.disclaimer {
  margin-top: 18px;
  font-size: 12.5px;
  color: #7a8574;
  text-align: center;
  font-style: italic;
}
.section--dark .disclaimer { color: #8b9585; }

/* ---------- Price / CTA ---------- */
.price-band {
  background:
    linear-gradient(180deg, rgba(10,20,13,.65), rgba(8,16,10,.92)),
    url('../img/real-1.jpg') center/cover fixed;
  color: var(--white);
  padding: 100px 0;
  text-align: center;
}

.price-band .container { max-width: 700px; }

.price-tag {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 4rem);
  color: var(--amber-400);
  margin: 14px 0 4px;
  letter-spacing: -0.02em;
}

.price-sub {
  font-size: 0.95rem;
  color: var(--cream-dim);
}

.price-note {
  margin-top: 6px;
  display: inline-block;
  background: rgba(242,167,27,.15);
  border: 1px solid rgba(242,167,27,.4);
  color: var(--amber-400);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.price-band .btn { margin-top: 30px; }

.price-meta {
  margin-top: 18px;
  font-size: 13px;
  color: var(--cream-dim);
}

/* ---------- Footer ---------- */
footer {
  background: var(--green-950);
  color: var(--cream-dim);
  padding: 52px 0 26px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand strong {
  font-family: 'Poppins', sans-serif;
  color: var(--white);
  font-size: 1.2rem;
}

.footer-brand p { margin-top: 8px; max-width: 320px; font-size: 0.9rem; line-height: 1.6; }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
}

.footer-contact a { display: flex; align-items: center; gap: 8px; }
.footer-contact a:hover { color: var(--amber-400); }

.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #6c766a;
}

/* ---------- Floating WhatsApp ---------- */
.fab-wa {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  animation: pulse 2.4s ease-in-out infinite;
}
.fab-wa svg { width: 30px; height: 30px; }

@keyframes pulse {
  0% { box-shadow: 0 10px 30px rgba(0,0,0,.35), 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 10px 30px rgba(0,0,0,.35), 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 10px 30px rgba(0,0,0,.35), 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(6,10,7,0.94);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 86vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  color: var(--white);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  background: none; border: none;
}
.lightbox-cap {
  position: absolute;
  bottom: 28px;
  color: var(--cream-dim);
  font-size: 13px;
  text-align: center;
  width: 100%;
  left: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .loc-grid { grid-template-columns: 1fr; gap: 32px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: 1fr; gap: 36px; }
  .story-copy { max-width: 100%; text-align: center; }
  .video-frame { max-width: 280px; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .price-band { padding: 72px 0; background-attachment: scroll; }
  .footer-grid { flex-direction: column; }
  .hero-stats { gap: 8px; }
  .hero-stat { padding: 8px 14px; }
  .gallery--2 { grid-template-columns: 1fr; }
}
