/* ============================================================
   BASE.CSS — Estilos base, variables de diseño y utilidades
   Grupo Vastil — Inmobiliaria Premium
   ============================================================ */

/* ── RESET Y CONFIGURACIÓN GLOBAL ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --gold:         #c5a86d;
  --gold-hover:   #dfc691;
  --gold-dark:    #9b7f4b;
  --gold-pale:    #f5ecd8;
  --dark:         #07090e;
  --dark-glass:   rgba(7, 9, 14, 0.82);
  --dark-light:   #0f1320;
  --dark-card:    #161c2d;
  --mid:          #a8bcd4; /* Mejorado: ratio ~5.1:1 sobre --dark (#07090e) — WCAG AA ✓ */
  --mid-dark:     #35455e;
  --light:        #faf9f6; /* Blanco alabastro */
  --light-gray:   #f3f2ee; /* Gris lino */
  --white:        #ffffff;
  --border-glass: rgba(255, 255, 255, 0.08);
  --serif:        'Playfair Display', Cormorant Garamond, Georgia, serif;
  --sans:         'Plus Jakarta Sans', Jost, sans-serif;
  --transition:   all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm:    0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg:    0 20px 40px rgba(0, 0, 0, 0.3);
  --pad-x:        8%;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--sans);
  background: var(--light);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--dark);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* ── UTILIDADES DE MAQUETACIÓN ── */

.section-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-dark);
  position: relative;
  display: inline-block;
}

.section-body {
  font-size: 15px;
  color: var(--mid-dark);
  line-height: 1.85;
  margin-bottom: 20px;
  font-weight: 400;
}

.section-intro-center {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}
.section-intro-center .section-label {
  justify-content: center;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
  gap: 24px;
}
.section-header-text { 
  max-width: 600px; 
}

/* ── BOTONES PREMIUM ── */

.btn-gold {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--dark);
  padding: 16px 36px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: 1px solid var(--gold);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(197, 168, 109, 0.15);
}
.btn-gold:hover {
  background: transparent;
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(197, 168, 109, 0.3);
}
.btn-full {
  width: 100%;
}

.btn-outline {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: transparent;
  color: var(--white);
  padding: 16px 36px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: var(--transition);
  cursor: pointer;
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
}

.btn-dark {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--dark);
  color: var(--gold);
  padding: 16px 36px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--dark);
  transition: var(--transition);
  cursor: pointer;
}
.btn-dark:hover {
  background: transparent;
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(7, 9, 14, 0.15);
}

/* ── ANIMACIONES POR SCROLL ── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  /* will-change removido del estado inicial: causaba que el browser creara
     compositing layers GPU que capturaban el contenido del hero como fondo */
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* Las tarjetas de propiedades son visibles desde el inicio —
   el filtro JS las controla; no dependen del IntersectionObserver */
.prop-card.fade-up {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

/* Delay staggered classes for columns */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }
