/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-200: #e8e8e8;
  --gray-400: #9a9a9a;
  --gray-600: #5a5a5a;
  --gray-800: #1e1e1e;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans: 'Helvetica Neue', 'Arial', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ===========================
   FIXED HEADER
=========================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s ease;
}

.site-header.scrolled {
  background: rgba(10, 10, 10, 0.95);
}

.header-brand {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.header-brand em { font-style: italic; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.header-nav a {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--white); }

.header-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.header-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.header-logo:hover { opacity: 1; }

/* ===========================
   HERO
=========================== */
.hero { position: relative; height: 300vh; }

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--black);
}

.hero-zoom-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform-origin: center center;
  transition: transform 0.05s linear;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 60px;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.5) 0%,
    transparent 40%,
    transparent 60%,
    rgba(0,0,0,0.65) 100%
  );
  z-index: 2;
}

.hero-text { color: var(--white); transition: opacity 0.3s ease; }

.hero-tag {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 16px;
}

.hero-text h1 {
  font-family: var(--font-serif);
  font-size: clamp(52px, 8vw, 110px);
  line-height: 0.95;
  font-weight: 400;
  color: var(--white);
}
.hero-text h1 em { font-style: italic; }

.hero-sub {
  margin-top: 20px;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.65;
}

.hero-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  color: var(--white);
  opacity: 0.5;
}
.hero-scroll-hint span { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; }

.scroll-line {
  width: 1px;
  height: 50px;
  background: var(--white);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ===========================
   INTRO
=========================== */
.intro { padding: 120px 0; background: var(--white); }

.intro-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 60px;
  align-items: start;
}

.intro-label { padding-top: 8px; }
.intro-label span { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gray-400); }

.intro-body h2 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 30px;
}
.intro-body p { font-size: 16px; color: var(--gray-600); line-height: 1.8; max-width: 560px; margin-bottom: 16px; }

/* ===========================
   GALERÍA
=========================== */
.gallery { background: var(--black); }

.gallery-main {
  width: 100%;
  height: 70vh;
  overflow: hidden;
}
.gallery-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
}
.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

.gallery-caption-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.gallery-caption-bar span { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gray-400); }

.gallery-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 10px 20px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  font-family: var(--font-sans);
}
.gallery-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); }

.gallery-expanded {
  display: none;
  padding: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.gallery-expanded.open { display: block; }

.gallery-expanded-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-bottom: 24px;
}
.gallery-expanded-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.gallery-close {
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-sans);
}
.gallery-close:hover { color: var(--white); }

/* ===========================
   FACHADA
=========================== */
.facade-section { position: relative; background: var(--gray-100); overflow: hidden; }

.facade-img-wrap {
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.facade-img { width: 100%; max-height: 90vh; object-fit: contain; display: block; }

.facade-caption {
  padding: 16px 40px;
  background: var(--black);
  color: var(--gray-400);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ===========================
   STATS
=========================== */
.stats { background: var(--black); padding: 80px 0; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  border-right: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}
.stat:last-child { border-right: none; }

.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(48px, 5vw, 80px);
  font-weight: 400;
  color: var(--white);
  line-height: 1;
  margin-bottom: 12px;
}
.stat-label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gray-400); }

/* ===========================
   SECTION HEADER (shared)
=========================== */
.section-header {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 60px;
}
.section-tag { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gray-400); padding-bottom: 8px; display: block; }
.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.1;
}

/* ===========================
   TIPOLOGÍAS
=========================== */
.tipologias { padding: 120px 0; background: var(--gray-100); }

.tipos-list { border-top: 1px solid var(--gray-200); }

.tipo {
  display: grid;
  grid-template-columns: 48px 1fr auto 40px;
  gap: 40px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--gray-200);
  cursor: pointer;
  transition: padding 0.2s ease, background 0.2s ease;
  opacity: 1 !important; /* override reveal for list items */
  transform: none !important;
}
.tipo:hover { padding-left: 20px; padding-right: 20px; margin: 0 -20px; background: var(--white); }

.tipo-num { font-size: 13px; letter-spacing: 0.1em; color: var(--gray-400); font-weight: 500; }
.tipo-info h3 { font-size: 17px; font-weight: 400; margin-bottom: 4px; }
.tipo-info p { font-size: 13px; color: var(--gray-400); }
.tipo-meters { font-family: var(--font-serif); font-size: 19px; color: var(--black); white-space: nowrap; }
.tipo-arrow { font-size: 20px; color: var(--gray-400); transition: transform 0.2s, color 0.2s; }
.tipo:hover .tipo-arrow { transform: translateX(4px); color: var(--black); }

/* ===========================
   PLANOS
=========================== */
.planos { padding: 120px 0 0; background: var(--white); }
.planos .container { margin-bottom: 0; }

.planos-tabs {
  display: flex;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  overflow-x: auto;
  margin-top: 20px;
}
.plano-tab {
  flex: 1;
  min-width: 120px;
  background: none;
  border: none;
  border-right: 1px solid var(--gray-200);
  padding: 18px 20px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--gray-400);
  font-family: var(--font-sans);
  transition: background 0.2s, color 0.2s;
}
.plano-tab:last-child { border-right: none; }
.plano-tab.active { background: var(--black); color: var(--white); }
.plano-tab:hover:not(.active) { background: var(--gray-100); color: var(--black); }

.planos-viewer { background: var(--gray-100); }

.plano-slide { display: none; }
.plano-slide.active { display: grid; grid-template-columns: 1fr 320px; }

.plano-slide img {
  width: 100%;
  height: 500px;
  object-fit: contain;
  object-position: center;
  padding: 20px;
  background: var(--white);
  display: block;
}

.plano-info {
  padding: 48px 40px;
  background: var(--gray-100);
  border-left: 1px solid var(--gray-200);
}
.plano-info h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 24px;
  line-height: 1.3;
}
.plano-info ul { list-style: none; }
.plano-info li {
  font-size: 14px;
  color: var(--gray-600);
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
  line-height: 1.5;
}
.plano-info li:last-child { border-bottom: none; }

/* ===========================
   AMENITIES
=========================== */
.amenities { padding: 120px 0; background: var(--white); }

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--gray-200);
  border-left: 1px solid var(--gray-200);
}
.amenity {
  padding: 48px 40px;
  border-right: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  transition: background 0.3s;
}
.amenity:hover { background: var(--gray-100); }

.amenity-icon { width: 40px; height: 40px; margin-bottom: 24px; color: var(--black); }
.amenity-icon svg { width: 100%; height: 100%; }
.amenity h3 { font-size: 15px; font-weight: 500; margin-bottom: 10px; }
.amenity p { font-size: 13px; color: var(--gray-600); line-height: 1.7; }

/* ===========================
   UBICACIÓN
=========================== */
.ubicacion { padding: 120px 0 0; background: var(--black); color: var(--white); }
.ubicacion .section-header h2 { color: var(--white); }
.ubicacion .section-tag { color: var(--gray-600); }
.ubicacion-intro { font-size: 16px; color: var(--gray-400); line-height: 1.8; max-width: 680px; margin-top: -20px; margin-bottom: 80px; }

.distancias-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.distancias-col {
  padding: 60px 40px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.distancias-col:last-child { border-right: none; }

.distancias-col h3 {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 32px;
}

.dist-list { display: flex; flex-direction: column; gap: 0; }

.dist-item {
  display: grid;
  grid-template-columns: 24px 1fr 40px;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.dist-item:last-child { border-bottom: none; }
.dist-item.highlight .dist-name { color: var(--white); }
.dist-item.highlight .dist-time { color: var(--white); }

.dist-icon { width: 20px; height: 20px; color: var(--gray-600); flex-shrink: 0; }
.dist-icon svg { width: 100%; height: 100%; }

.dist-info { display: flex; flex-direction: column; gap: 2px; }
.dist-name { font-size: 14px; color: var(--gray-400); font-weight: 400; }
.dist-detail { font-size: 12px; color: var(--gray-600); }

.dist-time {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--gray-600);
  text-align: right;
}

/* ===========================
   CONTACTO
=========================== */
.contact { padding: 120px 0; background: var(--gray-800); }

.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start; }

.contact-text .section-tag { display: block; margin-bottom: 24px; color: var(--gray-600); }
.contact-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
}
.contact-text p { font-size: 15px; color: var(--gray-400); line-height: 1.8; margin-bottom: 12px; }
.contact-data { margin-top: 40px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.08); }
.contact-data p { font-size: 14px; color: var(--gray-400); margin-bottom: 8px; }
.contact-data strong { color: var(--white); }

.form-group { margin-bottom: 4px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--gray-600);
  padding: 14px 0;
  color: var(--white);
  font-size: 15px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s;
  resize: none;
  -webkit-appearance: none;
}
.form-group select option { background: var(--gray-800); color: var(--white); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-600); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-bottom-color: var(--white); }

.btn-submit {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  background: var(--white);
  color: var(--black);
  border: none;
  padding: 16px 36px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--font-sans);
}
.btn-submit:hover { background: var(--gray-200); }

/* contact agent block */
.contact-agent {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.contact-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
}
.contact-agent span {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-600);
}

/* ===========================
   FOOTER
=========================== */
.footer { background: var(--black); padding: 80px 0 40px; }

.footer-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  opacity: 0.45;
  margin-top: 12px;
  display: block;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 40px;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
}
.logo-text em { font-style: italic; }
.footer-tagline { font-size: 12px; color: var(--gray-600); letter-spacing: 0.1em; margin-top: 10px; }

.footer-info p,
.footer-legal p { font-size: 13px; color: var(--gray-400); margin-bottom: 6px; line-height: 1.6; }
.footer-info strong,
.footer-legal strong { color: var(--gray-200); }

.footer-bottom { display: flex; justify-content: space-between; gap: 20px; }
.footer-bottom p { font-size: 11px; color: var(--gray-600); }

/* ===========================
   REVEAL
=========================== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .plano-slide.active { grid-template-columns: 1fr; }
  .plano-slide img { height: 400px; }
  .plano-info { border-left: none; border-top: 1px solid var(--gray-200); }
  .distancias-wrap { grid-template-columns: 1fr; }
  .distancias-col { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
}

@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .intro-grid, .section-header { grid-template-columns: 1fr; gap: 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; gap: 60px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-expanded-grid { grid-template-columns: repeat(2, 1fr); }
  .tipo { grid-template-columns: 40px 1fr; gap: 16px; }
  .tipo-meters, .tipo-arrow { display: none; }
  .hero-overlay { padding: 32px; }
  .distancias-col { padding: 40px 24px; }
  .gallery-caption-bar { padding: 16px 24px; flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 600px) {
  .amenities-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-expanded-grid { grid-template-columns: 1fr; }
  .planos-tabs { gap: 0; }
  .plano-tab { min-width: 90px; font-size: 10px; padding: 14px 10px; }
}
