/* ==========================================================================
   THEME CONFIGURATION & SCSS-READY VARIABLES
   ========================================================================== */
:root {
  --gold: #c9a96e;
  --gold-light: #e2c99a;
  --gold-dark: #9e7a3f;
  --black: #080808;
  --dark: #0e0d0b;
  --dark2: #151310;
  --dark3: #1c1a16;
  --cream: #f5f0ea;
  --text: #d4c9ba;
  --muted: #7a6e60;
  --border-color: #1a1710;
}

/* Base Typo Overrides */
body {
  background-color: var(--dark) !important;
  color: var(--text) !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.text-muted {
  color: var(--cream) !important;
}

.text-gold {
    color: var(--gold-dark) !important;
}

.text-gold-light {
    color: var(--gold-light) !important;
}

.font-serif {
  font-family: 'Cormorant Garamond', serif;
}

.tracking-wider { letter-spacing: 2px; }
.tracking-widest { letter-spacing: 4px; }

/* Custom Borders & Layout Helpers */
.border-dark-custom { border-color: var(--border-color) !important; }
.bg-dark2 { background-color: var(--dark2) !important; }
.bg-dark3 { background-color: var(--dark3) !important; }
.bg-grid-lines { background-color: var(--border-color); }
.py-6 { padding-top: 100px; padding-bottom: 100px; }

/* ==========================================================================
   NAVIGATION (layouts/_navbar.php)
   ========================================================================== */
.custom-nav {
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: padding 0.4s ease, background 0.4s ease;
  padding-top: 20px;
  padding-bottom: 20px;
}

/* Scroll shrink effect */
.custom-nav.scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(8, 8, 8, 0.98);
}

.nav-logo-svg svg {
  width: 36px;
  height: 36px;
}

.nav-tag {
  font-size: 7px;
  letter-spacing: 5px;
  color: var(--gold);
  font-weight: 500;
}

.nav-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #e8ddd0;
}

.nav-name em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
}

.custom-nav .nav-link {
  color: var(--muted) !important;
  font-size: 12px;
  letter-spacing: 3px;
  transition: color 0.3s ease;
}

.custom-nav .nav-link:hover,
.custom-nav .nav-link.active {
  color: var(--gold) !important;
}

/* Premium Collapsible Navbar Toggler */
.custom-toggler {
  border-color: rgba(201, 169, 110, 0.3);
}
.custom-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23c9a96e' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ==========================================================================
   BUTTONS & ACTIONS
   ========================================================================== */
.btn-primary-custom {
  background: var(--gold);
  color: var(--black) !important;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  letter-spacing: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary-custom:hover {
  background: var(--gold-light);
}

.btn-ghost-custom {
  background: transparent;
  color: var(--muted);
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  letter-spacing: 4px;
  transition: color 0.3s ease;
}

.btn-ghost-custom:hover {
  color: var(--text);
}

.btn-ghost-custom::after {
  content: ' →';
  font-size: 14px;
}

.nav-cta {
  font-size: 10px;
  letter-spacing: 3px;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--black) !important;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 70% 50%, rgba(201,169,110,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(201,169,110,0.04) 0%, transparent 60%);
  z-index: 1;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,169,110,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,169,110,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 60% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 60% 50%, black 20%, transparent 80%);
  z-index: 1;
}

.hero-eyebrow .eyebrow-line {
  width: 50px;
  height: 1px;
  background: var(--gold);
}

.hero-eyebrow .eyebrow-text {
  font-size: 12px;
  letter-spacing: 5px;
  font-weight: 500;
}

.hero-title {
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 300;
  line-height: 1.05;
}

.hero-title strong {
  font-weight: 700;
  display: block;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-desc {
  font-size: 13px;
  line-height: 2;
  max-width: 480px;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.hero-visual {
  max-width: 380px;
  opacity: 0.18;
}

/* ==========================================================================
   STATS STRIP
   ========================================================================== */
.stat-num {
  font-size: 52px;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-num sup {
  font-size: 22px;
  vertical-align: super;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
}

.stat-label {
  font-size: 9px;
  letter-spacing: 3px;
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
.section-label-line {
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.section-label-text {
  font-size: 12px;
  font-weight: 500;
}

.section-title {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 300;
  line-height: 1.15;
}

.section-title em {
  font-style: italic;
  color: var(--gold);
}

/* ==========================================================================
   SERVICIOS
   ========================================================================== */
.servicio-card {
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease;
  cursor: default;
}

.servicio-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.servicio-card:hover {
  background: #171510 !important;
}

.servicio-card:hover::before {
  transform: scaleX(1);
}

.servicio-num {
  font-size: 60px;
  font-weight: 300;
  color: #ffab03;
  line-height: 1;
  transition: color 0.4s ease;
}

.servicio-card:hover .servicio-num {
  color: #cd7b00;
}

.servicio-icon {
  width: 44px;
  height: 44px;
}

.servicio-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 1px;
}

.servicio-desc {
  font-size: 13px;
  line-height: 2;
}

/* ==========================================================================
   PROPIEDADES
   ========================================================================== */
.prop-card {
  cursor: pointer;
  min-height: 280px;
}

.prop-card .prop-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  background: linear-gradient(135deg, #1a1710 0%, #221e16 50%, #1a1710 100%);
  position: relative;
  overflow: hidden;
  transition: transform 0.6s ease;
}

.prop-card .img-vector {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.prop-card:hover .img-vector {
  transform: scale(1.08);
  opacity: 0.35 !important;
}

.prop-overlay {
  background: linear-gradient(transparent, rgba(8, 8, 8, 0.95));
  z-index: 2;
}

.prop-type {
  font-size: 9px;
  font-weight: 500;
}

.prop-name {
  font-size: 20px;
  font-weight: 600;
}

.prop-card:first-child .prop-name {
  font-size: clamp(22px, 3vw, 28px);
}

.prop-meta {
  font-size: 11px;
  letter-spacing: 1px;
}

/* ==========================================================================
   ABOUT (NOSOTROS)
   ========================================================================== */
.about-visual {
  height: 500px;
  max-width: 500px;
}

.about-frame {
  position: absolute;
  inset: 0;
  border: 1px solid #2a2620;
}

.about-frame-inner {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  bottom: 24px;
  border: 1px solid #1e1c18;
}

.about-gold-bar {
  position: absolute;
  left: -2px;
  top: 60px;
  width: 3px;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}

.about-num-label {
  bottom: -20px;
  right: 0;
  font-size: 100px;
  font-weight: 700;
  color: #141210;
  line-height: 1;
  letter-spacing: -4px;
}

.lead-custom {
  font-size: 13px;
  line-height: 2.1;
}

.value-title {
  font-size: 18px;
  font-weight: 600;
}

.value-desc {
  line-height: 1.8;
  letter-spacing: 0.3px;
}

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contacto-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(201,169,110,0.05) 0%, transparent 70%);
  z-index: 1;
}

.contacto-sub {
  font-size: 14px;
}

.contact-item-val {
  font-size: 22px;
}

/* ==========================================================================
   FOOTER (layouts/_footer.php)
   ========================================================================== */
.footer-copy {
  font-size: 10px;
  letter-spacing: 2px;
}

.footer-logo {
  font-weight: 700;
}

.footer-logo em {
  font-style: italic;
  color: var(--gold-dark);
}

/* ==========================================================================
   SCROLLBAR & DECORATION
   ========================================================================== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--black);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}
