/* ════════════════════════════════════════════════════
   INOCENTES CONTRERAS INMOBILIARIA — STYLES
   Paleta : #0B0B0B · #D4AF37 · #1A1A1A · #EAEAEA
   Fuentes: Playfair Display (títulos) · Poppins (texto)
════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────── */
:root {
  --black:       #0B0B0B;
  --black-alt:   #111111;
  --dark:        #1A1A1A;
  --gold:        #D4AF37;
  --gold-glow:   rgba(212,175,55,.18);
  --gold-border: rgba(212,175,55,.22);

  /* Secciones claras */
  --light-bg:    #ffffff;
  --light-bg2:   #f8f6f1;
  --text-dark:   #0B0B0B;
  --text-mid:    #444444;
  --text-muted:  #888888;
  --border-light: rgba(0,0,0,.08);

  /* Texto sobre fondo oscuro */
  --white:       #EAEAEA;
  --muted:       #6b6b6b;
  --muted-light: #999;

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Poppins', Arial, sans-serif;

  --ease:      cubic-bezier(.16,1,.3,1);
  --ease-out:  cubic-bezier(.25,.46,.45,.94);
  --dur:       .35s;

  --max:    1220px;
  --pad:    clamp(1.25rem, 5vw, 3rem);
  --gap:    clamp(1rem, 3vw, 1.75rem);
  --radius: 4px;

  /* Sombras 3D para cards */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.05);
  --shadow-md:  0 4px 16px rgba(0,0,0,.08), 0 12px 32px rgba(0,0,0,.07);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.13), 0 32px 64px rgba(0,0,0,.09), 0 2px 6px rgba(0,0,0,.06);
  --shadow-xl:  0 20px 60px rgba(0,0,0,.18), 0 40px 80px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.08);
}

/* ── Reset ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img    { display: block; max-width: 100%; height: auto; }
a      { color: inherit; text-decoration: none; }
ul     { list-style: none; }
button { cursor: pointer; font-family: var(--sans); border: none; background: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ── Botones ────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.8rem;
  font-family: var(--sans); font-size: .7rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  border-radius: var(--radius); border: 1px solid transparent;
  transition: background var(--dur), color var(--dur),
              border-color var(--dur), box-shadow var(--dur), transform var(--dur);
  white-space: nowrap; cursor: pointer;
}
.btn--gold { background: var(--gold); color: var(--black); border-color: var(--gold); }
.btn--gold:hover {
  background: transparent; color: var(--gold);
  box-shadow: 0 0 22px var(--gold-glow); transform: translateY(-2px);
}
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.25); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn--lg  { padding: .9rem 2.4rem; font-size: .72rem; }
.btn--sm  { padding: .45rem 1rem; font-size: .62rem; }
.btn--full { width: 100%; justify-content: center; }

/* Botones del admin (sobre fondo blanco) */
.btn--admin-exit {
  background: transparent; color: var(--text-mid); border: 1px solid var(--border-light);
  font-family: var(--sans); font-size: .68rem; font-weight: 500;
  padding: .5rem 1.1rem; border-radius: var(--radius); cursor: pointer;
  transition: all var(--dur);
}
.btn--admin-exit:hover { border-color: #cc3333; color: #cc3333; }

.btn--admin-outline {
  background: transparent; color: var(--text-mid); border: 1px solid var(--border-light);
  font-family: var(--sans); font-size: .68rem; font-weight: 500;
  padding: .5rem 1.2rem; border-radius: var(--radius); cursor: pointer;
  letter-spacing: .1em; text-transform: uppercase;
  transition: all var(--dur);
}
.btn--admin-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ════════════════════════════════════════
   LOADER
════════════════════════════════════════ */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .7s var(--ease), visibility .7s;
}
.loader.out { opacity: 0; visibility: hidden; }

.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 2.5rem; }

.loader__logo {
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  animation: loaderFadeUp .8s var(--ease) .2s both;
}
.loader__logo-top {
  font-family: var(--serif); font-size: clamp(1.5rem,4vw,2.2rem);
  font-weight: 700; letter-spacing: .12em; color: var(--gold);
}
.loader__logo-sep { display: block; width: 40px; height: 1px; background: var(--gold-border); }
.loader__logo-bot {
  font-size: .6rem; font-weight: 400; letter-spacing: .5em;
  text-transform: uppercase; color: var(--muted-light);
}
.loader__bar-wrap {
  width: min(320px,80vw); height: 1px;
  background: rgba(255,255,255,.08); overflow: hidden;
  animation: loaderFadeUp .6s var(--ease) .5s both;
}
.loader__bar {
  height: 100%; width: 0;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, var(--gold));
  animation: loaderBar 2.3s var(--ease-out) .6s forwards;
}
@keyframes loaderBar {
  0%   { width: 0;    opacity: 1; }
  80%  { width: 100%; opacity: 1; }
  100% { width: 100%; opacity: 0; }
}
@keyframes loaderFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════
   NAVBAR
════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .5s var(--ease), border-color .5s, backdrop-filter .5s, box-shadow .5s;
}
.navbar--solid {
  background: rgba(11,11,11,.93); backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--gold-border);
  box-shadow: 0 4px 40px rgba(0,0,0,.6);
}
.navbar__container { display: flex; align-items: center; height: 76px; gap: 2rem; }

.navbar__brand { display: flex; flex-direction: column; gap: .18rem; flex-shrink: 0; transition: opacity var(--dur); }
.navbar__brand:hover { opacity: .78; }
.navbar__brand-name {
  font-family: var(--serif); font-size: 1.0rem; font-weight: 700;
  letter-spacing: .1em; color: var(--gold); line-height: 1;
}
.navbar__brand-type { font-size: .70rem; letter-spacing: .42em; text-transform: uppercase; color: var(--muted-light); }

.navbar__nav { display: flex; gap: 2rem; margin-left: auto; }
.navbar__link {
  font-size: .80rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(234,234,234,.65); position: relative; transition: color var(--dur);
}
.navbar__link::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width var(--dur) var(--ease);
}
.navbar__link:hover, .navbar__link.active { color: var(--gold); }
.navbar__link:hover::after, .navbar__link.active::after { width: 100%; }

.navbar__cta { flex-shrink: 0; padding: .55rem 1.4rem; font-size: .65rem; }
.navbar__burger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.navbar__burger span { display: block; width: 22px; height: 1px; background: var(--gold); transition: transform var(--dur), opacity var(--dur); }
.navbar__burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.navbar__burger.open span:nth-child(2) { opacity: 0; }
.navbar__burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.navbar__mobile {
  display: none; flex-direction: column; gap: 1.2rem;
  padding: 1.5rem var(--pad) 2rem;
  background: rgba(11,11,11,.97); border-top: 1px solid var(--gold-border);
}
.navbar__mobile.open { display: flex; }

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
.hero {
  position: relative; height: 100svh; min-height: 600px;
  display: flex; align-items: center; overflow: hidden;
}
.hero__bg-wrap {
  position: absolute; inset: -15%; z-index: 0; will-change: transform;
}
.hero__bg-img {
  width: 100%; height: 100%; object-fit: cover;
  transform-origin: center center;
  
}
@keyframes cinematicLoop {
  0%   { transform: scale(1)    translate(0%,    0%); }
  20%  { transform: scale(1.08) translate(-1.5%, -0.8%); }
  45%  { transform: scale(1.12) translate(1%,   -1.2%); }
  65%  { transform: scale(1.08) translate(1.5%,  0.5%); }
  85%  { transform: scale(1.04) translate(-0.5%, 0.8%); }
  100% { transform: scale(1)    translate(0%,    0%); }
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.42) 0%,
    rgba(0,0,0,0.22) 50%, 
    rgba(0,0,0,0.50) 100%);
}
.hero__content { position: relative; z-index: 2; max-width: 780px; }

.hero__eyebrow {
  font-size: .65rem; font-weight: 500; letter-spacing: .38em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.4rem;
  opacity: 0; animation: fadeUp .7s var(--ease) 3s both;
}
.hero__logo-wrap {
  margin-bottom: 1.8rem;
  opacity: 0; animation: logoReveal 1.2s var(--ease) 3.2s both;
  
}
.hero__logo {
  max-width: min(420px,72vw); height: auto;
  filter: drop-shadow(0 0 28px rgba(212,175,55,.35)) drop-shadow(0 2px 12px rgba(0,0,0,.7));
   
}
@keyframes logoReveal {
  0%   { opacity: 0; transform: scale(.94) translateY(16px); filter: blur(4px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.hero__subtitle {
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--sans);
  font-size: clamp(.8rem, 1.5vw, 1rem);
  font-weight: 300;
  letter-spacing: .48em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.866);
  margin-bottom: 2.5rem;
  opacity: 0; animation: fadeUp .7s var(--ease) 3.5s both;
}
.hero__subtitle-sep {
  display: inline-block;
  width: 22px; height: 1px;
  background: var(--gold);
  opacity: .7;
  flex-shrink: 0;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; opacity: 0; animation: fadeUp .7s var(--ease) 3.7s both; }

.hero__scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .5rem;
  opacity: 0; animation: fadeIn .8s ease 4.2s both;
}
.hero__scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{transform:scaleY(1);opacity:.6;} 50%{transform:scaleY(1.3);opacity:1;} }
.hero__scroll-text { font-size: .55rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }

/* ════════════════════════════════════════
   STATS — fondo oscuro
════════════════════════════════════════ */
.stats {
  background: var(--dark);
  border-top: 1px solid var(--gold-border); border-bottom: 1px solid var(--gold-border);
  padding: clamp(2.5rem,5vw,4rem) 0;
}
.stats__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; }
.stats__item {
  padding: 2rem; text-align: center;
  border-right: 1px solid var(--gold-border);
  transition-delay: var(--sd, 0s);
}
.stats__item:last-child { border-right: none; }
.stats__number-wrap { display: inline-flex; align-items: flex-start; gap: .1rem; margin-bottom: .5rem; }
.stats__number {
  font-family: var(--serif); font-size: clamp(2.5rem,4vw,3.8rem);
  font-weight: 700; color: var(--gold); line-height: 1;
}
.stats__sup { font-family: var(--serif); font-size: clamp(1.2rem,2vw,1.8rem); font-weight: 700; color: var(--gold); line-height: 1.1; }
.stats__label { font-size: 1.0rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-light); }

/* ════════════════════════════════════════
   SECTION BASE
════════════════════════════════════════ */
.section { padding: clamp(5rem,10vw,9rem) 0; }

/* Secciones con fondo blanco */
.section--light {
  background: var(--light-bg);
  color: var(--text-dark);
}

/* ── Section headers ── */
.section-hdr { display: flex; align-items: flex-start; gap: 2rem; margin-bottom: clamp(2.5rem,5vw,4.5rem); }
.section-hdr__num {
  font-family: var(--serif); font-size: 4rem; font-weight: 700;
  color: var(--gold-border); line-height: 1; flex-shrink: 0;
  margin-top: -.2rem; user-select: none;
}
/* Número en sección clara */
.section-hdr__num--light { color: rgba(212,175,55,.25); }

.section-hdr__eyebrow {
  font-size: 1.0rem; font-weight: 500; letter-spacing: .35em;
  text-transform: uppercase; color: var(--gold); margin-bottom: .6rem;
}
.section-hdr__title {
  font-family: var(--serif); font-size: clamp(2rem,4.5vw,3.2rem);
  font-weight: 500; color: var(--white); line-height: 1.2;
}
/* Título en sección clara */
.section-hdr__title--dark { color: var(--text-dark); }

/* ════════════════════════════════════════
   FILTER PILLS (sección blanca)
════════════════════════════════════════ */
.filter-row { display: flex; gap: .6rem; margin-bottom: clamp(2rem,4vw,3.5rem); flex-wrap: wrap; }
.filter-pill {
  padding: .5rem 1.4rem; font-size: 1.0rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted); border: 1px solid rgba(0,0,0,.12);
  border-radius: 30px; transition: all var(--dur); background: transparent;
}
.filter-pill:hover { border-color: var(--gold); color: var(--gold); }
.filter-pill--on { background: var(--gold); color: var(--black); border-color: var(--gold); font-weight: 600; }

/* ════════════════════════════════════════
   PROPERTY GRID + CARDS — efecto 3D
════════════════════════════════════════ */
.props-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: var(--gap);
}

/* La card es una foto completa con overlay — todas cuadradas */
.prop-card {
  position: relative; overflow: hidden;
  border-radius: 8px; cursor: pointer;
  aspect-ratio: 1/1; background: #e8e4dc;
  /* Sombra 3D en reposo */
  box-shadow: var(--shadow-md);
  transition:
    transform .5s var(--ease),
    box-shadow .5s var(--ease);
  border: 1px solid rgba(0,0,0,.05);
  /* Perspectiva 3D sutil */
  transform-style: preserve-3d;
}

/* Hover: levanta la card con sombra 3D profunda */
.prop-card:hover {
  transform: translateY(-10px) scale(1.015);
  box-shadow: var(--shadow-xl);
}

/* Imagen */
.prop-card__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
  will-change: transform;
}
.prop-card:hover .prop-card__img { transform: scale(1.06); }

/* Badge */
.prop-card__badge {
  position: absolute; top: 1.1rem; left: 1.1rem; z-index: 3;
  padding: .28rem .8rem; background: var(--gold); color: var(--black);
  font-size: .7rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/* Overlay de info */
.prop-card__overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.6rem;
  background: linear-gradient(to top,
    rgba(11,11,11,.97) 0%, rgba(11,11,11,.82) 28%,
    rgba(11,11,11,.45) 55%, transparent 100%);
  transition: background .5s var(--ease-out);
}
.prop-card:hover .prop-card__overlay {
  background: linear-gradient(to top,
    rgba(11,11,11,.98) 0%, rgba(11,11,11,.9) 40%,
    rgba(11,11,11,.6) 70%, rgba(11,11,11,.1) 100%);
}

.prop-card__name {
  font-family: var(--serif); font-size: clamp(1.05rem,2vw,1.45rem);
  font-weight: 500; color: #fff; line-height: 1.25; margin-bottom: .3rem;
}
.prop-card__loc {
  font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0; transition: margin .4s var(--ease);
}
.prop-card:hover .prop-card__loc { margin-bottom: .8rem; }

.prop-card__extra { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.prop-card:hover .prop-card__extra { max-height: 160px; }

.prop-card__desc {
  font-size: .78rem; color: rgba(234,234,234,.65); line-height: 1.65;
  margin-bottom: 1rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s ease .1s, transform .35s ease .1s;
}
.prop-card:hover .prop-card__desc { opacity: 1; transform: translateY(0); }

.prop-card__cta-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); opacity: 0; transform: translateY(6px);
  transition: opacity .3s ease .18s, transform .3s ease .18s, gap .3s;
}
.prop-card:hover .prop-card__cta-link { opacity: 1; transform: translateY(0); }

.prop-card__placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: #e8e4dc;
}
.prop-card__placeholder-ico { font-family: var(--serif); font-size: 3rem; color: rgba(212,175,55,.3); }

.props-empty { text-align: center; padding: 5rem 0; color: var(--text-muted); font-size: .88rem; }

/* ════════════════════════════════════════
   QUIÉNES SOMOS — fondo blanco
════════════════════════════════════════ */
.about {
  background: var(--light-bg2);
  border-top: 1px solid var(--border-light);
}
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem,6vw,7rem);
  align-items: center;
}
.about__title {
  font-family: var(--serif);
  font-size: clamp(2rem,4vw,3rem);
  font-weight: 500; color: var(--text-dark);
  line-height: 1.2; margin: .5rem 0 1.25rem;
}
.about__title em { font-style: italic; color: var(--gold); }
.about__desc {
  font-size: 1.0rem; color: #000000; line-height: 1.85; margin-bottom: 2rem;
}
.about__desc strong { color: var(--text-dark); font-weight: 600; }

/* Imagen corporativa */
.about__photo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.about__photo-img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
  will-change: transform;
}
.about__photo-img:hover {
  transform: translateY(-8px) scale(1.012);
  box-shadow: var(--shadow-xl);
}
.about-feat {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  display: flex; align-items: flex-start; gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur), box-shadow var(--dur), border-color var(--dur);
}
.about-feat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(212,175,55,.3);
}
.about-feat__icon {
  width: 44px; height: 44px; flex-shrink: 0;
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.about-feat__icon svg { width: 100%; height: 100%; }
.about-feat__title {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 500;
  color: var(--text-dark); margin-bottom: .25rem;
}
.about-feat__desc { font-size: 1.0rem; color: #000000; line-height: 1.65; }

/* ════════════════════════════════════════
   CTA / CONTACTO — fondo oscuro
════════════════════════════════════════ */
.cta {
  position: relative; padding: clamp(5rem,10vw,9rem) 0;
  background: var(--dark); border-top: 1px solid var(--gold-border); overflow: hidden;
}
.cta__bg-line {
  position: absolute; top: 0; right: 10%; width: 1px; height: 100%;
  background: linear-gradient(to bottom, var(--gold-border), transparent); pointer-events: none;
}
.cta__inner {
  display: grid; grid-template-columns: 60px 1fr 1fr;
  gap: clamp(2rem,4vw,5rem); align-items: start;
}
.cta__title { font-family: var(--serif); font-size: clamp(2rem,4vw,3rem); font-weight: 500; color: var(--white); line-height: 1.18; margin: .5rem 0 1.2rem; }
.cta__title em { font-style: italic; color: var(--gold); }
.cta__sub { font-size: 1.0rem; color: #ffffff; line-height: 1.8; margin-bottom: 2rem; max-width: 440px; }
.cta__details {
  display: flex; flex-direction: column; gap: 2.2rem;
  padding-top: .8rem; padding-left: 2rem; border-left: 1px solid var(--gold-border);
}
.cta-detail { display: flex; flex-direction: column; gap: .3rem; }
.cta-detail__label { font-size: .90rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.cta-detail__value { font-family: var(--serif); font-size: 1.1rem; font-weight: 400; color: var(--white); transition: color var(--dur); }
a.cta-detail__value:hover { color: var(--gold); }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.footer { background: var(--black); border-top: 1px solid var(--gold-border); padding: clamp(2.5rem,5vw,4rem) 0; }
.footer__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
.footer__brand { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.footer__brand-name { font-family: var(--serif); font-size: 1rem; font-weight: 700; letter-spacing: .1em; color: var(--gold); }
.footer__brand-type { font-size: .5rem; letter-spacing: .42em; text-transform: uppercase; color: var(--muted); }
.footer__links { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.footer__link { font-size: .72rem; color: var(--muted-light); letter-spacing: .04em; transition: color var(--dur); }
.footer__link:hover { color: var(--gold); }
.footer__legal { font-size: .78rem; color: var(--muted); opacity: .75; max-width: 520px; }
.footer__credit { font-size: .65rem; color: rgba(255,255,255,.25); letter-spacing: .04em; }
.footer__credit-link { color: rgba(212,175,55,.5); transition: color var(--dur); }
.footer__credit-link:hover { color: var(--gold); }
.footer__admin-btn {
  font-size: .58rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(212,175,55,.55); background: transparent;
  border: 1px solid rgba(212,175,55,.28); border-radius: 3px;
  cursor: pointer; padding: .45rem 1.2rem; margin-top: .6rem;
  transition: color var(--dur), border-color var(--dur), background var(--dur), box-shadow var(--dur);
}
.footer__admin-btn:hover {
  color: var(--gold); border-color: var(--gold);
  background: rgba(212,175,55,.07);
  box-shadow: 0 0 14px rgba(212,175,55,.12);
}

/* ════════════════════════════════════════
   MODALES BASE
════════════════════════════════════════ */
.overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.overlay[hidden] { display: none; }
.overlay__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.88); cursor: pointer; }

.modal-box {
  position: relative; z-index: 1; background: #fff; border-radius: 8px;
  animation: modalIn .4s var(--ease) both; max-height: 92svh; overflow-y: auto;
  color: var(--text-dark);
}
.modal-box--sm { width: min(440px,94vw); padding: clamp(1.8rem,4vw,2.8rem); }
.modal-box--lg { width: min(980px,96vw); padding: 0; }
@keyframes modalIn { from{opacity:0;transform:translateY(24px) scale(.97);} to{opacity:1;transform:none;} }

.modal-box__close {
  position: absolute; top: 1rem; right: 1rem; width: 34px; height: 34px;
  border-radius: 50%; border: 1px solid var(--border-light); color: var(--text-muted);
  font-size: .7rem; display: flex; align-items: center; justify-content: center;
  background: #f5f5f5; z-index: 2;
  transition: border-color var(--dur), color var(--dur), background var(--dur);
}
.modal-box__close:hover { border-color: var(--gold); color: var(--gold); background: #fff; }
.modal-box__close--abs { position: absolute; }
.modal-box__title { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--text-dark); margin-bottom: .4rem; }
.modal-box__sub { font-size: .78rem; color: var(--text-muted); margin-bottom: 1.8rem; }

/* Login */
.login-error { font-size: .72rem; color: #cc3333; margin-bottom: .8rem; }
.login-error[hidden] { display: none; }

/* Form groups (modal y admin) */
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.2rem; }
.form-group label { font-size: .65rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.form-group input,
.form-group select,
.form-group textarea {
  background: #f9f9f9; border: 1px solid #e0e0e0; border-radius: var(--radius);
  color: var(--text-dark); font-family: var(--sans); font-size: .9rem;
  padding: .75rem 1rem; transition: border-color var(--dur), box-shadow var(--dur);
  width: 100%; resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }

/* ════════════════════════════════════════
   ADMIN PANEL — fondo blanco, texto oscuro grande
════════════════════════════════════════ */
.admin-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: #f4f4f4; overflow-y: auto;
}
.admin-overlay[hidden] { display: none; }

.admin-panel {
  max-width: 1100px; margin: 0 auto;
  padding: clamp(2rem,4vw,4rem) var(--pad) 5rem;
}

.admin-panel__hdr {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  margin-bottom: 2.5rem; padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--gold);
}
.admin-panel__title {
  font-family: var(--serif); font-size: 2.2rem; font-weight: 700;
  color: var(--text-dark);
}
.admin-panel__hint { font-size: .82rem; color: var(--text-muted); margin-top: .3rem; }

.admin-panel__body { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }

.admin-card {
  background: #fff; border: 1px solid #e5e5e5; border-radius: 10px;
  padding: 2rem; box-shadow: var(--shadow-sm);
}
.admin-card__title {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 600;
  color: var(--text-dark); margin-bottom: 1.5rem;
  padding-bottom: .75rem; border-bottom: 1px solid #eee;
}

.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.form-group--full { grid-column: span 2; }

/* Inputs de imagen en admin */
.img-input-row { display: flex; gap: .5rem; align-items: center; margin-bottom: .5rem; }
.img-input-row input { flex: 1; }
.img-input-row button {
  width: 34px; height: 34px; border: 1px solid #ffd0d0; border-radius: var(--radius);
  background: #fff5f5; color: #cc3333; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background var(--dur);
}
.img-input-row button:hover { background: #ffe8e8; }
/* Image upload (Cloudinary) */
.img-upload-list {
  display: flex; flex-wrap: wrap; gap: .6rem;
  margin-bottom: .75rem; min-height: 20px;
}
.img-thumb {
  position: relative; width: 76px; height: 76px;
  border-radius: 4px; overflow: hidden;
  border: 1px solid #e0e0e0; flex-shrink: 0;
}
.img-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-thumb__remove {
  position: absolute; top: 2px; right: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,0,0,.65); color: #fff; font-size: .8rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; line-height: 1;
  transition: background var(--dur);
}
.img-thumb__remove:hover { background: #cc3333; }
.img-uploading {
  width: 76px; height: 76px; border-radius: 4px;
  background: #f0f0f0; border: 1px dashed #ccc; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.img-upload-hint {
  font-size: .62rem; color: var(--text-muted); margin-top: .45rem; line-height: 1.5;
}
.admin-form-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.75rem; }

/* Credenciales — card full width */
.admin-card--creds { grid-column: 1 / -1; }
.creds-msg { font-size: .8rem; margin-top: .8rem; display: inline-block; }
.creds-msg[hidden] { display: none; }

/* Loading state en grid */
.props-loading {
  grid-column: 1 / -1; text-align: center; padding: 3rem 0;
  font-size: .85rem; color: var(--text-muted);
}

/* Lista admin */
.admin-prop-item {
  display: grid; grid-template-columns: 60px 1fr auto;
  gap: 1rem; align-items: center;
  padding: 1rem 1.1rem; border: 1px solid #eee; border-radius: 8px;
  margin-bottom: .7rem; background: #fafafa;
  transition: box-shadow var(--dur), border-color var(--dur);
}
.admin-prop-item:hover { box-shadow: var(--shadow-sm); border-color: rgba(212,175,55,.3); }
.admin-prop-item__thumb { width: 60px; height: 46px; object-fit: cover; border-radius: 4px; background: #eee; }
.admin-prop-item__no-thumb {
  width: 60px; height: 46px; background: #f0ede6; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: .6rem; color: var(--text-muted); font-family: var(--serif);
}
.admin-prop-item__name { font-size: .9rem; font-weight: 600; color: var(--text-dark); }
.admin-prop-item__meta { font-size: .72rem; color: var(--text-muted); margin-top: .2rem; }
.admin-prop-item__actions { display: flex; gap: .45rem; }

.a-btn {
  font-family: var(--sans); font-size: .62rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .38rem .85rem; border-radius: 4px; transition: all var(--dur);
}
.a-btn--edit { border: 1px solid var(--gold-border); color: var(--gold); background: transparent; }
.a-btn--edit:hover { background: var(--gold); color: var(--black); }
.a-btn--sold { border: 1px solid #b0d4b0; color: #2a7a2a; background: transparent; }
.a-btn--sold:hover { background: #f0fff0; }
.a-btn--sold.is-sold { border: 1px solid #ccc; color: #888; }
.a-btn--sold.is-sold:hover { background: #f5f5f5; color: #555; }
.a-btn--del { border: 1px solid #ffd0d0; color: #cc3333; background: transparent; }
.a-btn--del:hover { background: #fff0f0; }

/* Tag "Vendido" en lista admin */
.admin-sold-tag {
  display: inline-block;
  font-size: .58rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: #2a7a2a;
  background: #eaf5ea; border: 1px solid #b0d4b0;
  padding: .1rem .45rem; border-radius: 2px;
  vertical-align: middle; margin-left: .4rem;
}
.admin-prop-item__thumb.is-sold { filter: grayscale(50%) brightness(.9); }

/* ════════════════════════════════════════
   SELLO "VENDIDO" en tarjeta
════════════════════════════════════════ */
.prop-card--sold .prop-card__img { filter: grayscale(30%) brightness(.88); }

.prop-card__sold-stamp {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: rgba(11,11,11,.18);
}

.prop-card__sold-inner {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .55rem 1.4rem;
  background: rgba(11,11,11,.78);
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,.12), 0 8px 32px rgba(0,0,0,.5);
  transform: rotate(-6deg);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.prop-card__sold-line {
  display: block;
  width: 28px; height: 1px;
  background: var(--gold);
  opacity: .7;
}

.prop-card__sold-text {
  font-family: var(--serif);
  font-size: clamp(.8rem, 1.2vw, 1rem);
  font-style: italic;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.admin-empty { font-size: .85rem; color: var(--text-muted); padding: 2rem 0; text-align: center; }

/* ════════════════════════════════════════
   MODAL DETALLE — slider
════════════════════════════════════════ */
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: min(600px,90svh); }
.detail-slider { position: relative; overflow: hidden; border-radius: 8px 0 0 8px; background: #0d0d0d; }
.detail-slider__viewport { position: relative; width: 100%; height: 100%; overflow: hidden; }
.detail-slider__track { display: flex; height: 100%; transition: transform .55s var(--ease); will-change: transform; }
.detail-slider__slide { min-width: 100%; height: 100%; }
.detail-slider__slide img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }

.detail-slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--gold-border); background: rgba(0,0,0,.6); color: var(--gold);
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
  transition: background var(--dur), border-color var(--dur);
}
.detail-slider__arrow:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }
.detail-slider__arrow--prev { left: 1rem; }
.detail-slider__arrow--next { right: 1rem; }
.detail-slider__dots { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); display: flex; gap: .45rem; z-index: 3; }
.detail-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.3); border: none; cursor: pointer; transition: background var(--dur), transform var(--dur); }
.detail-dot.on { background: var(--gold); transform: scale(1.3); }

.detail-info {
  padding: clamp(1.8rem,3.5vw,3rem); display: flex; flex-direction: column;
  justify-content: center; overflow-y: auto; background: #fff; color: var(--text-dark);
}
.detail-info__badge {
  display: inline-block; padding: .25rem .75rem; background: var(--gold); color: var(--black);
  font-size: 1.0rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  border-radius: 2px; margin-bottom: 1.1rem; width: fit-content;
}
.detail-info__title { font-family: var(--serif); font-size: clamp(1.8rem,3.0vw,2.6rem); font-weight: 500; color: var(--text-dark); line-height: 1.2; margin-bottom: .5rem; }
.detail-info__location { font-size: 1.0rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.detail-info__desc { font-size: 1.0rem; color: #000000; line-height: 1.85; margin-bottom: 2rem; white-space: pre-wrap; flex: 1; }

/* ════════════════════════════════════════
   SCROLL ANIMATIONS
════════════════════════════════════════ */
.js-reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  transition-delay: var(--sd, 0s);
}
.js-reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes fadeUp  { from{opacity:0;transform:translateY(24px);} to{opacity:1;transform:translateY(0);} }
@keyframes fadeIn  { from{opacity:0;} to{opacity:1;} }

/* ════════════════════════════════════════
   LIGHTBOX — imagen a tamaño original
════════════════════════════════════════ */
.lightbox {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }

.lightbox__backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.96); cursor: pointer;
}
.lightbox__img-wrap {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  max-width: 95vw; max-height: 92svh;
  animation: modalIn .3s var(--ease) both;
}
.lightbox__img {
  display: block; max-width: 95vw; max-height: 90svh;
  object-fit: contain; border-radius: 4px;
  box-shadow: 0 24px 80px rgba(0,0,0,.8);
}
.lightbox__close {
  position: fixed; top: 1.2rem; right: 1.4rem; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22); background: rgba(0,0,0,.65); color: #fff;
  font-size: .85rem; display: flex; align-items: center; justify-content: center;
  transition: border-color var(--dur), color var(--dur), background var(--dur);
}
.lightbox__close:hover { border-color: var(--gold); color: var(--gold); background: rgba(0,0,0,.85); }

.lightbox__arrow {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22); background: rgba(0,0,0,.6); color: #fff;
  font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
  transition: background var(--dur), border-color var(--dur), color var(--dur);
}
.lightbox__arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
.lightbox__arrow--prev { left: 1.2rem; }
.lightbox__arrow--next { right: 1.2rem; }

.lightbox__counter {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  z-index: 2; font-size: .62rem; letter-spacing: .14em;
  color: rgba(255,255,255,.45); pointer-events: none;
  font-family: var(--sans); text-transform: uppercase;
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 900px) {
  .navbar__nav, .navbar__cta { display: none; }
  .navbar__burger { display: flex; }

  .stats__grid { grid-template-columns: repeat(2,1fr); }
  .stats__item { border-right: none; border-bottom: 1px solid var(--gold-border); }
  .stats__item:nth-child(odd) { border-right: 1px solid var(--gold-border); }
  .stats__item:nth-last-child(-n+2) { border-bottom: none; }

  .props-grid { grid-template-columns: 1fr 1fr; }

  .about__inner { grid-template-columns: 1fr; gap: 3rem; }

  .cta__inner { grid-template-columns: 1fr; }
  .cta__left { display: none; }
  .cta__details { border-left: none; border-top: 1px solid var(--gold-border); padding-left: 0; padding-top: 2rem; }

  .admin-panel__body { grid-template-columns: 1fr; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .form-group--full { grid-column: span 1; }

  .detail-layout { grid-template-columns: 1fr; }
  .detail-slider { border-radius: 8px 8px 0 0; height: 280px; }

  .lightbox__arrow--prev { left: .6rem; }
  .lightbox__arrow--next { right: .6rem; }
}

@media (max-width: 600px) {
  .props-grid { grid-template-columns: 1fr; }
  .section-hdr { flex-direction: column; gap: .8rem; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__br { display: none; }
  .about__features { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════
   SCROLLBAR
════════════════════════════════════════ */
::-webkit-scrollbar        { width: 5px; height: 5px; }
::-webkit-scrollbar-track  { background: #ffffff; }
::-webkit-scrollbar-thumb  { background: rgba(212,175,55,.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }
