/* ============================================================
   INMOBILIARIA VALDIVIA — ESTILOS PRINCIPALES
   ============================================================ */

:root {
  --primary:        #1B4332;
  --primary-dark:   #0D2318;
  --primary-light:  #2D6A4F;
  --accent:         #C9A84C;
  --accent-light:   #E5C96A;
  --dark:           #0A1A12;
  --white:          #FFFFFF;
  --cream:          #F8F5EF;
  --gray-light:     #F0EDE7;
  --gray:           #9CA3AF;
  --text:           #1C2B22;
  --text-muted:     #6B7280;

  --ff-head:   'Playfair Display', Georgia, serif;
  --ff-body:   'Inter', system-ui, sans-serif;

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

  --r:    8px;
  --r-lg: 16px;
  --tr:   all .3s ease;
  --mw:   1280px;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--ff-body); color: var(--text); background: var(--white); line-height: 1.6; overflow-x: hidden; }
img  { display: block; max-width: 100%; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
h1,h2,h3,h4 { font-family: var(--ff-head); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

/* ── Utilidades ─────────────────────────────────────────── */
.container { max-width: var(--mw); margin: 0 auto; padding: 0 24px; }
.section    { padding: 88px 0; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { color: var(--primary); margin-bottom: 10px; }
.accent-line  { display: block; width: 56px; height: 3px; background: var(--accent); margin: 0 auto 18px; }
.accent-line.left { margin: 0 0 18px; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.cat-section-header { margin-bottom: 0; }
.cat-eyebrow { font-family: var(--ff-head); font-size: 1rem; font-style: italic; color: var(--accent); margin-bottom: 6px; font-weight: 400; letter-spacing: .02em; }
.cat-section-header h2 { font-size: clamp(2rem, 3.5vw, 3rem); color: var(--primary); margin-bottom: 12px; }

.tag { display: inline-block; padding: 4px 12px; border-radius: 4px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tag-venta   { background: var(--accent);         color: var(--primary-dark); }
.tag-arriendo{ background: var(--primary-light);  color: var(--white); }
.tag-destac  { background: var(--primary-dark);   color: var(--accent); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: var(--r); font-weight: 600; font-size: .95rem; transition: var(--tr); letter-spacing: .02em; }
.btn-primary { background: var(--accent); color: var(--primary-dark); }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline  { border: 2px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--primary-dark); }
.btn-dark   { background: var(--primary); color: var(--white); }
.btn-dark:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-white  { background: var(--white); color: var(--primary); }
.btn-white:hover { background: var(--cream); }

/* ── NAVBAR ─────────────────────────────────────────────── */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 22px 0; transition: var(--tr); }
.navbar.scrolled { background: var(--primary-dark); padding: 12px 0; box-shadow: 0 2px 20px rgba(0,0,0,.35); }
.page-light .navbar { background: var(--primary-dark); padding: 12px 0; box-shadow: 0 2px 20px rgba(0,0,0,.35); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; }
.logo-img { height: var(--logo-h, 105px); width: auto; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.45)); transition: height .35s ease, filter .25s; }
.logo-img:hover { filter: drop-shadow(0 3px 10px rgba(0,0,0,.6)); }
.logo-img--footer { height: 60px; }
.navbar.scrolled .logo-img { height: var(--logo-h-scrolled, 60px); }
.navbar[data-always-scrolled] .logo-img { height: 88px; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: rgba(255,255,255,.82); font-size: .88rem; font-weight: 500; transition: var(--tr); position: relative; padding-bottom: 4px; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--accent); transition: width .3s ease; }
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { margin-left: 12px; }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: var(--tr); }

/* ── HERO ────────────────────────────────────────────────── */
.hero { min-height: 88vh; position: relative; display: flex; align-items: center; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.is-active { opacity: 1; animation: heroBurns 9s ease-out forwards; }
.hero-slide.is-out { opacity: 0; }
@keyframes heroBurns { from { transform: scale(1); } to { transform: scale(1.06); } }
.hero-dots { position: absolute; bottom: 28px; right: 32px; left: auto; transform: none; display: flex; gap: 7px; z-index: 2; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); border: 1.5px solid rgba(255,255,255,.5); cursor: pointer; transition: all .3s; padding: 0; }
.hero-dot.active { background: var(--accent); border-color: var(--accent); width: 24px; border-radius: 100px; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.4) 45%, rgba(0,0,0,.08) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 860px; padding-top: 60px; width: 100%; }

.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(201,168,76,.14); border: 1px solid rgba(201,168,76,.4); color: var(--accent); padding: 6px 14px; border-radius: 100px; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.hero-content h1 { color: var(--white); margin-bottom: 10px; text-shadow: 0 2px 12px rgba(0,0,0,.4); font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
.hero-content h1 em { font-style: italic; color: var(--accent); }
.hero-content > p { color: rgba(255,255,255,.72); font-size: .95rem; max-width: 480px; margin-bottom: 24px; }

/* ── BUSCADOR COMPACTO PILL ─────────────────────────────── */
.search-box { background: rgba(255,255,255,.97); border-radius: 100px; padding: 6px 6px 6px 10px; box-shadow: 0 20px 60px rgba(0,0,0,.35); backdrop-filter: blur(12px); max-width: 860px; }
.search-row { display: flex; align-items: center; width: 100%; }
.search-sep { width: 1px; height: 26px; background: #E5E7EB; flex-shrink: 0; }
.sf-pill { display: flex; align-items: center; gap: 8px; padding: 0 16px; flex: 1; min-width: 140px; }
.sf-pill i { color: var(--primary); font-size: .82rem; flex-shrink: 0; }
.sf-pill select { border: none; outline: none; background: transparent; font-size: .88rem; color: var(--text); cursor: pointer; width: 100%; padding: 13px 0; appearance: none; -webkit-appearance: none; white-space: nowrap; }
.sf-pill select:focus { outline: none; }
.search-btn-pill { background: var(--accent); color: var(--primary-dark); border: none; border-radius: 100px; padding: 13px 26px; font-weight: 700; font-size: .88rem; display: flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: var(--tr); }
.search-btn-pill:hover { background: var(--accent-light); transform: translateY(-1px); }

/* Dropdown operación y precio */
.sf-pill--trigger { position: relative; cursor: pointer; user-select: none; flex-shrink: 0; min-width: 160px; }
.sf-pill--trigger .sf-arrow { font-size: .7rem; color: var(--text-muted); margin-left: 4px; transition: transform .2s; flex-shrink: 0; }
.sf-pill--trigger .sf-arrow.rotated { transform: rotate(180deg); }
.sf-dropdown { display: none; position: absolute; bottom: calc(100% + 14px); left: 0; background: var(--white); border-radius: 16px; padding: 20px; box-shadow: 0 12px 40px rgba(0,0,0,.2); width: 290px; z-index: 200; border: 1px solid #E5E7EB; }
.sf-dropdown.open { display: block; }
.sf-drop-title { font-size: .72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.sf-op-btns { display: flex; gap: 8px; }
.sf-op-btn { flex: 1; padding: 10px 0; border-radius: 8px; border: 1.5px solid #E5E7EB; background: var(--white); font-size: .88rem; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: var(--tr); }
.sf-op-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.sf-op-btn:hover:not(.active) { border-color: var(--primary); color: var(--primary); }
.sf-price-row { display: flex; align-items: center; gap: 10px; }
.sf-price-field { flex: 1; }
.sf-price-field label { display: block; font-size: .72rem; color: var(--text-muted); margin-bottom: 5px; font-weight: 600; }
.sf-price-field input { width: 100%; padding: 9px 12px; border: 1.5px solid #E5E7EB; border-radius: 8px; font-size: .88rem; color: var(--text); outline: none; box-sizing: border-box; }
.sf-price-field input:focus { border-color: var(--primary); }
.sf-price-sep { color: var(--text-muted); font-size: 1rem; flex-shrink: 0; }
.sf-drop-apply { width: 100%; margin-top: 16px; padding: 10px; background: var(--primary); color: var(--white); border: none; border-radius: 8px; font-weight: 700; font-size: .88rem; cursor: pointer; transition: var(--tr); display: flex; align-items: center; justify-content: center; gap: 8px; }
.sf-drop-apply:hover { background: var(--primary-dark); }

/* ── STATS BAR ──────────────────────────────────────────── */
.stats-bar { background: var(--primary-dark); padding: 44px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 16px; }
.sitem strong { display: block; font-family: var(--ff-head); font-size: 2.4rem; color: var(--accent); line-height: 1; }
.sitem p { color: rgba(255,255,255,.65); font-size: .85rem; margin-top: 6px; }

/* ── PROPERTY CARDS ─────────────────────────────────────── */
.props-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

/* Grid de 3 columnas fijas para sección destacadas (última fila centrada con flexbox) */
.props-grid--3col {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.props-grid--3col .pcard {
  flex: 1 1 calc(33.333% - 16px);
  min-width: 260px;
  max-width: calc(33.333% - 16px);
}

.pcard { background: var(--white); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--tr); border: 1px solid #F0EDE7; display: flex; flex-direction: column; }
.pcard:hover { transform: translateY(-8px); box-shadow: 0 20px 44px rgba(0,0,0,.13); }

.pcard-img { position: relative; overflow: hidden; aspect-ratio: 16/9; display: block; text-decoration: none; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; display: block; }
.pcard:hover .pcard-img img { transform: scale(1.07); }
.pcard-tags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.pcard-cam { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,.55); color: #fff; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .78rem; backdrop-filter: blur(4px); }

.pcard-body { padding: 18px 20px 14px; flex: 1; display: flex; flex-direction: column; }
.pcard-tipo { font-size: .7rem; font-weight: 700; color: var(--primary-light); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 5px; }
.pcard-title { font-family: var(--ff-head); font-size: 1.05rem; color: var(--text); margin-bottom: 12px; line-height: 1.35; }
.pcard-price { padding: 10px 14px; background: var(--cream); border-radius: var(--r); border-left: 3px solid var(--accent); margin-bottom: 12px; }
.price-uf  { font-family: var(--ff-head); font-size: 1.28rem; font-weight: 800; color: var(--primary); }
.price-clp { font-size: .76rem; color: var(--text-muted); margin-top: 1px; }

.pcard-feats { display: flex; gap: 12px; padding-top: 10px; border-top: 1px solid var(--gray-light); margin-top: auto; flex-wrap: wrap; }
.pfeat { display: flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--text-muted); }

.pcard-footer { padding: 10px 20px; border-top: 1px solid var(--gray-light); background: var(--cream); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pcard-loc { display: flex; align-items: center; gap: 5px; color: var(--text-muted); font-size: .78rem; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pcard-loc i { color: var(--accent); flex-shrink: 0; }
.pcard-ver { font-size: .78rem; font-weight: 700; color: #fff; background: var(--primary); padding: 6px 14px; border-radius: 20px; display: flex; align-items: center; gap: 5px; transition: var(--tr); white-space: nowrap; flex-shrink: 0; text-decoration: none; }
.pcard-ver:hover { background: var(--accent); color: var(--primary-dark); }

/* ── WHY US ─────────────────────────────────────────────── */
.why-us { background: var(--cream); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.wcard { text-align: center; padding: 36px 24px; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); transition: var(--tr); border-bottom: 3px solid transparent; }
.wcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-bottom-color: var(--accent); }
.wicon { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-light)); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 1.5rem; color: var(--white); }
.wcard h3 { color: var(--primary); margin-bottom: 10px; font-size: 1rem; }
.wcard p  { color: var(--text-muted); font-size: .88rem; line-height: 1.65; }

/* ── SLIDER PROPIEDADES ──────────────────────────────────── */
.prop-slider-section { padding: 60px 0 80px; background: var(--primary-dark); position: relative; overflow: hidden; }
.prop-slider-section .cat-section-header { margin-bottom: 40px; position: relative; z-index: 1; }
.prop-slider-section .cat-section-header h2,
.prop-slider-section .cat-eyebrow { color: var(--white); }
.prop-slider-section .accent-line { background: var(--accent); }

.prop-slider-blur-bg { position: absolute; inset: -60px; background-size: cover; background-position: center; filter: blur(36px) brightness(0.35) saturate(0.6); z-index: 0; transition: opacity 0.5s ease; }

.prop-slide-wrap { position: relative; overflow: hidden; height: calc(100vh - 220px); min-height: 560px; max-height: 1000px; }

.prop-slide { position: absolute; inset: 0; background-size: cover; background-position: center; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 72px; opacity: 0; transform: translateX(40px); transition: opacity 1.1s ease, transform 1.1s ease; pointer-events: none; }
.prop-slide.is-active { opacity: 1; transform: translateX(0); pointer-events: auto; }
.prop-slide.is-out { opacity: 0; transform: translateX(-40px); }

.prop-slide-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,14,9,.82) 0%, rgba(5,14,9,.35) 45%, rgba(5,14,9,.1) 70%, transparent 100%); }

.prop-slide-content { position: relative; z-index: 2; text-align: center; max-width: 680px; padding: 0 24px; }

.prop-slide-meta { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 18px; }
.prop-slide-badge { background: var(--accent); color: var(--dark); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; padding: 5px 14px; border-radius: 20px; }
.prop-slide-city { color: rgba(255,255,255,.7); font-size: .88rem; display: flex; align-items: center; gap: 5px; }
.prop-slide-city i { color: var(--accent-light); font-size: .8rem; }

.prop-slide-title { font-family: var(--ff-head); color: var(--white); font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 600; line-height: 1.25; margin-bottom: 16px; text-shadow: 0 2px 20px rgba(0,0,0,.6); }

.prop-slide-price { font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 700; color: var(--white); margin-bottom: 20px; line-height: 1; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.prop-slide-price span { font-size: .86rem; font-weight: 400; color: rgba(255,255,255,.6); margin-left: 8px; }

.prop-slide-stats { display: flex; justify-content: center; gap: 28px; margin-bottom: 30px; }
.prop-slide-stats span { color: rgba(255,255,255,.8); font-size: .9rem; display: flex; align-items: center; gap: 6px; }
.prop-slide-stats i { color: var(--accent-light); font-size: .8rem; }

.prop-slide-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--dark); font-weight: 700; font-size: 1rem; padding: 16px 36px; border-radius: 30px; box-shadow: 0 8px 32px rgba(201,168,76,.45), 0 2px 8px rgba(0,0,0,.3); letter-spacing: .03em; transition: background .25s, gap .25s, box-shadow .25s, transform .25s; }
.prop-slide-btn:hover { background: var(--accent-light); gap: 15px; box-shadow: 0 12px 40px rgba(201,168,76,.6), 0 2px 8px rgba(0,0,0,.3); transform: translateY(-2px); }

/* Flechas — bordes del banner */
.prop-slide-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.7); font-size: .8rem; display: flex; align-items: center; justify-content: center; transition: background .25s, color .25s; cursor: pointer; }
.prop-slide-arrow:hover { background: rgba(255,255,255,.22); color: var(--white); }
.prop-slide-prev { left: 10px; }
.prop-slide-next { right: 10px; }

/* Dots — centrados abajo */
.prop-slide-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 10px; align-items: center; }
.prop-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); transition: all .4s; padding: 0; cursor: pointer; }
.prop-dot.active { background: var(--accent); width: 32px; border-radius: 4px; }
.prop-dot:hover:not(.active) { background: rgba(255,255,255,.65); }

/* Contador — oculto */
.prop-slide-counter { display: none; }

/* Barra de progreso — desactivada */
.prop-slide-progress { display: none; }

/* Variante compacta para páginas interiores */
.prop-slider-section--compact { padding: 0; }
.prop-slide-wrap--compact { height: 58vh; min-height: 420px; max-height: 680px; }

/* ── BANNER SLIDER DESTACADAS (catálogo integrado) ──────── */
.dest-banner-wrap { position: relative; overflow: hidden; border-radius: 16px; margin-bottom: 28px; background: var(--primary-dark); }

.dest-slider-blur-bg { position: absolute; inset: -50px; background-size: cover; background-position: center; filter: blur(32px) brightness(0.3) saturate(0.7); z-index: 0; transition: opacity 0.5s ease; }

.dest-slider-label { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 14px 20px 0; }

.dest-slide-wrap { position: relative; overflow: hidden; height: 200px; box-shadow: none; }

.dest-slide { position: absolute; inset: 0; background-size: cover; background-position: center; display: flex; align-items: flex-end; text-decoration: none; opacity: 0; transform: translateX(30px); transition: opacity 1s ease, transform 1s ease; pointer-events: none; }
.dest-slide.is-active { opacity: 1; transform: translateX(0); pointer-events: auto; }
.dest-slide.is-out { opacity: 0; transform: translateX(-30px); }

.dest-slide-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,14,9,.9) 0%, rgba(5,14,9,.25) 55%, transparent 100%); }

.dest-slide-content { position: relative; z-index: 2; padding: 16px 20px; width: 100%; }

.dest-slide-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.dest-slide-badge { background: var(--accent); color: var(--dark); font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 3px 10px; border-radius: 20px; }
.dest-slide-city { color: rgba(255,255,255,.7); font-size: .8rem; display: flex; align-items: center; gap: 4px; }
.dest-slide-city i { color: var(--accent-light); font-size: .72rem; }

.dest-slide-title { font-family: var(--ff-head); color: var(--white); font-size: clamp(1rem, 2vw, 1.35rem); font-weight: 600; line-height: 1.3; margin-bottom: 8px; text-shadow: 0 2px 10px rgba(0,0,0,.5); }

.dest-slide-price { font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 700; color: var(--white); margin-bottom: 8px; }
.dest-slide-price span { font-size: .78rem; font-weight: 400; color: rgba(255,255,255,.55); margin-left: 6px; }

.dest-slide-stats { display: flex; gap: 16px; }
.dest-slide-stats span { color: rgba(255,255,255,.75); font-size: .78rem; display: flex; align-items: center; gap: 5px; }
.dest-slide-stats i { color: var(--accent-light); font-size: .7rem; }

.dest-slide-dots { position: absolute; bottom: 16px; right: 20px; z-index: 10; display: flex; gap: 7px; align-items: center; }
.dest-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.35); padding: 0; cursor: pointer; transition: all .35s; }
.dest-dot.active { background: var(--accent); width: 22px; border-radius: 4px; }

/* ── BANNER PROPIEDAD DESTACADA (catálogo) ──────────────── */
.feat-banner { display: flex; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-md); margin-bottom: 28px; text-decoration: none; min-height: 200px; transition: box-shadow .3s, transform .3s; }
.feat-banner:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.feat-banner-img { width: 42%; flex-shrink: 0; background-size: cover; background-position: center; transition: transform .5s ease; }
.feat-banner:hover .feat-banner-img { transform: scale(1.04); }

.feat-banner-body { flex: 1; background: var(--primary-dark); padding: 28px 32px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }

.feat-banner-tag { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: var(--dark); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 4px 12px; border-radius: 20px; width: fit-content; }

.feat-banner-title { font-family: var(--ff-head); color: var(--white); font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; line-height: 1.3; }

.feat-banner-price { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 700; color: var(--white); line-height: 1; }
.feat-banner-price span { font-size: .82rem; font-weight: 400; color: rgba(255,255,255,.55); margin-left: 6px; }

.feat-banner-stats { display: flex; flex-wrap: wrap; gap: 14px; }
.feat-banner-stats span { color: rgba(255,255,255,.7); font-size: .82rem; display: flex; align-items: center; gap: 5px; }
.feat-banner-stats i { color: var(--accent-light); font-size: .75rem; }

.feat-banner-cta { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: .88rem; margin-top: 4px; transition: gap .25s; }
.feat-banner:hover .feat-banner-cta { gap: 13px; }

@media (max-width: 640px) {
  .feat-banner { flex-direction: column; }
  .feat-banner-img { width: 100%; height: 180px; }
}

/* ── PUBLICAR CTA ───────────────────────────────────────── */
.pub-cta { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); position: relative; overflow: hidden; }
.pub-cta::before { content: ''; position: absolute; top: -40%; right: -8%; width: 550px; height: 550px; border-radius: 50%; background: rgba(201,168,76,.07); pointer-events: none; }
.pub-cta-inner { text-align: center; max-width: 680px; margin: 0 auto; }
.pub-cta .pub-cta-inner h2 { color: var(--white); margin-bottom: 14px; }
.pub-cta .pub-cta-inner h2 em { font-style: normal; color: var(--accent); }
.pub-cta .pub-cta-inner p { color: rgba(255,255,255,.80); font-size: .98rem; line-height: 1.75; margin-bottom: 32px; }
.pub-benefits { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.pub-benefits--centro { align-items: center; }
.pub-ben { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.82); font-size: .9rem; }
.pub-ben::before { content: '✓'; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--primary-dark); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .72rem; flex-shrink: 0; }
.pub-cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.fg { margin-bottom: 14px; }
.fg label { display: block; font-size: .75rem; font-weight: 700; color: rgba(255,255,255,.65); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.fg input, .fg select, .fg textarea { width: 100%; padding: 11px 14px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.15); border-radius: var(--r); color: var(--white); font-size: .9rem; transition: border-color .2s; }
.fg input::placeholder { color: rgba(255,255,255,.38); }
.fg input:focus, .fg select:focus, .fg textarea:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,.12); }
.fg select option { background: var(--primary-dark); color: white; }
.fg textarea { resize: vertical; min-height: 90px; }
.fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── QUIÉNES SOMOS ──────────────────────────────────────── */
.nos-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.nos-intro-text h2 { color: var(--primary); margin: 10px 0 16px; }
.nos-intro-text p { color: var(--text-muted); line-height: 1.8; }
.nos-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; padding-top: 32px; border-top: 1px solid #E5E7EB; }
.nos-stat strong { display: block; font-family: var(--ff-head); font-size: 2rem; color: var(--accent); line-height: 1; }
.nos-stat span { font-size: .78rem; color: var(--text-muted); margin-top: 4px; display: block; }
.nos-intro-img { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.nos-intro-img img { width: 100%; height: 480px; object-fit: cover; display: block; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tcard-person { background: var(--white); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--tr); }
.tcard-person:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tcard-foto { height: 260px; background-size: cover; background-position: center top; }
.tcard-info { padding: 24px; }
.tcard-nombre { font-family: var(--ff-head); font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 3px; }
.tcard-cargo { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); margin-bottom: 12px; }
.tcard-bio { font-size: .875rem; color: var(--text-muted); line-height: 1.65; }
.tcard-person--sin-foto { border-top: 3px solid var(--accent); }
.tcard-person--sin-foto .tcard-info { padding-top: 28px; text-align: center; }
.tcard-person--sin-foto .tcard-nombre { text-align: center; }
.tcard-person--sin-foto .tcard-cargo { text-align: center; }
.tcard-person--sin-foto .tcard-bio { text-align: center; }
.tcard-avatar-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--cream); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; border: 2px solid var(--accent); }
.tcard-avatar-icon i { font-size: 1.6rem; color: var(--accent); }

/* ── TESTIMONIOS ────────────────────────────────────────── */
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tcard { background: var(--white); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-sm); border-top: 3px solid var(--accent); }
.t-stars { color: var(--accent); font-size: .95rem; margin-bottom: 12px; }
.t-text  { color: var(--text); font-size: .92rem; line-height: 1.72; margin-bottom: 18px; font-style: italic; }
.t-author { display: flex; align-items: center; gap: 12px; }
.t-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-light)); display: flex; align-items: center; justify-content: center; font-family: var(--ff-head); font-weight: 700; color: var(--white); font-size: .95rem; flex-shrink: 0; }
.t-info strong { display: block; font-size: .88rem; color: var(--text); }
.t-info span   { font-size: .78rem; color: var(--text-muted); }

/* ── FOOTER ─────────────────────────────────────────────── */
.footer { background: var(--primary-dark); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.f-desc { color: rgba(255,255,255,.55); font-size: .88rem; line-height: 1.75; margin: 16px 0 22px; }
.f-social { display: flex; gap: 10px; }
.fsoc { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.65); font-size: .95rem; transition: var(--tr); border: 1px solid rgba(255,255,255,.1); }
.fsoc:hover { background: var(--accent); color: var(--primary-dark); border-color: var(--accent); }
.f-col h4 { color: var(--accent); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 20px; font-family: var(--ff-body); font-weight: 700; }
.f-links { display: flex; flex-direction: column; gap: 10px; }
.f-links a { color: rgba(255,255,255,.55); font-size: .88rem; transition: var(--tr); }
.f-links a:hover { color: var(--accent); padding-left: 4px; }
.f-contact-item { display: flex; align-items: flex-start; gap: 10px; color: rgba(255,255,255,.55); font-size: .88rem; margin-bottom: 12px; }
.f-contact-item i { color: var(--accent); margin-top: 3px; width: 14px; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { color: rgba(255,255,255,.38); font-size: .78rem; }
.footer-bottom a { color: var(--accent); }
.footer-admin-link { color: rgba(255,255,255,.22) !important; font-size: .72rem; text-decoration: none; transition: color .2s; }
.footer-admin-link:hover { color: rgba(255,255,255,.55) !important; }

/* ── WHATSAPP ───────────────────────────────────────────── */
.wa-float { position: fixed; bottom: 28px; right: 28px; z-index: 999; width: 72px; height: 72px; border-radius: 50%; background: #25D366; color: white; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,.45); font-size: 2.1rem; transition: var(--tr); animation: wapulse 2.5s infinite; }
.wa-float:hover { transform: scale(1.1); }
@keyframes wapulse { 0%,100%{box-shadow:0 4px 20px rgba(37,211,102,.45)} 50%{box-shadow:0 4px 34px rgba(37,211,102,.75)} }

/* ── PAGE HERO (otras páginas) ──────────────────────────── */
.page-hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: calc(var(--navbar-actual-h, 112px) + 30px) 0 40px; position: relative; overflow: hidden; }
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p  { color: rgba(255,255,255,.68); }
.page-hero .breadcrumb { color: rgba(255,255,255,.5); }
.page-hero .breadcrumb a { color: var(--accent); }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--text-muted); margin-bottom: 8px; }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb i { font-size: .65rem; }

/* ── CATÁLOGO PAGE (propiedades.php) ────────────────────── */
.catalog-page-wrap { padding-top: calc(var(--navbar-actual-h, 112px) + 16px); background: var(--bg-light, #F7F6F3); min-height: 100vh; }
.catalog-page-header { padding: 28px 0 0; }
.catalog-page-title { font-family: var(--ff-head); font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--primary-dark); font-weight: 700; margin: 6px 0 20px; }

/* ── CATÁLOGO ───────────────────────────────────────────── */
.catalog-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 0 0 80px; }
.filters-panel { position: sticky; top: 90px; align-self: start; }
.fcard { background: var(--white); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid #F0EDE7; }
.fcard-title { font-family: var(--ff-head); font-size: 1.05rem; color: var(--primary); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--gray-light); display: flex; align-items: center; gap: 8px; }
.fgroup { margin-bottom: 22px; }
.fgroup label { display: block; font-size: .75rem; font-weight: 700; color: var(--text); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .05em; }
.fgroup select, .fgroup input { width: 100%; padding: 10px 12px; border: 1.5px solid #E5E7EB; border-radius: var(--r); font-size: .88rem; transition: border-color .2s; }
.fgroup select:focus, .fgroup input:focus { outline: none; border-color: var(--primary); }
.fchk-list { display: flex; flex-direction: column; gap: 8px; }
.fchk { display: flex; align-items: center; gap: 8px; font-size: .88rem; cursor: pointer; color: var(--text); }
.fchk input[type=checkbox] { accent-color: var(--primary); width: 16px; height: 16px; }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filter-apply { width: 100%; padding: 12px; background: var(--primary); color: white; border-radius: var(--r); font-weight: 600; font-size: .9rem; transition: var(--tr); border: none; cursor: pointer; }
.filter-apply:hover { background: var(--primary-dark); }
.filter-reset { width: 100%; padding: 9px; background: transparent; color: var(--text-muted); border: none; font-size: .82rem; cursor: pointer; margin-top: 6px; transition: color .2s; }
.filter-reset:hover { color: var(--primary); }

.catalog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.catalog-count { color: var(--text-muted); font-size: .92rem; }
.catalog-count strong { color: var(--text); }
.catalog-sort select { padding: 8px 12px; border: 1.5px solid #E5E7EB; border-radius: var(--r); font-size: .88rem; }

/* ── DETALLE PROPIEDAD ──────────────────────────────────── */
.detail-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; padding: 48px 0 80px; }
/* ── GALERÍA GRID ──────────────────────────────────────── */
.gallery-empty { height: 280px; background: var(--gray-light); border-radius: var(--r-lg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--text-muted); }
.gallery-empty i { font-size: 2.2rem; }

.gallery-grid {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  height: 460px;
  margin-bottom: 5px;
  cursor: pointer;
}
.gallery-grid.gallery-single { margin-bottom: 28px; }

.gg-main { height: 100%; overflow: hidden; position: relative; }
.gg-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .38s ease; display: block; }
.gallery-grid:hover .gg-main img { transform: scale(1.03); }

.gg-main-pill {
  display: flex;
  position: absolute; bottom: 14px; right: 14px;
  background: rgba(0,0,0,.62); color: #fff;
  padding: 5px 13px; border-radius: 20px;
  font-size: .82rem; font-weight: 600;
  align-items: center; gap: 6px;
  pointer-events: none;
}

/* Tira horizontal de thumbnails debajo de la imagen principal */
.gg-strip {
  display: flex;
  gap: 5px;
  height: 96px;
  margin-bottom: 28px;
}
.gg-strip-item {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 10px;
}
.gg-strip-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
  display: block;
}
.gg-strip-item:hover img { transform: scale(1.08); }
.gg-strip-more img { opacity: .6; }
.gg-strip-ovl {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.52);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px; color: #fff;
  font-weight: 700; font-size: .85rem;
  transition: background .22s;
  pointer-events: none;
}
.gg-strip-ovl i { font-size: 1.4rem; }
.gg-strip-more:hover .gg-strip-ovl { background: rgba(0,0,0,.72); }

/* Video en galería */
#ggVideoFrame {
  display: none;
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none;
  z-index: 2;
}
.gg-strip-video { cursor: pointer; }
.gg-strip-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.38);
  transition: background .2s;
  pointer-events: none;
}
.gg-strip-play i { font-size: 1.9rem; color: #fff; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); transition: transform .2s; }
.gg-strip-video:hover .gg-strip-play { background: rgba(0,0,0,.6); }
.gg-strip-video:hover .gg-strip-play i { transform: scale(1.15); }

/* ── LIGHTBOX ──────────────────────────────────────────── */
.lightbox { display: none; position: fixed; inset: 0; z-index: 9500; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.94); backdrop-filter: blur(10px); }
.lb-box { position: relative; z-index: 1; width: min(96vw, 1120px); display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 0 14px; }
.lb-close { position: absolute; top: -48px; right: 0; background: rgba(255,255,255,.14); border: none; color: #fff; width: 42px; height: 42px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; z-index: 2; }
.lb-close:hover { background: rgba(255,255,255,.3); }
.lb-viewer { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; min-height: 160px; }
#lbImg { max-width: 100%; max-height: 70vh; object-fit: contain; border-radius: 10px; display: block; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.16); border: none; color: #fff; font-size: 1.1rem; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; z-index: 2; }
.lb-nav:hover { background: rgba(255,255,255,.34); }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-strip { display: flex; gap: 7px; overflow-x: auto; padding: 2px 4px; max-width: 100%; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.lb-strip::-webkit-scrollbar { height: 4px; }
.lb-strip::-webkit-scrollbar-thumb { background: rgba(255,255,255,.25); border-radius: 2px; }
.lb-thumb { flex-shrink: 0; width: 84px; height: 58px; border-radius: 7px; overflow: hidden; cursor: pointer; border: 2px solid transparent; opacity: .5; transition: opacity .2s, border-color .2s; }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumb:hover { opacity: .82; }
.lb-thumb.active { border-color: #fff; opacity: 1; }
.lb-counter { color: rgba(255,255,255,.6); font-size: .84rem; }

.detail-body { padding: 28px 0; }
.detail-tags { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.detail-title { font-family: var(--ff-head); font-size: 1.9rem; color: var(--text); margin-bottom: 10px; }
.detail-loc { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: .98rem; margin-bottom: 22px; }
.price-box { background: var(--cream); border-radius: var(--r-lg); padding: 20px 24px; margin-bottom: 22px; border-left: 4px solid var(--accent); }
.d-uf  { font-family: var(--ff-head); font-size: 2rem; color: var(--primary); }
.d-m2  { font-size: .82rem; color: var(--text-muted); margin-top: 5px; font-weight: 600; }
.d-m2 i { color: var(--accent); margin-right: 4px; font-size: .75rem; }
.d-clp { font-size: .98rem; color: var(--text-muted); margin-top: 4px; }
.detail-actions { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.dact-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 100px; font-size: .82rem; font-weight: 600; transition: var(--tr); cursor: pointer; border: 1.5px solid var(--border); background: var(--white); color: var(--text-muted); }
.dact-btn:hover { border-color: var(--primary); color: var(--primary); }
.dact-wa { border-color: #bbf7d0; color: #16a34a; background: #f0fdf4; }
.dact-wa:hover { background: #25D366; color: white; border-color: #25D366; }
.uf-ref { font-size: .82rem; color: var(--accent); font-weight: 600; }
.d-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 26px; }
.dfeat { text-align: center; padding: 14px 8px; background: var(--white); border: 1px solid #E5E7EB; border-radius: var(--r); }
.dfeat i { font-size: 1.2rem; color: var(--primary); margin-bottom: 4px; display: block; }
.dfeat strong { display: block; font-size: .98rem; color: var(--text); }
.dfeat span   { font-size: .72rem; color: var(--text-muted); }
.d-desc h3 { font-family: var(--ff-head); font-size: 1.15rem; color: var(--primary); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--gray-light); }
.d-desc p  { color: var(--text); font-size: .93rem; line-height: 1.82; }
.d-extras { margin-top: 24px; }
.d-extras h3 { font-family: var(--ff-head); font-size: 1.05rem; color: var(--primary); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--gray-light); }
.extras-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.extra-item { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--text); }
.extra-item i { color: var(--primary-light); width: 14px; }

/* ── Planos ─────────────────────────────────────────────── */
.d-planos { margin-top: 28px; }
.d-planos-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--gray-light); }
.d-planos-header h3 { font-family: var(--ff-head); font-size: 1.05rem; color: var(--primary); display: flex; align-items: center; gap: 8px; margin: 0; border: none; padding: 0; }
.plano-toggle { display: flex; gap: 6px; }
.plano-toggle-btn { display: flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 20px; font-size: .8rem; font-weight: 600; border: 2px solid var(--gray-light); color: var(--text-muted); background: var(--white); transition: var(--tr); cursor: pointer; }
.plano-toggle-btn:hover { border-color: var(--primary); color: var(--primary); }
.plano-toggle-btn.active { background: var(--primary); border-color: var(--primary); color: var(--white); }
.plano-imagen-wrap { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--gray-light); background: var(--cream); text-align: center; }
.plano-img { max-width: 100%; max-height: 480px; object-fit: contain; margin: 0 auto; display: block; padding: 12px; }
.plano-descarga-wrap { display: flex; justify-content: center; align-items: center; padding: 32px; background: var(--cream); border-radius: var(--r-lg); border: 2px dashed var(--gray-light); }
.plano-descarga-wrap--oculta { display: none; }
.btn-plano-pdf { display: inline-flex; align-items: center; gap: 10px; background: #DC2626; color: #fff; padding: 14px 28px; border-radius: var(--r); font-weight: 600; font-size: .95rem; transition: var(--tr); }
.btn-plano-pdf:hover { background: #b91c1c; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.plano-pdf-link-bajo { margin-top: 10px; text-align: right; }
.plano-pdf-link-bajo a { font-size: .8rem; color: var(--text-muted); display: inline-flex; align-items: center; gap: 5px; transition: color .2s; }
.plano-pdf-link-bajo a:hover { color: #DC2626; }

.detail-sidebar { position: sticky; top: 100px; align-self: start; display: flex; flex-direction: column; gap: 18px; }
.agent-card { background: var(--white); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-md); border: 1px solid #F0EDE7; }
.agent-info { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.agent-av { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-light)); display: flex; align-items: center; justify-content: center; font-family: var(--ff-head); font-size: 1.2rem; color: white; font-weight: 700; }
.agent-name { font-weight: 700; color: var(--text); font-size: .93rem; }
.agent-role { color: var(--text-muted); font-size: .78rem; }
.agent-contact-btns { display: flex; flex-direction: column; gap: 10px; }
.btn-wa { width: 100%; padding: 13px; border-radius: var(--r); background: #25D366; color: white; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .92rem; transition: var(--tr); border: none; cursor: pointer; }
.btn-wa:hover { background: #20ba5a; }
.btn-tel { width: 100%; padding: 12px; border-radius: var(--r); background: transparent; border: 2px solid var(--primary); color: var(--primary); font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .92rem; transition: var(--tr); cursor: pointer; }
.btn-tel:hover { background: var(--primary); color: white; }
.contact-form-card { background: var(--white); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm); border: 1px solid #F0EDE7; }
.contact-form-card h3 { font-family: var(--ff-head); font-size: 1rem; color: var(--primary); margin-bottom: 18px; }
.fgl { margin-bottom: 12px; }
.fgl label { display: block; font-size: .73rem; font-weight: 700; color: var(--text-muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .04em; }
.fgl input, .fgl select, .fgl textarea { width: 100%; padding: 10px 12px; border: 1.5px solid #E5E7EB; border-radius: var(--r); font-size: .88rem; color: var(--text); transition: border-color .2s; }
.fgl input:focus, .fgl select:focus, .fgl textarea:focus { outline: none; border-color: var(--primary); }
.fgl textarea { resize: vertical; min-height: 90px; }
.map-box { border-radius: var(--r-lg); height: 220px; overflow: hidden; position: relative; border: 1px solid #E5E7EB; }
.map-box iframe { width: 100%; height: 100%; display: block; }
.map-open-link { position: absolute; bottom: 10px; right: 10px; background: var(--white); color: var(--primary); font-size: .75rem; font-weight: 600; padding: 5px 10px; border-radius: 20px; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 5px; transition: var(--tr); }
.map-open-link:hover { background: var(--primary); color: var(--white); }
.map-box i { font-size: 1.8rem; color: var(--primary); }

/* ── ANIMACIONES ────────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2){transition-delay:.1s}
.fade-up:nth-child(3){transition-delay:.2s}
.fade-up:nth-child(4){transition-delay:.3s}
.fade-up:nth-child(5){transition-delay:.4s}
.fade-up:nth-child(6){transition-delay:.5s}

/* ── PUBLICAR PAGE ──────────────────────────────────────── */
.pub-page-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; padding: 80px 0; align-items: start; }
.pub-info h2 { color: var(--primary); margin-bottom: 10px; }
.pub-info p  { color: var(--text-muted); line-height: 1.75; margin-bottom: 28px; }
.pub-steps  { display: flex; flex-direction: column; gap: 18px; }
.pstep { display: flex; gap: 14px; align-items: flex-start; }
.pstep-num { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--primary-dark); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; flex-shrink: 0; }
.pstep-text strong { display: block; color: var(--text); font-size: .92rem; margin-bottom: 2px; }
.pstep-text span   { color: var(--text-muted); font-size: .82rem; }
.pub-full-form { background: var(--white); border-radius: var(--r-lg); padding: 40px; box-shadow: var(--shadow-md); border: 1px solid #F0EDE7; }
.pub-full-form h3 { font-family: var(--ff-head); font-size: 1.3rem; color: var(--primary); margin-bottom: 8px; }
.pub-full-form > p { color: var(--text-muted); font-size: .88rem; margin-bottom: 28px; }
.form-section-title { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--primary-light); margin: 20px 0 14px; padding-top: 16px; border-top: 1px solid var(--gray-light); }
.form-section-title:first-of-type { border-top: none; margin-top: 0; }
.fgl-full { margin-bottom: 14px; }
.fgl-full label { display: block; font-size: .75rem; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.fgl-full input, .fgl-full select, .fgl-full textarea { width: 100%; padding: 11px 14px; border: 1.5px solid #E5E7EB; border-radius: var(--r); font-size: .9rem; color: var(--text); transition: border-color .2s; }
.fgl-full input:focus, .fgl-full select:focus, .fgl-full textarea:focus { outline: none; border-color: var(--primary); }
.fgl-full textarea { resize: vertical; min-height: 110px; }
.frow { display: grid; gap: 12px; }
.frow-2 { grid-template-columns: 1fr 1fr; }
.frow-3 { grid-template-columns: 1fr 1fr 1fr; }
.upload-box { border: 2px dashed #D1D5DB; border-radius: var(--r-lg); padding: 32px; text-align: center; cursor: pointer; transition: var(--tr); }
.upload-box:hover { border-color: var(--primary); background: rgba(27,67,50,.03); }
.upload-box i { font-size: 2rem; color: var(--gray); display: block; margin-bottom: 10px; }
.upload-box p { color: var(--text-muted); font-size: .88rem; }
.upload-box strong { color: var(--primary); }
.form-check { display: flex; align-items: flex-start; gap: 10px; font-size: .85rem; color: var(--text-muted); margin-bottom: 18px; }
.form-check input[type=checkbox] { accent-color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.form-check a { color: var(--primary); font-weight: 600; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .prop-slide-wrap { height: calc(100vh - 200px); min-height: 500px; }
  .prop-slide-content { padding: 28px 28px; max-width: 460px; }
  .why-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .catalog-layout { grid-template-columns: 200px 1fr; }
}
@media (max-width: 900px) {
  .props-grid { grid-template-columns: 1fr 1fr; }
  .props-grid--3col .pcard { flex: 1 1 calc(50% - 12px); max-width: calc(50% - 12px); }
  .pub-cta-btns { flex-direction: column; align-items: center; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .pub-page-layout { grid-template-columns: 1fr; gap: 40px; }
  .catalog-layout  { grid-template-columns: 1fr; }
  .filters-panel   { position: static; }
  .gallery-grid { height: 380px; }
  .gg-strip { height: 78px; }
}
@media (max-width: 768px) {
  .logo-img  { height: calc(var(--logo-h, 105px) * .82); }
  .wa-float  { width: 62px; height: 62px; font-size: 1.8rem; bottom: 20px; right: 20px; }
  .hamburger { display: flex; }
  .nav-links  { display: none; position: fixed; inset: 0; background: var(--primary-dark); flex-direction: column; justify-content: center; align-items: center; gap: 32px; z-index: 999; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.2rem; }
  .nav-cta { display: block; }
  .search-box      { border-radius: 16px; padding: 12px; }
  .search-row      { flex-wrap: wrap; gap: 8px; }
  .search-sep      { display: none; }
  .sf-pill         { flex: 1 1 calc(50% - 4px); min-width: 0; border: 1.5px solid #E5E7EB; border-radius: 10px; padding: 4px 12px; }
  .sf-pill--trigger { flex: 1 1 100%; min-width: 0; }
  .sf-pill select  { padding: 10px 0; }
  .search-btn-pill { flex: 1 1 100%; justify-content: center; border-radius: 10px; }
  /* Dropdown como panel inferior en móvil */
  .sf-dropdown     { position: fixed; bottom: 0; left: 0; right: 0; top: auto; width: auto; border-radius: 20px 20px 0 0; padding: 24px; max-height: 80vh; overflow-y: auto; z-index: 1000; }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .test-grid     { grid-template-columns: 1fr; }
  .d-feats       { grid-template-columns: repeat(2, 1fr); }
  .frow-3        { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .logo-img  { height: calc(var(--logo-h, 105px) * .69); }
  .wa-float  { width: 54px; height: 54px; font-size: 1.55rem; bottom: 16px; right: 16px; }
  .props-grid    { grid-template-columns: 1fr; }
  .props-grid--3col .pcard { flex: 1 1 100%; max-width: 100%; }
  .sf-pill { flex: 1 1 100%; }
  .prop-slide-wrap { height: calc(100vh - 180px); min-height: 420px; }
  .prop-slide-content { padding: 22px 20px; max-width: 100%; border-radius: 12px; }
  .prop-slide-stats { gap: 14px; margin-bottom: 24px; padding-bottom: 24px; }
  .prop-slide-arrow { width: 40px; height: 40px; }
  .prop-slide-prev { left: 12px; }
  .prop-slide-next { right: 12px; }
  .prop-slide-dots { left: 20px; bottom: 18px; }
  .prop-slide-counter { top: 14px; right: 14px; }
  .footer-grid   { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .frow-2,.frow-3{ grid-template-columns: 1fr; }
  .fg-row        { grid-template-columns: 1fr; }
  .extras-grid   { grid-template-columns: 1fr; }
  /* Galería móvil: solo foto principal */
  .gallery-grid { height: 240px; }
  .gg-strip { height: 64px; gap: 3px; }
  .gg-strip-item { border-radius: 6px; }
  /* Lightbox móvil */
  .lb-nav { width: 38px; height: 38px; font-size: .9rem; }
  .lb-prev { left: 4px; }
  .lb-next { right: 4px; }
  .lb-thumb { width: 64px; height: 46px; }
}

/* ─── Cómo funciona ───────────────────────────────────── */
.como-funciona { background: var(--white); }
.cf-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-top: 56px;
}
.cf-step {
  flex: 1;
  max-width: 220px;
  text-align: center;
  padding: 0 16px;
  position: relative;
}
.cf-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 28px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  font-size: .75rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.cf-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 1.8rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  transition: var(--tr);
}
.cf-step:hover .cf-icon { background: var(--accent); transform: translateY(-4px); }
.cf-step h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.cf-step p { font-size: .88rem; color: var(--text-muted); line-height: 1.65; }
.cf-arrow {
  color: var(--accent);
  font-size: 1.3rem;
  margin-top: 28px;
  opacity: .5;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .cf-steps { flex-direction: column; align-items: center; gap: 36px; }
  .cf-arrow { transform: rotate(90deg); margin: 0; }
  .cf-step { max-width: 280px; }
}

/* ─── Testimonios ─────────────────────────────────────── */
.testi-section { background: #f7f6f3; }
.testi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 48px; }
.testi-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: var(--tr);
  border: 1px solid transparent;
}
.testi-card:hover { transform: translateY(-5px); box-shadow: 0 10px 36px rgba(0,0,0,.1); border-color: var(--accent); }
.testi-stars { display: flex; gap: 4px; }
.star-on  { color: var(--accent); }
.star-off { color: #ddd; }
.testi-text { font-size: .97rem; line-height: 1.8; color: var(--text); font-style: italic; flex: 1; }
.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.testi-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.testi-name { font-weight: 600; font-size: .93rem; color: var(--dark); }
.testi-meta { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }

/* ─── 404 ─────────────────────────────────────────────── */
.e404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  background: #f7f6f3;
  position: relative;
  overflow: hidden;
}
.e404-deco {
  position: absolute;
  border-radius: 50%;
  opacity: .06;
  background: var(--primary);
  pointer-events: none;
}
.e404-deco--1 { width: 600px; height: 600px; top: -180px; right: -160px; }
.e404-deco--2 { width: 400px; height: 400px; bottom: -120px; left: -120px; }

.e404-inner { text-align: center; position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }

/* Número estilizado */
.e404-number {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}
.e404-digit {
  font-family: var(--ff-head);
  font-size: clamp(5rem, 16vw, 10rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -4px;
}
.e404-circle {
  width: clamp(80px, 14vw, 130px);
  height: clamp(80px, 14vw, 130px);
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(2rem, 5vw, 3.8rem);
  color: var(--white);
  flex-shrink: 0;
  box-shadow: 0 12px 40px rgba(201,168,76,.35);
}

.e404-divider {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto 32px;
  border-radius: 2px;
}

.e404-title {
  font-family: var(--ff-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--dark);
  margin-bottom: 18px;
  line-height: 1.2;
}
.e404-sub {
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.8;
  margin-bottom: 44px;
}

.e404-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: .9rem;
  border: 2px solid var(--dark);
  color: var(--dark);
  background: transparent;
  transition: var(--tr);
  text-decoration: none;
}
.btn-outline-dark:hover { background: var(--dark); color: var(--white); }

.e404-hint {
  font-size: .88rem;
  color: var(--text-muted);
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--r-md);
  padding: 14px 20px;
  display: inline-block;
}
.e404-hint a { color: var(--primary); font-weight: 600; text-decoration: underline; }
