/* =========================================================================
   Propiedades con Vivian (Vivian Díaz) — Agente Inmobiliaria | Landing page
   Paleta: navy oscuro premium + acento dorado sutil
   ========================================================================= */

:root {
  --navy-dark: #0a0d15;      /* fondo principal */
  --navy-secondary: #05172f; /* azul marino secundario */
  --blue-gray: #2d3c4c;      /* acentos, cards */
  --charcoal: #2f2f2b;       /* texto/fondos secundarios */
  --gray-light: #525453;     /* gris claro / detalles */

  --text-main: #f4f3ee;
  --text-muted: #b9bcc2;
  --text-soft: #8b909a;

  --gold: #c9a24b;
  --gold-soft: rgba(201, 162, 75, 0.14);
  --gold-line: rgba(201, 162, 75, 0.35);

  --border-soft: rgba(244, 243, 238, 0.1);
  --card-bg: linear-gradient(180deg, rgba(45, 60, 76, 0.55), rgba(5, 23, 47, 0.55));

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.35);
  --container: 1180px;

  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--navy-dark);
  color: var(--text-main);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

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

.font-serif {
  font-family: "Playfair Display", "Georgia", serif;
}

/* Fondo con textura sutil de degradado radial dorado, usado en varias secciones */
.glow-bg {
  position: relative;
}
.glow-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 400px at 85% -10%, var(--gold-soft), transparent 60%),
    radial-gradient(600px 400px at -10% 110%, rgba(45, 60, 76, 0.4), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.glow-bg > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow--plain::before {
  display: none;
}

.section-title {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 600;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 0 40px;
}

.section-head {
  text-align: center;
  margin: 0 auto 48px;
}
.section-head .section-lead {
  margin-left: auto;
  margin-right: auto;
}

section {
  padding: 96px 0;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #25d366, #1ebe5b);
  color: #06210f;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.25);
}
.btn-primary:hover {
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.35);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #a97f2f);
  color: #201607;
  box-shadow: 0 10px 25px rgba(201, 162, 75, 0.22);
}
.btn-gold:hover {
  box-shadow: 0 14px 32px rgba(201, 162, 75, 0.32);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-soft);
  color: var(--text-main);
}
.btn-outline:hover {
  border-color: var(--gold-line);
  background: var(--gold-soft);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 11px 20px;
  font-size: 0.85rem;
}

.icon-wa {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: rgba(10, 13, 21, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: "Playfair Display", serif;
}
/* Logotipo: "Propiedades con Vivian" — la marca es el nombre completo,
   con "Vivian" resaltada en dorado (misma tipografía y paleta de siempre). */
.logo-wordmark {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  color: var(--text-main);
}
.logo-wordmark em {
  font-style: italic;
  font-weight: 400;
  font-size: 0.9em;
  color: var(--text-muted);
}
.logo-wordmark b {
  font-weight: 700;
  background: linear-gradient(135deg, #f4e6c1, var(--gold) 55%, #8a692c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (max-width: 380px) {
  .logo-wordmark {
    font-size: 1.12rem;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a:hover {
  color: var(--text-main);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 168px 0 110px;
  background: radial-gradient(1100px 600px at 15% -10%, rgba(45, 60, 76, 0.55), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, var(--gold-soft), transparent 55%),
    var(--navy-dark);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero-copy h1 span {
  color: var(--gold);
}

.hero-copy p {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero-stats div {
  text-align: center;
}
.hero-stats div strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 1.9rem;
  color: var(--text-main);
}
.hero-stats div span {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.hero-photo {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-photo .frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gold-line);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 5;
}
.hero-photo .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photo .frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 8, 14, 0.75));
}
.hero-photo-badge {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--charcoal);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-soft);
  z-index: 2;
}
.hero-photo-badge strong {
  display: block;
  font-family: "Playfair Display", serif;
  color: var(--gold);
  font-size: 1.05rem;
}
.hero-photo-badge span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---------- Sobre Vivian ---------- */
.about {
  background: var(--navy-secondary);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.about .container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 72px;
  align-items: center;
}

.about-photo {
  position: relative;
}
.about-photo .frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 3 / 4;
}
.about-photo .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-photo .frame img {
  object-position: top center;
}

.about-zones {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.zone-chip {
  font-size: 0.78rem;
  padding: 7px 14px;
  border-radius: 100px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  color: var(--gold);
}

.about-copy p {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin: 0 0 18px;
}
.about-copy p:first-of-type {
  color: var(--text-main);
  font-size: 1.12rem;
}
.about-copy strong {
  color: var(--text-main);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  text-align: center;
}
.stat-card strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 1.9rem;
  color: var(--gold);
  margin-bottom: 4px;
}
.stat-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ---------- Propiedades ---------- */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.property-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.property-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-line);
}

.property-photo {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
  color: inherit;
}
.property-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.property-card:hover .property-photo img {
  transform: scale(1.06);
}
.property-photo-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(10, 13, 21, 0.72);
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  font-size: 0.72rem;
  padding: 5px 10px;
  border-radius: 100px;
  backdrop-filter: blur(6px);
  z-index: 4;
}
.property-price {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: #201607;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 100px;
}

.property-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.property-zone {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.property-title {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  margin: 0;
}
.property-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.property-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.property-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.property-tags span {
  font-size: 0.74rem;
  background: rgba(244, 243, 238, 0.06);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: 100px;
}
.property-body .btn {
  margin-top: auto;
}

.property-title a {
  color: inherit;
  transition: color 0.2s ease;
}
.property-title a:hover {
  color: var(--gold);
}

.property-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.link-detail {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
}
.link-detail:hover {
  text-decoration: underline;
}
.btn-share {
  background: none;
  border: none;
  color: var(--text-soft);
  font-size: 0.78rem;
  padding: 4px 0;
  text-align: center;
  cursor: pointer;
  transition: color 0.2s ease;
}
.btn-share:hover {
  color: var(--gold);
}

/* Propiedad vendida/alquilada: sigue visible como portafolio, pero una cinta
   amarilla tipo obra la cruza en diagonal con el estado en grande. */
.sold-band {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 160%;
  transform: translate(-50%, -50%) rotate(-16deg);
  padding: 12px 0;
  background: #f5c400;
  color: #14110a;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  line-height: 1;
  letter-spacing: 0.24em;
  text-indent: 0.24em; /* compensa el espacio final del letter-spacing para centrar */
  text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.sold-band::before,
.sold-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 9px;
  background: repeating-linear-gradient(135deg, #14110a 0 11px, #f5c400 11px 22px);
}
.sold-band::before {
  top: -9px;
}
.sold-band::after {
  bottom: -9px;
}
.property-card.is-unavailable .property-photo img,
.detail-gallery.is-unavailable .g-main img {
  filter: grayscale(40%) brightness(0.72);
}

.properties-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 40px 0;
  grid-column: 1 / -1;
}

.properties-footer-cta {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* ---------- Catálogo (propiedades.html): pestañas de filtro ---------- */
.catalog-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.catalog-tab {
  background: transparent;
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.catalog-tab:hover {
  border-color: var(--gold-line);
  color: var(--text-main);
}
.catalog-tab.is-active {
  background: var(--gold-soft);
  border-color: var(--gold-line);
  color: var(--gold);
}

.catalog-hero {
  padding: 150px 0 40px;
  text-align: center;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 10, 0.92);
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.lightbox.is-open {
  display: flex;
}
.lightbox-inner {
  position: relative;
  max-width: 900px;
  width: 100%;
}
.lightbox-inner img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
}
.lightbox-caption {
  text-align: center;
  color: var(--text-muted);
  margin-top: 14px;
  font-size: 0.88rem;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(244, 243, 238, 0.08);
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.lightbox-close {
  top: -54px;
  right: 0;
}
.lightbox-prev {
  left: -56px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-next {
  right: -56px;
  top: 50%;
  transform: translateY(-50%);
}
@media (max-width: 720px) {
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
  .lightbox-close { top: -46px; }
}

/* ---------- Dos caminos ---------- */
.paths {
  background: var(--navy-secondary);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.paths-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.path-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
}
.path-card.is-sell {
  border-color: var(--gold-line);
}
.path-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}
.path-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  margin: 0 0 10px;
}
.path-card > p {
  color: var(--text-muted);
  margin: 0 0 26px;
  font-size: 0.95rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-field.full {
  grid-column: 1 / -1;
}
.form-field label {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.form-field input,
.form-field select {
  background: rgba(10, 13, 21, 0.55);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-main);
  font-size: 0.92rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}
.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--gold-line);
}
.form-field select option {
  background: var(--navy-dark);
  color: var(--text-main);
}
.form-field.has-error input,
.form-field.has-error select {
  border-color: #d97757;
}
.form-field.has-error::after {
  content: "Completa este campo";
  font-size: 0.74rem;
  color: #d97757;
}
.form-note {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-top: 12px;
  text-align: center;
}

/* ---------- Proceso ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  counter-reset: step;
}
.process-step {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  position: relative;
}
.process-step .step-num {
  font-family: "Playfair Display", serif;
  font-size: 2.1rem;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-line);
  margin-bottom: 14px;
}
.process-step h3 {
  font-size: 1.02rem;
  margin: 0 0 10px;
  color: var(--text-main);
}
.process-step p {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Testimonios ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}
.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testimonial-stars {
  color: var(--gold);
  letter-spacing: 3px;
  font-size: 0.95rem;
}
.testimonial-quote {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin: 0;
  flex: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", serif;
  font-weight: 700;
}
.testimonial-author strong {
  display: block;
  font-size: 0.92rem;
}
.testimonial-author span {
  font-size: 0.78rem;
  color: var(--text-soft);
}
.testimonials-disclaimer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-top: 30px;
}

/* ---------- CTA final ---------- */
.final-cta {
  background: radial-gradient(700px 400px at 50% 0%, var(--gold-soft), transparent 60%), var(--navy-secondary);
  text-align: center;
  border-top: 1px solid var(--border-soft);
}
.final-cta h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 16px;
}
.final-cta p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 32px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  border-top: 1px solid var(--border-soft);
  padding: 56px 0 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border-soft);
}
.footer-brand .logo {
  margin-bottom: 10px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 280px;
  margin: 0;
}
.footer-tagline {
  color: var(--gold) !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 8px !important;
}

.footer-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}
.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-main);
  margin: 0 0 16px;
}
.footer-col a,
.footer-col span {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: var(--gold);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-bottom: 0;
}
.social-links a:hover {
  border-color: var(--gold-line);
  color: var(--gold);
}
.social-links svg {
  width: 17px;
  height: 17px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #1ebe5b);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
  z-index: 600;
  animation: wa-pulse 2.6s ease-in-out infinite;
}
.wa-float svg {
  width: 30px;
  height: 30px;
  fill: #06210f;
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 12px 30px rgba(37, 211, 102, 0.65), 0 0 0 10px rgba(37, 211, 102, 0.08); }
}

/* ---------- Toast de confirmación ---------- */
.toast {
  position: fixed;
  bottom: 100px;
  right: 26px;
  max-width: 300px;
  background: var(--charcoal);
  border: 1px solid var(--gold-line);
  color: var(--text-main);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  box-shadow: var(--shadow-soft);
  z-index: 700;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 980px) {
  .hero .container,
  .about .container {
    grid-template-columns: 1fr;
  }
  .hero-photo,
  .about-photo {
    order: -1;
    max-width: 340px;
    margin: 0 auto;
  }
  .about-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .paths-grid {
    grid-template-columns: 1fr;
  }
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  section {
    padding: 68px 0;
  }
  .nav-links,
  .header-actions .btn-outline-desktop {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .hero {
    padding-top: 128px;
  }
  .hero-stats {
    gap: 24px;
  }
  .about-stats {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .process-steps {
    grid-template-columns: 1fr;
  }
  .footer-top {
    flex-direction: column;
  }
  .footer-cols {
    gap: 40px;
  }
}

/* Menú móvil */
.mobile-menu {
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  background: var(--navy-dark);
  border-bottom: 1px solid var(--border-soft);
  z-index: 499;
  display: none;
  flex-direction: column;
  padding: 12px 24px 26px;
}
.mobile-menu.is-open {
  display: flex;
}
.mobile-menu a {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-muted);
}
.mobile-menu .btn {
  margin-top: 16px;
}

/* =========================================================================
   Página de detalle de una propiedad (propiedad.html?id=...)
   ========================================================================= */
.detail-page {
  padding-top: 76px; /* alto del header fijo */
  min-height: 70vh;
}
.detail-loading,
.detail-missing {
  padding: 120px 24px;
  text-align: center;
  color: var(--text-muted);
}
.detail-missing h1 {
  color: var(--text-main);
  margin: 0 0 12px;
}
.detail-missing p {
  margin: 0 0 28px;
}

.detail-top {
  padding-top: 28px;
}
.detail-back {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.detail-back:hover {
  color: var(--gold);
}

/* Galería: 1 foto grande + 4 chicas (2x2), como en los portales inmobiliarios */
.detail-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  height: clamp(300px, 42vw, 480px);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.detail-gallery button {
  position: relative;
  padding: 0;
  border: 0;
  background: var(--blue-gray);
  overflow: hidden;
  cursor: pointer;
  color: inherit;
}
.detail-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.3s ease;
}
.detail-gallery button:hover img {
  transform: scale(1.04);
}
.detail-gallery .g-main {
  grid-column: 1;
  grid-row: 1 / span 2;
}
.detail-gallery button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}
.g-all,
.g-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  padding: 8px 14px;
  border-radius: 100px;
  background: rgba(244, 243, 238, 0.95);
  color: #14110a;
  font-size: 0.82rem;
  font-weight: 600;
}
.g-count {
  display: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: start;
  padding-top: 40px;
  padding-bottom: 72px;
}
.detail-title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.2;
  margin: 8px 0 18px;
  font-weight: 600;
  text-wrap: balance;
}
.detail-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 28px;
}
.detail-op {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.detail-price strong {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  font-weight: 600;
  color: var(--text-main);
}
.estado-chip {
  align-self: center;
  padding: 6px 14px;
  border-radius: 100px;
  background: #f5c400;
  color: #14110a;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 40px;
}
.fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  min-width: 0;
}
.fact strong {
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.fact span {
  font-size: 0.78rem;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.detail-block {
  margin-bottom: 36px;
}
.detail-block h2 {
  font-size: 1.4rem;
  margin: 0 0 14px;
  font-weight: 600;
}
.detail-block p {
  color: var(--text-muted);
  margin: 0 0 14px;
  max-width: 68ch;
}
.detail-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
  color: var(--text-muted);
}
.detail-features li {
  position: relative;
  padding-left: 22px;
  font-size: 0.95rem;
}
.detail-features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

/* Tarjeta de contacto (se queda a la vista al bajar en escritorio) */
.detail-aside {
  position: sticky;
  top: 100px;
}
.aside-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 24px;
  background: var(--card-bg);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
}
.aside-card h2 {
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0;
  font-weight: 600;
}
.aside-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.93rem;
}
.aside-agent {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
}
.aside-agent img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--gold-line);
}
.aside-agent strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
}
.aside-agent span {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.detail-others {
  padding: 72px 0;
  background: var(--navy-secondary);
  border-top: 1px solid var(--border-soft);
}
.detail-others h2 {
  text-align: center;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin: 0 0 36px;
  font-weight: 600;
}

@media (max-width: 980px) {
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .detail-aside {
    position: static;
  }
}
@media (max-width: 720px) {
  .detail-top {
    padding-top: 16px;
  }
  /* En celular: una sola foto grande con botón para ver las demás */
  .detail-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
    border-radius: var(--radius-md);
  }
  .detail-gallery .g-main {
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }
  .detail-gallery .g-sub {
    display: none;
  }
  .g-count {
    display: block;
  }
  .detail-features {
    grid-template-columns: 1fr;
  }
}
