/*
 * theme.css — Rolando Acosta Real Estate
 * Design system completo: oscuro/dorado de lujo
 */

/* ════════════════════════════════════════════
   RESET & CUSTOM PROPERTIES
   ════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:       #C9973A;
  --gold-light: #E8B95A;
  --dark:       #0D0D0D;
  --dark2:      #141414;
  --dark3:      #1C1C1C;
  --surface:    #222222;
  --surface2:   #2A2A2A;
  --text:       #F5F0E8;
  --muted:      #9A9080;
  --white:      #FFFFFF;
  --radius:     12px;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
  max-width: 100vw;
}

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

/* ════════════════════════════════════════════
   UTILIDADES
   ════════════════════════════════════════════ */
.container       { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.section-tag     { display: inline-block; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 14px; }
.section-title   { font-family: 'Playfair Display', serif; font-size: clamp(28px, 3.5vw, 44px); font-weight: 700; color: var(--white); line-height: 1.2; margin-bottom: 16px; }
.section-sub     { font-size: 16px; color: var(--muted); line-height: 1.7; max-width: 540px; }
.section-head    { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 52px; gap: 24px; flex-wrap: wrap; }
.divider         { width: 60px; height: 3px; background: var(--gold); margin-top: 16px; }
section          { padding: 100px 0; }

/* ════════════════════════════════════════════
   BOTONES
   ════════════════════════════════════════════ */
.btn-primary {
  background: var(--gold); color: var(--dark); font-weight: 700; font-size: 15px;
  padding: 15px 32px; border-radius: 10px; text-decoration: none; display: inline-flex;
  align-items: center; gap: 8px; transition: all .2s; border: none; cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201,151,58,.35); }

.btn-ghost {
  background: transparent; color: var(--text); font-weight: 600; font-size: 15px;
  padding: 15px 32px; border-radius: 10px; text-decoration: none; display: inline-flex;
  align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.15); transition: all .2s; cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-dark { background: var(--dark); color: var(--white); font-weight: 700; font-size: 15px; padding: 15px 30px; border-radius: 10px; text-decoration: none; transition: all .2s; display: inline-flex; align-items: center; font-family: 'Inter', sans-serif; }
.btn-dark:hover { background: var(--dark2); }

.btn-outline-dark { background: transparent; color: var(--dark); font-weight: 700; font-size: 15px; padding: 15px 30px; border-radius: 10px; text-decoration: none; border: 2px solid var(--dark); transition: all .2s; display: inline-flex; align-items: center; font-family: 'Inter', sans-serif; }
.btn-outline-dark:hover { background: rgba(13,13,13,.1); }

/* ════════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════════ */
nav.main-nav {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: rgba(13,13,13,.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201,151,58,.15);
  transition: background .3s;
}
nav.main-nav.scrolled { background: rgba(13,13,13,.98); }

.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon {
  width: 40px; height: 40px; background: var(--gold);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: var(--dark);
}
.logo-text { font-family: 'Playfair Display', serif; font-size: 17px; color: var(--white); line-height: 1.2; }
.logo-text span { display: block; font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 400; color: var(--gold); letter-spacing: 2px; text-transform: uppercase; }

/* Logo personalizado de WP — tamaño base (sobreescrito por Customizer vía wp_head) */
.custom-logo-link { display: flex; align-items: center; }
.custom-logo-link img.custom-logo { height: 44px; width: auto; max-width: 220px; object-fit: contain; display: block; }
.logo img { height: 44px; width: auto; max-width: 220px; object-fit: contain; }

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover,
.nav-links .current-menu-item > a { color: var(--gold); }

.nav-cta {
  background: var(--gold); color: var(--dark); font-size: 13px; font-weight: 600;
  padding: 10px 22px; border-radius: 8px; text-decoration: none; transition: background .2s;
}
.nav-cta:hover { background: var(--gold-light); }

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all .25s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU DRAWER ── */
.mobile-menu {
  display: none; position: fixed; top: 76px; left: 0; right: 0; bottom: 0;
  background: rgba(13,13,13,.98); backdrop-filter: blur(20px);
  z-index: 999; flex-direction: column; padding: 32px 28px;
  border-top: 1px solid rgba(201,151,58,.15); overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu ul { list-style: none; margin-bottom: 32px; }
.mobile-menu li { border-bottom: 1px solid rgba(255,255,255,.05); }
.mobile-menu a { display: block; padding: 18px 0; color: var(--text); text-decoration: none; font-size: 20px; font-family: 'Playfair Display', serif; font-weight: 600; transition: color .2s; }
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu .m-cta { background: var(--gold); color: var(--dark); font-size: 16px; font-weight: 700; padding: 16px; border-radius: 12px; text-align: center; text-decoration: none; display: block; margin-top: 8px; font-family: 'Inter', sans-serif; }
.mobile-menu .m-contact { margin-top: auto; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.07); font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.mobile-menu .m-contact a { font-family: 'Inter', sans-serif; font-size: 15px; color: var(--gold); padding: 0; }

/* ════════════════════════════════════════════
   HERO (homepage)
   ════════════════════════════════════════════ */
.hero {
  min-height: 100vh; position: relative;
  display: flex; align-items: center;
  background: linear-gradient(135deg, #0D0D0D 0%, #1a1005 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(201,151,58,.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(201,151,58,.06) 0%, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0; opacity: .04;
  background-image: linear-gradient(rgba(201,151,58,.5) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(201,151,58,.5) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-inner {
  max-width: 1280px; margin: 0 auto; padding: 140px 32px 80px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center; position: relative; width: 100%;
}
.hero-tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(201,151,58,.12); border: 1px solid rgba(201,151,58,.3); color: var(--gold); font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; padding: 7px 16px; border-radius: 20px; margin-bottom: 28px; }
.hero-title { font-family: 'Playfair Display', serif; font-size: clamp(38px, 5vw, 62px); font-weight: 700; line-height: 1.12; color: var(--white); margin-bottom: 20px; }
.hero-title em { color: var(--gold); font-style: normal; }
.hero-sub { font-size: 17px; color: var(--muted); line-height: 1.7; margin-bottom: 36px; max-width: 460px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats { display: flex; gap: 36px; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 700; color: var(--white); display: block; }
.stat-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* Search card */
.search-card { background: var(--surface); border: 1px solid rgba(201,151,58,.15); border-radius: 20px; padding: 36px; box-shadow: 0 32px 80px rgba(0,0,0,.5); }
.search-card h3 { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--white); margin-bottom: 6px; }
.search-card p { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.form-group input,
.form-group select {
  width: 100%; background: var(--dark3); border: 1px solid rgba(255,255,255,.08);
  color: var(--text); font-size: 14px; padding: 13px 16px; border-radius: 8px;
  outline: none; transition: border-color .2s; appearance: none; font-family: 'Inter', sans-serif;
}
.form-group input:focus,
.form-group select:focus { border-color: var(--gold); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range input { flex: 1; }
.price-sep { color: var(--muted); font-size: 12px; white-space: nowrap; }
.search-btn { width: 100%; background: var(--gold); color: var(--dark); font-weight: 700; font-size: 15px; padding: 15px; border-radius: 10px; border: none; cursor: pointer; margin-top: 8px; transition: background .2s; font-family: 'Inter', sans-serif; }
.search-btn:hover { background: var(--gold-light); }

/* Scroll indicator */
.scroll-ind { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.scroll-dot { width: 24px; height: 40px; border: 1.5px solid rgba(201,151,58,.4); border-radius: 12px; display: flex; justify-content: center; padding-top: 7px; }
.scroll-dot::after { content: ''; width: 4px; height: 8px; background: var(--gold); border-radius: 2px; animation: scrollPulse 2s infinite; }
@keyframes scrollPulse { 0%,100% { transform: translateY(0); opacity:1; } 50% { transform: translateY(6px); opacity:.4; } }

/* ════════════════════════════════════════════
   PROPIEDADES CARDS (homepage + archive)
   ════════════════════════════════════════════ */
.listings { background: var(--dark2); }
.listings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.prop-card {
  background: var(--surface); border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .25s, box-shadow .25s; cursor: pointer;
}
.prop-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.prop-card.featured { grid-column: span 2; }
.prop-card-link { text-decoration: none; display: block; }

.prop-img { position: relative; overflow: hidden; height: 220px; background: linear-gradient(135deg, #1C1A14, #2A2518); }
.prop-card.featured .prop-img { height: 300px; }
.prop-img-photo { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.prop-card:hover .prop-img-photo { transform: scale(1.04); }
.prop-img-inner {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, #1a1a14 0%, #111 100%);
}
.prop-img-inner::before {
  content: '';
  display: block; width: 56px; height: 56px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23C9973A' stroke-width='1.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 9.75L12 3l9 6.75V21a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9.75z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 22V12h6v10'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: .45;
}
.prop-img-inner::after {
  content: 'Sin fotografía';
  font-size: 11px; color: rgba(201,151,58,.4);
  letter-spacing: 1.5px; text-transform: uppercase;
}

/* Grid 2 columnas — destacadas lado a lado (usado en homepage) */
.listings-grid--2 { grid-template-columns: repeat(2, 1fr); gap: 28px; }
.listings-grid--2 .prop-card { grid-column: span 1; }
.listings-grid--2 .prop-img { height: 280px; }
.listings-grid--2 .prop-card.featured .prop-img { height: 280px; }

/* Grid uniforme — sin span-2 para destacadas */
.listings-grid--uniform .prop-card.featured { grid-column: span 1; }
.listings-grid--uniform .prop-card.featured .prop-img { height: 220px; }
.prop-badge { position: absolute; top: 14px; left: 14px; background: var(--gold); color: var(--dark); font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 5px 12px; border-radius: 20px; }
.prop-badge.rent { background: #3A8FC9; color: var(--white); }
.prop-fav { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; background: rgba(13,13,13,.7); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; cursor: pointer; transition: background .2s; }
.prop-fav:hover { background: var(--gold); }

.prop-body { padding: 22px; }
.prop-price { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--gold); margin-bottom: 6px; }
.prop-name { font-size: 15px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.prop-loc { font-size: 13px; color: var(--muted); margin-bottom: 16px; display: flex; align-items: center; gap: 5px; }
.prop-specs { display: flex; gap: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.06); flex-wrap: wrap; }
.spec { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); }
.spec strong { color: var(--text); font-weight: 600; }

/* ════════════════════════════════════════════
   WHY US
   ════════════════════════════════════════════ */
.why { background: var(--dark); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 60px; }
.why-card { background: var(--surface); border: 1px solid rgba(201,151,58,.1); border-radius: var(--radius); padding: 32px 28px; position: relative; overflow: hidden; transition: border-color .25s, transform .25s; }
.why-card:hover { border-color: rgba(201,151,58,.4); transform: translateY(-4px); }
.why-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gold); transform: scaleX(0); transition: transform .3s; transform-origin: left; }
.why-card:hover::before { transform: scaleX(1); }
.why-icon { font-size: 32px; margin-bottom: 18px; }
.why-card h4 { font-size: 17px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.why-card p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ════════════════════════════════════════════
   TESTIMONIOS
   ════════════════════════════════════════════ */
.testimonials { background: var(--dark2); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card { background: var(--surface); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); padding: 30px; }
.stars { color: var(--gold); font-size: 16px; margin-bottom: 16px; letter-spacing: 2px; }
.testi-text { font-size: 14px; color: var(--text); line-height: 1.75; margin-bottom: 24px; font-style: italic; opacity: .85; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), #8B5E1A); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; color: var(--dark); flex-shrink: 0; }
.testi-avatar-img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testi-name { font-size: 14px; font-weight: 700; color: var(--white); }
.testi-role { font-size: 12px; color: var(--muted); }

/* ════════════════════════════════════════════
   CTA STRIP
   ════════════════════════════════════════════ */
.cta-strip { background: linear-gradient(135deg, var(--gold) 0%, #A87620 100%); padding: 80px 0; }
.cta-inner { max-width: 1280px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-text h2 { font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.cta-text p { font-size: 16px; color: rgba(13,13,13,.65); }
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ════════════════════════════════════════════
   CONTACTO
   ════════════════════════════════════════════ */
.contact { background: var(--dark); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info h2 { font-family: 'Playfair Display', serif; font-size: 38px; color: var(--white); margin-bottom: 14px; line-height: 1.2; }
.contact-info p { font-size: 16px; color: var(--muted); line-height: 1.7; margin-bottom: 36px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.c-icon { width: 46px; height: 46px; background: rgba(201,151,58,.12); border: 1px solid rgba(201,151,58,.25); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.c-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.c-val { font-size: 15px; color: var(--white); font-weight: 500; }
.contact-form { background: var(--surface); border: 1px solid rgba(255,255,255,.06); border-radius: 20px; padding: 40px; }
.contact-form h3 { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--white); margin-bottom: 24px; }
.cf-input { width: 100%; background: var(--dark3); border: 1px solid rgba(255,255,255,.08); color: var(--text); font-size: 14px; padding: 13px 16px; border-radius: 8px; outline: none; transition: border-color .2s; font-family: 'Inter', sans-serif; margin-bottom: 14px; display: block; }
.cf-input:focus { border-color: var(--gold); }
textarea.cf-input { resize: vertical; min-height: 120px; }
.cf-submit { width: 100%; background: var(--gold); color: var(--dark); font-weight: 700; font-size: 15px; padding: 15px; border-radius: 10px; border: none; cursor: pointer; font-family: 'Inter', sans-serif; transition: background .2s; }
.cf-submit:hover { background: var(--gold-light); }

/* ════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════ */
.site-footer {
  background: #090909; border-top: 1px solid rgba(201,151,58,.12);
  padding: 60px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 16px 0 24px; max-width: 260px; }
.social-links { display: flex; gap: 10px; }
.social-btn { width: 38px; height: 38px; background: var(--surface); border: 1px solid rgba(255,255,255,.08); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; text-decoration: none; transition: all .2s; }
.social-btn:hover { background: var(--gold); border-color: var(--gold); }
.footer-col h5 { font-size: 13px; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--muted); font-size: 14px; text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 13px; color: var(--muted); }

/* ════════════════════════════════════════════
   CHAT WIDGET
   ════════════════════════════════════════════ */
#ra-launcher {
  position: fixed; bottom: 28px; right: 28px; z-index: 99999;
  height: 54px; padding: 0 22px 0 16px;
  background: linear-gradient(135deg, var(--gold) 0%, #A87620 100%);
  border-radius: 32px; border: none;
  box-shadow: 0 6px 28px rgba(201,151,58,.5);
  cursor: pointer; display: flex; align-items: center; gap: 10px;
  transition: transform .25s, box-shadow .25s, opacity .2s;
  overflow: visible; white-space: nowrap; color: #0D0D0D;
}
#ra-launcher:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(201,151,58,.65); }
#ra-launcher::before {
  content: ''; position: absolute; inset: -5px; border-radius: 36px;
  border: 2px solid rgba(201,151,58,.35); animation: chatPulse 2.4s infinite;
  pointer-events: none;
}
@keyframes chatPulse { 0%,100%{transform:scale(1);opacity:.5} 60%{transform:scale(1.07);opacity:0} }

#ra-launcher svg { display: block; flex-shrink: 0; }
#ra-launcher .lch-label {
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 700;
  color: #0D0D0D; letter-spacing: .02em;
}

/* Oculto cuando el chat está abierto */
#ra-launcher.chat-open {
  opacity: 0; pointer-events: none; transform: scale(0.8) translateY(8px);
}

#ra-window {
  display: none; flex-direction: column;
  position: fixed; bottom: 104px; right: 28px; z-index: 99998;
  width: 370px; height: 560px;
  max-width: calc(100vw - 40px); max-height: calc(100vh - 130px);
  background: var(--dark2);
  border: 1px solid rgba(201,151,58,.2);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(201,151,58,.08);
  font-family: 'Inter', sans-serif;
  overflow: hidden;
  animation: chatSlideUp .28s ease;
}
@keyframes chatSlideUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }

.ra-header { background: linear-gradient(135deg, #1a1505 0%, var(--dark3) 100%); border-bottom: 1px solid rgba(201,151,58,.18); padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.ra-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), #7A5010); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; box-shadow: 0 0 0 3px rgba(201,151,58,.2); }
.ra-head-info { flex: 1; }
.ra-head-name { font-size: 14px; font-weight: 700; color: var(--white); }
.ra-head-status { font-size: 11px; color: var(--gold); display: flex; align-items: center; gap: 5px; }
.ra-head-status::before { content:''; width:7px; height:7px; background:#4ade80; border-radius:50%; display:inline-block; }
.ra-close { width: 30px; height: 30px; background: rgba(255,255,255,.06); border: none; border-radius: 50%; color: var(--muted); font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.ra-close:hover { background: rgba(201,151,58,.15); color: var(--gold); }

#ra-msgs { flex: 1; padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; scrollbar-color: rgba(201,151,58,.2) transparent; }
#ra-msgs::-webkit-scrollbar { width: 4px; }
#ra-msgs::-webkit-scrollbar-thumb { background: rgba(201,151,58,.2); border-radius: 4px; }

.ra-msg { padding: 11px 15px; border-radius: 14px; font-size: 14px; line-height: 1.55; max-width: 88%; }
.ra-bot { background: var(--surface); color: var(--text); border: 1px solid rgba(255,255,255,.07); align-self: flex-start; border-bottom-left-radius: 3px; }
.ra-user { background: linear-gradient(135deg, var(--gold), #A87620); color: var(--dark); font-weight: 500; align-self: flex-end; border-bottom-right-radius: 3px; }
.ra-msg strong, .ra-msg b { color: var(--gold); }
.ra-bot strong, .ra-bot b { color: var(--gold); }
.ra-msg ul { margin: 8px 0 4px 18px; }
.ra-msg li { margin-bottom: 4px; }

/* ── Tarjeta de propiedad dentro del chat ── */
.ra-prop-card {
  display: flex; flex-direction: column;
  background: var(--dark2); border: 1px solid rgba(201,151,58,.18);
  border-radius: 12px; overflow: hidden; margin: 10px 0 4px; width: 100%;
}
.ra-prop-card img {
  width: 100%; height: 130px; object-fit: cover; display: block;
}
.ra-prop-info {
  display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px;
}
.ra-prop-estado {
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold); background: rgba(201,151,58,.12);
  padding: 2px 8px; border-radius: 20px; align-self: flex-start;
}
.ra-prop-titulo { font-size: 14px; font-weight: 700; color: var(--heading); line-height: 1.3; }
.ra-prop-loc { font-size: 12px; color: var(--muted); }
.ra-prop-precio { font-size: 15px; font-weight: 700; color: var(--gold); }
.ra-prop-link {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 4px; padding: 6px 12px; border-radius: 20px;
  background: linear-gradient(135deg, var(--gold), #A87620);
  color: var(--dark) !important; font-size: 12px; font-weight: 700;
  text-decoration: none; align-self: flex-start;
}
.ra-prop-link:hover { opacity: .85; }

.ra-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.ra-chip { background: transparent; border: 1px solid rgba(201,151,58,.4); color: var(--gold); font-size: 12px; font-weight: 600; padding: 6px 13px; border-radius: 20px; cursor: pointer; font-family: 'Inter', sans-serif; transition: all .2s; }
.ra-chip:hover { background: var(--gold); color: var(--dark); border-color: var(--gold); }

.ra-typing { display: flex; gap: 5px; padding: 12px 16px; background: var(--surface); border: 1px solid rgba(255,255,255,.07); border-radius: 14px; border-bottom-left-radius: 3px; align-self: flex-start; width: 56px; }
.ra-typing span { width: 7px; height: 7px; background: var(--muted); border-radius: 50%; animation: typingBounce 1.2s infinite; }
.ra-typing span:nth-child(2) { animation-delay: .2s; }
.ra-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typingBounce { 0%,60%,100%{transform:translateY(0);opacity:.4} 30%{transform:translateY(-5px);opacity:1} }

.ra-input { padding: 12px 14px; background: var(--dark3); border-top: 1px solid rgba(255,255,255,.06); display: flex; gap: 8px; align-items: center; }
#ra-text { flex: 1; background: var(--surface); border: 1px solid rgba(255,255,255,.08); color: var(--text); font-size: 13px; padding: 10px 14px; border-radius: 22px; outline: none; font-family: 'Inter', sans-serif; transition: border-color .2s; }
#ra-text::placeholder { color: var(--muted); }
#ra-text:focus { border-color: rgba(201,151,58,.4); }
#ra-send { width: 38px; height: 38px; flex-shrink: 0; background: linear-gradient(135deg, var(--gold), #A87620); border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 15px; transition: transform .2s, box-shadow .2s; }
#ra-send:hover { transform: scale(1.08); box-shadow: 0 4px 14px rgba(201,151,58,.4); }

/* ════════════════════════════════════════════
   GALERÍA — DETALLE DE PROPIEDAD
   ════════════════════════════════════════════ */
.gallery-section { padding-top: 96px; background: var(--dark2); }
.gallery-wrap { max-width: 1280px; margin: 0 auto; padding: 40px 32px 28px; }

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { opacity: .4; }
.breadcrumb .current { color: var(--text); }

.gallery-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.pill { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 5px 14px; border-radius: 20px; }
.pill-sale      { background: var(--gold); color: var(--dark); }
.pill-new       { background: rgba(74,222,128,.15); border: 1px solid rgba(74,222,128,.3); color: #4ade80; }
.pill-exclusive { background: rgba(201,151,58,.1); border: 1px solid rgba(201,151,58,.25); color: var(--gold); }
.pill-views     { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 400; display: flex; align-items: center; gap: 5px; }

.photo-grid { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 280px 200px; gap: 6px; border-radius: 18px; overflow: hidden; }
.photo-main { grid-row: span 2; position: relative; overflow: hidden; background: linear-gradient(135deg, #1C1A10 0%, #2A2518 50%, #0D0D0D 100%); display: flex; align-items: center; justify-content: center; }
.photo-hero-img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #1a1a1a, #111); }
.photo-thumb-img { width: 100%; height: 100%; object-fit: cover; }
.ph-scene { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.ph-scene-main { font-size: 90px; opacity: .18; filter: drop-shadow(0 0 40px rgba(201,151,58,.5)); }
.ph-scene-sm { font-size: 52px; opacity: .15; }
.photo-main::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 50%; background: linear-gradient(transparent, rgba(13,13,13,.7)); pointer-events: none; }
.arch-lines { position: absolute; inset: 0; opacity: .04; background: linear-gradient(rgba(201,151,58,1) 1px, transparent 1px), linear-gradient(90deg, rgba(201,151,58,1) 1px, transparent 1px); background-size: 80px 80px; }
.arch-orb { position: absolute; width: 400px; height: 400px; background: radial-gradient(circle, rgba(201,151,58,.18) 0%, transparent 70%); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.more-photos { position: absolute; bottom: 14px; right: 14px; z-index: 2; background: rgba(13,13,13,.85); backdrop-filter: blur(8px); border: 1px solid rgba(201,151,58,.3); color: var(--text); font-size: 12px; font-weight: 600; padding: 8px 14px; border-radius: 8px; cursor: pointer; transition: all .2s; font-family: 'Inter', sans-serif; }
.more-photos:hover { border-color: var(--gold); color: var(--gold); }
.vt-badge { position: absolute; top: 16px; left: 16px; z-index: 2; background: rgba(13,13,13,.8); backdrop-filter: blur(8px); border: 1px solid rgba(201,151,58,.3); display: flex; align-items: center; gap: 8px; color: var(--gold); font-size: 12px; font-weight: 600; padding: 8px 14px; border-radius: 8px; cursor: pointer; }
.vt-play { width: 22px; height: 22px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 9px; color: var(--dark); }

/* ════════════════════════════════════════════
   LAYOUT DETALLE
   ════════════════════════════════════════════ */
.detail-layout { max-width: 1280px; margin: 0 auto; padding: 56px 32px 80px; display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }

.prop-title-block { margin-bottom: 36px; }
.prop-ref { font-size: 11px; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; }
.prop-title { font-family: 'Playfair Display', serif; font-size: clamp(26px, 3.5vw, 42px); font-weight: 700; color: var(--white); line-height: 1.15; margin-bottom: 14px; }
.prop-loc-row { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.prop-loc-row a { color: var(--gold); text-decoration: none; }
.prop-price-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.07); }
.prop-price-main { font-family: 'Playfair Display', serif; font-size: 40px; font-weight: 700; color: var(--gold); line-height: 1; }
.prop-price-sqft { font-size: 13px; color: var(--muted); margin-top: 5px; }
.prop-actions { display: flex; gap: 10px; margin-left: auto; flex-wrap: wrap; }
.act-btn { background: var(--surface); border: 1px solid rgba(255,255,255,.08); color: var(--muted); font-size: 13px; padding: 9px 16px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 7px; transition: all .2s; font-family: 'Inter', sans-serif; }
.act-btn:hover { border-color: var(--gold); color: var(--gold); }

/* Specs bar */
.specs-bar { background: var(--surface); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); padding: 28px 32px; display: grid; grid-template-columns: repeat(5, 1fr); margin-bottom: 40px; }
.spec-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 12px; position: relative; }
.spec-item + .spec-item::before { content: ''; position: absolute; left: 0; top: 10%; bottom: 10%; width: 1px; background: rgba(255,255,255,.06); }
.spec-icon { font-size: 22px; margin-bottom: 2px; }
.spec-val { font-size: 18px; font-weight: 700; color: var(--white); }
.spec-lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* Tabs */
.tabs { display: flex; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 36px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { font-size: 14px; font-weight: 600; color: var(--muted); padding: 14px 24px; border-bottom: 2px solid transparent; cursor: pointer; transition: all .2s; margin-bottom: -1px; background: none; border-top: none; border-left: none; border-right: none; font-family: 'Inter', sans-serif; white-space: nowrap; flex-shrink: 0; }
.tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab:hover:not(.active) { color: var(--text); }

/* Tab panels */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Content blocks */
.section-block { margin-bottom: 40px; }
.block-title { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--white); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.block-title::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.07); }
.block-text { font-size: 15px; color: var(--muted); line-height: 1.8; }
.block-text p { margin-bottom: 14px; }
.read-more { color: var(--gold); font-size: 13px; font-weight: 600; cursor: pointer; background: none; border: none; font-family: 'Inter', sans-serif; }

/* Features grid */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.feature-item { background: var(--surface); border: 1px solid rgba(255,255,255,.06); border-radius: 10px; padding: 14px 16px; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text); font-weight: 500; transition: border-color .2s; }
.feature-item:hover { border-color: rgba(201,151,58,.3); }
.feature-item .fi { font-size: 18px; flex-shrink: 0; }

/* Details table */
.details-grid { display: grid; grid-template-columns: 1fr 1fr; }
.detail-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.detail-row:nth-child(odd)  { padding-right: 28px; border-right: 1px solid rgba(255,255,255,.05); }
.detail-row:nth-child(even) { padding-left: 28px; }
.dt-label { font-size: 13px; color: var(--muted); }
.dt-val   { font-size: 13px; color: var(--text); font-weight: 600; }

/* Map */
.map-placeholder { background: var(--surface); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; position: relative; overflow: hidden; }
.map-grid { position: absolute; inset: 0; opacity: .07; background-image: linear-gradient(rgba(201,151,58,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(201,151,58,.5) 1px, transparent 1px); background-size: 40px 40px; }
.map-pin { font-size: 42px; position: relative; z-index: 1; animation: pinBounce 2s ease-in-out infinite; }
@keyframes pinBounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.map-label { font-size: 14px; color: var(--muted); position: relative; z-index: 1; text-align: center; padding: 0 20px; }
.map-btn { background: var(--gold); color: var(--dark); font-size: 13px; font-weight: 700; padding: 10px 22px; border-radius: 8px; border: none; cursor: pointer; font-family: 'Inter', sans-serif; position: relative; z-index: 1; transition: background .2s; text-decoration: none; display: inline-block; }
.map-btn:hover { background: var(--gold-light); }

/* Virtual tour */
.vtour-block { background: linear-gradient(135deg, #1a1505, var(--dark3)); border: 1px solid rgba(201,151,58,.2); border-radius: var(--radius); padding: 32px; display: flex; align-items: center; gap: 24px; margin-top: 24px; }
.vtour-icon { font-size: 48px; flex-shrink: 0; }
.vtour-text h4 { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--white); margin-bottom: 6px; }
.vtour-text p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.vtour-btn { margin-left: auto; flex-shrink: 0; background: var(--gold); color: var(--dark); font-size: 14px; font-weight: 700; padding: 13px 24px; border-radius: 10px; border: none; cursor: pointer; font-family: 'Inter', sans-serif; white-space: nowrap; transition: all .2s; }
.vtour-btn:hover { background: var(--gold-light); transform: translateY(-2px); }

/* Price history */
.ph-timeline { position: relative; padding-left: 28px; }
.ph-timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(to bottom, var(--gold), rgba(201,151,58,.1)); }
.ph-event { position: relative; margin-bottom: 28px; }
.ph-event::before { content: ''; position: absolute; left: -24px; top: 6px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--gold); background: var(--dark); }
.ph-event.current::before { background: var(--gold); box-shadow: 0 0 0 3px rgba(201,151,58,.2); }
.ph-date  { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.ph-row   { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ph-price { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--white); }
.ph-event.current .ph-price { color: var(--gold); }
.ph-tag   { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.ph-tag-active { background: rgba(74,222,128,.12); border: 1px solid rgba(74,222,128,.3); color: #4ade80; }
.ph-tag-sold   { background: rgba(201,151,58,.12); border: 1px solid rgba(201,151,58,.25); color: var(--gold); }
.ph-tag-listed { background: rgba(99,179,237,.12); border: 1px solid rgba(99,179,237,.25); color: #63b3ed; }
.ph-delta { font-size: 12px; color: #4ade80; font-weight: 600; display: flex; align-items: center; gap: 3px; }
.ph-note  { font-size: 13px; color: var(--muted); margin-top: 4px; }
.ph-bar-section { margin-top: 32px; }
.ph-bar-title { font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 18px; }
.ph-bar-row { margin-bottom: 14px; }
.ph-bar-meta { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 6px; }
.ph-bar-meta span:first-child { color: var(--muted); }
.ph-bar-meta span:last-child { color: var(--text); font-weight: 600; }
.ph-bar-track { background: var(--dark3); height: 8px; border-radius: 4px; overflow: hidden; }
.ph-bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); transition: width 1s ease; }
.ph-disclaimer { margin-top: 20px; padding: 14px 16px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 8px; font-size: 12px; color: var(--muted); line-height: 1.6; }

/* ════════════════════════════════════════════
   SIDEBAR DETALLE
   ════════════════════════════════════════════ */
.sidebar { position: sticky; top: 90px; }

.agent-card { background: var(--surface); border: 1px solid rgba(201,151,58,.15); border-radius: 18px; overflow: hidden; margin-bottom: 20px; }
.agent-header { background: linear-gradient(135deg, #1a1505 0%, var(--dark3) 100%); padding: 24px; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid rgba(201,151,58,.1); }
.agent-avatar { width: 62px; height: 62px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), #7A5010); display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; box-shadow: 0 0 0 3px rgba(201,151,58,.2); }
.agent-name  { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--white); font-weight: 700; }
.agent-title { font-size: 12px; color: var(--gold); margin: 2px 0 6px; text-transform: uppercase; letter-spacing: 1px; }
.agent-rating { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.agent-stars { color: var(--gold); letter-spacing: 1px; }
.agent-body  { padding: 20px 24px; }

.agent-contact-row { display: flex; gap: 10px; margin-bottom: 20px; }
.ac-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 10px; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; border: none; font-family: 'Inter', sans-serif; transition: all .2s; }
.ac-call { background: var(--surface2); border: 1px solid rgba(255,255,255,.08); color: var(--text); }
.ac-call:hover { border-color: var(--gold); color: var(--gold); }
.ac-wa  { background: #25D366; color: white; }
.ac-wa:hover { background: #1ebe5c; }

.inquiry-form h4 { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.iq-input { width: 100%; background: var(--dark3); border: 1px solid rgba(255,255,255,.08); color: var(--text); font-size: 13px; padding: 11px 14px; border-radius: 8px; outline: none; font-family: 'Inter', sans-serif; transition: border-color .2s; margin-bottom: 10px; display: block; }
.iq-input::placeholder { color: var(--muted); }
.iq-input:focus { border-color: rgba(201,151,58,.4); }
textarea.iq-input { resize: none; height: 90px; }
.iq-submit { width: 100%; background: linear-gradient(135deg, var(--gold), #A87620); color: var(--dark); font-size: 14px; font-weight: 700; padding: 14px; border-radius: 10px; border: none; cursor: pointer; font-family: 'Inter', sans-serif; transition: all .2s; margin-bottom: 12px; }
.iq-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,151,58,.35); }
.iq-privacy { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.5; }
.iq-response { margin-top: 10px; padding: 10px 14px; border-radius: 8px; font-size: 13px; }
.iq-response.success { background: rgba(74,222,128,.1); border: 1px solid rgba(74,222,128,.25); color: #4ade80; }
.iq-response.error   { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.25); color: #f87171; }

.price-card { background: var(--surface); border: 1px solid rgba(255,255,255,.06); border-radius: 14px; padding: 22px; margin-bottom: 20px; }
.price-card h4 { font-size: 13px; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.pbr-row { margin-bottom: 12px; }
.pbr-label { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 6px; }
.pbr-label span:first-child { color: var(--muted); }
.pbr-label span:last-child  { color: var(--text); font-weight: 600; }
.pbr-track { background: var(--dark3); height: 6px; border-radius: 3px; overflow: hidden; }
.pbr-fill  { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); transition: width 1s ease; }
.price-verdict { margin-top: 14px; padding: 10px 14px; background: rgba(74,222,128,.08); border: 1px solid rgba(74,222,128,.2); border-radius: 8px; font-size: 12px; color: #4ade80; font-weight: 600; display: flex; align-items: center; gap: 6px; }
/* ── Botón Deshow en barra de filtros del archive ── */
.archive-filters-bar .container { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.deshow-archive-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 16px; border-radius: 8px; font-size: 12px; font-weight: 600;
  background: linear-gradient(135deg, var(--gold), #A87620);
  color: var(--dark); text-decoration: none; white-space: nowrap;
  transition: opacity .2s;
}
.deshow-archive-btn:hover { opacity: .85; }

/* ── Botones Deshow en sidebar ── */
.deshow-links { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.deshow-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 16px; border-radius: 10px; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: opacity .2s, transform .15s;
}
.deshow-btn:hover { opacity: .85; transform: translateY(-1px); }
.deshow-btn--prop {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
}
.deshow-btn--more {
  background: linear-gradient(135deg, var(--gold), #A87620);
  border: none; color: var(--dark);
}

.share-row { display: flex; gap: 8px; align-items: center; }
.share-lbl { font-size: 12px; color: var(--muted); white-space: nowrap; }
.share-btn { flex: 1; background: var(--surface2); border: 1px solid rgba(255,255,255,.07); border-radius: 8px; padding: 9px; font-size: 16px; cursor: pointer; text-align: center; transition: border-color .2s; font-family: 'Inter', sans-serif; }
.share-btn:hover { border-color: var(--gold); }

/* Similar properties */
.similar-section { background: var(--dark2); padding: 80px 0; }
.similar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* ════════════════════════════════════════════
   ARCHIVE DE PROPIEDADES
   ════════════════════════════════════════════ */
.archive-propiedades { padding-top: 0; }

.archive-hero { min-height: 280px; display: flex; align-items: center; padding-top: 76px; position: relative; background: linear-gradient(135deg, #0D0D0D 0%, #1a1005 100%); overflow: hidden; }
.archive-hero .hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(201,151,58,.1) 0%, transparent 70%); }
.archive-hero-inner { max-width: 1280px; margin: 0 auto; padding: 48px 32px; position: relative; }
.archive-hero-title { font-family: 'Playfair Display', serif; font-size: clamp(32px, 4vw, 52px); font-weight: 700; color: var(--white); line-height: 1.2; margin-bottom: 12px; }
.archive-hero-title em { color: var(--gold); font-style: normal; }
.archive-hero-sub { font-size: 15px; color: var(--muted); }

.archive-filters-bar { background: var(--dark3); border-bottom: 1px solid rgba(255,255,255,.06); padding: 20px 0; position: sticky; top: 76px; z-index: 100; }
.filters-form { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.filter-group { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 130px; }
.filter-group label { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.filter-group input,
.filter-group select { background: var(--surface); border: 1px solid rgba(255,255,255,.08); color: var(--text); font-size: 13px; padding: 10px 14px; border-radius: 8px; outline: none; transition: border-color .2s; appearance: none; font-family: 'Inter', sans-serif; }
.filter-group input:focus,
.filter-group select:focus { border-color: var(--gold); }
.filter-btn { background: var(--gold); color: var(--dark); font-weight: 700; font-size: 13px; padding: 11px 20px; border-radius: 8px; border: none; cursor: pointer; font-family: 'Inter', sans-serif; white-space: nowrap; transition: background .2s; }
.filter-btn:hover { background: var(--gold-light); }
.filter-clear { color: var(--muted); font-size: 13px; text-decoration: none; white-space: nowrap; transition: color .2s; }
.filter-clear:hover { color: var(--gold); }

.archive-content { padding: 60px 0 80px; }
.archive-grid { grid-template-columns: repeat(3, 1fr); }

.archive-pagination { margin-top: 48px; display: flex; justify-content: center; }
.archive-pagination .nav-links { display: flex; gap: 8px; align-items: center; }
.archive-pagination .page-numbers { background: var(--surface); border: 1px solid rgba(255,255,255,.08); color: var(--muted); font-size: 14px; padding: 10px 16px; border-radius: 8px; text-decoration: none; transition: all .2s; }
.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current { background: var(--gold); border-color: var(--gold); color: var(--dark); }

.no-results { text-align: center; padding: 80px 32px; }
.no-results-icon { font-size: 64px; margin-bottom: 20px; opacity: .3; }
.no-results h2 { font-family: 'Playfair Display', serif; font-size: 28px; color: var(--white); margin-bottom: 12px; }
.no-results p { color: var(--muted); margin-bottom: 28px; }

/* ════════════════════════════════════════════
   HOME SEARCH FORM
   ════════════════════════════════════════════ */
.home-search-form { width: 100%; }
.home-search-row {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end;
  background: var(--surface); border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px; padding: 28px;
}
.hs-group { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 160px; }
.hs-group label { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.hs-group select,
.hs-group input {
  background: var(--dark3); border: 1px solid rgba(255,255,255,.08);
  color: var(--text); font-size: 13px; padding: 11px 14px;
  border-radius: 8px; outline: none; font-family: 'Inter', sans-serif;
  appearance: none; transition: border-color .2s;
}
.hs-group select:focus,
.hs-group input:focus { border-color: var(--gold); }
.hs-btn { flex-shrink: 0; align-self: flex-end; white-space: nowrap; }

/* Grid 3 columnas para "Recién agregadas" */
.listings-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Testimonio con video */
.testi-card--video .testi-video { margin-bottom: 16px; border-radius: 10px; overflow: hidden; }
.testi-card--video .testi-video iframe { width: 100%; height: 200px; border: none; border-radius: 10px; }
.testi-video-placeholder { background: var(--dark3); border: 1px solid rgba(201,151,58,.3); border-radius: 10px; padding: 32px; text-align: center; color: var(--gold); font-weight: 600; cursor: pointer; }

/* Formulario contacto homepage - row 2 cols */
.cf-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 0; }

/* ════════════════════════════════════════════
   RESPONSIVE — TABLET 1024px
   ════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  section { padding: 72px 0; }

  /* Hero */
  .hero-inner { grid-template-columns: 1fr; gap: 0; padding: 120px 24px 60px; }
  .search-card { display: none; }
  .hero-title { font-size: 44px; }
  .hero-sub { max-width: 100%; }

  /* Listings */
  .listings-grid { grid-template-columns: 1fr 1fr; }
  .prop-card.featured { grid-column: span 1; }
  .prop-card.featured .prop-img { height: 220px; }
  .archive-grid { grid-template-columns: 1fr 1fr; }

  /* Why */
  .why-grid { grid-template-columns: 1fr 1fr; }

  /* Testimonios */
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .testi-grid .testi-card:last-child { grid-column: span 2; }

  /* CTA */
  .cta-inner { flex-direction: column; text-align: center; gap: 24px; }
  .cta-btns { justify-content: center; }

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

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* Detalle */
  .gallery-wrap { padding: 32px 24px 24px; }
  .detail-layout { grid-template-columns: 1fr; padding: 40px 24px 60px; gap: 32px; }
  .sidebar { position: static; }
  .photo-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 280px; }
  .photo-main { grid-row: span 1; }
  .specs-bar { grid-template-columns: repeat(5, 1fr); }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .similar-grid { grid-template-columns: 1fr 1fr; }
}

/* ════════════════════════════════════════════
   RESPONSIVE — MOBILE 768px
   ════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Prevenir overflow */
  html, body { overflow-x: hidden; }
  * { min-width: 0; }

  /* Nav */
  .nav-links, .nav-cta { display: none !important; }
  .nav-hamburger { display: flex !important; }
  .nav-inner { padding: 16px 20px; }

  .container { padding: 0 16px; }
  section { padding: 56px 0; }

  /* Hero */
  .hero-inner { padding: 100px 16px 50px; }
  .hero-tag { font-size: 10px; padding: 6px 12px; }
  .hero-title { font-size: 34px; }
  .hero-sub { font-size: 15px; }
  .hero-btns { flex-direction: column; gap: 10px; }
  .btn-primary, .btn-ghost { justify-content: center; width: 100%; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .stat-num { font-size: 26px; }
  .scroll-ind { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }

  /* Listings */
  .listings-grid, .archive-grid { grid-template-columns: 1fr; }
  .prop-card.featured { grid-column: span 1; }

  /* Why, testi, footer */
  .why-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .testi-grid .testi-card:last-child { grid-column: span 1; }
  .cta-text h2 { font-size: 26px; }
  .cta-btns { flex-direction: column; width: 100%; }
  .btn-dark, .btn-outline-dark { text-align: center; justify-content: center; }
  .contact-form { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Chat */
  #ra-window { right: 12px; left: 12px; width: auto; bottom: 90px; }
  #ra-launcher { bottom: 20px; right: 16px; height: 50px; padding: 0 18px 0 14px; gap: 8px; }

  /* Galería detalle */
  .gallery-section { padding-top: 72px; }
  .gallery-wrap { padding: 20px 16px 16px; }
  .gallery-meta { gap: 8px; }
  .pill-views { width: 100%; margin-left: 0; margin-top: 4px; }
  .photo-grid { display: block; }
  .photo-main { height: 220px; border-radius: 12px; overflow: hidden; }
  .photo-thumb { display: none; }

  /* Layout detalle */
  .detail-layout { grid-template-columns: 1fr !important; padding: 24px 16px 48px; gap: 24px; width: 100%; }
  .prop-ref { font-size: 10px; margin-bottom: 8px; }
  .prop-title { font-size: 22px; line-height: 1.2; margin-bottom: 10px; }
  .prop-loc-row { font-size: 13px; margin-bottom: 16px; }
  .prop-price-row { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 14px; }
  .prop-price-main { font-size: 30px; }
  .prop-price-sqft { font-size: 12px; }
  .prop-actions { margin-left: 0; width: 100%; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .act-btn { padding: 9px 6px; font-size: 11px; gap: 4px; justify-content: center; }

  /* Specs: 2 col + última full */
  .specs-bar { grid-template-columns: repeat(2, 1fr); padding: 18px 16px; gap: 16px 0; margin-bottom: 24px; }
  .spec-item { padding: 0 8px; }
  .spec-item:nth-child(5) { grid-column: span 2; border-top: 1px solid rgba(255,255,255,.06); padding-top: 16px; }
  .spec-item + .spec-item::before { display: none; }
  .spec-icon { font-size: 20px; }
  .spec-val { font-size: 17px; }
  .spec-lbl { font-size: 10px; }

  /* Tabs */
  .tabs { margin-bottom: 20px; -webkit-overflow-scrolling: touch; }
  .tab { padding: 11px 14px; font-size: 13px; }
  .block-title { font-size: 18px; }
  .block-text { font-size: 14px; }
  .features-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .feature-item { padding: 11px 12px; font-size: 12px; }
  .details-grid { grid-template-columns: 1fr; }
  .detail-row:nth-child(odd)  { padding-right: 0; border-right: none; }
  .detail-row:nth-child(even) { padding-left: 0; }
  .map-placeholder { height: 220px; }
  .vtour-block { flex-direction: column; padding: 22px 18px; gap: 16px; }
  .vtour-icon { font-size: 36px; }
  .vtour-btn { width: 100%; }
  .ph-price { font-size: 18px; }
  .ph-row { gap: 8px; }
  .sidebar { position: static !important; }
  .similar-section { padding: 44px 0; }
  .similar-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }

  /* Grid 2 cols → 1 col en mobile */
  .listings-grid--2 { grid-template-columns: 1fr; }
  .listings-grid--2 .prop-img { height: 220px; }

  /* Archive filtros */
  .archive-filters-bar { position: static; }
  .filters-form { flex-direction: column; gap: 12px; }
  .filter-group { min-width: 100%; }
  .filter-btn { width: 100%; }

  /* Home search form */
  .home-search-row { padding: 18px 16px; }
  .hs-group { min-width: 100%; flex: 1 1 100%; }
  .hs-btn { width: 100%; }

  /* Grid 3 cols → 1 col en mobile */
  .listings-grid--3 { grid-template-columns: 1fr; }

  /* Contact form row */
  .cf-row-2 { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE 480px
   ════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero-title { font-size: 28px; }
  .prop-body { padding: 16px; }
  .prop-price { font-size: 20px; }
  .listings-grid--3 { grid-template-columns: 1fr; }
  .why-card { padding: 24px 20px; }
  .prop-title { font-size: 20px; }
  .prop-price-main { font-size: 26px; }
  .act-btn { font-size: 10px; padding: 8px 4px; }
  .features-grid { grid-template-columns: 1fr; }
  .tab { padding: 10px 11px; font-size: 12px; }
  #ra-window { right: 8px; left: 8px; width: auto; bottom: 84px; height: 480px; }
  #ra-launcher { bottom: 16px; right: 12px; height: 46px; padding: 0 16px 0 12px; gap: 7px; }
  #ra-launcher .lch-label { font-size: 13px; }
}

/* ════════════════════════════════════════════
   ELEMENTOR OVERRIDES
   Asegura que los colores globales de Elementor
   puedan sobreescribir via CSS custom properties
   ════════════════════════════════════════════ */
.elementor-widget-text-editor a { color: var(--gold); }
.elementor-section { background-color: var(--dark); }
.e-global__color--gold    { --e-global-color-gold:    var(--gold); }
.e-global__color--dark    { --e-global-color-dark:    var(--dark); }
.e-global__color--text    { --e-global-color-text:    var(--text); }
.e-global__color--muted   { --e-global-color-muted:   var(--muted); }
.e-global__color--surface { --e-global-color-surface: var(--surface); }

/* WP core blocks básicos */
.wp-block-image img { border-radius: var(--radius); }

/* ════════════════════════════════════════════
   BLOG — SINGLE & ARCHIVE
   ════════════════════════════════════════════ */

/* ── Etiqueta de categoría ── */
.blog-cat-tag {
  display: inline-block; background: var(--gold); color: var(--dark);
  font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px; text-decoration: none; margin-bottom: 14px;
  transition: background .2s;
}
.blog-cat-tag:hover { background: var(--gold-light); }

/* ── Metadatos (fecha, lectura) ── */
.blog-meta-row { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.blog-meta-sep { opacity: .4; }

/* El hero del blog usa .archive-hero (mismo estilo que servicios/sobre nosotros) */

/* ══════════════
   Layout 2 col: artículo + sidebar
   ══════════════ */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  padding: 64px 32px 100px;
  align-items: start;
}

/* ── Artículo ── */
.blog-article { min-width: 0; }
.blog-featured-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 36px; }
.blog-featured-img img { width: 100%; max-height: 480px; object-fit: cover; }

.blog-content {
  color: var(--text);
  font-size: 17px;
  line-height: 1.85;
}
.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4 {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  margin: 36px 0 14px;
  line-height: 1.25;
}
.blog-content h2 { font-size: clamp(20px, 2.5vw, 30px); }
.blog-content h3 { font-size: clamp(18px, 2vw, 24px); }
.blog-content h4 { font-size: 18px; }
.blog-content p  { margin-bottom: 20px; }
.blog-content a  { color: var(--gold); text-decoration: underline; }
.blog-content a:hover { color: var(--gold-light); }
.blog-content ul,
.blog-content ol { margin: 0 0 20px 24px; }
.blog-content li { margin-bottom: 8px; }
.blog-content blockquote {
  border-left: 4px solid var(--gold);
  margin: 32px 0; padding: 18px 24px;
  background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--text); font-size: 18px;
}
.blog-content img {
  border-radius: var(--radius); margin: 28px 0; width: 100%;
}
.blog-content strong { color: var(--white); font-weight: 700; }
.blog-content table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.blog-content th { background: var(--surface2); color: var(--gold); padding: 10px 14px; text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.blog-content td { padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 15px; }

/* Tags */
.blog-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.08); }
.blog-tags-lbl { font-size: 13px; color: var(--muted); font-weight: 600; margin-right: 4px; }
.blog-tag {
  background: var(--surface2); color: var(--text);
  padding: 5px 14px; border-radius: 20px; font-size: 13px;
  text-decoration: none; transition: background .2s;
}
.blog-tag:hover { background: var(--gold); color: var(--dark); }

/* Navegación prev/next */
.blog-post-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: 40px;
}
.blog-nav-item {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--surface); border-radius: var(--radius);
  padding: 20px; text-decoration: none;
  border: 1px solid rgba(255,255,255,.07);
  transition: border-color .2s, background .2s;
}
.blog-nav-item:hover { border-color: var(--gold); background: var(--surface2); }
.blog-nav-next { text-align: right; }
.blog-nav-dir { font-size: 12px; color: var(--gold); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.blog-nav-ttl { font-size: 14px; color: var(--text); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ══════════════
   SIDEBAR del blog
   ══════════════ */
.blog-sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 100px; }

.bs-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 24px; border: 1px solid rgba(255,255,255,.07);
}
.bs-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px; color: var(--white); margin-bottom: 18px;
  padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.07);
}

/* CTA */
.bs-cta { background: var(--dark3); text-align: center; }
.bs-cta-icon { font-size: 40px; margin-bottom: 12px; }
.bs-cta-title { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--white); margin-bottom: 10px; }
.bs-cta-text { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }

/* Recientes */
.bs-recent-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.bs-recent-item { display: flex; gap: 12px; align-items: flex-start; }
.bs-recent-thumb { flex-shrink: 0; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; display: block; }
.bs-recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bs-recent-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bs-recent-title { font-size: 14px; color: var(--text); text-decoration: none; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bs-recent-title:hover { color: var(--gold); }
.bs-recent-date { font-size: 12px; color: var(--muted); }

/* Categorías */
.bs-cats-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.bs-cat-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 12px; border-radius: 8px;
  font-size: 14px; color: var(--text); text-decoration: none;
  transition: background .2s, color .2s;
}
.bs-cat-link:hover { background: var(--surface2); color: var(--gold); }
.bs-cat-count {
  font-size: 12px; background: var(--surface2);
  color: var(--muted); padding: 2px 8px; border-radius: 10px;
}

/* ══════════════
   ARCHIVO — Grid de tarjetas
   ══════════════ */
.blog-archive-wrap { padding: 60px 32px 100px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 60px;
}

.blog-card {
  background: var(--surface); border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.07);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.4); }

.blog-card-thumb { display: block; aspect-ratio: 16/9; overflow: hidden; }
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-card-thumb img { transform: scale(1.04); }

.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card-title { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--white); line-height: 1.35; margin-bottom: 12px; flex: 1; }
.blog-card-title a { text-decoration: none; transition: color .2s; }
.blog-card-title a:hover { color: var(--gold); }
.blog-card-excerpt { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 20px; }
.blog-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.blog-card-read { font-size: 13px; font-weight: 700; color: var(--gold); text-decoration: none; }
.blog-card-read:hover { color: var(--gold-light); }

/* Paginación */
.blog-pagination { display: flex; justify-content: center; margin-top: 20px; }
.blog-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px; font-size: 14px; font-weight: 600;
  color: var(--text); text-decoration: none; transition: background .2s, color .2s;
  margin: 0 3px;
}
.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current { background: var(--gold); color: var(--dark); }
.blog-pagination .page-numbers.dots { background: transparent; cursor: default; }

/* Estado vacío */
.blog-empty { text-align: center; padding: 80px 0; color: var(--muted); }
.blog-empty p { font-size: 18px; margin-bottom: 24px; }

/* ══════════════
   RESPONSIVE BLOG
   ══════════════ */
@media (max-width: 1024px) {
  .blog-layout { grid-template-columns: 1fr 280px; gap: 32px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .blog-hero-content { padding: 100px 20px 48px; }
  .blog-layout { grid-template-columns: 1fr; padding: 40px 20px 60px; }
  .blog-sidebar { position: static; }
  .blog-post-nav { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; gap: 24px; }
  .blog-archive-wrap { padding: 40px 20px 60px; }
}
.wp-block-quote { border-left: 3px solid var(--gold); padding-left: 20px; color: var(--muted); font-style: italic; }
.wp-block-pullquote { border-top: 3px solid var(--gold); border-bottom: 3px solid var(--gold); padding: 20px 0; }

/* Admin bar offset */
.admin-bar nav.main-nav { top: 32px; }

/* ════════════════════════════════════════════
   VIDEO WRAP
   ════════════════════════════════════════════ */
.video-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
/* oEmbed iframes (YouTube, Vimeo) — responsive 16:9 */
.video-wrap iframe,
.video-wrap embed,
.video-wrap object {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
}
.video-wrap video {
  display: block;
  width: 100%;
  border-radius: var(--radius);
}

/* ════════════════════════════════════════════
   TEMA CLARO — body.ra-theme-light
   Paleta crema premium, sitio completo claro
   ════════════════════════════════════════════ */
body.ra-theme-light {
  --dark:     #F5F0E8;
  --dark2:    #EDE8DF;
  --dark3:    #E3DDD3;
  --surface:  #FFFFFF;
  --surface2: #F8F5F0;
  --text:     #1A1510;
  --muted:    #7A6F63;
  --white:    #0D0D0D;
}

/* Encabezados y párrafos */
body.ra-theme-light .section-title,
body.ra-theme-light h1, body.ra-theme-light h2,
body.ra-theme-light h3, body.ra-theme-light h4 { color: #0D0D0D; }
body.ra-theme-light p { color: var(--text); }

/* ── Navegación principal (claro) ── */
body.ra-theme-light .main-nav {
  background: rgba(250,249,246,.95);
  border-bottom: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
body.ra-theme-light .main-nav .nav-link { color: #1A1510; }
body.ra-theme-light .main-nav .nav-link:hover { color: var(--gold); }
body.ra-theme-light .main-nav .nav-logo-text,
body.ra-theme-light .main-nav .logo-tagline { color: #1A1510; }
body.ra-theme-light .nav-hamburger span { background: #1A1510; }

/* ── Menú móvil (claro) ── */
body.ra-theme-light .mobile-menu {
  background: #F5F0E8;
  border-top: 1px solid rgba(0,0,0,.08);
}
body.ra-theme-light .mobile-menu .nav-link {
  color: #1A1510;
  border-bottom-color: rgba(0,0,0,.06);
}
body.ra-theme-light .mobile-menu .nav-link:hover {
  color: var(--gold);
  background: rgba(0,0,0,.03);
}

/* ── Hero (claro) ── */
body.ra-theme-light .hero {
  background: linear-gradient(135deg, #EDE8DF 0%, #F5F0E8 60%, #E8E0D0 100%);
}
body.ra-theme-light .hero-title  { color: #0D0D0D; }
body.ra-theme-light .hero-subtitle { color: #1A1510; }
body.ra-theme-light .home-search-row {
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(0,0,0,.08);
}
body.ra-theme-light .hs-input {
  background: #FFFFFF;
  border-color: rgba(0,0,0,.12);
  color: #1A1510;
}

/* ── Archive hero (claro) ── */
body.ra-theme-light .archive-hero {
  background: linear-gradient(135deg, #EDE8DF 0%, #F5F0E8 100%);
}
body.ra-theme-light .archive-hero .page-title,
body.ra-theme-light .archive-hero .archive-hero-desc { color: #0D0D0D; }

/* ── CTA Strip (claro: fondo dorado, texto oscuro) ── */
body.ra-theme-light .cta-strip {
  background: linear-gradient(135deg, #C9973A, #E8B95A);
}
body.ra-theme-light .cta-text h2,
body.ra-theme-light .cta-text p { color: #0D0D0D; }

/* ── Footer (claro) ── */
body.ra-theme-light .site-footer {
  background: #EDE8DF;
  border-top: 1px solid rgba(0,0,0,.08);
}
body.ra-theme-light .footer-widget h4,
body.ra-theme-light .footer-col h4 { color: #0D0D0D; }
body.ra-theme-light .footer-widget p,
body.ra-theme-light .footer-col p  { color: #1A1510; }
body.ra-theme-light .footer-link   { color: #1A1510; }
body.ra-theme-light .footer-link:hover { color: var(--gold); }
body.ra-theme-light .footer-bottom {
  border-top-color: rgba(0,0,0,.1);
  color: #7A6F63;
}
body.ra-theme-light .social-btn {
  background: rgba(0,0,0,.06);
  border-color: rgba(0,0,0,.1);
  color: #1A1510;
}
body.ra-theme-light .social-btn:hover {
  background: var(--gold);
  color: #0D0D0D;
}

/* ── Tarjetas de propiedad ── */
body.ra-theme-light .prop-card {
  background: var(--surface);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
body.ra-theme-light .prop-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.10); }
body.ra-theme-light .prop-card .card-body  { border-top-color: rgba(0,0,0,.06); }
body.ra-theme-light .prop-card .card-meta  { border-top-color: rgba(0,0,0,.06); }
body.ra-theme-light .prop-card .card-price { color: var(--gold); }
body.ra-theme-light .prop-card .card-title { color: #0D0D0D; }
body.ra-theme-light .prop-card .card-location,
body.ra-theme-light .prop-card .card-stat  { color: #7A6F63; }

/* ── Tarjetas de testimonio ── */
body.ra-theme-light .testi-card {
  background: var(--surface);
  border: 1px solid rgba(0,0,0,.08);
}
body.ra-theme-light .testi-card .testi-text { color: #1A1510; }
body.ra-theme-light .testi-card .testi-name { color: #0D0D0D; }

/* ── Why cards / feature items ── */
body.ra-theme-light .why-card {
  background: var(--surface);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
body.ra-theme-light .feature-item {
  background: var(--surface2);
  border: 1px solid rgba(0,0,0,.06);
}

/* ── Formulario de contacto ── */
body.ra-theme-light .contact-form,
body.ra-theme-light .cf-form {
  background: var(--surface);
  border: 1px solid rgba(0,0,0,.08);
}
body.ra-theme-light .cf-input {
  background: var(--surface2);
  border-color: rgba(0,0,0,.12);
  color: var(--text);
}
body.ra-theme-light .cf-input::placeholder { color: var(--muted); }

/* ── Filtros del archivo ── */
body.ra-theme-light .archive-filters-bar {
  background: rgba(245,240,232,.95);
  border-bottom-color: rgba(0,0,0,.08);
}
body.ra-theme-light .filter-group select,
body.ra-theme-light .filter-group input {
  background: var(--surface);
  border-color: rgba(0,0,0,.1);
  color: var(--text);
}

/* ── Tabs y filas de detalle ── */
body.ra-theme-light .tabs { border-bottom-color: rgba(0,0,0,.08); }
body.ra-theme-light .tab  { color: var(--muted); }
body.ra-theme-light .tab.active { color: var(--gold); }
body.ra-theme-light .tab-panel  { border-top-color: rgba(0,0,0,.06); }
body.ra-theme-light .detail-row {
  border-color: rgba(0,0,0,.06);
  color: #1A1510;
}
body.ra-theme-light .detail-label { color: var(--muted); }

/* ── Specs bar ── */
body.ra-theme-light .specs-bar {
  background: var(--surface);
  border: 1px solid rgba(0,0,0,.06);
}
body.ra-theme-light .spec-item + .spec-item::before { background: rgba(0,0,0,.08); }
body.ra-theme-light .spec-val { color: #0D0D0D; }
body.ra-theme-light .spec-lbl { color: var(--muted); }

/* ── Price card ── */
body.ra-theme-light .price-card {
  background: var(--surface);
  border: 1px solid rgba(0,0,0,.08);
}

/* ── Blog / listado de entradas ── */
body.ra-theme-light .bs-card {
  background: var(--surface);
  border: 1px solid rgba(0,0,0,.08);
}
body.ra-theme-light .bs-card .bs-title   { color: #0D0D0D; }
body.ra-theme-light .bs-card .bs-excerpt { color: #1A1510; }
body.ra-theme-light .blog-nav,
body.ra-theme-light .blog-nav a {
  border-color: rgba(0,0,0,.08);
  color: #1A1510;
}
body.ra-theme-light .blog-tags .tag {
  background: var(--surface2);
  border: 1px solid rgba(0,0,0,.08);
  color: #1A1510;
}
body.ra-theme-light .blog-content td,
body.ra-theme-light .blog-content th { border-color: rgba(0,0,0,.1); }

/* ── Sidebar ── */
body.ra-theme-light .sidebar > * {
  background: var(--surface);
  border: 1px solid rgba(0,0,0,.08);
}
body.ra-theme-light .sidebar h4 { color: #0D0D0D; }
body.ra-theme-light .ac-call {
  background: var(--surface);
  border: 1px solid rgba(0,0,0,.08);
}
body.ra-theme-light .share-btn {
  background: var(--surface2);
  border: 1px solid rgba(0,0,0,.08);
  color: #1A1510;
}
body.ra-theme-light .ra-text { border-color: rgba(0,0,0,.06); }

/* ── Chat widget (claro) ── */
body.ra-theme-light #ra-window {
  background: var(--surface);
  border: 1px solid rgba(0,0,0,.1);
}
body.ra-theme-light #ra-header {
  background: var(--gold);
  color: #0D0D0D;
}
body.ra-theme-light #ra-header * { color: #0D0D0D; }
body.ra-theme-light .ra-msg.ra-bot {
  background: var(--surface2);
  color: var(--text);
}
body.ra-theme-light .ra-msg.ra-user {
  background: rgba(201,151,58,.15);
  color: #0D0D0D;
}
body.ra-theme-light #ra-input {
  background: var(--surface2);
  border-color: rgba(0,0,0,.1);
  color: var(--text);
}

/* ════════════════════════════════════════════
   TEMA CUSTOM — body.ra-theme-custom
   Usa variables inyectadas por PHP vía wp_head
   ════════════════════════════════════════════ */
/* Las variables se inyectan inline en <head> desde functions.php */
/* body.ra-theme-custom hereda de :root que es sobreescrito */
@media screen and (max-width: 782px) {
  .admin-bar nav.main-nav { top: 46px; }
}

/* ── Antispam: honeypot — nunca visible para humanos ── */
.ra-hp-field {
  position: absolute !important;
  left: -9999px !important;
  top:  -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  width:  0 !important;
  pointer-events: none !important;
  tab-index: -1;
}

/* ════════════════════════════════════════════════════════════════
   ELEMENTOR — compatibilidad de fondos y formulario Pro
   Estas clases se aplican a las secciones/widgets de Elementor
   para respetar las variables CSS del tema.
   ════════════════════════════════════════════════════════════════ */

/* Fondos de sección usando variables del tema */
.ra-bg-dark  { background: var(--dark)  !important; }
.ra-bg-dark2 { background: var(--dark2) !important; }
.ra-bg-surface { background: var(--surface) !important; }

/* Estilos del formulario de Elementor Pro
   Iguala el aspecto de .cf-input / .iq-input del tema */
.elementor-form .elementor-field-group { margin-bottom: 0; }

.elementor-form input[type="text"],
.elementor-form input[type="email"],
.elementor-form input[type="tel"],
.elementor-form input[type="url"],
.elementor-form input[type="number"],
.elementor-form select,
.elementor-form textarea {
  width: 100% !important;
  background: var(--dark3, #1f1d1a) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 8px !important;
  color: var(--text) !important;
  font-size: 14px !important;
  font-family: 'Inter', sans-serif !important;
  padding: 13px 16px !important;
  outline: none !important;
  transition: border-color .2s !important;
}

.elementor-form input[type="text"]:focus,
.elementor-form input[type="email"]:focus,
.elementor-form input[type="tel"]:focus,
.elementor-form textarea:focus {
  border-color: var(--gold) !important;
  box-shadow: none !important;
}

.elementor-form input::placeholder,
.elementor-form textarea::placeholder {
  color: var(--muted) !important;
  opacity: 1 !important;
}

.elementor-form .elementor-field-label {
  color: var(--text) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  margin-bottom: 6px !important;
}

.elementor-form textarea { resize: vertical; min-height: 120px !important; }

/* Botón submit del formulario Pro */
.elementor-form .elementor-button[type="submit"] {
  background: var(--gold) !important;
  color: var(--dark) !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  padding: 13px 24px !important;
  width: 100% !important;
  cursor: pointer !important;
  transition: opacity .2s !important;
}

.elementor-form .elementor-button[type="submit"]:hover {
  opacity: .88 !important;
}

/* Mensaje de éxito/error del formulario Pro */
.elementor-message {
  border-radius: 8px !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
}
.elementor-message.elementor-message-success {
  background: rgba(201,151,58,.1) !important;
  border: 1px solid rgba(201,151,58,.3) !important;
  color: var(--gold) !important;
}
.elementor-message.elementor-message-danger {
  background: rgba(200,50,50,.1) !important;
  border: 1px solid rgba(200,50,50,.3) !important;
  color: #ff6b6b !important;
}

/* Light mode — overrides del formulario Elementor */
body.ra-theme-light .elementor-form input[type="text"],
body.ra-theme-light .elementor-form input[type="email"],
body.ra-theme-light .elementor-form input[type="tel"],
body.ra-theme-light .elementor-form select,
body.ra-theme-light .elementor-form textarea {
  background: #fff !important;
  border-color: rgba(0,0,0,.12) !important;
  color: var(--text) !important;
}
body.ra-theme-light .elementor-form input::placeholder,
body.ra-theme-light .elementor-form textarea::placeholder {
  color: #aaa !important;
}
body.ra-theme-light .elementor-form .elementor-field-label {
  color: var(--text) !important;
}
