/* ============================================
   FLOWAGENTS.IO — PLANTILLA INMOBILIARIA PREMIUM
   Estilos base con variables CSS editables
   ============================================ */

:root {
  --bg-primary: #0A0A0A;
  --bg-secondary: #111111;
  --bg-tertiary: #181818;
  --accent: #D4AF37;
  --accent-hover: #E5C158;
  --accent-glow: rgba(212, 175, 55, 0.2);
  --accent-badge: rgba(212, 175, 55, 0.15);
  --text-primary: #FFFFFF;
  --text-secondary: #A0A0A0;
  --text-muted: #666666;
  --border: #222222;
  --border-hover: rgba(212, 175, 55, 0.45);
  --radius: 14px;
  --radius-sm: 8px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  --shadow-hover: 0 12px 40px rgba(212, 175, 55, 0.14);
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --max-width: 1240px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ============ TIPOGRAFÍA ============ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.8rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

.accent { color: var(--accent); }
.text-secondary { color: var(--text-secondary); }

/* ============ LAYOUT ============ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 85px 0;
}

/* ============ NAVBAR ============ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  transition: var(--transition);
}

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

.navbar-brand {
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

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

.navbar-brand-text .name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.navbar-brand-text .tag {
  font-size: 0.68rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.navbar-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.navbar-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--accent);
}

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

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

.navbar-cta {
  background: var(--accent);
  color: #0A0A0A;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.navbar-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
}

/* ============ HERO ============ */

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 110px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 750px;
  height: 750px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-badge);
  color: var(--accent);
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.hero h1 {
  margin-bottom: 20px;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  margin-bottom: 34px;
  max-width: 580px;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent);
  color: #0A0A0A;
  padding: 13px 30px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  color: var(--text-primary);
  padding: 13px 30px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Tarjeta personal en el hero */
.hero-advisor-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow);
}

.hero-advisor-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 18px;
  border: 3px solid var(--accent);
  box-shadow: 0 0 25px var(--accent-glow);
  display: block;
}

.hero-advisor-name {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.hero-advisor-role {
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-advisor-id {
  display: inline-block;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.hero-advisor-affiliation {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 18px;
  padding: 0 6px;
}

.hero-advisor-stats-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.hero-advisor-stat-item .val {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
}

.hero-advisor-stat-item .lbl {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* ============ SEARCH / FILTER BAR COMPLETA ============ */

.search-section {
  padding: 0;
  margin-top: -30px;
  position: relative;
  z-index: 20;
}

.search-box-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.search-input-wrapper {
  position: relative;
  margin-bottom: 16px;
}

.search-input-wrapper svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--accent);
  pointer-events: none;
}

.search-text-input {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1rem;
  padding: 16px 20px 16px 50px;
  transition: var(--transition);
  font-family: var(--font-primary);
}

.search-text-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-text-input::placeholder {
  color: #777;
}

.search-filters-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto auto;
  gap: 14px;
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-group label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.filter-group select,
.filter-group input {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: var(--font-primary);
  transition: var(--transition);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.filter-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.filter-group select option {
  background-color: #141414;
  color: #FFFFFF;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn-search {
  background: var(--accent);
  color: #0A0A0A;
  border: none;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--transition);
  height: 44px;
  white-space: nowrap;
}

.btn-search:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-reset {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  height: 44px;
}

.btn-reset:hover {
  color: var(--text-primary);
  border-color: #444;
}

/* ============ PROPERTY CARDS & CARRUSEL ============ */

.properties-section {
  padding-top: 60px;
}

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

.section-header h2 {
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}

.property-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.property-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.card-carousel-container {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #000;
}

.carousel-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  background: rgba(10, 10, 10, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  opacity: 0;
}

.property-card:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn:hover {
  background: var(--accent);
  color: #0A0A0A;
  border-color: var(--accent);
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.carousel-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #D4AF37;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  letter-spacing: 0.05em;
  z-index: 10;
  pointer-events: none;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: var(--transition);
}

.carousel-dot.active {
  background: var(--accent);
  width: 18px;
  border-radius: 4px;
}

.property-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #0A0A0A;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 5;
}

.property-card-price {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(10px);
  color: var(--accent);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 800;
  z-index: 5;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.property-card-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.property-card-title {
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
  line-height: 1.4;
}

.property-card-location {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary);
  font-size: 0.86rem;
  margin-bottom: 18px;
}

.property-card-location svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
  flex-shrink: 0;
}

.property-card-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding-top: 16px;
  margin-top: auto;
  border-top: 1px solid var(--border);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 4px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  border: 1px solid #1E1E1E;
}

.feature-item svg {
  width: 19px;
  height: 19px;
  color: var(--accent);
  margin-bottom: 4px;
}

.feature-item .val {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.feature-item .lbl {
  font-size: 0.68rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-top: 2px;
}

.card-action-bar {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.btn-card-detail {
  flex: 1;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-card-detail:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-card-map {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
}

.btn-card-map:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-card-wa {
  background: #25D366;
  color: #FFFFFF;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
}

.btn-card-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* ============ MODAL DE DETALLE CON GOOGLE MAPS ============ */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 880px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
  z-index: 30;
  transition: var(--transition);
}

.modal-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.modal-carousel {
  position: relative;
  width: 100%;
  height: 400px;
  background: #000;
  overflow: hidden;
}

.modal-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px 30px;
  background: #0E0E0E;
  overflow-x: auto;
}

.modal-thumb {
  width: 70px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  transition: var(--transition);
}

.modal-thumb.active,
.modal-thumb:hover {
  opacity: 1;
  border-color: var(--accent);
}

.modal-body {
  padding: 30px;
}

.modal-price {
  color: var(--accent);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.modal-body h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.modal-location {
  color: var(--text-secondary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.95rem;
}

.modal-location svg {
  color: var(--accent);
}

.modal-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.modal-feature-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-feature-card svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
  margin-bottom: 6px;
}

.modal-feature-card .val {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-feature-card .lbl {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-description {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

/* Integración Google Maps en Modal */
.modal-map-wrapper {
  margin-bottom: 28px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.modal-map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-tertiary);
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}

.modal-map-header span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-map-header span svg {
  color: var(--accent);
}

.modal-map-header a {
  color: var(--accent);
  font-size: 0.8rem;
  text-decoration: none;
  font-weight: 600;
}

.modal-map-header a:hover {
  text-decoration: underline;
}

.modal-map-frame {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
  filter: invert(90%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

.modal-actions {
  display: flex;
  gap: 14px;
}

/* ============ SECCIÓN SOBRE MÍ / MARCA PERSONAL ============ */

.personal-brand-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.personal-photo-wrapper {
  position: relative;
  text-align: center;
}

.personal-photo {
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
  display: block;
  margin: 0 auto;
}

.personal-badge-overlay {
  position: absolute;
  bottom: -15px;
  right: 20px;
  background: rgba(10, 10, 10, 0.95);
  border: 1.5px solid var(--accent);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  text-align: left;
}

.personal-badge-overlay .title {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.personal-badge-overlay .num {
  font-size: 0.95rem;
  font-weight: 800;
  color: #FFFFFF;
}

.personal-bio-content h2 {
  margin-bottom: 10px;
}

.personal-subtitle {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.personal-bio-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

.stats-grid-big {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-box {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 12px;
  text-align: center;
  transition: var(--transition);
}

.stat-box:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.stat-box .number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-box .label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* ============ SERVICIOS EXCLUSIVOS ============ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.service-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

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

.service-card h3 {
  font-family: var(--font-primary);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ============ TESTIMONIOS ============ */

.testimonials-section {
  padding: 80px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.testimonial-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: var(--border-hover);
}

.stars {
  color: var(--accent);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-quote {
  color: var(--text-primary);
  font-size: 0.96rem;
  line-height: 1.7;
  margin-bottom: 22px;
  font-style: italic;
}

.testimonial-author {
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--accent);
}

/* ============ CONTACTO ============ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 14px;
}

.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-badge);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-detail-text .label {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-detail-text .value {
  color: var(--text-primary);
  font-weight: 600;
}

.contact-detail-text a {
  color: var(--accent);
  text-decoration: none;
}

.contact-form {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: var(--font-primary);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ============ FOOTER ============ */

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.footer-powered {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-powered a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

/* ============ BOTÓN WHATSAPP FLOTANTE ============ */

.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 999;
  width: 62px;
  height: 62px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 25px rgba(37, 211, 102, 0.45);
  transition: var(--transition);
  animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.no-results {
  text-align: center;
  padding: 70px 24px;
  grid-column: 1 / -1;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .about-personal-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .stats-grid-big {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-filters-row {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .properties-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

/* ==========================================================================
   SECCIÓN INSTAGRAM
   ========================================================================== */

.instagram-section {
  padding: 100px 0;
  background: #0D0D0D;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ig-profile-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: #141414;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  padding: 24px 32px;
  max-width: 700px;
  margin: 0 auto 50px auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.ig-profile-photo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
  flex-shrink: 0;
}

.ig-profile-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ig-profile-name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ig-profile-name h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text-primary);
  margin: 0;
}

.ig-bio {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.btn-ig-follow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 20px;
  text-decoration: none;
  width: fit-content;
  margin-top: 4px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-ig-follow:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.ig-post {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #141414;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.ig-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.ig-post:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.2);
}

.ig-post:hover img {
  transform: scale(1.05);
}

.ig-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.ig-overlay-icon {
  font-size: 1.8rem;
  color: #D4AF37;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
}

.ig-post:hover .ig-overlay {
  opacity: 1;
}

.ig-cta {
  text-align: center;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .navbar-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

  .navbar-links.active {
    display: flex;
  }

  .navbar-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .search-filters-row {
    grid-template-columns: 1fr;
  }

  .modal-carousel {
    height: 240px;
  }

  .modal-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-actions {
    flex-direction: column;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .ig-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .ig-profile-header {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    margin-bottom: 30px;
  }

  .ig-profile-info {
    align-items: center;
  }
}


/* ============================================================
   CAPA DE ANIMACIONES Y PULIDO LUXURY MOTION — AMARILIS BARRETO
   ============================================================ */

:root {
  --gold-gradient: linear-gradient(135deg, #BF953F 0%, #E8C766 45%, #D4AF37 75%, #F7E39C 100%);
  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
}

html, body {
  overflow-x: clip;
}

.hero-grid > *,
.about-personal-grid > *,
.contact-grid > *,
.properties-grid > *,
.search-filters-row > * {
  min-width: 0;
}

/* Barra de progreso dorada superior */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 1200;
  background: var(--gold-gradient);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.65);
  transition: width 0.1s linear;
}

/* Navbar reactivo al scroll */
.navbar {
  transition: background 0.35s var(--ease-out-expo), padding 0.35s var(--ease-out-expo), border-color 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo);
}

.navbar.scrolled {
  background: rgba(8, 8, 8, 0.94);
  padding: 10px 0;
  border-bottom-color: rgba(212, 175, 55, 0.26);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
}

/* Halos ambientales y retícula sutil en el Hero */
.hero {
  overflow-x: clip;
  min-height: min(88vh, 860px);
  padding-bottom: 68px;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(95px);
  pointer-events: none;
  z-index: 0;
}

.hero-orb.orb-1 {
  width: 520px;
  height: 520px;
  top: -120px;
  right: -100px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.22) 0%, transparent 70%);
  animation: driftOrbA 14s ease-in-out infinite alternate;
}

.hero-orb.orb-2 {
  width: 420px;
  height: 420px;
  bottom: -140px;
  left: -120px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.13) 0%, transparent 70%);
  animation: driftOrbB 18s ease-in-out infinite alternate;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse at 50% 42%, black 18%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 42%, black 18%, transparent 76%);
}

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

@keyframes driftOrbA {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-36px, 28px) scale(1.08); }
}

@keyframes driftOrbB {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(34px, -24px) scale(1.06); }
}

/* Brillo editorial en textos acentuados */
.hero h1 .accent,
.section-header h2 .accent,
.personal-bio-content h2 .accent,
.contact-info h2 .accent {
  font-style: italic;
  padding-right: 0.12em;
  background: linear-gradient(120deg, #C89B2B 0%, #F7E39C 35%, #D4AF37 65%, #FFF2B8 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: goldShimmer 7s linear infinite;
}

@keyframes goldShimmer {
  to { background-position: 220% center; }
}

/* Botón primario con destello suave */
.btn-primary {
  background: var(--gold-gradient);
  position: relative;
  overflow: hidden;
  transition: transform 0.32s var(--ease-out-expo), box-shadow 0.32s var(--ease-out-expo), filter 0.32s var(--ease-out-expo);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-22deg);
  transition: left 0.65s var(--ease-out-expo);
}

.btn-primary:hover::after {
  left: 145%;
}

/* Tarjeta asesora del Hero + Etiquetas Flotantes (Chips) */
.hero-advisor-card {
  background: linear-gradient(160deg, rgba(24, 24, 24, 0.92) 0%, rgba(14, 14, 14, 0.96) 100%);
  border: 1px solid rgba(212, 175, 55, 0.28);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.72), 0 0 0 8px rgba(212, 175, 55, 0.03);
  backdrop-filter: blur(14px);
  transition: transform 0.45s var(--ease-out-expo), border-color 0.45s var(--ease-out-expo);
}

.hero-advisor-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.55);
}

.hero-advisor-photo {
  animation: photoHalo 4.5s ease-in-out infinite;
}

@keyframes photoHalo {
  0%, 100% { box-shadow: 0 0 22px rgba(212, 175, 55, 0.22); }
  50%      { box-shadow: 0 0 38px rgba(212, 175, 55, 0.46); }
}

.hero-chip {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 16, 16, 0.88);
  border: 1px solid rgba(212, 175, 55, 0.38);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #F5F1E6;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
}

.hero-chip.chip-a {
  top: -15px;
  left: -14px;
  animation: bobChip 5s ease-in-out infinite;
}

.hero-chip.chip-a i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3DDC84;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.65);
  animation: pulseDot 2s infinite;
}

.hero-chip.chip-b {
  top: 118px;
  right: -18px;
  color: #F3D579;
  animation: bobChip 6s ease-in-out infinite reverse;
}

@keyframes bobChip {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@keyframes pulseDot {
  70%  { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

/* Cinta Deslizante Editorial (Marquee) */
.marquee {
  background: linear-gradient(90deg, #0D0D0D 0%, #14120B 50%, #0D0D0D 100%);
  border-top: 1px solid rgba(212, 175, 55, 0.22);
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  overflow: hidden;
  padding: 15px 0;
  position: relative;
  z-index: 10;
}

.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 28px;
  animation: marqueeScroll 36s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.12rem;
  color: #E8C766;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.marquee-track i {
  font-style: normal;
  color: rgba(212, 175, 55, 0.55);
  font-size: 0.78rem;
}

@keyframes marqueeScroll {
  to { transform: translateX(-50%); }
}

/* Espaciado limpio del buscador debajo de la cinta */
.search-section {
  margin-top: 38px;
}

.search-box-container {
  background: rgba(18, 18, 18, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.24);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.65);
}

/* Animaciones de Entrada al Hacer Scroll (.reveal) */
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.82s var(--ease-out-expo), transform 0.82s var(--ease-out-expo);
  will-change: opacity, transform;
}

.js .reveal.reveal-left {
  transform: translateX(-34px);
}

.js .reveal.reveal-right {
  transform: translateX(34px);
}

.js .reveal.in {
  opacity: 1;
  transform: translate(0, 0);
}

/* El Hero anima de inmediato por CSS sin esperar imágenes externas */
.js .hero .reveal.reveal-left {
  opacity: 1;
  transform: none;
  animation: heroSlideLeft 0.9s var(--ease-out-expo) both;
}

.js .hero .reveal.reveal-right {
  opacity: 1;
  transform: none;
  animation: heroSlideRight 0.95s 0.12s var(--ease-out-expo) both;
}

@keyframes heroSlideLeft {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes heroSlideRight {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Elevación y zoom cinemático en Tarjetas */
.property-card {
  transition: transform 0.42s var(--ease-out-expo), border-color 0.42s var(--ease-out-expo), box-shadow 0.42s var(--ease-out-expo);
}

.property-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.75), 0 8px 30px rgba(212, 175, 55, 0.14);
}

.carousel-slide-img {
  transition: opacity 0.25s ease, transform 0.85s var(--ease-out-expo);
}

.property-card:hover .carousel-slide-img {
  transform: scale(1.05);
}

.service-card,
.testimonial-card,
.stat-box {
  position: relative;
  overflow: hidden;
  transition: transform 0.38s var(--ease-out-expo), border-color 0.38s var(--ease-out-expo), box-shadow 0.38s var(--ease-out-expo);
}

.service-card::before,
.stat-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.42s var(--ease-out-expo);
}

.service-card:hover::before,
.stat-box:hover::before {
  transform: scaleX(1);
}

.service-card:hover,
.testimonial-card:hover,
.stat-box:hover {
  transform: translateY(-7px);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.65);
}

.personal-photo {
  transition: transform 0.65s var(--ease-out-expo), box-shadow 0.65s var(--ease-out-expo);
}

.personal-photo-wrapper:hover .personal-photo {
  transform: scale(1.025);
  box-shadow: 0 24px 55px rgba(212, 175, 55, 0.18);
}

/* Botón flotante de WhatsApp mejorado con onda expansiva */
.whatsapp-float {
  background: linear-gradient(145deg, #2BE06F, #128C4A);
  box-shadow: 0 14px 34px rgba(18, 140, 74, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.18) inset;
  animation: none;
  transition: transform 0.32s var(--ease-out-expo);
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.55;
  z-index: -1;
  animation: waRingGold 2.4s ease-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(-6deg);
}

@keyframes waRingGold {
  0%   { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.72); opacity: 0; }
}

@media (max-width: 768px) {
  .hero-chip.chip-a {
    top: -12px;
    left: 10px;
    font-size: 0.70rem;
    padding: 6px 12px;
  }

  .hero-chip.chip-b {
    position: static;
    margin: 0 auto 14px;
    display: inline-flex;
  }

  .search-section {
    margin-top: 24px;
  }

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

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
