
/* ============================================================
   DON ALEJANDRO - INMOBILIARIA
   style.css
   ============================================================ */
 
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=DM+Sans:wght@300;400;500;600&display=swap');
 
/* ── Variables ─────────────────────────────────────────── */
:root {
  --gold:        #C9A84C;
  --gold-light:  #E8C97A;
  --gold-dark:   #9A7530;
  --dark:        #0E0E0E;
  --dark-2:      #161616;
  --dark-3:      #1F1F1F;
  --dark-4:      #2A2A2A;
  --mid:         #3D3D3D;
  --light-grey:  #B0A99A;
  --off-white:   #F5F0E8;
  --white:       #FFFFFF;
 
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
 
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
 
  --shadow-card: 0 8px 40px rgba(0,0,0,0.45);
  --shadow-gold: 0 4px 24px rgba(201,168,76,0.25);
 
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

body {
  background: var(--dark);
  color: var(--off-white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 80%, rgba(201,168,76,0.08) 0%, transparent 70%);
  animation: header-glow 4s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(201,168,76,0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(201,168,76,0.05) 0%, transparent 40%);
  animation: header-glow 4s ease-in-out infinite alternate-reverse;
  pointer-events: none;
  z-index: 0;
}
 
/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--dark);
  color: var(--off-white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
 
/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark-2); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 99px; }
 
/* ── Utilidades ────────────────────────────────────────── */
.container {
  width: min(1280px, 92%);
  margin-inline: auto;
}
 
.gold-text { color: var(--gold); }
 
.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
 
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--white);
}
.section-title span { color: var(--gold); }
 
.section-subtitle {
  font-size: 1rem;
  color: var(--light-grey);
  max-width: 540px;
  margin-top: 0.9rem;
  margin-inline: auto;
}

/* ── Botones ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
 
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--dark);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,168,76,0.4);
}
 
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--dark);
}
 
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--off-white);
  border: 1px solid rgba(255,255,255,0.1);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
 
/* ── Navbar ────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.1rem 0;
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}
 
.navbar.scrolled {
  background: rgba(14,14,14,0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 2px 30px rgba(0,0,0,0.5);
  padding: 0.75rem 0;
}
 
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
 
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
 
.logo-icon { width: 42px; height: 42px; }
 
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
 
.logo-text .don {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
 
.logo-text .alejandro {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.03em;
}
 
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
 
.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--light-grey);
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}
 
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%;
  width: 0; height: 1.5px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width var(--transition);
}
 
.nav-link:hover,
.nav-link.active { color: var(--white); }
 
.nav-link:hover::after,
.nav-link.active::after { width: 50%; }
 
.nav-cta { padding: 0.6rem 1.4rem; font-size: 0.85rem; }
 
/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  position: relative;
  z-index: 1001;
}
 
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--off-white);
  border-radius: 2px;
  transition: var(--transition);
}
 
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
 
/* Menu movil */
.nav-mobile {
  display: flex;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(14,14,14,0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s, visibility 0.3s;
}
 
.nav-mobile.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}
 
.nav-mobile a {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--off-white);
  transition: color var(--transition);
}
.nav-mobile a:hover { color: var(--gold); }
 
/* ── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
 
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(14,14,14,0.55) 0%, rgba(14,14,14,0.85) 60%, var(--dark) 100%);
}
 
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(201,168,76,0.08) 0%, transparent 70%);
}
 
.hero-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
 
.hero-lines::before {
  content: '';
  position: absolute;
  top: -10%; right: 10%;
  width: 600px; height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.1);
  animation: pulse-ring 6s ease-in-out infinite;
}
 
.hero-lines::after {
  content: '';
  position: absolute;
  top: 5%; right: 20%;
  width: 380px; height: 380px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.07);
  animation: pulse-ring 6s ease-in-out infinite 1.5s;
}
 
@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.06); opacity: 0.5; }
}
 
.hero-content {
  position: relative;
  z-index: 2;
  padding: 7rem 0 5rem;
  text-align: center;
}
 
.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fade-up 0.8s 0.2s forwards;
}

.hero-eyebrow span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
}
 
.hero-eyebrow-line { width: 40px; height: 1px; background: var(--gold); }
 
.hero-eyebrow span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}
 
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fade-up 0.8s 0.35s forwards;
}
 
.hero-title em { font-style: italic; color: var(--gold); }
 
.hero-desc {
  font-size: 1.05rem;
  color: var(--light-grey);
  max-width: 500px;
  margin: 0 auto 2.5rem;  /* ← añade auto en los lados */
  opacity: 0;
  animation: fade-up 0.8s 0.5s forwards;
}
 
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  animation: fade-up 0.8s 0.65s forwards;
  justify-content: center;
}

.hero-stats {
  position: relative;
  z-index: 2;
  margin-top: 4rem;
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 0.8s 0.85s forwards;
  justify-content: center;
}
 
.hero-stat { display: flex; flex-direction: column; }
 
.hero-stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
 
.hero-stat-label {
  font-size: 0.78rem;
  color: var(--light-grey);
  letter-spacing: 0.05em;
  margin-top: 0.3rem;
}
 
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fade-in 1s 1.2s forwards;
}
 
.scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--light-grey);
}
 
.scroll-mouse {
  width: 24px; height: 38px;
  border: 1.5px solid rgba(201,168,76,0.4);
  border-radius: 12px;
  position: relative;
}
 
.scroll-mouse::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 7px;
  background: var(--gold);
  border-radius: 2px;
  animation: scroll-dot 2s ease-in-out infinite;
}
 
@keyframes scroll-dot {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}
 
@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
 
@keyframes fade-in { to { opacity: 1; } }
 
/* ── Buscador (index) ──────────────────────────────────── */
.search-section {
  position: relative;
  z-index: 10;
  margin-top: -2.5rem;
  padding-bottom: 3rem;
}
 
.search-card {
  background: var(--dark-3);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--radius-lg);
  padding: 1.8rem 2rem;
  box-shadow: var(--shadow-card);
}
 
.search-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
 
.search-tab {
  padding: 0.5rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: var(--transition);
  background: var(--dark-4);
  color: var(--light-grey);
}
 
.search-tab.active,
.search-tab:hover {
  background: rgba(201,168,76,0.12);
  border-color: var(--gold);
  color: var(--gold);
}
 
.search-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 1rem;
  align-items: end;
}
 
.search-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--light-grey);
  margin-bottom: 0.45rem;
}
 
.search-field select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--dark-4);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
 
.search-field select:focus {
  outline: none;
  border-color: var(--gold);
}
 
/* ── Info bar ──────────────────────────────────────────── */
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
 
.info-bar-wrap {
  padding: 3px;
  border-radius: 14px;
  background: conic-gradient(from var(--angle), transparent 75%, #C9A84C 90%, #fff8e1 95%, #C9A84C 100%);
  animation: snake-spin 3s linear infinite;
  margin: 1.5rem auto 0;
  width: min(1280px, 92%);
}
 
@keyframes snake-spin {
  to { --angle: 360deg; }
}
 
.info-bar {
  padding: 2.5rem 2rem;
  background: var(--dark-2);
  border-radius: 12px;
}
 
.info-bar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
 
.info-bar-item {
  display: flex;
  gap: 1rem;
  align-items: center;
}
 
.info-bar-icon {
  width: 44px; height: 44px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
 
.info-bar-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
}
 
.info-bar-subtitle {
  font-size: 0.78rem;
  color: var(--light-grey);
}
 
/* ── Filtros ───────────────────────────────────────────── */
.filters-wrap {
  width: min(880px, 92%);
  margin: 1.5rem auto 0;
  border-radius: 14px;
  box-shadow: 0 0 20px rgba(201,168,76,0.2), 0 0 40px rgba(201,168,76,0.08);
}

.filters-section {
  padding: 0.8rem 1.5rem;
  background: var(--dark-2);
  border-radius: 12px;
  border: 1px solid rgba(202, 152, 13, 0.303);
}

.filters-row {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.filters-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.filters-divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.filter-group label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light-grey);
}

.filter-select {
  padding: 0.4rem 2rem 0.4rem 0.8rem;
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23B0A99A' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  cursor: pointer;
  transition: border-color var(--transition);
}

.filter-select:focus { outline: none; border-color: var(--gold); }

.results-count {
  font-size: 0.85rem;
  color: var(--light-grey);
  white-space: nowrap;
}

.results-count strong { color: var(--gold); }

@media (max-width: 768px) {
  .filters-row { gap: 0.8rem; }
  .filters-divider { display: none; }
  .filters-title { display: none; }
}
 
/* ── Tarjetas de propiedades ───────────────────────────── */
.properties-section { padding: 5rem 0; }
 
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 2rem;
  flex-wrap: wrap;
}
 
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.8rem;
}
 
.property-card {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
 
.property-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201,168,76,0.25);
  box-shadow: var(--shadow-card);
}
 
.property-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--dark-4);
}
 
.property-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
 
.property-card:hover .property-img img { transform: scale(1.06); }
 
.property-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, var(--dark-3) 0%, var(--dark-4) 100%);
}
 
.property-img-placeholder span {
  font-size: 0.75rem;
  color: var(--mid);
  letter-spacing: 0.06em;
}
 
.property-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  padding: 0.3rem 0.85rem;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
 
.badge-venta    { background: var(--gold); color: var(--dark); }
.badge-alquiler { background: #3B82F6; color: var(--white); }
.badge-destacado { background: #10B981; color: var(--white); }
 
.property-fav {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 34px; height: 34px;
  background: rgba(14,14,14,0.7);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
 
.property-fav:hover { background: var(--gold); }
.property-fav:hover svg { stroke: var(--dark); }
.property-fav.active svg { fill: #EF4444; stroke: #EF4444; }
 
.property-body { padding: 1.4rem 1.5rem 1.6rem; }
 
.property-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
 
.property-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.3rem;
}
 
.property-location {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: var(--light-grey);
  margin-bottom: 1rem;
}
 
.property-features {
  display: flex;
  gap: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
 
.property-feature {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--light-grey);
}
 
.property-feature svg { color: var(--gold); flex-shrink: 0; }
 
/* ── Slider de imagenes ────────────────────────────────── */
.property-slider {
  position: relative;
  width: 100%;
  height: 100%;
}
 
.property-slider img {
  width: 100%; height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}
 
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  cursor: pointer;
  border: none;
  padding: 8px 12px;
  border-radius: 50%;
  background: rgba(14,14,14,0.6);
  color: var(--white);
  transition: background var(--transition);
}
 
.slider-btn:hover { background: rgba(201,168,76,0.8); }
.slider-btn.prev  { left: 10px; }
.slider-btn.next  { right: 10px; }
 
.slider-counter {
  position: absolute;
  bottom: 10px; right: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(14,14,14,0.6);
  color: var(--white);
  font-size: 0.75rem;
}
 
/* ── Lightbox ──────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
 
.lightbox.open { opacity: 1; pointer-events: all; }
 
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  transform: scale(0.94);
  transition: transform 0.22s ease;
  user-select: none;
}
 
.lightbox.open .lightbox-img { transform: scale(1); }
 
.lightbox-close {
  position: fixed;
  top: 1.25rem; right: 1.25rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
 
.lightbox-close:hover { background: rgba(255,255,255,0.22); }
 
.lightbox-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  width: 50px; height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
 
.lightbox-btn:hover { background: rgba(255,255,255,0.22); }
.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }
 
.lightbox-counter {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.55);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}
 
/* ── Por que elegirnos ─────────────────────────────────── */
.why-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 100%);
}
 
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-top: 3rem;
}
 
.why-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--dark-3);
}
 
.why-image img { width: 100%; height: 100%; object-fit: cover; }
 
.why-image-badge {
  position: absolute;
  bottom: 1.8rem; right: -1.5rem;
  background: var(--dark-2);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-md);
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: var(--shadow-card);
}
 
.why-image-badge-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
 
.why-image-badge-text strong {
  display: block;
  font-size: 1.1rem;
  font-family: var(--font-display);
  color: var(--white);
}
 
.why-image-badge-text span { font-size: 0.72rem; color: var(--light-grey); }
 
.why-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}
 
.why-feature { display: flex; gap: 1rem; align-items: flex-start; }
 
.why-feature-icon {
  width: 48px; height: 48px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}
 
.why-feature:hover .why-feature-icon {
  background: rgba(201,168,76,0.2);
  border-color: var(--gold);
}
 
.why-feature-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.3rem;
}
 
.why-feature-text p { font-size: 0.85rem; color: var(--light-grey); line-height: 1.55; }
 
/* ── Testimonios ───────────────────────────────────────── */
.testimonials-section { padding: 5rem 0; overflow: hidden; }
 
.testimonials-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  width: 100%;
  scrollbar-width: none;
}
.testimonials-track::-webkit-scrollbar { display: none; }
 
.testimonial-card {
  min-width: 340px;
  flex: 0 0 340px;
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}
 
.testimonial-card:hover { border-color: rgba(201,168,76,0.2); }
 
.testimonial-stars { display: flex; gap: 3px; margin-bottom: 1rem; }
.testimonial-stars svg { color: var(--gold); }
 
.testimonial-text {
  font-size: 0.92rem;
  color: var(--light-grey);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}
 
.testimonial-author { display: flex; align-items: center; gap: 0.8rem; }
 
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  flex-shrink: 0;
}
 
.testimonial-author-info strong { display: block; font-size: 0.88rem; font-weight: 600; color: var(--white); }
.testimonial-author-info span   { font-size: 0.75rem; color: var(--light-grey); }
 
/* ── CTA Banner ────────────────────────────────────────── */
.cta-section { padding: 5rem 0; }
 
.cta-card {
  position: relative;
  background: linear-gradient(135deg, var(--dark-3) 0%, var(--dark-2) 100%);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-xl);
  padding: 4rem;
  overflow: hidden;
  text-align: center;
}
 
.cta-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -10%;
  width: 60%; height: 200%;
  background: radial-gradient(ellipse, rgba(201,168,76,0.07) 0%, transparent 70%);
  pointer-events: none;
}
 
.cta-card::after {
  content: '';
  position: absolute;
  bottom: -50%; right: -10%;
  width: 60%; height: 200%;
  background: radial-gradient(ellipse, rgba(201,168,76,0.05) 0%, transparent 70%);
  pointer-events: none;
}
 
.cta-card .section-title { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
.cta-card .section-subtitle { max-width: 520px; margin: 0.9rem auto 2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
 
/* ── Footer ────────────────────────────────────────────── */
.footer {
  background: var(--dark-2);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 4rem 0 2rem;
}
 
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
 
.footer-brand .logo-text .alejandro { font-size: 1.1rem; }
.footer-brand .logo-text .don       { font-size: 0.56rem; }
 
.footer-tagline {
  font-size: 0.85rem;
  color: var(--light-grey);
  margin-top: 0.9rem;
  max-width: 240px;
  line-height: 1.65;
}
 
.footer-social { display: flex; gap: 0.7rem; margin-top: 1.4rem; }
 
.footer-social a {
  width: 36px; height: 36px;
  background: var(--dark-4);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-grey);
  transition: var(--transition);
}
 
.footer-social a:hover {
  background: rgba(201,168,76,0.15);
  border-color: var(--gold);
  color: var(--gold);
}
 
.footer-col h5 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
 
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
 
.footer-col ul li a {
  font-size: 0.87rem;
  color: var(--light-grey);
  transition: color var(--transition);
}
 
.footer-col ul li a:hover { color: var(--gold); }
 
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
 
.footer-bottom p { font-size: 0.8rem; color: var(--mid); }
.footer-bottom span { color: var(--gold); }
 
/* ── Cabecera paginas interiores ───────────────────────── */
.page-header {
  padding: 9rem 0 4rem;
  background:
    linear-gradient(160deg, rgba(14,14,14,0.7) 0%, rgba(14,14,14,0.95) 70%),
    url('images/hero-bg.jpg') center/cover no-repeat;
  border-bottom: 1px solid rgba(201,168,76,0.1);
  text-align: center;
  overflow: hidden;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 80%, rgba(201,168,76,0.06) 0%, transparent 70%);
  animation: header-glow 4s ease-in-out infinite alternate;
  pointer-events: none;
}

.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(201,168,76,0.04) 0%, transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(201,168,76,0.04) 0%, transparent 40%);
  animation: header-glow 4s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}

@keyframes header-glow {
  0%   { opacity: 0.4; transform: scale(1); }
  100% { opacity: 1;   transform: scale(1.08); }
}

/* Animación entrada del contenido */
.page-header .breadcrumb,
.page-header .section-label,
.page-header .section-title,
.page-header .section-subtitle {
  opacity: 0;
  animation: fade-up 0.8s forwards;
  position: relative;
  z-index: 2;
}

.page-header .breadcrumb       { animation-delay: 0.1s; }
.page-header .section-label    { animation-delay: 0.2s; }
.page-header .section-title    { animation-delay: 0.35s; }
.page-header .section-subtitle { animation-delay: 0.5s; }
 
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--light-grey);
  margin-bottom: 1.2rem;
}
 
.breadcrumb a { color: var(--gold); }
.breadcrumb span { color: var(--mid); }
 
/* ── Contacto ──────────────────────────────────────────── */
.contact-section { padding: 5rem 0; }
 
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
 
.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}
 
.contact-info > p {
  font-size: 0.9rem;
  color: var(--light-grey);
  margin-bottom: 2rem;
  line-height: 1.65;
}
 
.contact-items { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-item  { display: flex; gap: 1rem; align-items: flex-start; }
 
.contact-item-icon {
  width: 44px; height: 44px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}
 
.contact-item-text strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--light-grey);
  margin-bottom: 0.2rem;
}
 
.contact-item-text span,
.contact-item-text a { font-size: 0.93rem; color: var(--off-white); transition: color var(--transition); }
.contact-item-text a:hover { color: var(--gold); }
 
.contact-form {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}
 
.contact-form h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.8rem;
}
 
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
 
.form-group { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.2rem; }
.form-group.full { grid-column: 1 / -1; }
 
.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--light-grey);
}
 
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.8rem 1rem;
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition);
  width: 100%;
}
 
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--gold); }
 
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--mid); }
 
.form-submit { width: 100%; padding: 0.95rem; font-size: 0.95rem; }
 
.form-success { display: none; text-align: center; padding: 2rem; }
.form-success svg { color: var(--gold); margin-bottom: 1rem; }
.form-success h4 { font-family: var(--font-display); font-size: 1.5rem; color: var(--white); margin-bottom: 0.5rem; }
.form-success p  { font-size: 0.9rem; color: var(--light-grey); }
 
/* ── Mapa ──────────────────────────────────────────────── */
.map-section { padding: 0 0 5rem; }
 
.map-placeholder {
  height: 380px;
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--mid);
  overflow: hidden;
  position: relative;
}
 
.map-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.015) 0, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 50px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.015) 0, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 50px);
}
 
.map-placeholder p   { font-size: 0.85rem; letter-spacing: 0.08em; position: relative; z-index: 1; }
.map-placeholder svg { position: relative; z-index: 1; color: var(--gold); opacity: 0.4; }
 
/* ── Estado vacio ──────────────────────────────────────── */
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--light-grey); }
.empty-state svg { margin: 0 auto 1rem; opacity: 0.3; }
.empty-state h4  { font-family: var(--font-display); font-size: 1.3rem; color: var(--white); margin-bottom: 0.5rem; }
 
/* ── Modal propiedad ───────────────────────────────────── */
.property-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
 
.property-modal.hidden { display: none; }
 
.modal-content {
  background: var(--dark-3);
  width: 90%;
  max-width: 1000px;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}
 
/* ── Modales legales ───────────────────────────────────── */
.modal-legal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
 
.modal-legal.open { display: flex; }
 
.modal-legal-box {
  background: #1F1F1F;
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 20px;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
 
.modal-legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
 
.modal-legal-icon {
  width: 36px; height: 36px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
 
.modal-legal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: #fff;
  margin: 0;
}
 
.modal-legal-close {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #B0A99A;
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s;
  flex-shrink: 0;
}
 
.modal-legal-close:hover { background: rgba(201,168,76,0.15); color: #C9A84C; }
 
.modal-legal-body {
  overflow-y: auto;
  padding: 1.8rem 2rem;
  font-size: .88rem;
  color: #B0A99A;
  line-height: 1.75;
}
 
.modal-legal-body h4           { color: #fff; font-size: .95rem; margin: 1.4rem 0 .4rem; }
.modal-legal-body h4:first-of-type { margin-top: 0; }
.modal-legal-body p            { margin-bottom: .8rem; }
.modal-legal-body ul           { margin: .4rem 0 .8rem 1.2rem; display: flex; flex-direction: column; gap: .4rem; }
.modal-legal-body strong       { color: #F5F0E8; }
.modal-legal-body a            { color: #C9A84C; }
 
.modal-legal-date {
  color: #C9A84C;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 1.2rem !important;
}
 
.modal-legal-footer {
  padding: 1.2rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}
 
/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .why-grid         { grid-template-columns: 1fr; gap: 3rem; }
  .why-image        { max-width: 460px; aspect-ratio: 16/9; }
  .why-image-badge  { right: 1rem; }
  .footer-grid      { grid-template-columns: 1fr 1fr; }
}
 
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger            { display: flex; }
  .search-fields        { grid-template-columns: 1fr 1fr; }
  .section-header       { flex-direction: column; align-items: flex-start; }
  .contact-grid         { grid-template-columns: 1fr; }
  .form-row             { grid-template-columns: 1fr; }
  .footer-grid          { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom        { flex-direction: column; text-align: center; }
  .cta-card             { padding: 2.5rem 1.5rem; }
  .properties-grid      { grid-template-columns: 1fr; }
}
 
@media (max-width: 480px) {
  .search-fields  { grid-template-columns: 1fr; }
  .hero-stats     { gap: 1.5rem; }
  .hero-actions   { flex-direction: column; }
}

.search-field.provincia {
  max-width: 200px;
  min-width: 0;
}

@media (max-width: 768px) {
  .search-field.provincia {
    max-width: 100%;
  }
}