/* ==========================================================================
   CATEDRAL BIENES RAÍCES — PREMIUM DESIGN
   Navy + champagne gold on warm ivory surfaces.
   Single font (Inter) — hierarchy via weight & tracking.
   ========================================================================== */

:root {
  /* — Paleta premium — */
  --ink: #0E1B2C;               /* navy tinta (superficies oscuras) */
  --ink-2: #16283F;             /* navy elevado */
  --ink-deep: #081220;          /* navy profundo (top bar / footer) */
  --ink-heading: #14263D;       /* titulares */

  --gold: #C7A45B;              /* oro champán (sobre oscuro / sólidos) */
  --gold-deep: #A8802F;         /* bronce (acento sobre claro) */
  --gold-bright: #E8CD8F;       /* champagne (texto acento sobre oscuro) */
  --gold-tint: rgba(176, 138, 60, 0.12);

  /* — Nombres legacy mapeados (NO renombrar: los usa HTML/JS) — */
  --catedral-blue: var(--gold-deep);
  --catedral-blue-dark: var(--ink-2);
  --catedral-blue-deep: var(--ink-deep);
  --catedral-blue-light: var(--gold-bright);
  --catedral-blue-hover: #8F6C26;
  --white: #FFFFFF;
  --offwhite: #F7F4EC;          /* marfil cálido */
  --paper: #FBF9F4;
  --line: #E8E2D5;              /* hairline cálido */
  --line-dark: rgba(255, 255, 255, 0.12);

  --text: #252E39;
  --text-muted: #6B7480;
  --text-light: #9AA3AE;

  /* — Variables globales (legacy aliases) — */
  --navy: var(--ink-heading);
  --gold: var(--gold-deep);

  --shadow-sm: 0 1px 3px rgba(20, 30, 45, 0.05), 0 4px 14px rgba(20, 30, 45, 0.05);
  --shadow-md: 0 18px 44px -14px rgba(20, 30, 45, 0.18);
  --shadow-lg: 0 32px 80px -24px rgba(8, 18, 32, 0.30);
  --shadow-gold: 0 12px 30px -12px rgba(168, 128, 47, 0.45);

  --radius-sm: 3px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);

  /* Sistema tipográfico minimalista: una sola sans (Inter) para todo.
     La jerarquía se logra con peso y tracking, no con serifas. */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset y Bases */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--text);
  background-color: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

::selection {
  background: rgba(199, 164, 91, 0.35);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Scrollbar refinado */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #CFC7B4;
  border-radius: 8px;
  border: 2px solid var(--paper);
}
::-webkit-scrollbar-thumb:hover { background: #B9AE94; }

.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ==========================================================================
   TIPOGRAFÍA
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink-heading);
  line-height: 1.15;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-deep);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.9;
}
.section-header .eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.9;
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 30px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 8px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.btn-lg {
  padding: 17px 38px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

/* Primario: tinta sólida con elevación sutil */
.btn-gold {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  box-shadow: 0 14px 28px -14px rgba(14, 27, 44, 0.55);
}
.btn-gold:hover {
  background: #1D3552;
  border-color: #1D3552;
  transform: translateY(-1px);
  box-shadow: 0 18px 34px -14px rgba(14, 27, 44, 0.6);
}

/* Secundario: contorno tinta, se rellena al hover */
.btn-navy {
  background: transparent;
  color: var(--ink-heading);
  border-color: rgba(20, 38, 61, 0.35);
}
.btn-navy:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  transform: translateY(-1px);
}

/* Acento dorado: contorno bronce, relleno bronce al hover */
.btn-gold-outline {
  background: transparent;
  color: var(--gold-deep);
  border-color: rgba(168, 128, 47, 0.55);
}
.btn-gold-outline:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  color: var(--white);
  transform: translateY(-1px);
}

/* CTA principal del hero: blanco sólido, máxima legibilidad sobre navy */
.btn-white {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
  box-shadow: 0 14px 28px -14px rgba(0, 0, 0, 0.45);
}
.btn-white:hover {
  background: #F1EDE0;
  border-color: #F1EDE0;
  transform: translateY(-1px);
  box-shadow: 0 18px 34px -14px rgba(0, 0, 0, 0.5);
}

.hero-cta {
  margin-top: 22px;
}

/* ==========================================================================
   BADGES
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 5px 12px;
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 3px;
}
.badge-gold {
  background: linear-gradient(135deg, #D4B269 0%, #B9924B 100%);
  color: #1D1505;
  box-shadow: 0 4px 14px -4px rgba(168, 128, 47, 0.6);
}
.badge-navy {
  background: rgba(14, 27, 44, 0.92);
  color: #EFE7D4;
}
/* ==========================================================================
   BARRA SUPERIOR & HEADER
   ========================================================================== */
.top-bar {
  background: var(--ink-deep);
  color: #8E9AAB;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}
.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 22px;
}
.top-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.top-item a:hover {
  color: var(--gold-bright);
}
.currency-selector {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 2px;
}
.currency-toggle-btn {
  background: transparent;
  border: none;
  color: #8E9AAB;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
}
.currency-toggle-btn.active {
  background: var(--gold);
  color: var(--ink-deep);
}

/* Header claro tipo "galería" con blur */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 244, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand-logo {
  display: flex;
  align-items: center;
}
.header-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
nav.main-nav a {
  position: relative;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #3A4655;
  padding: 6px 0;
}
nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--gold-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
nav.main-nav a:hover::after, nav.main-nav a.active::after {
  transform: scaleX(1);
}
nav.main-nav a:hover, nav.main-nav a.active {
  color: var(--gold-deep);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.fav-counter-btn {
  position: relative;
  background: transparent;
  border: 1px solid rgba(20, 38, 61, 0.25);
  color: var(--ink-heading);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.fav-counter-btn:hover {
  border-color: var(--gold-deep);
  color: var(--gold-deep);
  background: var(--gold-tint);
}
.fav-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--gold-deep);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(168, 128, 47, 0.5);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--ink-heading);
  cursor: pointer;
}

/* ==========================================================================
   HERO & BUSCADOR MULTIFILTRO
   ========================================================================== */
.hero-section {
  position: relative;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(199, 164, 91, 0.16) 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(199, 164, 91, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, #13253C 0%, var(--ink-deep) 100%);
  padding: 56px 0 64px;
  color: var(--white);
  overflow: hidden;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 1;
  background-image:
    linear-gradient(rgba(232, 205, 143, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 205, 143, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 40%, transparent 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 920px;
  margin: 0 auto 36px;
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-title {
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(32px, 3.8vw, 50px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 14px;
}
.hero-title span {
  font-style: normal;
  font-weight: inherit;
  background: linear-gradient(120deg, #E8CD8F 0%, #C7A45B 60%, #E8CD8F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-sub {
  color: #B9C3D1;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 400;
  max-width: 660px;
  margin: 0 auto;
  line-height: 1.75;
}

/* Barra de Búsqueda — tarjeta flotante */
.hero-search-container {
  position: relative;
  z-index: 10;
  max-width: 1140px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 26px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(232, 226, 213, 0.7);
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}
.search-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 18px;
  align-items: flex-end;
}
.search-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.search-field label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #8A94A0;
}
.search-field select, .search-field input {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  outline: none;
  transition: var(--transition);
}
.search-field select:hover, .search-field input:hover {
  border-color: #D6CDB8;
}
.search-field select:focus, .search-field input:focus {
  border-color: var(--gold-deep);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--gold-tint);
}

/* ==========================================================================
   SHOWCASE / CARRUSEL DE PROPIEDADES
   ========================================================================== */
.showcase-section {
  padding: 96px 0 64px;
  background: var(--offwhite);
  border-bottom: 1px solid var(--line);
}
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 46px);
  margin-bottom: 12px;
}
.section-sub {
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.7;
}

/* Cifras tabulares: precios y stats alineados, look de dato limpio */
.price-val, .slide-price, .spec-num, .p-val-main, .p-val-bold,
.sim-result-rate, .res-val-gold, .stat-num {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.carousel-wrapper {
  background: var(--ink-deep);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.carousel-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 420px;
  background: #050D18;
  overflow: hidden;
}
@media (max-width: 768px) {
  .carousel-viewport { aspect-ratio: 4 / 3; max-height: 340px; }
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
  cursor: pointer;
}
.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 7s ease;
}
.carousel-slide.active .slide-img {
  transform: scale(1);
}
.slide-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(5, 13, 24, 0.92) 0%, rgba(5, 13, 24, 0.42) 42%, rgba(5, 13, 24, 0.08) 100%);
}

.slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 5;
}
.slide-index {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--gold-bright);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.slide-title {
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: 0.005em;
  margin-bottom: 6px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}
.slide-sub {
  color: #C9D2DE;
  font-size: clamp(13px, 1.4vw, 16px);
  margin-bottom: 20px;
}
.slide-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.slide-price {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  color: var(--white);
  background: rgba(8, 18, 32, 0.45);
  border: 1px solid rgba(232, 205, 143, 0.55);
  padding: 8px 20px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(8, 18, 32, 0.5);
  backdrop-filter: blur(6px);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}
.carousel-nav-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink-deep);
}
.carousel-nav-btn.prev { left: 22px; }
.carousel-nav-btn.next { right: 22px; }

.carousel-counter {
  position: absolute;
  top: 22px;
  right: 22px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--white);
  background: rgba(8, 18, 32, 0.55);
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
}

.carousel-thumbs {
  display: flex;
  gap: 10px;
  padding: 16px 22px;
  background: var(--ink-deep);
  overflow-x: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.carousel-thumbs::-webkit-scrollbar { height: 6px; }
.carousel-thumbs::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); border-radius: 3px; }

.carousel-thumb {
  flex: 0 0 104px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.5;
  transition: var(--transition);
}
.carousel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-thumb .thumb-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(5, 13, 24, 0.85);
  color: var(--white);
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 4px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.carousel-thumb:hover { opacity: 0.85; }
.carousel-thumb.active {
  opacity: 1;
  border-color: var(--gold);
}

/* ==========================================================================
   CATÁLOGO DE PROPIEDADES & FILTROS
   ========================================================================== */
.catalog-section {
  padding: 96px 0;
  background: var(--paper);
}
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 36px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-pill {
  padding: 9px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  background: var(--white);
  color: #4A5563;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
}
.filter-pill:hover {
  border-color: var(--gold-deep);
  color: var(--gold-deep);
}
.filter-pill.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  box-shadow: 0 8px 18px -8px rgba(14, 27, 44, 0.5);
}

.catalog-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.results-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.sort-select {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-heading);
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}
.sort-select:hover { border-color: #D6CDB8; }
.view-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}
.view-btn {
  background: transparent;
  border: none;
  padding: 9px 12px;
  color: #8A94A0;
  cursor: pointer;
  transition: var(--transition);
}
.view-btn.active {
  background: var(--ink);
  color: var(--white);
}

/* Grid de Propiedades */
.properties-container.grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 32px;
}
.properties-container.list-view {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* Tarjeta de Propiedad */
.property-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.property-card:nth-child(2) { animation-delay: 0.05s; }
.property-card:nth-child(3) { animation-delay: 0.1s; }
.property-card:nth-child(4) { animation-delay: 0.15s; }
.property-card:nth-child(5) { animation-delay: 0.2s; }
.property-card:nth-child(6) { animation-delay: 0.25s; }
.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(168, 128, 47, 0.45);
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink-deep);
  cursor: pointer;
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.property-card:hover .card-img {
  transform: scale(1.06);
}
.card-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.fav-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(251, 249, 244, 0.92);
  backdrop-filter: blur(4px);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink-heading);
  transition: var(--transition);
  z-index: 2;
}
.fav-btn:hover, .fav-btn.active {
  background: var(--white);
  color: var(--gold-deep);
  box-shadow: 0 6px 16px -6px rgba(20, 30, 45, 0.4);
}
.card-price-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 18px 12px;
  background: linear-gradient(to top, rgba(5, 13, 24, 0.88) 0%, rgba(5, 13, 24, 0) 100%);
}
.card-price-overlay .price-val {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}
.price-period {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: #B9C3D1;
  letter-spacing: 0.02em;
}

.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.commune-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
  text-transform: uppercase;
}
.type-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: #9AA3AE;
  letter-spacing: 0.14em;
}

.card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-heading);
  margin-bottom: 7px;
  line-height: 1.32;
  cursor: pointer;
  transition: var(--transition);
}
.card-title:hover {
  color: var(--gold-deep);
}
.card-address {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.card-specs {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.spec-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-heading);
}
.spec-item svg {
  color: var(--gold-deep);
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

/* Vista de Lista */
.properties-container.list-view .property-card {
  flex-direction: row;
}
.properties-container.list-view .card-media {
  width: 340px;
  aspect-ratio: auto;
}
@media (max-width: 768px) {
  .properties-container.list-view .property-card {
    flex-direction: column;
  }
  .properties-container.list-view .card-media {
    width: 100%;
    aspect-ratio: 16 / 10;
  }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 70px 20px;
  grid-column: 1 / -1;
}
.empty-state svg { color: var(--gold-deep); margin-bottom: 18px; }
.empty-state h3 { font-size: 24px; margin-bottom: 10px; }
.empty-state p { color: var(--text-muted); margin-bottom: 22px; }

/* ==========================================================================
   SECCIÓN: NUESTRA PROPUESTA (COMISIÓN ESCALONADA DECRECIENTE)
   ========================================================================== */
.commission-section {
  padding: 104px 0;
  background: var(--offwhite);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.commission-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.commission-header .eyebrow { color: var(--gold-deep); }
.commission-header h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 46px);
  margin-bottom: 16px;
}
.commission-header p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
}
.commission-header strong { color: var(--ink-heading); }

.commission-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

/* Column 1: Benefits */
.commission-benefits-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.benefit-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.benefit-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--white);
}
.benefit-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-heading);
  margin-bottom: 8px;
}
.benefit-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Column 2: Simulator */
.commission-simulator-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cta-stats-card {
  background: var(--navy);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.cta-stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--gold-bright);
  margin-bottom: 2px;
}
.cta-stat-label {
  font-size: 9.5px;
  color: #A6B4C9;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cta-action-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
}
.cta-action-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-heading);
  margin-bottom: 10px;
}
.cta-action-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Términos del mandato de exclusividad (colapsable en el modal de captación) */
.legal-note {
  margin: 4px 0 18px;
  background: rgba(14, 27, 44, 0.035);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-deep);
  border-radius: 6px;
}
.legal-note summary {
  list-style: none;
  cursor: pointer;
  padding: 13px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-heading);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  user-select: none;
}
.legal-note summary::-webkit-details-marker { display: none; }
.legal-note summary::after {
  content: '+';
  font-size: 17px;
  font-weight: 600;
  color: var(--gold-deep);
  line-height: 1;
  transition: transform 0.25s ease;
}
.legal-note[open] summary::after {
  content: '−';
}
.legal-note-body {
  padding: 0 16px 14px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-muted);
  text-align: justify;
}
.legal-note strong { color: var(--ink-heading); }
.terms-accept-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.terms-accept-status { font-size: 12px; color: var(--text-muted); }
.terms-accept-status strong { color: var(--ink-heading); }
#termsAcceptBtn.accepted {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  color: var(--white);
  cursor: default;
  transform: none;
  box-shadow: none;
}

.commission-benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 34px;
}
.commission-benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-heading);
  line-height: 1.6;
}
.commission-benefits-list svg {
  color: var(--gold-deep);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Tarjeta del Simulador */
.simulator-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: var(--shadow-md);
}
.sim-header {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.sim-header h3 {
  font-family: var(--font-display);
  font-size: 23px;
}
.sim-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}
.sim-radio-label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #4A5563;
  cursor: pointer;
  transition: var(--transition);
}
.sim-radio-label:hover { border-color: rgba(168, 128, 47, 0.5); }
.sim-radio-label:has(input:checked) {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  box-shadow: 0 8px 18px -8px rgba(14, 27, 44, 0.5);
}

.sim-control-group {
  margin-bottom: 22px;
}
.sim-control-group label {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  color: #3D4653;
  margin-bottom: 9px;
}
.sim-control-group input[type="range"] {
  width: 100%;
  accent-color: var(--gold-deep);
  cursor: pointer;
}
.sim-control-group input[type="number"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
  color: var(--ink-heading);
  background: var(--paper);
  outline: none;
  transition: var(--transition);
}
.sim-control-group input[type="number"]:focus {
  border-color: var(--gold-deep);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--gold-tint);
}

.sim-result-box {
  background: linear-gradient(160deg, #13253C 0%, var(--ink-deep) 100%);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 26px;
  margin: 26px 0;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.sim-result-lbl {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 6px;
}
.sim-result-rate {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
}
.sim-result-val {
  font-size: 15px;
  color: #C9D2DE;
  margin-top: 5px;
}
.sim-savings-highlight {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: var(--gold-bright);
}

/* Tabla de Comisiones */
.catedral-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 14px;
}
.catedral-table th, .catedral-table td {
  padding: 11px 13px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.catedral-table th {
  background: var(--offwhite);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6B7480;
}
.catedral-table tr.highlight-row {
  background: var(--gold-tint);
}
.rate-tag {
  display: inline-block;
  font-weight: 800;
  color: var(--gold-deep);
}

/* ==========================================================================
   SECCIÓN: INVERSIONISTAS & SERVICIOS PROPTECH
   ========================================================================== */
.services-section {
  padding: 104px 0;
  background: var(--paper);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 128, 47, 0.4);
  box-shadow: var(--shadow-md);
}
.service-card:hover::before {
  opacity: 1;
}
.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #D4B269 0%, #A8802F 100%);
  color: var(--white);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: var(--shadow-gold);
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 21px;
  margin-bottom: 13px;
}
.service-card p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.75;
}

/* ==========================================================================
   MODAL DE DETALLE DE PROPIEDAD
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 13, 24, 0.78);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.55);
}
.modal-close-btn {
  position: sticky;
  top: 16px;
  right: 16px;
  float: right;
  z-index: 20;
  background: rgba(8, 18, 32, 0.75);
  backdrop-filter: blur(4px);
  color: var(--white);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.modal-close-btn:hover {
  background: var(--gold-deep);
}

.modal-body-content {
  padding: 44px;
}

/* Header de la Ficha */
.prop-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}
.prop-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.prop-detail-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.8vw, 38px);
  color: var(--ink-heading);
  margin-bottom: 10px;
}
.prop-detail-address {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 15px;
}
.prop-detail-price-box {
  background: linear-gradient(160deg, #13253C 0%, var(--ink-deep) 100%);
  color: var(--white);
  padding: 20px 26px;
  border-radius: var(--radius-md);
  text-align: right;
  min-width: 230px;
  box-shadow: var(--shadow-md);
}
.prop-detail-price-box .p-lbl {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--gold-bright);
  display: block;
}
.prop-detail-price-box .p-val-main {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin: 5px 0;
}
.prop-detail-price-box .p-val-alt {
  font-size: 13px;
  color: #A9B4C4;
}

/* Galería en Modal */
.prop-gallery-wrapper {
  margin-bottom: 32px;
}
.prop-main-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink-deep);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.prop-main-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.prop-thumbs-strip {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.prop-thumb-item {
  flex: 0 0 92px;
  height: 62px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.55;
  transition: var(--transition);
}
.prop-thumb-item:hover, .prop-thumb-item.active {
  opacity: 1;
  border-color: var(--gold);
}
.prop-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Specs Bar */
.specs-bar-catedral {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: var(--offwhite);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 38px;
}
.spec-col {
  text-align: center;
  padding: 20px 8px;
  border-right: 1px solid var(--line);
}
.spec-col:last-child { border-right: none; }
.spec-num {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  color: var(--ink-heading);
}
.spec-lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8A94A0;
  margin-top: 5px;
}

/* Grid de 2 Columnas */
.prop-body-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 44px;
}
.prop-desc-col h2, .prop-desc-col h3 {
  margin-bottom: 16px;
}
.prop-desc-col h3 {
  margin-top: 30px;
  font-size: 19px;
}
.prop-description-text {
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.85;
}
.prop-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 16px;
}
.prop-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-heading);
  font-weight: 500;
}

/* Calculadora Hipotecaria */
.mortgage-calc-box {
  background: var(--offwhite);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-top: 38px;
}
.calc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.calc-header h4 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink-heading);
}
.calc-header p {
  font-size: 12.5px;
  color: var(--text-muted);
}
.calc-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 22px;
}
.calc-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 7px;
}
.calc-group input[type="range"] {
  width: 100%;
  accent-color: var(--gold-deep);
  cursor: pointer;
}
.calc-group input[type="number"] {
  width: 100%;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
  background: var(--white);
  outline: none;
  transition: var(--transition);
}
.calc-group input[type="number"]:focus {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px var(--gold-tint);
}

.calc-result-bar {
  background: linear-gradient(160deg, #13253C 0%, var(--ink-deep) 100%);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.calc-res-item .res-lbl {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8E9AAB;
}
.calc-res-item .res-val {
  font-size: 20px;
  font-weight: 700;
}
.calc-res-item .res-val-gold {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  color: var(--gold-bright);
}
.calc-footnote {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 12px;
}

/* Sidebar Facts Box */
.facts-card {
  background: var(--offwhite);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px;
}
.facts-tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 18px;
}
.facts-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px 16px;
  font-size: 13.5px;
}
.facts-list dt { color: var(--text-muted); }
.facts-list dd { font-weight: 700; text-align: right; color: var(--ink-heading); }

.facts-price-divider {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 20px;
  margin-bottom: 22px;
}
.facts-price-divider .p-lbl { font-size: 10.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; }
.facts-price-divider .p-val-bold {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  color: var(--gold-deep);
}

.schedule-visit-box {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.schedule-visit-box h4 {
  font-family: var(--font-display);
  font-size: 16px;
  margin-bottom: 15px;
}
.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  margin-bottom: 11px;
  font-size: 13px;
  outline: none;
  transition: var(--transition);
}
.form-input:focus {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px var(--gold-tint);
}

/* ==========================================================================
   PANEL DE ADMINISTRACIÓN (CMS LIGERO)
   ========================================================================== */
.admin-tabs {
  display: flex;
  gap: 14px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.admin-tab-btn {
  padding: 9px 18px;
  background: transparent;
  border: none;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition);
}
.admin-tab-btn:hover { color: var(--ink-heading); }
.admin-tab-btn.active {
  color: var(--gold-deep);
  border-bottom: 2px solid var(--gold-deep);
}
.admin-table-wrap {
  overflow-x: auto;
  margin-bottom: 30px;
}
.btn-icon {
  background: transparent;
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  transition: var(--transition);
}
.btn-icon:hover { border-color: #D6CDB8; }
.btn-icon.delete:hover {
  background: #FBEBEB;
  border-color: #E05C5C;
}

/* ==========================================================================
   FOOTER INSTITUCIONAL
   ========================================================================== */
footer {
  background:
    radial-gradient(800px 300px at 90% 0%, rgba(199, 164, 91, 0.07) 0%, transparent 60%),
    var(--ink-deep);
  color: #93A0B0;
  padding: 88px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 44px;
  margin-bottom: 64px;
}
.footer-brand img {
  height: 48px;
  margin-bottom: 18px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.75;
}
.footer-col h4 {
  font-family: var(--font-ui);
  color: var(--gold-bright);
  font-size: 12px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 13.5px;
}
.footer-links a:hover {
  color: var(--gold-bright);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 900;
  background: #25D366;
  color: var(--white);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  transition: var(--transition);
}
.floating-whatsapp:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.6);
}

/* ==========================================================================
   ANIMACIONES
   ========================================================================== */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   RESPONSIVE DESIGN (Móvil y Tablet)
   ========================================================================== */
@media (max-width: 1024px) {
  .search-grid { grid-template-columns: 1fr 1fr; }
  .commission-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .specs-bar-catedral { grid-template-columns: repeat(3, 1fr); }
  .spec-col:nth-child(3) { border-right: none; }
  .slide-caption { padding: 30px 32px; }
}

@media (max-width: 768px) {
  .header-inner { padding: 12px 0; }
  .mobile-menu-btn { display: block; }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(251, 249, 244, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    padding: 26px 28px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  nav.main-nav a { color: var(--ink-heading); }
  nav.main-nav.mobile-open { display: flex; }
  .top-bar { display: none; }

  .hero-section { padding: 64px 0 80px; }
  .search-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .prop-body-grid { grid-template-columns: 1fr; }
  .specs-bar-catedral { grid-template-columns: repeat(2, 1fr); }
  .calc-controls { grid-template-columns: 1fr; }
  .properties-container.grid-view { grid-template-columns: 1fr; }
  .modal-body-content { padding: 28px 22px; }
  .simulator-card { padding: 26px 22px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .commission-grid { grid-template-columns: 1fr; gap: 24px; }
  .cta-stats-card { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
  .commission-header { margin-bottom: 32px; }
  .slide-actions { flex-wrap: wrap; gap: 12px; }
  .slide-caption { padding: 22px 20px; }
  .view-prop-btn { width: auto; }
  .commission-grid > * { min-width: 0; }
  #commissionTableContent { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #commissionTableContent .catedral-table { min-width: 480px; }
  .catalog-toolbar { flex-wrap: wrap; }
}

/* =============================
   Toasts (notificaciones no bloqueantes)
   ============================= */

.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 12000;
  pointer-events: none;
  max-width: min(520px, calc(100vw - 32px));
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 14px 16px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.toast-visible { opacity: 1; transform: translateY(0); }
.toast.toast-leaving { opacity: 0; transform: translateY(8px); }

.toast-icon { display: flex; margin-top: 1px; flex-shrink: 0; }

.toast-success .toast-icon { color: #2E7D32; }
.toast-info .toast-icon { color: var(--navy); }
.toast-warning .toast-icon { color: #B8860B; }
.toast-error .toast-icon { color: #C62828; }
.toast-success { border-left-color: #2E7D32; }
.toast-warning { border-left-color: #B8860B; }
.toast-error { border-left-color: #C62828; }

.toast-msg {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-heading);
  font-weight: 500;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  transition: color 0.2s;
}
.toast-close:hover { color: var(--ink-heading); }

/* =============================
   Modal de Confirmación
   ============================= */

.confirm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 27, 44, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 11000;
  opacity: 0;
  transition: opacity 0.2s ease;
  padding: 20px;
}

.confirm-backdrop.confirm-visible { opacity: 1; }
.confirm-backdrop.confirm-closing { opacity: 0; }

.confirm-dialog {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  transform: scale(0.95) translateY(8px);
  transition: transform 0.2s ease;
}

.confirm-backdrop.confirm-visible .confirm-dialog { transform: scale(1) translateY(0); }

.confirm-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  background: rgba(199, 164, 91, 0.12);
  color: var(--gold);
}

.confirm-icon.confirm-icon-danger {
  background: rgba(198, 40, 40, 0.1);
  color: #C62828;
}

.confirm-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-heading);
  margin: 0 0 8px;
}

.confirm-message {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 22px;
}

.confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.confirm-actions .btn { min-width: 130px; }

.btn-danger {
  background: #C62828;
  color: var(--white);
}
.btn-danger:hover { background: #A91F1F; }

@media (prefers-reduced-motion: reduce) {
  .toast, .confirm-backdrop, .confirm-dialog { transition: none; }
}
