/* ================================================================
   DE FAZIO — Premium Aesthetic Layer
   Paleta oficial: Verde bosque #5F6D04 · Verde marca #C1E000
   Verde lima #6B8E7A · Terracota #B87333
   Cormorant Garamond · Editorial Typography
   ================================================================ */

/* ── Variables premium con colores reales De Fazio ─────────────── */
:root {
  --font-display:    'Montserrat', sans-serif;
  --font-body:       'Montserrat', sans-serif;

  /* Reglas de color — verde marca */
  --brand-rule:      rgba(193, 224, 0, 0.60);
  --brand-thin:      rgba(193, 224, 0, 0.25);
  --hero-ghost:      rgba(95, 109, 4, 0.10);   /* watermark verde bosque */
  --accent-muted:    rgba(193, 224, 0, 0.40);  /* separadores, líneas decorativas */
  --accent-bright:   #6B8E7A;                   /* H1 em, highlights brillantes */
}

/* ── Section labels — línea verde a la izquierda ───────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .75rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--brand);
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 2.5rem;
  height: 1px;
  background: var(--brand);
  flex-shrink: 0;
}

/* ── Section headers ────────────────────────────────────────────── */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 800;
  font-style: normal;
  letter-spacing: -.015em;
  line-height: 1.1;
  color: var(--black);
}

/* Section titles inherit white on dark backgrounds */
.bg-dark .section-title,
section[style*="background:var(--dark)"] .section-title {
  color: var(--white);
}
.bg-dark .section-label,
section[style*="background:var(--dark)"] .section-label {
  color: var(--brand-light);
}
.bg-dark .section-subtitle,
section[style*="background:var(--dark)"] .section-subtitle {
  color: rgba(250, 253, 248, 0.60);
}

/* Process section on dark bg — text overrides */
.bg-dark .process-step h3 { color: var(--white); }
.bg-dark .process-step p  { color: rgba(250, 253, 248, 0.55); }
.bg-dark .process-num {
  border-color: rgba(193, 224, 0, 0.35);
  background: rgba(193, 224, 0, 0.08);
}

/* ── Hero section — centrado ─────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Fondo limpio oscuro — identidad De Fazio sin verde saturado */
  background: linear-gradient(160deg, #26332C 0%, #5F6D04 35%, #5F6D04 65%, #C1E000 100%);
  padding-top: 0;
}

/* Textura SVG sobre el hero */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Cruz pattern en verde muy sutil */
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236B8E7A' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Ghost watermark "DE FAZIO" */
#hero::before {
  content: 'DE FAZIO';
  position: absolute;
  bottom: -4vw;
  right: -2vw;
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 18rem);
  font-weight: 700;
  font-style: italic;
  color: var(--hero-ghost);
  letter-spacing: -.04em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  line-height: 1;
}

/* Radial glow verde en el hero */
.hero-gradient {
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(47,107,79,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(38, 51, 44,0.6) 0%, transparent 60%);
}

/* Grain texture */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.035;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: calc(var(--topbar-h) + var(--navbar-h) + 4rem) 0 6rem;
}

/* ── Hero badge ─────────────────────────────────────────────────── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem 1rem;
  background: rgba(193, 224, 0, 0.12);
  border: 1px solid rgba(193, 224, 0, 0.30);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-light);
  margin-bottom: 1.5rem;
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.7); }
}

/* ── Hero headline ──────────────────────────────────────────────── */
.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5.5vw, 5.25rem);
  font-weight: 800;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-h1 em {
  font-style: italic;
  color: var(--brand-light);
  display: block;
  font-size: 1.1em;
  letter-spacing: -.025em;
}

/* ── Hero subtext ───────────────────────────────────────────────── */
.hero-sub {
  font-size: clamp(.9375rem, 1.4vw, 1.125rem);
  line-height: 1.65;
  color: rgba(250, 253, 248, 0.62);
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
  font-weight: 700;
}

/* ── Hero CTA ───────────────────────────────────────────────────── */
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-cta-link {
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: rgba(250, 253, 248, 0.55);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(193, 224, 0, 0.4);
  transition: color .2s, text-decoration-color .2s;
}

.hero-cta-link:hover {
  color: var(--brand-light);
  text-decoration-color: var(--brand);
}

/* ── Hero search widget ─────────────────────────────────────────── */
.hero-search {
  background: rgba(250, 253, 248, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(193, 224, 0, 0.12);
  border-radius: 4px;
  padding: 1.5rem;
  max-width: 680px;
  margin-bottom: 1rem;
}

.hero-search-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(193, 224, 0, 0.15);
  margin-bottom: 1.25rem;
}

.hero-search-tab {
  background: none;
  border: none;
  border-radius: 0;
  padding: .5rem 1.25rem .75rem;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(250, 253, 248, 0.4);
  cursor: pointer;
  position: relative;
  transition: color .2s;
}

.hero-search-tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-light);
  transform: scaleX(0);
  transition: transform .25s ease;
}

.hero-search-tab.active { color: var(--brand-light); }
.hero-search-tab.active::after { transform: scaleX(1); }

.hero-search-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr auto;
  gap: .75rem;
  align-items: end;
}

@media (max-width: 600px) {
  .hero-search-row { grid-template-columns: 1fr; }
}

.hero-search-field {
  display: flex;
  flex-direction: column;
  gap: .375rem;
}

.hero-search-field label {
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(250, 253, 248, 0.35);
  font-family: var(--font-body);
}

.hero-search-field select {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(193, 224, 0, 0.30);
  padding: .5rem 1.5rem .5rem 0;
  font-family: var(--font-body);
  font-size: .9375rem;
  color: var(--white);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B8E7A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  transition: border-color .2s;
}

.hero-search-field select:focus {
  outline: none;
  border-bottom-color: var(--brand-light);
}

.hero-search-field select option {
  background: #4A5503;
  color: var(--white);
}

.btn-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .625rem 1.25rem;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}

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

.hero-search-count {
  font-size: .75rem;
  color: rgba(250, 253, 248, 0.35);
  margin-top: .875rem;
  font-family: var(--font-body);
}

.hero-search-count strong {
  color: var(--brand-light);
  font-weight: 700;
}

/* ── Hero stats bar — separadores verticales ────────────────────── */
.hero-stats {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  padding-top: 5rem;
  border-top: 1px solid rgba(193, 224, 0, 0.15);
  max-width: 640px;
}

.hero-stats > div {
  flex: 1;
  padding: 0 2rem 0 0;
  position: relative;
}

.hero-stats > div + div {
  padding-left: 2rem;
}

.hero-stats > div + div::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: var(--brand-thin);
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  font-style: italic;
  color: var(--white);
  line-height: 1;
  margin-bottom: .375rem;
}

.hero-stat-label {
  font-family: var(--font-body);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(250, 253, 248, 0.38);
}

@media (max-width: 640px) {
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 0;
    max-width: 100%;
  }
  .hero-stats > div { padding: 0; }
  .hero-stats > div + div { padding-left: 1.5rem; }
  .hero-stats > div:nth-child(3) {
    border-top: 1px solid var(--brand-thin);
    padding-top: 1.5rem;
  }
  .hero-stats > div:nth-child(3)::before { display: none; }
  .hero-stats > div:nth-child(4) {
    border-top: 1px solid var(--brand-thin);
    padding-top: 1.5rem;
    padding-left: 1.5rem;
  }
}

/* ── Property cards ─────────────────────────────────────────────── */
.prop-card {
  background: var(--white);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(38, 51, 44,0.08);
  border: 1px solid var(--gray-100);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  cursor: pointer;
}

.prop-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(38, 51, 44,0.14);
  border-color: rgba(193, 224, 0, 0.25);
}

.prop-card-img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.prop-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.prop-card:hover .prop-card-img img { transform: scale(1.06); }

/* Badge operación */
.prop-badge {
  position: absolute;
  top: .875rem; left: .875rem;
  font-size: .6875rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 100px;
}
.badge-venta     { background: var(--brand); color: #fff; }
.badge-alquiler  { background: var(--brand-dark); color: #fff; }
.badge-temporario{ background: var(--accent-warm); color: #fff; }

.prop-card-body  { padding: 1.25rem; }
.prop-price {
  font-family: var(--font-display);
  font-size: 1.5rem; color: var(--black);
  font-weight: 700; margin-bottom: .375rem;
}
.prop-type     { font-size: .875rem; color: var(--gray-500); margin-bottom: .25rem; }
.prop-location { display: flex; align-items: center; gap: .375rem; font-size: .875rem; color: var(--gray-600); margin-bottom: 1rem; }
.prop-location svg { width: 14px; height: 14px; color: var(--brand); flex-shrink: 0; }
.prop-specs    { display: flex; gap: 1rem; padding-top: .875rem; border-top: 1px solid var(--gray-100); }
.prop-spec     { display: flex; align-items: center; gap: .3rem; font-size: .8125rem; color: var(--gray-500); }
.prop-spec svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--gray-400); }

/* ── Botones globales ───────────────────────────────────────────── */
.btn-brand {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(107, 142, 122,0.30);
}
.btn-brand:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(107, 142, 122,0.40);
}

/* ── Topbar — verde bosque real ─────────────────────────────────── */
#topbar {
  background: var(--dark) !important;
  border-bottom: 1px solid rgba(193, 224, 0, 0.08);
}

/* ── Navbar scrolled — borde verde muy sutil ────────────────────── */
#navbar.scrolled {
  box-shadow: 0 1px 0 rgba(193, 224, 0, 0.15) !important;
}

/* ── Filtros de propiedades ─────────────────────────────────────── */
.filter-tabs {
  background: var(--gray-100);
  padding: .3rem;
  border-radius: 10px;
  display: flex;
  gap: .375rem;
}

.filter-tab {
  padding: .5rem 1.25rem;
  border-radius: 7px;
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  color: var(--gray-500);
  border: none;
  transition: all .2s;
}

.filter-tab.active {
  background: var(--white);
  color: var(--dark);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* ── Counters ───────────────────────────────────────────────────── */
.counter-num { color: var(--dark); }
.counter-card:hover .counter-num { color: var(--brand); }

/* ── Proceso — números circulares ───────────────────────────────── */
.process-num {
  border-color: rgba(193, 224, 0, 0.30) !important;
  color: var(--brand) !important;
}
.process-step:hover .process-num {
  border-color: var(--brand) !important;
  box-shadow: 0 0 30px rgba(107, 142, 122,0.20) !important;
}

/* Línea conectora del proceso en verde */
.process-steps::before {
  background: linear-gradient(to right, transparent, var(--brand), transparent) !important;
}

/* ── Tasaciones CTA — fondo verde bosque profundo ───────────────── */
#tasaciones-cta {
  background: linear-gradient(135deg, #5F6D04 0%, #4A5503 50%, #5F6D04 100%) !important;
}
#tasaciones-cta::before {
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(107, 142, 122,0.10) 0%, transparent 60%) !important;
}

/* ── Emprendimientos — fondo verde oscuro ───────────────────────── */
#emprendimientos {
  background: linear-gradient(160deg, #5F6D04 0%, #5F6D04 60%, #26332C 100%);
}

.emp-label { color: var(--brand-light) !important; }
.emp-price { color: var(--brand-light) !important; }
.emp-tag {
  background: rgba(193, 224, 0, 0.10) !important;
  color: var(--brand) !important;
  border-color: rgba(193, 224, 0, 0.22) !important;
}

/* ── Contacto — icono de contacto ───────────────────────────────── */
.contact-icon {
  background: rgba(193, 224, 0, 0.08) !important;
  border-color: rgba(193, 224, 0, 0.20) !important;
  color: var(--brand) !important;
}

/* ── Empresa tags ───────────────────────────────────────────────── */
.empresa-tag {
  background: rgba(193, 224, 0, 0.08);
  border: 1px solid rgba(193, 224, 0, 0.18);
  color: var(--dark);
  border-radius: 100px;
  padding: .375rem 1rem;
  font-size: .8125rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.empresa-tag svg { color: var(--brand); }

/* ── Carousel dots ──────────────────────────────────────────────── */
.carousel-dot.active { background: var(--brand) !important; }
.carousel-btn:hover  { border-color: var(--brand) !important; color: var(--brand) !important; }

/* ── Footer ─────────────────────────────────────────────────────── */
#footer { background: var(--black); }

/* ── Links de sección ───────────────────────────────────────────── */
.props-ver-todas { color: var(--brand); }
.props-ver-todas:hover { color: var(--brand-light); }

/* ── Acento terracota — del techo del logo ─────────────────────── */
.badge-venta {
  background: var(--accent-warm) !important;
  color: #fff !important;
}

/* CTA principal con acento cálido para contraste */
.btn-brand {
  background: var(--brand) !important;
  box-shadow: 0 4px 14px rgba(193, 224, 0, 0.30) !important;
}
.btn-brand:hover {
  background: var(--brand-dark) !important;
  box-shadow: 0 8px 20px rgba(193, 224, 0, 0.40) !important;
}

/* Botón de búsqueda hero con CTA para impacto visual */
.btn-search {
  background: var(--cta) !important;
}
.btn-search:hover {
  background: var(--cta-hover) !important;
}

/* Precio con verde marca */
.prop-price {
  color: var(--dark) !important;
}

/* Colegiatura badge */
.col-badge {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-family: var(--font-body);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(250, 253, 248, 0.4);
  padding: .25rem .75rem;
  border: 1px solid rgba(250, 253, 248, 0.1);
  border-radius: 100px;
}

/* ── WhatsApp flotante ──────────────────────────────────────────── */
.wa-float {
  background: var(--whatsapp);
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
}

/* ── Animaciones fade — verde tinte ─────────────────────────────── */
.fade-in, .fade-in-left, .fade-in-right {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in-left  { transform: translateX(-24px); }
.fade-in-right { transform: translateX(24px); }
.fade-in.visible, .fade-in-left.visible, .fade-in-right.visible {
  opacity: 1;
  transform: none;
}

/* ── Gold line horizontal bajo títulos ──────────────────────────── */
.brand-line {
  background: var(--brand) !important;
}

/* ── Navbar logo ────────────────────────────────────────────────── */
.nav-logo-img {
  transition: opacity .2s ease, transform .2s ease;
}
.nav-logo:hover .nav-logo-img {
  opacity: .9;
  transform: scale(1.02);
}
.logo-icon {
  background: var(--brand) !important;
}

/* ── Nav link hover y dropdown ──────────────────────────────────── */
.nav-links a:hover { color: var(--brand-dark); background: rgba(193, 224, 0,0.10); }
.nav-links .dropdown-menu a:hover { background: rgba(193, 224, 0,0.10); color: var(--brand-dark); }
.dropdown-menu { border-color: rgba(95, 109, 4,0.16) !important; }

/* ── Scroll indicator animation enhancement ────────────────────── */
.scroll-indicator { animation: float 3.5s cubic-bezier(0.45,0.05,0.55,0.95) infinite; }
@keyframes float { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }
.scroll-indicator svg { animation: pulse-svg 2s ease-in-out infinite; }
@keyframes pulse-svg { 0%,100% { opacity: 0.4; } 50% { opacity: 0.7; } }

/* ── Share button component ────────────────────────────────────── */
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(107, 142, 122,0.1);
  border: 1px solid rgba(107, 142, 122,0.2);
  color: var(--brand);
  cursor: pointer;
  transition: all 0.25s ease;
}
.share-btn:hover {
  background: rgba(107, 142, 122,0.2);
  border-color: var(--brand);
  transform: scale(1.05);
}
.share-btn svg { width: 18px; height: 18px; }
