/* ===== VARIABLES ===== */
:root {
  --color-primary:       #C0673A;
  --color-primary-dark:  #A5562F;
  --color-primary-light: #D4845B;
  --color-bg:            #F5EFE6;
  --color-bg-white:      #FFFFFF;
  --color-bg-dark:       #3D2B1F;
  --color-text:          #3D2B1F;
  --color-text-light:    #7A5C4A;
  --color-gold:          #D4A853;
  --color-border:        #E5D5C5;
  --color-chat:          #2E7D68;
  --color-chat-dark:     #245F50;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(61,43,31,.08);
  --shadow-md: 0 4px 20px rgba(61,43,31,.12);
  --shadow-lg: 0 8px 40px rgba(61,43,31,.18);

  --max-width: 1200px;
  --nav-h:     70px;
  --transition: .3s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); line-height: 1.2; color: var(--color-text); }

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 5rem 0; }
.section--dark {
  background: var(--color-bg-dark);
  color: #F5EFE6;
}
.section--dark h2,
.section--dark h3 { color: #F5EFE6; }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: .75rem;
}
.section--dark .section-label { color: var(--color-gold); }

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
}
.section-title--center { text-align: center; }

.section-subtitle {
  color: var(--color-text-light);
  font-size: 1.05rem;
  max-width: 600px;
}
.section-subtitle--center {
  text-align: center;
  margin: 0 auto 3rem;
}
.section--dark .section-subtitle { color: #c9b9ae; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: .95rem;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.btn--primary:hover { background: var(--color-primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}
.btn--outline:hover { background: var(--color-primary); color: #fff; }
.btn--chat {
  background: var(--color-chat);
  color: #fff;
}
.btn--chat:hover { background: var(--color-chat-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--chat svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn--lg { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn--sm { padding: .5rem 1.25rem; font-size: .875rem; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(245,239,230,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.navbar__logo img {
  height: 44px;
  width: auto;
}
.navbar__logo-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}
.navbar__logo-text span { display: block; font-size: .75rem; font-weight: 400; color: var(--color-text-light); font-family: var(--font-body); }
.navbar__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.navbar__links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition);
  position: relative;
}
.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--color-primary);
  transition: width var(--transition);
}
.navbar__links a:hover::after,
.navbar__links a.active::after { width: 100%; }
.navbar__links a:hover { color: var(--color-primary); }
.navbar__actions { display: flex; align-items: center; gap: 1rem; }
.navbar__hamburger { display: none; flex-direction: column; gap: 5px; padding: .5rem; }
.navbar__hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}
.navbar__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__hamburger.open span:nth-child(2) { opacity: 0; }
.navbar__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: #3D2B1F;
  z-index: 0;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(23, 18, 14, .54);
}
.hero__bg-pattern {
  position: absolute;
  inset: 0;
  opacity: .04;
  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='%23ffffff' fill-opacity='1'%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");
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 650px;
}
.hero__label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
}
.hero__label::before {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 2px;
  background: var(--color-gold);
}
.hero__title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.hero__title em { color: var(--color-gold); font-style: normal; }
.hero__subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 2.5rem;
  max-width: 500px;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero__stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-gold);
}
.hero__stat-label { font-size: .85rem; color: rgba(255,255,255,.7); margin-top: .2rem; }

/* ===== FEATURE CARDS (Por qué elegirnos) ===== */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.feature-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--color-border);
  transition: var(--transition);
  text-align: center;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-card__icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #F5EFE6, #E8D5C0);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.75rem;
}
.feature-card__title { font-size: 1.15rem; margin-bottom: .5rem; }
.feature-card__text { color: var(--color-text-light); font-size: .95rem; }

/* ===== PROPERTY CARDS ===== */
.properties__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.property-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.property-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.property-card__image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(135deg, #E8D5C0, #C9A882);
}
.property-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.property-card:hover .property-card__image img { transform: scale(1.06); }
.property-card__badge {
  position: absolute;
  top: .75rem; left: .75rem;
  background: var(--color-primary);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .3rem .7rem;
  border-radius: var(--radius-full);
}
.property-card__img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  color: rgba(61,43,31,.3);
}
.property-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: .75rem; }
.property-card__location {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: var(--color-text-light);
}
.property-card__location svg { flex-shrink: 0; }
.property-card__title { font-size: 1.05rem; font-weight: 600; color: var(--color-text); }
.property-card__meta {
  display: flex;
  gap: 1rem;
  font-size: .85rem;
  color: var(--color-text-light);
}
.property-card__meta strong { color: var(--color-text); }
.property-card__price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-primary);
  font-weight: 700;
}
.property-card__actions { margin-top: auto; display: flex; gap: .75rem; }
.property-card__actions .btn { flex: 1; justify-content: center; }

/* Skeleton loader */
.skeleton {
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  background: linear-gradient(90deg, #e8d5c0 25%, #f0e0cc 50%, #e8d5c0 75%);
  background-size: 200% 100%;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-pulse {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.property-card--skeleton .property-card__image { background: none; }
.skeleton-block { border-radius: var(--radius-sm); }

/* ===== ABOUT SECTION ===== */
.about { background: var(--color-bg); }
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about__image {
  position: relative;
}
.about__image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #E8D5C0, #C9A882);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  color: rgba(61,43,31,.2);
}
.about__image-frame img { width: 100%; height: 100%; object-fit: cover; }
.about__image-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.about__image-accent {
  position: absolute;
  bottom: -1.5rem; right: -1.5rem;
  width: 160px; height: 160px;
  background: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  color: #fff;
  text-align: center;
  z-index: -1;
}
.about__accent-num { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; line-height: 1; }
.about__accent-text { font-size: .8rem; opacity: .9; }
.about__content { display: flex; flex-direction: column; gap: 1.25rem; }
.about__text { color: var(--color-text-light); }
.about__features { display: flex; flex-direction: column; gap: .75rem; margin-top: .5rem; }
.about__feature {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .95rem;
}
.about__feature-icon {
  width: 36px; height: 36px;
  background: #FCF0E8;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
  font-size: 1rem;
}

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--color-bg-dark); }
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.75rem;
}
.testimonial-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}
.testimonial-card__stars { color: var(--color-gold); font-size: 1rem; margin-bottom: 1rem; letter-spacing: 2px; }
.testimonial-card__text { color: rgba(255,255,255,.8); font-size: .95rem; line-height: 1.7; margin-bottom: 1.25rem; }
.testimonial-card__author { display: flex; align-items: center; gap: .75rem; }
.testimonial-card__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial-card__name { font-weight: 600; color: #fff; font-size: .9rem; }
.testimonial-card__location { font-size: .8rem; color: rgba(255,255,255,.5); }

/* ===== CONTACT SECTION ===== */
.contact { background: var(--color-bg-white); }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact__info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact__info-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact__info-icon {
  width: 44px; height: 44px;
  background: #FCF0E8;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact__info-label { font-weight: 600; font-size: .85rem; color: var(--color-text-light); text-transform: uppercase; letter-spacing: .05em; }
.contact__info-value { font-size: 1rem; color: var(--color-text); }
.contact__chat-banner {
  background: var(--color-chat);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  color: #fff;
  text-align: center;
  margin-top: 1rem;
}
.contact__chat-banner h3 { color: #fff; margin-bottom: .5rem; }
.contact__chat-banner p { opacity: .9; margin-bottom: 1.25rem; font-size: .95rem; }
.contact__form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .875rem; font-weight: 600; color: var(--color-text); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--color-primary); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form__submit { width: 100%; justify-content: center; }
.form__message {
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  display: none;
}
.form__message--success { background: #E8F5E9; color: #2E7D32; border: 1px solid #A5D6A7; display: block; }
.form__message--error   { background: #FFEBEE; color: #C62828; border: 1px solid #EF9A9A; display: block; }

/* ===== FOOTER ===== */
.footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,.7);
  padding: 4rem 0 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 2rem;
}
.footer__brand { display: flex; flex-direction: column; gap: 1rem; }
.footer__logo { filter: brightness(0) invert(1); opacity: .85; height: 44px; width: auto; }
.footer__brand-text { font-size: .9rem; line-height: 1.7; }
.footer__social { display: flex; gap: .75rem; }
.footer__social-link {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  font-size: 1rem;
}
.footer__social-link:hover { background: var(--color-primary); }
.footer__col-title { font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.footer__links { display: flex; flex-direction: column; gap: .6rem; }
.footer__links a { font-size: .9rem; transition: color var(--transition); }
.footer__links a:hover { color: var(--color-primary-light); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; flex-wrap: wrap; gap: 1rem; }
.footer__bottom a { transition: color var(--transition); }
.footer__bottom a:hover { color: #fff; }

/* ===== CHAT WIDGET ===== */
.chat-widget {
  position: fixed;
  z-index: 900;
  right: 2rem;
  bottom: 2rem;
}
.chat-bubble {
  width: 60px; height: 60px;
  background: var(--color-chat);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(46,125,104,.35);
  transition: var(--transition);
  animation: chat-pulse 2s ease-in-out infinite;
}
.chat-bubble:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(46,125,104,.5); }
.chat-bubble svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@keyframes chat-pulse {
  0%,100% { box-shadow: 0 4px 20px rgba(46,125,104,.35); }
  50%      { box-shadow: 0 4px 32px rgba(46,125,104,.58); }
}
.chat-panel {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: min(380px, calc(100vw - 2rem));
  height: min(620px, calc(100vh - 7rem));
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.chat-panel[hidden] {
  display: none;
}
.chat-header {
  background: var(--color-bg-dark);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.1rem;
}
.chat-kicker {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-gold);
  font-weight: 700;
  margin-bottom: .15rem;
}
.chat-header h2 {
  color: #fff;
  font-size: 1.1rem;
}
.chat-close {
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
}
.chat-close:hover { background: rgba(255,255,255,.12); }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  background: var(--color-bg);
}
.chat-message {
  display: flex;
}
.chat-message p,
.chat-message .chat-bubble-content {
  max-width: 86%;
  padding: .72rem .9rem;
  border-radius: 14px;
  font-size: .9rem;
  line-height: 1.45;
}
.chat-message ul { margin: .4rem 0 0 1rem; }
.chat-message a { color: var(--color-primary); font-weight: 700; }
.chat-message-user { justify-content: flex-end; }
.chat-message-user p,
.chat-message-user .chat-bubble-content {
  background: var(--color-chat);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-message-bot p,
.chat-message-bot .chat-bubble-content {
  background: #fff;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-bottom-left-radius: 4px;
}
.chat-image-preview {
  margin: .65rem 0 0;
}
.chat-image-preview:first-child {
  margin-top: 0;
}
.chat-image-preview a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
}
.chat-image-preview img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  display: block;
}
.chat-suggestions {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  padding: .75rem 1rem 0;
  background: #fff;
}
.chat-suggestions button {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: .35rem .7rem;
  color: var(--color-primary);
  font-size: .78rem;
  background: var(--color-bg);
}
.chat-form {
  display: flex;
  gap: .5rem;
  padding: .75rem 1rem .4rem;
  background: #fff;
}
.chat-form textarea {
  flex: 1;
  resize: none;
  min-height: 44px;
  max-height: 110px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: .65rem .75rem;
  font-family: var(--font-body);
  font-size: .9rem;
  outline: none;
}
.chat-form textarea:focus { border-color: var(--color-chat); }
.chat-send {
  align-self: stretch;
  padding: 0 .9rem;
  border-radius: var(--radius-sm);
  background: var(--color-chat);
  color: #fff;
  font-weight: 700;
}
.chat-send:disabled,
.chat-suggestions button:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.chat-status {
  min-height: 1.4rem;
  padding: 0 1rem .75rem;
  background: #fff;
  font-size: .78rem;
  color: var(--color-text-light);
}
.chat-status.error { color: #C62828; }
.chat-dots {
  display: inline-flex;
  gap: .25rem;
}
.chat-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-text-light);
  animation: chat-dot 1s infinite ease-in-out;
}
.chat-dots span:nth-child(2) { animation-delay: .15s; }
.chat-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot {
  0%, 80%, 100% { opacity: .35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform var(--transition);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal__header { padding: 1.75rem 2rem 1rem; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.modal__title { font-size: 1.4rem; }
.modal__close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: var(--transition);
}
.modal__close:hover { background: var(--color-border); }
.modal__images {
  overflow: hidden;
  background: #E8D5C0;
  display: flex;
  flex-direction: column;
  font-size: 4rem;
  color: rgba(61,43,31,.2);
}
.modal__main-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.modal__img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #E8D5C0, #C9A882);
}
.modal__thumbs {
  display: flex;
  gap: .5rem;
  padding: .75rem;
  overflow-x: auto;
  background: #fff;
}
.modal__thumb {
  width: 72px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--color-bg);
}
.modal__thumb.is-active { border-color: var(--color-primary); }
.modal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.modal__body { padding: 1.5rem 2rem 2rem; }
.modal__meta { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.modal__meta-item { display: flex; flex-direction: column; gap: .2rem; }
.modal__meta-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-light); }
.modal__meta-value { font-weight: 700; font-size: 1.1rem; color: var(--color-text); }
.modal__price { font-family: var(--font-heading); font-size: 1.5rem; color: var(--color-primary); }
.modal__description { color: var(--color-text-light); line-height: 1.7; margin-bottom: 1.5rem; }
.modal__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.modal__actions .btn { flex: 1; justify-content: center; min-width: 180px; }

/* ===== FILTER BAR (terrenos.html) ===== */
.filters {
  background: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
  position: sticky;
  top: var(--nav-h);
  z-index: 100;
}
.filters__inner { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.filter-select {
  padding: .5rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: .875rem;
  color: var(--color-text);
  background: var(--color-bg);
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
}
.filter-select:focus { border-color: var(--color-primary); }
.filters__count { margin-left: auto; font-size: .875rem; color: var(--color-text-light); }

/* ===== PAGE HERO (terrenos.html) ===== */
.page-hero {
  background: linear-gradient(135deg, #3D2B1F 0%, #6B4226 100%);
  padding: calc(var(--nav-h) + 3rem) 0 3rem;
  color: #fff;
  text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(1.8rem,4vw,2.8rem); margin-bottom: .75rem; }
.page-hero p { color: rgba(255,255,255,.75); font-size: 1.05rem; }

/* ===== ADMIN / LOGIN STYLES ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, #3D2B1F 0%, #6B4226 100%);
}
.auth-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 3rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.auth-card__logo { text-align: center; margin-bottom: 2rem; }
.auth-card__logo img { height: 50px; margin: 0 auto; }
.auth-card__title { font-size: 1.5rem; text-align: center; margin-bottom: .5rem; }
.auth-card__subtitle { text-align: center; color: var(--color-text-light); font-size: .9rem; margin-bottom: 2rem; }

/* ===== LINKTREE PAGE ===== */
.linktree-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 2rem 1.25rem;
  background: linear-gradient(135deg, #3D2B1F 0%, #6B4226 100%);
}
.linktree-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(31, 22, 15, .68);
  z-index: 1;
}
.linktree-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.linktree-profile {
  position: relative;
  z-index: 2;
  width: min(100%, 430px);
  text-align: center;
  color: #fff;
}
.linktree-logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.25rem;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.25));
}
.linktree-profile .section-label {
  color: var(--color-gold);
}
.linktree-profile h1 {
  color: #fff;
  font-size: clamp(2rem, 8vw, 3rem);
  margin-bottom: .75rem;
}
.linktree-subtitle {
  color: rgba(255,255,255,.82);
  margin: 0 auto 2rem;
  max-width: 360px;
}
.linktree-links {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.linktree-link {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: .95rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.94);
  color: var(--color-text);
  font-weight: 700;
  box-shadow: 0 8px 28px rgba(0,0,0,.16);
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}
.linktree-link:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 12px 34px rgba(0,0,0,.22);
}
.linktree-link--whatsapp {
  background: var(--color-chat);
  color: #fff;
}
.linktree-link--whatsapp:hover {
  background: var(--color-chat-dark);
}
.linktree-link__icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  flex: 0 0 auto;
}
.linktree-link__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--color-text-light);
}
.empty-state__icon { font-size: 3.5rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.3rem; margin-bottom: .5rem; color: var(--color-text); }

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.hidden { display: none !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .features__grid,
  .properties__grid,
  .testimonials__grid { grid-template-columns: repeat(2,1fr); }
  .about__inner,
  .contact__inner { gap: 2.5rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .section { padding: 3.5rem 0; }

  .navbar__links,
  .navbar__actions .btn--outline { display: none; }
  .navbar__hamburger { display: flex; }

  .navbar__links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--color-bg);
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }

  .hero__stats { gap: 1.5rem; }

  .features__grid,
  .properties__grid,
  .testimonials__grid { grid-template-columns: 1fr; }

  .about__inner,
  .contact__inner { grid-template-columns: 1fr; }
  .about__image { max-width: 360px; margin: 0 auto; }
  .about__image-accent { display: none; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__brand { grid-column: 1; }
  .footer__bottom { flex-direction: column; text-align: center; }

  .modal__header { padding: 1.25rem 1.25rem .75rem; }
  .modal__body { padding: 1rem 1.25rem 1.5rem; }

  .chat-widget { bottom: 1.25rem; right: 1.25rem; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__stats { flex-wrap: wrap; gap: 1rem; }
  .modal__actions { flex-direction: column; }
  .modal__actions .btn { min-width: unset; }
  .filters__inner { flex-direction: column; align-items: stretch; }
  .filters__count { margin-left: 0; }
}
