/* ═══════════════════════════════════════════════
   LAYOUT.CSS — Sections, Grid, Responsive
   OkaneGroup Theme v1.0.0
   ═══════════════════════════════════════════════ */

/* ═══ NAVBAR ═══ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-navbar);
  background: rgba(26, 23, 20, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0 var(--ok-gutter);
  height: var(--ok-navbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.5s var(--ok-ease), opacity 0.4s ease;
  pointer-events: none;
}

.navbar.revealed {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Global navbar visible on all pages except homepage */
.okane-navbar-visible .navbar {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  border-bottom: 1px solid var(--ok-cream-08);
}
.okane-navbar-visible .navbar .nav-logo {
  opacity: 1;
}
.okane-navbar-visible {
  padding-top: var(--ok-navbar-h);
}
/* Pages with hero: no padding, navbar hidden until scroll past hero (JS adds .revealed) */
.okane-propiedades {
  padding-top: 0;
}
.okane-propiedades .navbar:not(.revealed) {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.nav-logo {
  font-family: var(--ok-font-display);
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  background: linear-gradient(
    to bottom,
    rgba(225, 216, 203, 1) 30%,
    rgba(225, 216, 203, 0.5) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  transform: scaleX(1.15);
  transform-origin: left center;
  opacity: 0;
  transition: opacity 0.3s ease 0.15s;
}

.navbar.revealed .nav-logo { opacity: 1; }

.nav-links {
  display: none; /* V2: replaced by hamburger */
}

.nav-links a {
  color: var(--ok-cream-60);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color var(--ok-transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--ok-cream);
  transition: width var(--ok-transition);
}

.nav-links a:hover { color: var(--ok-cream); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--ok-cream); }
.nav-links a.active::after { width: 100%; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ═══ HERO ═══ */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 400px;
  max-height: 900px;
  background: var(--ok-dark);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: clamp(20px, 2.5vw, 36px) var(--ok-gutter);
  margin-top: 0;
}

.hero-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: clamp(16px, 2vw, 28px) var(--ok-gutter);
}

.hero-nav .nav-lang {
  font-size: 12px;
  color: var(--ok-cream-60);
  border: 1px solid var(--ok-cream-30);
  padding: 6px 12px;
  border-radius: 4px;
  letter-spacing: 1px;
  transition: all var(--ok-transition);
}

.hero-nav .nav-lang:hover {
  color: var(--ok-cream);
  border-color: var(--ok-cream-60);
}

.hero-nav .nav-search {
  color: var(--ok-cream-60);
  transition: color var(--ok-transition);
  padding: 6px;
}

.hero-nav .nav-search:hover { color: var(--ok-cream); }

/* Hero CTA button */
.hero-nav .hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--ok-btn-light);
  padding: 5px;
  border-radius: var(--ok-radius-pill);
  font-size: 15px;
  font-weight: 300;
  font-family: var(--ok-font-primary);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.hero-nav .hero-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 5px;
  width: 38px;
  height: 38px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--ok-dark-btn);
  transition: all 0.3s var(--ok-ease);
  z-index: 1;
}

.hero-nav .hero-cta:hover::before {
  width: calc(100% - 10px);
  border-radius: 26px;
}

.hero-nav .hero-cta .btn-text {
  position: relative;
  z-index: 2;
  padding-left: 16px;
  margin-right: 12px;
  color: var(--ok-dark-btn);
  transition: color 0.3s ease;
  white-space: nowrap;
  font-family: var(--ok-font-primary);
  font-size: 15px;
  font-weight: 300;
}

.hero-nav .hero-cta:hover .btn-text { color: var(--ok-btn-hover-text); }

.hero-nav .hero-cta .btn-icon {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  color: var(--ok-btn-hover-text);
}

.hero-nav .hero-cta .btn-icon svg {
  width: 14px;
  height: 14px;
}

.hero-bg {
  position: absolute;
  inset: -50px;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 23, 20, 0.9) 0%, rgba(26, 23, 20, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Ensō brushstroke */
.hero-enso {
  position: absolute;
  bottom: 0;
  right: 0;
  width: clamp(280px, 45vw, 620px);
  z-index: var(--z-base);
  pointer-events: none;
  line-height: 0;
  overflow: hidden;
}

.enso-img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  will-change: filter, transform, mask-image, -webkit-mask-image;
}

.hero-okane-text {
  font-family: var(--ok-font-display);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 0.85;
  letter-spacing: -0.04em;
  user-select: none;
  margin-bottom: 16px;
  margin-left: -10px;
  font-size: clamp(64px, 12vw, 180px);
  background: linear-gradient(
    to bottom,
    rgba(225, 216, 203, 1) 30%,
    rgba(225, 216, 203, 0.3) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  transform: scaleX(1.2);
  transform-origin: left center;
  max-width: 83vw;
}

.hero-subtitle {
  font-family: var(--ok-font-primary);
  font-size: clamp(15px, 1.8vw, 22px);
  font-weight: 300;
  color: var(--ok-cream-80);
  letter-spacing: 0.3px;
}

.hero h1 {
  font-family: var(--ok-font-primary);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  color: var(--ok-cream);
  line-height: 1.2;
  max-width: 560px;
}

/* ═══ FILTERS ═══ */
.filters-section {
  padding: 0;
  background: var(--ok-white);
  position: relative;
  z-index: var(--z-sticky);
  border-bottom: 1px solid var(--ok-beige-light);
}

.filters-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px var(--ok-gutter) 0;
}

.filters-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ok-text-dark);
}

.filters-count {
  font-size: 11px;
  color: var(--ok-gray-warm);
  letter-spacing: 0.5px;
}

.filters-bar {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 12px var(--ok-gutter) 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filters-bar::-webkit-scrollbar { display: none; }

/* ═══ PROPERTY GRID ═══ */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
  padding: clamp(24px, 3vw, 40px) var(--ok-gutter) clamp(40px, 5vw, 72px);
}

/* ═══ CTA SECTION ═══ */
.cta-section {
  position: relative;
  padding: clamp(80px, 10vw, 130px) var(--ok-gutter);
  background: var(--ok-dark);
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: -40px;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 23, 20, 0.92), rgba(26, 23, 20, 0.75));
}

.cta-content { position: relative; z-index: 2; max-width: 700px; }

.cta-content h2 {
  font-family: var(--ok-font-primary);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 600;
  color: var(--ok-cream);
  line-height: 1.2;
  margin-bottom: 36px;
}

/* ═══ FAQ SECTION ═══ */
.faq-section {
  padding: clamp(56px, 7vw, 88px) var(--ok-gutter);
  max-width: 920px;
  margin: 0 auto;
}

.faq-section h2 {
  font-family: var(--ok-font-primary);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  margin-bottom: 44px;
  color: var(--ok-text-dark);
}

/* ═══ STATEMENT SECTION ═══ */
.statement-section {
  background: var(--ok-dark);
  padding: clamp(100px, 14vw, 200px) var(--ok-gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.statement-content {
  max-width: 960px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.statement-heading {
  font-family: var(--ok-font-primary);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 500;
  color: var(--ok-cream);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ═══ FOOTER ═══ */
.footer {
  background: var(--ok-dark);
  color: var(--ok-cream);
}

.footer-brand {
  padding: 24px 0 0;
  overflow: hidden;
  position: relative;
  text-align: center;
  background: linear-gradient(to bottom, var(--ok-dark) 0%, #2A2725 100%);
}

.footer-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px var(--ok-gutter);
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
}

/* Gradient lines */
.footer-info-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--ok-gutter);
  right: var(--ok-gutter);
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--ok-cream-15) 20%,
    var(--ok-cream-30) 50%,
    var(--ok-cream-15) 80%,
    transparent 100%
  );
}

.footer-info-row::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--ok-gutter);
  right: var(--ok-gutter);
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--ok-cream-30) 20%,
    var(--ok-cream-40) 50%,
    var(--ok-cream-30) 80%,
    transparent 100%
  );
}

.footer-info-row span,
.footer-info-row a {
  font-size: 12px;
  color: var(--ok-cream-30);
  font-weight: 300;
  transition: color var(--ok-transition);
}

.footer-info-row a:hover { color: var(--ok-cream-60); }

.footer-info-row strong {
  font-weight: 600;
  color: var(--ok-cream-40);
}

.footer-info-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.footer-brand-text {
  font-family: var(--ok-font-display);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 0.85;
  letter-spacing: -0.04em;
  user-select: none;
  white-space: nowrap;
  display: inline-block;
  font-size: clamp(80px, 20vw, 300px);
  background: linear-gradient(
    to bottom,
    rgba(225, 216, 203, 1) 30%,
    rgba(225, 216, 203, 0.3) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  transform: scaleX(1.2);
  transform-origin: center center;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

/* ── Ultra-wide containment ── */
@media (min-width: 1440px) {
  .navbar {
    padding-left: max(48px, calc((100vw - 1440px) / 2));
    padding-right: max(48px, calc((100vw - 1440px) / 2));
  }
  
  .filters-top-bar,
  .filters-bar {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .properties-grid {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero {
    padding-left: max(48px, calc((100vw - 1440px) / 2));
    padding-right: max(48px, calc((100vw - 1440px) / 2));
  }
  
  .hero-nav {
    padding-left: max(48px, calc((100vw - 1440px) / 2));
    padding-right: max(48px, calc((100vw - 1440px) / 2));
  }
  
  .cta-section {
    padding-left: max(64px, calc((100vw - 1440px) / 2));
    padding-right: max(64px, calc((100vw - 1440px) / 2));
  }
  
  .statement-section {
    padding-left: max(64px, calc((100vw - 1440px) / 2));
    padding-right: max(64px, calc((100vw - 1440px) / 2));
  }
  
  .footer-info-row {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-okane-text { font-size: clamp(160px, 10vw, 200px); }
}

@media (min-width: 1800px) {
  .hero-okane-text { font-size: 200px; }
  .hero { max-height: 960px; }
  .card-image-wrap { height: clamp(240px, 16vw, 300px); }
}

@media (min-width: 2200px) {
  .hero-okane-text { font-size: 220px; }
  .hero { max-height: 1020px; }
  .properties-grid { max-width: 1600px; gap: 28px; }
  .card-image-wrap { height: 300px; }
}

@media (min-width: 2560px) {
  .hero-okane-text { font-size: 240px; }
  .hero { max-height: 1080px; }
  .properties-grid { max-width: 1700px; gap: 32px; }
}

@media (max-width: 1024px) {
  .properties-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .cp-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-cta.boton-francoglobal { display: none !important; }
  .hero-nav .hero-cta { display: none !important; }
}

@media (max-width: 640px) {
  .properties-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 100%; }
  
  .filters-bar { flex-wrap: wrap; gap: 8px; }
  .filter-chip { border-radius: 4px !important; border: 1px solid var(--ok-beige-light) !important; }
  .filter-chip + .filter-chip { border-left: 1px solid var(--ok-beige-light) !important; }
  .filter-divider { display: none; }
  .filter-search-wrap { min-width: 100%; order: -1; }
  
  .footer-info-row { flex-direction: column; text-align: center; }
  .footer-info-center { position: static; transform: none; }
  .footer-brand-text { font-size: clamp(60px, 18vw, 100px); transform: scaleX(1.15); }
  
  .hero-okane-text { margin-left: -4px; font-size: clamp(48px, 14vw, 80px); max-width: 88vw; }
  .hero { height: 100vh; height: 100svh; max-height: none; }
}

@media (max-width: 380px) {
  .navbar { height: 56px; }
  .nav-logo { font-size: 16px; }
  .footer-brand-text { font-size: clamp(48px, 16vw, 64px); transform: scaleX(1.1); }
  .hero-okane-text { font-size: 44px; margin-left: -2px; max-width: 92vw; }
}
