/* ===== DESIGN SYSTEM — Century 21 Faro ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --gold: #C5A255;
  --gold-light: #D4B76A;
  --gold-dark: #A68A3E;
  --black: #0D0D0D;
  --dark: #1A1A2E;
  --dark-surface: #16213E;
  --dark-card: #1a1a2e;
  --white: #FFFFFF;
  --gray-100: #F5F5F5;
  --gray-200: #E0E0E0;
  --gray-300: #B0B0B0;
  --gray-400: #7A7A7A;
  --accent-green: #2ECC71;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s ease;
  --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== RESET ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--black);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== UTILITY ===== */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  position: relative;
}

.section-header .label::before,
.section-header .label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: var(--gold);
}

.section-header .label::before { right: calc(100% + 12px); }
.section-header .label::after  { left: calc(100% + 12px); }

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.section-header p {
  margin-top: 16px;
  color: var(--gray-300);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-medium);
}

.navbar.scrolled {
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand .logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--black);
}

.navbar-brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.navbar-brand .brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
}

.navbar-brand .brand-sub {
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-300);
  transition: color var(--transition-fast);
  position: relative;
}

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

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black) !important;
  border-radius: 8px;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.5px;
  transition: all var(--transition-medium) !important;
  box-shadow: 0 4px 15px rgba(197, 162, 85, 0.3);
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(197, 162, 85, 0.5);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 8px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition-medium);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('assets/hero-bg.png') center/cover no-repeat;
  filter: brightness(0.35);
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 13, 13, 0.4) 0%,
    rgba(13, 13, 13, 0.2) 40%,
    rgba(13, 13, 13, 0.8) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 5%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(197, 162, 85, 0.15);
  border: 1px solid rgba(197, 162, 85, 0.3);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--gray-300);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-medium);
  box-shadow: 0 4px 20px rgba(197, 162, 85, 0.35);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 35px rgba(197, 162, 85, 0.5);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition-medium);
  cursor: pointer;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(197, 162, 85, 0.08);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gray-400);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-scroll .scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===== ABOUT / SOBRE NOSOTROS ===== */
.about {
  padding: var(--section-padding);
  background: var(--black);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: 16px;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.about-people {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.about-person {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

.about-person img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}

.about-person-meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, transparent 15%, rgba(13,13,13,0.92) 100%);
}

.about-person-role {
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 4px;
}

.about-person-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
}

.experience-badge {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(197, 162, 85, 0.4);
}

.experience-badge-inline {
  padding: 16px 22px;
}

.about-badge-wrap {
  display: flex;
  justify-content: center;
  margin-top: 14px;
  width: 100%;
}

.about-image .experience-badge .number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.about-image .experience-badge .text {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-content .label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.about-content h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.about-content p {
  color: var(--gray-300);
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.about-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.about-info-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px;
  transition: all var(--transition-medium);
}

.about-info-item:hover {
  border-color: rgba(197, 162, 85, 0.2);
  background: rgba(197, 162, 85, 0.05);
}

.about-info-item .info-icon {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.about-info-item .info-label {
  font-size: 0.75rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-info-item .info-value {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  margin-top: 2px;
}

/* ===== ACHIEVEMENTS / LOGROS ===== */
.achievements {
  padding: var(--section-padding);
  background: linear-gradient(180deg, var(--black) 0%, var(--dark) 100%);
  position: relative;
}

.achievements::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(197, 162, 85, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-card {
  text-align: center;
  padding: 40px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-medium);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(197, 162, 85, 0.2);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.stat-number .suffix {
  font-size: 1.8rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray-300);
  margin-top: 8px;
  font-weight: 500;
}

/* ===== TEAM / EQUIPO ===== */
.team {
  padding: var(--section-padding);
  background: var(--dark);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.agent-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  overflow: hidden;
  transition: all var(--transition-medium);
  position: relative;
}

.agent-card:hover {
  transform: translateY(-8px);
  border-color: rgba(197, 162, 85, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.agent-card .agent-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
}

.agent-card .agent-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.agent-card:hover .agent-image img {
  transform: scale(1.05);
}

.agent-card .agent-image .agent-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(13, 13, 13, 0.9) 100%);
}

.agent-card .agent-info {
  padding: 24px;
  position: relative;
}

.agent-card .agent-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.agent-card .agent-role {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 12px;
}

.agent-card .agent-desc {
  font-size: 0.88rem;
  color: var(--gray-300);
  margin-bottom: 20px;
  line-height: 1.6;
}

.agent-actions {
  display: flex;
  gap: 10px;
}

.agent-actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition-medium);
}

.agent-actions .btn-whatsapp {
  background: rgba(37, 211, 102, 0.12);
  color: #25D366;
  border: 1px solid rgba(37, 211, 102, 0.2);
}

.agent-actions .btn-whatsapp:hover {
  background: rgba(37, 211, 102, 0.25);
  transform: translateY(-2px);
}

.agent-actions .btn-email {
  background: rgba(197, 162, 85, 0.12);
  color: var(--gold);
  border: 1px solid rgba(197, 162, 85, 0.2);
}

.agent-actions .btn-email:hover {
  background: rgba(197, 162, 85, 0.25);
  transform: translateY(-2px);
}

/* ===== PROPERTIES / PROPIEDADES ===== */
.properties {
  padding: var(--section-padding);
  background: var(--black);
}

.properties-filters {
  margin: 26px 0 26px;
  padding: 22px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
}

.properties-filters .form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(197, 162, 85, 0.9);
  margin-bottom: 8px;
}

.properties-filters .form-control {
  width: 100%;
  height: 46px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(13, 13, 13, 0.55);
  color: var(--white);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.properties-filters .form-control::placeholder {
  color: rgba(176,176,176,0.7);
}

.properties-filters .form-control:hover {
  border-color: rgba(197, 162, 85, 0.25);
  background: rgba(13, 13, 13, 0.62);
}

.properties-filters .form-control:focus {
  border-color: rgba(197, 162, 85, 0.55);
  box-shadow:
    0 0 0 4px rgba(197, 162, 85, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.properties-filters select.form-control {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(197,162,85,0.85) 50%),
    linear-gradient(135deg, rgba(197,162,85,0.85) 50%, transparent 50%),
    linear-gradient(to right, rgba(255,255,255,0.10), rgba(255,255,255,0.10));
  background-position:
    calc(100% - 18px) 19px,
    calc(100% - 12px) 19px,
    calc(100% - 40px) 50%;
  background-size:
    6px 6px,
    6px 6px,
    1px 60%;
  background-repeat: no-repeat;
  padding-right: 44px;
}

.properties-filters input[type="number"].form-control {
  -moz-appearance: textfield;
}
.properties-filters input[type="number"].form-control::-webkit-outer-spin-button,
.properties-filters input[type="number"].form-control::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.filters-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 14px;
}

.filters-actions .btn-outline,
.filters-actions .btn-primary {
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.prop-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  transition: transform var(--transition-medium), border-color var(--transition-medium), box-shadow var(--transition-medium);
}

.prop-card:hover {
  transform: translateY(-6px);
  border-color: rgba(197, 162, 85, 0.22);
  box-shadow: 0 22px 70px rgba(0,0,0,0.45);
}

.prop-media {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, rgba(197,162,85,0.18), rgba(26,26,46,0.6));
  position: relative;
  overflow: hidden;
}

.prop-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.96;
  transition: transform var(--transition-slow);
}

.prop-card:hover .prop-media img {
  transform: scale(1.04);
}

.prop-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 8px;
}

.prop-chip {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(13,13,13,0.55);
  backdrop-filter: blur(10px);
}

.prop-chip-gold { color: var(--black); background: linear-gradient(135deg, var(--gold), var(--gold-dark)); border-color: rgba(197,162,85,0.35); }
.prop-chip-blue { color: var(--white); background: rgba(52,152,219,0.35); }

.prop-body {
  padding: 18px 18px 20px;
}

.prop-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.prop-price {
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.prop-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--gray-300);
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.prop-desc {
  color: var(--gray-300);
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 0.95;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prop-contact {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--gray-300);
  font-size: 0.84rem;
}

.properties-more {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

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

@media (max-width: 640px) {
  .filters-grid { grid-template-columns: 1fr; }
  .properties-grid { grid-template-columns: 1fr; }
  .filters-actions { justify-content: stretch; }
  .filters-actions .btn-outline, .filters-actions .btn-primary { width: 100%; }
}

/* ===== CHATBOT WIDGET ===== */
.faro-chat {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: inherit;
}
.faro-chat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c5a255, #a88534);
  color: #0d0d0d;
  border: 0;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(197, 162, 85, 0.12);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.faro-chat-toggle:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0,0,0,.45), 0 0 0 4px rgba(197,162,85,.2); }
.faro-chat-toggle-icon { font-size: 1.2rem; }

.faro-chat-panel {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 120px);
  background: #0f0f1a;
  border: 1px solid rgba(197, 162, 85, 0.3);
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity .2s ease, transform .2s ease;
}
.faro-chat-panel.open { opacity: 1; transform: translateY(0) scale(1); }

.faro-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(197, 162, 85, 0.18), rgba(26, 26, 46, 0.4));
  border-bottom: 1px solid rgba(197, 162, 85, 0.2);
  color: #fff;
}
.faro-chat-title { display: flex; align-items: center; gap: 10px; }
.faro-chat-avatar {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, #c5a255, #a88534);
  color: #0d0d0d; font-weight: 800; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.faro-chat-title .name { font-weight: 700; font-size: 0.95rem; }
.faro-chat-title .status { font-size: 0.75rem; color: #9cdf9c; display: flex; align-items: center; gap: 6px; }
.faro-chat-title .status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #3fcf4a; box-shadow: 0 0 0 4px rgba(63,207,74,.18);
}
.faro-chat-close {
  background: transparent; color: #ccc; border: 0; cursor: pointer;
  font-size: 1.2rem; padding: 4px 8px; border-radius: 6px;
}
.faro-chat-close:hover { background: rgba(255,255,255,.08); color: #fff; }

.faro-chat-body {
  flex: 1;
  padding: 14px 14px 6px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
  background: linear-gradient(180deg, #0f0f1a, #13131f);
}
.faro-msg {
  max-width: 85%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  word-wrap: break-word;
}
.faro-msg.bot {
  align-self: flex-start;
  background: #1d1d2d;
  color: #eee;
  border: 1px solid rgba(255,255,255,.06);
  border-bottom-left-radius: 4px;
}
.faro-msg.bot strong { color: #c5a255; }
.faro-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #c5a255, #a88534);
  color: #0d0d0d;
  font-weight: 500;
  border-bottom-right-radius: 4px;
}
.faro-msg.typing { display: inline-flex; gap: 4px; padding: 14px; }
.faro-msg.typing span {
  width: 6px; height: 6px; border-radius: 50%; background: #c5a255; opacity: .6;
  animation: faroTyping 1.2s infinite ease-in-out;
}
.faro-msg.typing span:nth-child(2) { animation-delay: .15s; }
.faro-msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes faroTyping {
  0%, 80%, 100% { transform: scale(0.7); opacity: .4; }
  40% { transform: scale(1); opacity: 1; }
}

.faro-chat-quickreplies {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 4px;
}
.faro-chat-quickreplies button {
  text-align: left;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(197, 162, 85, 0.1);
  color: #e8d4a8;
  border: 1px solid rgba(197, 162, 85, 0.25);
  cursor: pointer;
  font-size: 0.82rem;
  transition: background .15s ease;
}
.faro-chat-quickreplies button:hover { background: rgba(197, 162, 85, 0.2); }

.faro-chat-input {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(197, 162, 85, 0.15);
  background: #0a0a14;
}
.faro-chat-input input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1);
  background: #1a1a2b;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
}
.faro-chat-input input:focus { border-color: rgba(197, 162, 85, 0.5); }
.faro-chat-input input:disabled { opacity: .5; cursor: not-allowed; }
.faro-chat-input button {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #c5a255, #a88534);
  color: #0d0d0d;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  transition: transform .1s ease;
}
.faro-chat-input button:hover { transform: scale(1.05); }

@media (max-width: 640px) {
  .faro-chat-toggle { padding: 12px 16px; }
  .faro-chat-toggle-label { display: none; }
  .faro-chat-panel {
    bottom: 0; right: 0; left: 0;
    width: 100%;
    max-width: 100%;
    height: 85vh;
    max-height: 100vh;
    border-radius: 18px 18px 0 0;
  }
}

/* ===== PROPERTIES MAP ===== */
.map-section {
  padding: var(--section-padding);
  background: linear-gradient(180deg, var(--black) 0%, var(--dark) 100%);
}
.properties-map {
  width: 100%;
  height: 520px;
  max-height: 70vh;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(197, 162, 85, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  background: #111;
}
.properties-map .leaflet-container {
  background: #1a1a2e;
  font-family: inherit;
}
.properties-map .leaflet-popup-content-wrapper {
  background: #151526;
  color: #eee;
  border: 1px solid rgba(197, 162, 85, 0.4);
}
.properties-map .leaflet-popup-tip { background: #151526; }
.properties-map .leaflet-popup-content { margin: 10px 12px; min-width: 210px; }
.faro-popup h4 { margin: 0 0 6px; color: #c5a255; font-size: 0.95rem; }
.faro-popup .price { color: #fff; font-weight: 700; margin: 2px 0 6px; }
.faro-popup .loc { font-size: 0.78rem; color: #bbb; margin-bottom: 6px; }
.faro-popup img { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; margin-bottom: 6px; }
.faro-popup .tags { display: flex; gap: 6px; font-size: 0.7rem; margin-bottom: 6px; }
.faro-popup .tags span {
  padding: 2px 8px; border-radius: 10px;
  background: rgba(197, 162, 85, 0.2); color: #c5a255;
}
@media (max-width: 768px) {
  .properties-map { height: 420px; }
}

/* ===== EVENTS / EVENTOS ===== */
.events {
  padding: var(--section-padding);
  background: linear-gradient(180deg, var(--dark) 0%, var(--black) 100%);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.event-card {
  display: flex;
  gap: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.event-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.event-card:hover {
  border-color: rgba(197, 162, 85, 0.2);
  transform: translateX(5px);
}

.event-card:hover::before {
  opacity: 1;
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  background: rgba(197, 162, 85, 0.1);
  border-radius: 12px;
  padding: 16px 12px;
}

.event-date .day {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.event-date .month {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-light);
  margin-top: 2px;
}

.event-info h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.event-info p {
  font-size: 0.9rem;
  color: var(--gray-300);
  line-height: 1.6;
  margin-bottom: 10px;
}

.event-meta {
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--gray-400);
}

.event-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ===== LOCATION / UBICACIÓN ===== */
.location {
  padding: var(--section-padding);
  background: var(--black);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.location-map {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(197, 162, 85, 0.25);
  min-height: 400px;
  background: #1a1a2e;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.location-map .leaflet-container {
  background: #1a1a2e;
  font-family: inherit;
  height: 100%;
  min-height: 400px;
}
.location-map .leaflet-popup-content-wrapper {
  background: #151526;
  color: #eee;
  border: 1px solid rgba(197, 162, 85, 0.4);
}
.location-map .leaflet-popup-tip { background: #151526; }
.location-map .office-popup h4 { margin: 0 0 6px; color: #c5a255; font-size: 0.95rem; }
.location-map .office-popup p { margin: 0; font-size: 0.82rem; color: #ddd; }

.location-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.location-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all var(--transition-medium);
}

.location-card:hover {
  border-color: rgba(197, 162, 85, 0.2);
  background: rgba(197, 162, 85, 0.04);
}

.location-card .card-icon {
  min-width: 48px;
  height: 48px;
  background: rgba(197, 162, 85, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.location-card h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.location-card p {
  font-size: 0.9rem;
  color: var(--gray-300);
  line-height: 1.5;
}

/* ===== FOOTER ===== */
.footer {
  padding: 60px 0 30px;
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand .brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.footer-brand .brand-sub {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--gray-400);
  font-size: 0.9rem;
  max-width: 300px;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  font-size: 1.1rem;
  transition: all var(--transition-medium);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-social a:hover {
  background: rgba(197, 162, 85, 0.15);
  border-color: rgba(197, 162, 85, 0.3);
  color: var(--gold);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-400);
  padding: 6px 0;
  transition: all var(--transition-fast);
}

.footer-col a:hover {
  color: var(--gold);
  padding-left: 6px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 3rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 768px) {
  :root { --section-padding: 70px 0; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    transition: right var(--transition-medium);
    padding: 40px;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a { font-size: 1.1rem; }

  .hamburger { display: flex; }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-content {
    text-align: center;
  }

  .hero-btns {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }

  .section-header h2 {
    font-size: 2.2rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .location-grid {
    grid-template-columns: 1fr;
  }

  .location-map {
    min-height: 300px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .about-info-grid { grid-template-columns: 1fr; }
  .stat-number { font-size: 2.4rem; }
  .event-card { flex-direction: column; }
}
