/* =================================================================
   Loteo El Empalme · vanilla version
   Diseño inmobiliario clásico estilo 2015-2019
   Paleta cream + burgundy + olive + gold
   Tipografía: Playfair Display + Lato
   ================================================================= */

/* ============ RESET / BASE ============ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  color: #6b5f4e;
  background: #faf4e6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: #2c2418;
  margin: 0 0 0.7em;
  line-height: 1.25;
}

p { margin: 0 0 1em; }

a { color: #5b2f2f; text-decoration: none; transition: color .25s ease; }
a:hover { color: #c8a23c; }

img { max-width: 100%; height: auto; display: block; }

button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

ul { padding: 0; margin: 0; list-style: none; }

:focus-visible { outline: 2px solid #c8a23c; outline-offset: 3px; }

.num {
  font-variant-numeric: tabular-nums lining-nums;
}

.icon-sm { width: 16px; height: 16px; display: inline-block; vertical-align: middle; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: 3px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all .3s ease;
  text-align: center;
}

.btn svg { width: 16px; height: 16px; }

.btn-gold {
  background: #c8a23c;
  color: #fff;
  border-color: #c8a23c;
  box-shadow: 0 2px 6px rgba(200, 162, 60, 0.3);
}
.btn-gold:hover {
  background: #a6862a;
  border-color: #a6862a;
  color: #fff;
  box-shadow: 0 4px 12px rgba(166, 134, 42, 0.4);
  transform: translateY(-1px);
}

.btn-brown {
  background: #5b2f2f;
  color: #fff;
  border-color: #5b2f2f;
  box-shadow: 0 2px 6px rgba(91, 47, 47, 0.25);
}
.btn-brown:hover {
  background: #3d1f1f;
  border-color: #3d1f1f;
  color: #fff;
  box-shadow: 0 4px 12px rgba(61, 31, 31, 0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255,255,255,0.10);
  color: #fff;
  border-color: #fff;
  backdrop-filter: blur(2px);
}
.btn-ghost:hover {
  background: #fff;
  color: #5b2f2f;
}

.btn-outline {
  background: transparent;
  color: #5b2f2f;
  border-color: #5b2f2f;
}
.btn-outline:hover {
  background: #5b2f2f;
  color: #fff;
}

.btn-block { width: 100%; }

/* ============ SECTION HEADS ============ */
.section-eyebrow {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 16px;
  color: #c8a23c;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.section-eyebrow-center { display: block; text-align: center; }
.section-eyebrow-light { color: #e4c97a; }

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 600;
  color: #2c2418;
  margin: 0 0 18px;
  max-width: 28ch;
}
.section-head-center .section-title {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-title-light { color: #faf4e6; }

.section-lead {
  font-size: 16px;
  color: #6b5f4e;
  line-height: 1.7;
  max-width: 56ch;
  margin: 0 0 32px;
}
.section-head-center .section-lead {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-lead-light { color: rgba(250, 244, 230, 0.85); }

.section-head { margin-bottom: 48px; }
.section-head-center { margin-bottom: 56px; text-align: center; }
.section-foot { text-align: center; margin-top: 50px; }

/* ============ TOP BAR ============ */
.topbar {
  background: #2c2418;
  color: #d4c9b0;
  font-size: 12.5px;
  font-weight: 400;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.topbar-left {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d4c9b0;
}
.topbar-item:hover { color: #e4c97a; }
.topbar-right {
  display: flex;
  gap: 14px;
}
.topbar-right a {
  color: #d4c9b0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .25s ease;
}
.topbar-right a:hover { color: #c8a23c; }

@media (max-width: 768px) {
  .topbar-hours { display: none; }
}

/* ============ NAV ============ */
.nav-wrapper {
  background: #faf4e6;
  border-bottom: 1px solid #e3dac6;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(70,50,20,0.05);
  transition: background .3s ease, box-shadow .3s ease;
}
.nav-wrapper.scrolled {
  background: rgba(250, 244, 230, 0.97);
  box-shadow: 0 4px 14px rgba(70,50,20,0.10);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #5b2f2f;
}
.brand-mark {
  width: 44px;
  height: 44px;
  color: #5b2f2f;
}
.brand-svg { width: 100%; height: 100%; display: block; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 22px;
  color: #2c2418;
  letter-spacing: -0.01em;
}
.brand-tag {
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #c8a23c;
  margin-top: 2px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 8px 6px;
  border: 1px solid #d4c9b0;
  border-radius: 3px;
  background: transparent;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #5b2f2f;
  width: 100%;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-block;
  padding: 10px 16px;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: #2c2418;
  position: relative;
  transition: color .25s ease;
}
.nav-link:hover, .nav-link.active { color: #c8a23c; }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 3px;
  height: 2px;
  background: #c8a23c;
}

.nav-cta {
  margin-left: 14px;
  padding: 11px 22px;
  background: #c8a23c;
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  border-radius: 3px;
  transition: background .25s ease, transform .25s ease;
}
.nav-cta:hover { background: #a6862a; color: #fff; transform: translateY(-1px); }

@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #faf4e6;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    gap: 0;
    border-bottom: 1px solid #e3dac6;
    box-shadow: 0 6px 16px rgba(70,50,20,0.10);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .nav-menu.is-open { max-height: 600px; }
  .nav-link { padding: 14px 0; border-bottom: 1px solid #e3dac6; }
  .nav-link.active::after { display: none; }
  .nav-cta { margin: 14px 0 0; text-align: center; }
}

/* ============ HERO CAROUSEL ============ */
.hero {
  position: relative;
  overflow: hidden;
}
.slider {
  position: relative;
  height: clamp(540px, 78vh, 760px);
}
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
}
.slide.is-active { opacity: 1; z-index: 2; }
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44,36,24,0.65) 0%, rgba(44,36,24,0.35) 60%, rgba(91,47,47,0.45) 100%);
}
.slide-content {
  position: relative;
  z-index: 3;
  color: #fff;
  max-width: 720px;
  padding: 0 20px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}
.slide-eyebrow {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 18px;
  color: #e4c97a;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}
.slide-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.15;
  color: #fff;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.slide-title em {
  font-style: italic;
  font-weight: 500;
  color: #e4c97a;
}
.slide-sub {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,0.92);
  margin: 0 auto 32px;
  max-width: 56ch;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.slide-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 52px;
  height: 52px;
  background: rgba(44,36,24,0.55);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .25s ease, transform .25s ease;
}
.slider-arrow:hover { background: #c8a23c; transform: translateY(-50%) scale(1.05); }
.slider-arrow svg { width: 24px; height: 24px; }
.slider-prev { left: 24px; }
.slider-next { right: 24px; }
@media (max-width: 640px) {
  .slider-arrow { width: 42px; height: 42px; }
  .slider-prev { left: 10px; }
  .slider-next { right: 10px; }
}

.slider-dots {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  gap: 10px;
  justify-content: center;
}
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 0;
  transition: background .25s ease, transform .25s ease, width .35s ease;
}
.dot.is-active {
  background: #c8a23c;
  width: 28px;
  border-radius: 6px;
}

/* ============ SEARCH WIDGET ============ */
.search-section {
  margin-top: -56px;
  position: relative;
  z-index: 10;
}
.search-widget {
  background: #fff;
  padding: 22px 24px;
  border-radius: 4px;
  border: 1px solid #e3dac6;
  box-shadow: 0 12px 32px rgba(70, 50, 20, 0.14);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 18px 22px;
  align-items: end;
}
.search-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.search-field label {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #6b5f4e;
}
.search-field select {
  padding: 11px 14px;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: #2c2418;
  border: 1px solid #d4c9b0;
  border-radius: 3px;
  background: #faf4e6;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235b2f2f'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px;
  padding-right: 36px;
  cursor: pointer;
  transition: border-color .25s ease;
}
.search-field select:hover { border-color: #5b2f2f; }
.search-field select:focus { outline: none; border-color: #c8a23c; }

.search-btn { height: 48px; padding: 0 22px; }

@media (max-width: 880px) {
  .search-widget { grid-template-columns: 1fr 1fr; }
  .search-btn { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .search-widget { grid-template-columns: 1fr; padding: 18px; }
}

/* ============ ABOUT ============ */
.about {
  padding: 100px 0 80px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-images {
  position: relative;
}
.about-photo-main {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(70,50,20,0.20);
}
.about-photo-main img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}
.about-photo-sm {
  position: absolute;
  bottom: -34px;
  right: -28px;
  margin: 0;
  width: 50%;
  border: 6px solid #faf4e6;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(70,50,20,0.20);
}
.about-photo-sm img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}
.about-badge {
  position: absolute;
  top: -28px;
  left: -28px;
  background: #5b2f2f;
  color: #faf4e6;
  padding: 22px 26px;
  border-radius: 4px;
  text-align: center;
  box-shadow: 0 10px 22px rgba(91,47,47,0.30);
  border: 4px solid #faf4e6;
}
.about-badge-num {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: #e4c97a;
}
.about-badge-unit {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 16px;
  margin-top: 4px;
}
.about-badge-sub {
  font-family: 'Lato', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #d4c9b0;
  margin-top: 6px;
}

.about-lead { font-size: 17px; line-height: 1.75; color: #2c2418; }
.drop-cap {
  float: left;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #c8a23c;
  font-size: 62px;
  line-height: 0.9;
  padding: 6px 12px 0 0;
}

.check-list {
  margin: 18px 0 28px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed #d4c9b0;
  font-size: 14.5px;
  color: #2c2418;
}
.check-list li:last-child { border-bottom: 0; }
.check-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #84844A;
  margin-top: 2px;
}

@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; gap: 80px; }
  .about-photo-sm { right: 20px; width: 56%; }
  .about-badge { left: -12px; top: -20px; }
}

/* ============ STATS ============ */
.stats {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  padding: 90px 0;
  color: #fff;
  margin-top: 40px;
}
.stats-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44,36,24,0.85), rgba(91,47,47,0.78));
}
.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stat {
  position: relative;
  padding: 0 20px;
}
.stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -15px;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: rgba(228, 201, 122, 0.35);
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  color: #e4c97a;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.85);
  margin-top: 12px;
}
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 30px; }
  .stat:nth-child(2)::after { display: none; }
  .stats { background-attachment: scroll; }
}

/* ============ LOTS ============ */
.lots-section {
  padding: 100px 0;
  background: #faf4e6;
}
.lots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 980px) { .lots-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .lots-grid { grid-template-columns: 1fr; } }

.lot-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e3dac6;
  box-shadow: 0 4px 14px rgba(70,50,20,0.08);
  transition: transform .35s ease, box-shadow .35s ease;
  display: flex;
  flex-direction: column;
}
.lot-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(70,50,20,0.18);
}
.lot-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.lot-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
  filter: saturate(0.92) contrast(1.04);
}
.lot-card:hover .lot-photo img { transform: scale(1.06); }
.lot-status {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  background: #fff;
  color: #2c2418;
  font-family: 'Lato', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
}
.status-available { background: #84844A; color: #fff; }
.status-reserved { background: #c8a23c; color: #fff; }
.status-sold { background: #5b2f2f; color: #fff; }
.status-featured { background: #fff; color: #c8a23c; border: 1px solid #c8a23c; }

.lot-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.lot-num {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #c8a23c;
  margin-bottom: 6px;
}
.lot-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: #2c2418;
  margin: 0 0 14px;
}
.lot-attrs {
  display: flex;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e3dac6;
  flex-wrap: wrap;
}
.lot-attr {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b5f4e;
}
.lot-attr svg { color: #84844A; width: 16px; height: 16px; }

.lot-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.lot-price-num {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 700;
  color: #5b2f2f;
  line-height: 1;
}
.lot-price-num small {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #c8a23c;
  margin-left: 4px;
}
.lot-price-pm {
  font-size: 12px;
  color: #84844A;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}

.lot-card .btn { margin-top: auto; }

/* ---- Lot section filter ---- */
.lot-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}
.lot-filt {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b5f4e;
  background: #fff;
  border: 1px solid #d8c9a8;
  border-radius: 3px;
  padding: 11px 20px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.lot-filt:hover {
  border-color: #84844A;
  color: #2c2418;
}
.lot-filt.is-active {
  background: #84844A;
  border-color: #84844A;
  color: #fff;
}
.lot-filt .count {
  margin-left: 7px;
  font-size: 11px;
  opacity: 0.7;
}
.lots-grid:empty::after {
  content: "Cargando lotes…";
  grid-column: 1 / -1;
  text-align: center;
  color: #6b5f4e;
  font-size: 14px;
  padding: 30px 0;
}

/* ============ WHY ============ */
.why {
  background: #2c2418;
  padding: 100px 0;
  position: relative;
  background-image:
    linear-gradient(rgba(44,36,24,0.95), rgba(44,36,24,0.95)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='%23c8a23c' fill-opacity='0.04'%3E%3Cpath d='M0 0h40v1H0z'/%3E%3Cpath d='M0 0v40h1V0z'/%3E%3C/g%3E%3C/svg%3E");
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
@media (max-width: 980px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .why-grid { grid-template-columns: 1fr; } }

.why-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(228, 201, 122, 0.18);
  padding: 36px 28px;
  border-radius: 4px;
  text-align: center;
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
}
.why-card:hover {
  background: rgba(228, 201, 122, 0.08);
  border-color: rgba(228, 201, 122, 0.45);
  transform: translateY(-4px);
}
.why-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(228, 201, 122, 0.10);
  border: 1px solid rgba(228, 201, 122, 0.40);
  border-radius: 50%;
  color: #e4c97a;
}
.why-icon svg { width: 30px; height: 30px; }

.why-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: #faf4e6;
  margin: 0 0 12px;
}
.why-card p {
  font-size: 14px;
  color: rgba(228, 217, 198, 0.75);
  line-height: 1.7;
  margin: 0;
}

/* ============ GALLERY ============ */
.gallery-section {
  padding: 100px 0;
  background: #f0e6ce;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(70,50,20,0.10);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
  filter: saturate(0.92) contrast(1.04);
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,36,24,0.55), transparent 60%);
  opacity: 0;
  transition: opacity .3s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { opacity: 1; }

.gi-1 { grid-column: span 2; grid-row: span 2; }
.gi-7 { grid-column: span 2; grid-row: span 2; }

@media (max-width: 880px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gi-1, .gi-7 { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gi-1, .gi-7 { grid-column: auto; }
}

/* ============ LOCATION ============ */
.location-section {
  padding: 100px 0;
  background: #faf4e6;
}
.location-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 20px;
}
@media (max-width: 980px) { .location-grid { grid-template-columns: 1fr; } }

.map-frame {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #d4c9b0;
  box-shadow: 0 10px 26px rgba(70,50,20,0.14);
}
.map-frame iframe { display: block; }
.map-pin {
  position: absolute;
  top: 18px;
  left: 18px;
  background: #fff;
  padding: 10px 14px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  font-size: 13px;
  font-weight: 700;
  color: #2c2418;
}
.map-pin-mark {
  width: 26px; height: 26px;
  background: #c8a23c;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.map-pin-mark svg { width: 16px; height: 16px; }

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: #5b2f2f;
}
.map-link:hover { color: #c8a23c; }

.location-list-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: #2c2418;
  margin: 0 0 18px;
}
.distances {
  border-top: 2px solid #5b2f2f;
}
.distances li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #e3dac6;
}
.dist-place {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: #2c2418;
}
.dist-data {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}
.dist-data strong {
  font-family: 'Lato', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #c8a23c;
}
.dist-data em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: #84844A;
}

/* ============ AGENT ============ */
.agent {
  padding: 100px 0;
  background: #f0e6ce;
}
.agent-card {
  background: #fff;
  border: 1px solid #d4c9b0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(70,50,20,0.12);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
}
.agent-photo {
  margin: 0;
  overflow: hidden;
  min-height: 380px;
}
.agent-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.05);
}
.agent-body { padding: 50px 48px; }
.agent-quote {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  line-height: 1.55;
  color: #2c2418;
  margin: 16px 0 22px;
  padding-left: 18px;
  border-left: 3px solid #c8a23c;
}
.agent-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
  margin: 0 0 26px;
}
.agent-details > div { display: flex; flex-direction: column; gap: 2px; }
.agent-details dt {
  font-family: 'Lato', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #84844A;
}
.agent-details dd {
  margin: 0;
  font-size: 14.5px;
  color: #2c2418;
}
.agent-cta { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 820px) {
  .agent-card { grid-template-columns: 1fr; }
  .agent-photo { min-height: 280px; }
  .agent-body { padding: 32px 26px; }
  .agent-details { grid-template-columns: 1fr; }
}

/* ============ CONTACT ============ */
.contact-section {
  padding: 100px 0;
  background: #faf4e6;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info {
  background: #5b2f2f;
  color: #faf4e6;
  padding: 36px 32px;
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(91,47,47,0.22);
}
.contact-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: #e4c97a;
  margin: 0 0 24px;
  font-weight: 600;
}
.contact-block {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(228, 201, 122, 0.18);
}
.contact-block:last-child { border-bottom: 0; }
.contact-block-icon {
  width: 40px;
  height: 40px;
  background: rgba(228, 201, 122, 0.12);
  border: 1px solid rgba(228, 201, 122, 0.30);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e4c97a;
}
.contact-block-icon svg { width: 18px; height: 18px; }
.contact-block strong {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #e4c97a;
  margin-bottom: 3px;
}
.contact-block span {
  font-size: 14.5px;
  color: rgba(250, 244, 230, 0.90);
  line-height: 1.5;
}

.contact-form {
  background: #fff;
  padding: 36px 32px;
  border: 1px solid #d4c9b0;
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(70,50,20,0.10);
}
.contact-form h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: #2c2418;
  margin: 0 0 22px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-field label {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b5f4e;
}
.form-field input,
.form-field textarea {
  font: inherit;
  font-family: 'Lato', sans-serif;
  font-size: 14.5px;
  padding: 11px 14px;
  border: 1px solid #d4c9b0;
  border-radius: 3px;
  background: #faf4e6;
  color: #2c2418;
  transition: border-color .25s ease, background .25s ease;
  resize: vertical;
}
.form-field input:hover,
.form-field textarea:hover { border-color: #84844A; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #c8a23c;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(200, 162, 60, 0.15);
}
.form-success {
  margin: 18px 0 0;
  padding: 14px 16px;
  background: #f4f6d8;
  color: #5d5e15;
  border: 1px solid #c5c878;
  border-radius: 3px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-success svg { color: #84844A; }

/* ============ FOOTER ============ */
.footer {
  background: #1f1810;
  color: rgba(228, 217, 198, 0.75);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(228, 201, 122, 0.12);
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col h4 {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: #e4c97a;
  margin: 0 0 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.footer-col p {
  font-size: 14px;
  line-height: 1.7;
  margin: 14px 0 20px;
  color: rgba(228, 217, 198, 0.70);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e4c97a;
}
.footer-brand .brand-svg { width: 42px; height: 42px; }
.footer-brand strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: #faf4e6;
  font-weight: 700;
}
.footer-brand span {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #c8a23c;
}

.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(228, 201, 122, 0.30);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(228, 217, 198, 0.70);
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.footer-social a svg { width: 16px; height: 16px; }
.footer-social a:hover {
  background: #c8a23c;
  border-color: #c8a23c;
  color: #fff;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 10px;
}
.footer-links a {
  font-size: 14px;
  color: rgba(228, 217, 198, 0.75);
  transition: color .25s ease, padding-left .25s ease;
  display: inline-block;
}
.footer-links a:hover { color: #e4c97a; padding-left: 4px; }

.footer-contact li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(228, 217, 198, 0.80);
  align-items: start;
}
.footer-contact svg { color: #c8a23c; margin-top: 2px; }

.footer-bottom {
  background: #18120c;
  padding: 18px 0;
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(228, 217, 198, 0.45);
}

/* ============ WHATSAPP FLOAT ============ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(37,211,102,0.45);
  animation: wa-pulse 2.4s ease-out infinite;
  transition: transform .25s ease;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; animation: none; }
.whatsapp-float svg { width: 32px; height: 32px; }

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

@media (max-width: 520px) {
  .whatsapp-float { width: 52px; height: 52px; bottom: 18px; right: 18px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 6, 0.92);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border: 4px solid #faf4e6;
  border-radius: 3px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.55);
}
.lightbox-caption {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: #e4c97a;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 16px;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .25s ease;
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: #c8a23c; }
.lightbox-close svg,
.lightbox-prev svg,
.lightbox-next svg { width: 24px; height: 24px; }

@media (max-width: 560px) {
  .lightbox-close, .lightbox-prev, .lightbox-next { width: 40px; height: 40px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 12px; right: 12px; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .stats { background-attachment: scroll; }
}
