/*
Theme Name: Easy Hogar by Egue
Theme URI: https://easyhogarbyegue.com
Author: Easy Hogar SpA
Author URI: https://easyhogarbyegue.com
Description: Tema premium dark/gold para Easy Hogar by Egue — Asesoría Inmobiliaria Estratégica en Chile.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: easyhogar
Tags: real-estate, dark, gold, premium, one-page
*/

/* ─── DESIGN SYSTEM ─── */
:root {
  --bg: #111110;
  --bg-card: #1c1c1b;
  --bg-card2: #222221;
  --bg-footer: #0a0a09;
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --gold-dim: rgba(201,168,76,0.10);
  --gold-border: rgba(201,168,76,0.28);
  --text-white: #f5f5f3;
  --text-gray: #9a9a96;
  --text-light: #d2d2ce;
  --red-dim: rgba(200,80,60,0.15);
  --red-border: rgba(200,80,60,0.3);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --r: 16px;
  --r-sm: 10px;
  --r-pill: 100px;
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text-light);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.02;
  pointer-events: none;
  z-index: 9999;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── WORDPRESS ALIGNMENT ─── */
.aligncenter { margin: 0 auto; display: block; }
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.wp-block-image { margin: 2rem 0; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 300;
  color: var(--text-white);
  line-height: 1.2;
}
p { margin-bottom: 1rem; }

/* ─── SHARED COMPONENTS ─── */
.gold-rule { width: 100%; height: 1px; background: linear-gradient(to right, transparent, var(--gold-border), transparent); }
.section { padding: 6rem 4rem; }
.sec-label {
  font-size: 0.67rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.sec-label::before { content: ''; width: 1.4rem; height: 1px; background: var(--gold); opacity: 0.6; flex-shrink: 0; }
.sec-label.center { justify-content: center; }
.sec-label.center::after { content: ''; width: 1.4rem; height: 1px; background: var(--gold); opacity: 0.6; flex-shrink: 0; }
.sec-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 300;
  color: var(--text-white);
  line-height: 1.2;
  margin-bottom: 0.9rem;
}
.sec-title em { font-style: italic; color: var(--gold); }
.sec-sub { font-size: 0.86rem; color: var(--text-gray); line-height: 1.9; max-width: 560px; }

/* ─── BUTTONS ─── */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--gold);
  color: #0a0a09;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 2.2rem;
  border-radius: var(--r-pill);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .25s, transform .2s;
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: transparent;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: var(--r-pill);
  text-decoration: none;
  border: 1px solid var(--gold-border);
  cursor: pointer;
  transition: background .25s, border-color .25s;
}
.btn-ghost:hover { background: var(--gold-dim); border-color: var(--gold); }
.gold-link {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--gold-border);
  padding-bottom: 2px;
  transition: gap .2s, border-color .2s;
}
.gold-link:hover { gap: 0.9rem; border-color: var(--gold); }

/* ─── NAV ─── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 4rem;
  transition: background .4s, padding .3s;
}
#nav.scrolled {
  background: rgba(10,10,9,0.93);
  backdrop-filter: blur(16px);
  padding: 1rem 4rem;
  border-bottom: 1px solid rgba(201,168,76,0.1);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
}
.nav-logo em { font-style: italic; font-weight: 300; opacity: 0.7; font-size: 0.95em; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color .25s;
}
.nav-links a:hover, .nav-links a.active, .nav-links li.current-menu-item > a { color: var(--gold); }
/* Último item del menú = botón Agendar */
.nav-links li:last-child > a, .nav-cta {
  background: var(--gold) !important;
  color: var(--bg) !important;
  border: 1px solid var(--gold);
  padding: .5rem 1.4rem;
  border-radius: var(--r-pill) !important;
  font-weight: 500 !important;
  transition: background .25s, color .25s !important;
}
.nav-links li:last-child > a:hover, .nav-cta:hover {
  background: var(--gold-light) !important;
  color: var(--bg) !important;
  border-color: var(--gold-light) !important;
}
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; color: var(--gold); }

/* ─── WA FAB ─── */
#wa-fab {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 400;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(201,168,76,0.3);
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
#wa-fab:hover { transform: scale(1.08); box-shadow: 0 6px 32px rgba(201,168,76,0.45); }

/* ─── FOOTER ─── */
footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--gold-border);
  padding: 4rem 4rem 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; color: var(--gold); margin-bottom: 0.7rem; }
.footer-tagline { font-size: 0.78rem; color: var(--text-gray); line-height: 1.8; max-width: 260px; }
.footer-col-title { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; font-weight: 400; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-links a { color: var(--text-gray); text-decoration: none; font-size: 0.8rem; transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(201,168,76,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy { font-size: 0.7rem; color: #4a4a46; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.7rem; color: #4a4a46; text-decoration: none; transition: color .2s; }
.footer-legal a:hover { color: var(--gold); }

/* ─── REVEAL ANIMATION ─── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .section { padding: 4rem 2rem; }
  #nav { padding: 1rem 2rem; }
  #nav.scrolled { padding: 0.8rem 2rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,10,9,0.97);
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 499;
  }
  .nav-links.open a { font-size: 1.2rem; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

.nav-links li:last-child > a:hover {
  color: #0a0a09 !important;
}