/* ============================================================
   CONFINCA · Sistema de diseño
   Inmobiliaria — 35 años en Bucaramanga
   ============================================================ */

:root {
  /* Brand */
  --navy: #286ad3;
  --navy-2: #1B3358;
  --navy-soft: #2A436A;
  --ink: #0A1428;
  --bg: #F2F4F7;
  --bg-2: #EAEEF4;
  --surface: #FFFFFF;
  --line: #E1E6EE;
  --line-soft: #EEF1F6;
  --muted: #6B7689;
  --muted-2: #95A0B3;
  --gold: #C9A961;
  --gold-soft: #E9D9AE;
  --success: #1E8156;
  --warn: #C2410C;

  /* Type */
  --serif: 'Montserrat', system-ui, -apple-system, Segoe UI, sans-serif;
  --sans: 'Montserrat', system-ui, -apple-system, Segoe UI, sans-serif;
  --display: 'Montserrat', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Spacing scale */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(14, 31, 58, 0.04);
  --shadow-sm: 0 2px 6px rgba(14, 31, 58, 0.05), 0 1px 2px rgba(14, 31, 58, 0.04);
  --shadow-md: 0 8px 24px rgba(14, 31, 58, 0.07), 0 2px 6px rgba(14, 31, 58, 0.04);
  --shadow-lg: 0 24px 60px rgba(14, 31, 58, 0.12), 0 8px 20px rgba(14, 31, 58, 0.06);

  /* Card style — tweakable */
  --card-radius: 18px;
}

[data-theme="dark"] {
  --navy: #F4F6FB;
  --navy-2: #DCE2EE;
  --navy-soft: #C2CBDC;
  --ink: #F8FAFE;
  --bg: #08101F;
  --bg-2: #0D1729;
  --surface: #11203B;
  --line: #1F3050;
  --line-soft: #182846;
  --muted: #9AA8C2;
  --muted-2: #6B7E9D;
  --gold: #DCC07E;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
}

[data-brand="emerald"] {
  --navy: #0F2E26;
  --navy-2: #1A4A3F;
  --navy-soft: #2A6354;
}
[data-brand="onyx"] {
  --navy: #14171C;
  --navy-2: #2A2F38;
  --navy-soft: #3D4452;
}
[data-brand="bordeaux"] {
  --navy: #3A0E1A;
  --navy-2: #5C1A2C;
  --navy-soft: #7A2A3F;
}

[data-typo="serif"] {
  --display: var(--serif);
}
[data-typo="sans"] {
  --display: var(--sans);
}
[data-typo="mix"] {
  --display: var(--sans);
}
/* Montserrat option — replaces the body sans across the whole site */
[data-typo="montserrat"] {
  --sans: 'Montserrat', system-ui, -apple-system, Segoe UI, sans-serif;
  --display: 'Montserrat', sans-serif;
}
[data-typo="montserrat"] body,
[data-typo="montserrat"] .brand-name,
[data-typo="montserrat"] .nav-links a,
[data-typo="montserrat"] .btn,
[data-typo="montserrat"] .card-title,
[data-typo="montserrat"] .section-title,
[data-typo="montserrat"] .hero-title,
[data-typo="montserrat"] .page-hero h1,
[data-typo="montserrat"] .testi-quote,
[data-typo="montserrat"] .service-title,
[data-typo="montserrat"] .value-title,
[data-typo="montserrat"] .detail-title,
[data-typo="montserrat"] .card-price-amount,
[data-typo="montserrat"] .stat-num,
[data-typo="montserrat"] .footer-brand,
[data-typo="montserrat"] .tweaks-title,
[data-typo="montserrat"] .about-stamp-num,
[data-typo="montserrat"] .spec-value,
[data-typo="montserrat"] .sidebar-price {
  font-family: 'Montserrat', system-ui, sans-serif;
}
/* BOLD weight for titles and subtitles in Montserrat mode */
[data-typo="montserrat"] .hero-title,
[data-typo="montserrat"] .section-title,
[data-typo="montserrat"] .page-hero h1,
[data-typo="montserrat"] .card-title,
[data-typo="montserrat"] .detail-title,
[data-typo="montserrat"] .service-title,
[data-typo="montserrat"] .value-title,
[data-typo="montserrat"] .testi-quote,
[data-typo="montserrat"] .footer-brand,
[data-typo="montserrat"] .stat-num,
[data-typo="montserrat"] .about-stamp-num,
[data-typo="montserrat"] .sidebar-price,
[data-typo="montserrat"] .card-price-amount,
[data-typo="montserrat"] .spec-value,
[data-typo="montserrat"] .tweaks-title {
  font-weight: 700;
  letter-spacing: -0.02em;
}
/* Subtítulos / eyebrows / labels en bold también */
[data-typo="montserrat"] .eyebrow,
[data-typo="montserrat"] .section-sub,
[data-typo="montserrat"] .hero-sub,
[data-typo="montserrat"] .page-hero p,
[data-typo="montserrat"] .value-headline,
[data-typo="montserrat"] .card-loc,
[data-typo="montserrat"] .footer h4,
[data-typo="montserrat"] .filter-section h4,
[data-typo="montserrat"] .form-field label,
[data-typo="montserrat"] .search-field-label,
[data-typo="montserrat"] .tweak-label {
  font-weight: 700;
}
[data-typo="montserrat"] .section-sub,
[data-typo="montserrat"] .hero-sub,
[data-typo="montserrat"] .page-hero p {
  font-weight: 500;
}
[data-typo="montserrat"] .hero-title em,
[data-typo="montserrat"] .section-title em,
[data-typo="montserrat"] .page-hero h1 em {
  font-style: italic;
  font-weight: 700;
}

/* Base */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body { min-height: 100vh; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font: inherit; color: inherit; }

.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.mono { font-family: var(--mono); letter-spacing: 0.02em; }

/* ============================================================
   GLOBAL TYPE — Montserrat everywhere
   Titles & subtitles use BOLD (700). Body 400/500.
   ============================================================ */
body, .nav-links a, .btn, .pill, .eyebrow, p, span, li, input, select, textarea, label, button {
  font-family: 'Montserrat', system-ui, sans-serif;
}
/* Override the serif/display variables anywhere they bleed through */
.hero-title, .section-title, .page-hero h1, .card-title, .detail-title,
.service-title, .value-title, .testi-quote, .footer-brand,
.stat-num, .about-stamp-num, .sidebar-price, .card-price-amount,
.spec-value, .tweaks-title, .team-name, .brand, .brand-name,
.detail-section h3, .office-body h3, .contact-card h4,
.leadership-name, .story-h, .tl-year, .legal h2,
.portal-pitch-grid h1, .portal-pitch-card h3,
.portal-login-card h3, .portal-section-h h3,
.portal-header h2, .kpi-value, .portal-card-body h4,
.portal-lease-body h4, .adm-title, .adm-card-title {
  font-family: 'Montserrat', system-ui, sans-serif !important;
  font-weight: 700;
  letter-spacing: -0.02em;
}
/* KPI values un poco menos heavy */
.kpi-value, .adm-kpi-value { font-weight: 600 !important; }
/* Hero portal: 50px en desktop */
.portal-pitch-grid h1 { font-size: clamp(40px, 5vw, 50px) !important; line-height: 1.05; }
.hero-title em, .section-title em, .page-hero h1 em {
  font-family: 'Montserrat', system-ui, sans-serif !important;
  font-style: italic;
  font-weight: 700;
}
.testi-mark { font-family: 'Montserrat', system-ui, sans-serif !important; font-weight: 800; }
/* Subtítulos / eyebrows / labels — bold (700) */
.eyebrow, .value-headline, .card-loc, .footer h4,
.filter-section h4, .form-field label, .search-field-label,
.tweak-label, .testi-name, .team-role, .card-badge,
.spec-label, .schedule-row span:first-child {
  font-weight: 700;
}
/* Cuerpo / descripciones — medium-weight para legibilidad */
.section-sub, .hero-sub, .page-hero p, .about-body p,
.service-desc, .value-card p, .testi-quote,
.office-body p, .detail-section p {
  font-weight: 500;
}
/* Compact spacing for Montserrat (it's wider than Jakarta) */
.hero-title { letter-spacing: -0.035em; line-height: 0.98; }
.section-title { letter-spacing: -0.03em; line-height: 1.02; }
.page-hero h1 { letter-spacing: -0.03em; }
.card-title { letter-spacing: -0.025em; font-weight: 800; font-size: 20px; }
.service-title, .value-title { letter-spacing: -0.02em; font-size: 24px; }
.detail-title { letter-spacing: -0.03em; }

/* ============================================================ Layout */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-wide {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================================ Top strip */
.top-strip {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  padding: 8px 0;
  letter-spacing: 0.02em;
}
[data-theme="dark"] .top-strip { background: var(--bg-2); color: var(--muted); }
.top-strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.top-strip-left, .top-strip-right {
  display: flex;
  align-items: center;
  gap: 22px;
}
.top-strip a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  opacity: 0.75;
  transition: opacity 0.15s;
}
.top-strip a:hover { opacity: 1; }
.top-strip a svg { width: 14px; height: 14px; opacity: 0.7; }
.top-strip-pay {
  background: rgba(96, 214, 160, 0.12);
  color: #9CE9C5 !important;
  padding: 5px 12px;
  border-radius: 999px;
  opacity: 1 !important;
}
[data-theme="dark"] .top-strip-pay { color: #6ECFA5 !important; }

/* ============================================================ Nav */
.nav-wrap {
  position: sticky;
  top: 12px;
  z-index: 50;
  padding: 0 24px;
  margin-top: 12px;
}
.nav {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 10px 22px 10px 22px;
  background: var(--surface);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line-soft);
}
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--navy);
  line-height: 1;
}
.brand-logo {
  height: 38px;
  width: auto;
  display: block;
  /* Black logo recolored to brand navy via CSS filter */
  filter: brightness(0) saturate(100%) invert(11%) sepia(34%) saturate(2000%) hue-rotate(195deg) brightness(95%) contrast(95%);
  transition: filter 0.2s;
}
[data-theme="dark"] .brand-logo {
  filter: brightness(0) invert(1);
}
[data-brand="onyx"] .brand-logo {
  filter: brightness(0);
}
[data-brand="emerald"] .brand-logo {
  filter: brightness(0) saturate(100%) invert(17%) sepia(35%) saturate(1100%) hue-rotate(118deg) brightness(95%) contrast(95%);
}
[data-brand="bordeaux"] .brand-logo {
  filter: brightness(0) saturate(100%) invert(13%) sepia(72%) saturate(2600%) hue-rotate(335deg) brightness(70%) contrast(95%);
}
.footer-logo {
  height: 60px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.05em;
}
.brand-name {
  font-weight: 400;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-family: var(--sans);
  font-weight: 600;
  color: var(--navy);
}
.brand-name b { font-weight: 600; }

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-links a {
  padding: 10px 16px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  opacity: 0.78;
  transition: all 0.15s ease;
}
.nav-links a:hover { opacity: 1; background: var(--bg-2); }
.nav-links a.active { background: var(--navy); color: #fff; opacity: 1; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================================ Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.1s ease, background 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(145deg, rgba(27,51,88,.95), var(--navy));
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.18), 0 6px 20px -8px rgba(14,31,58,.4);
}
.btn-primary:hover {
  background: linear-gradient(145deg, rgba(27,51,88,1), var(--navy-2));
  transform: translateY(-2px);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.22), 0 12px 28px -10px rgba(14,31,58,.5);
}
.btn-ghost {
  background: linear-gradient(145deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,.38) 100%);
  color: var(--navy);
  border: 1px solid rgba(255,255,255,.82);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(14,31,58,.04), 0 6px 22px -8px rgba(14,31,58,.14);
}
.btn-ghost:hover {
  background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(255,255,255,.62));
  border-color: rgba(255,255,255,.96);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.95), 0 10px 30px -10px rgba(14,31,58,.22);
  transform: translateY(-2px);
}
.btn-gold {
  background: linear-gradient(145deg, #D4AC55, var(--gold));
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.32), 0 6px 20px -8px rgba(201,169,97,.42);
}
.btn-gold:hover {
  background: linear-gradient(145deg, #C9A050, #B8913A);
  transform: translateY(-2px);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.35), 0 12px 30px -10px rgba(201,169,97,.52);
}
.btn-lg { padding: 16px 28px; font-size: 15px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--navy);
}
.btn-icon:hover { background: var(--line); }

/* ============================================================ Pill / Chip */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--bg-2);
  color: var(--navy);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pill-dark { background: var(--navy); color: #fff; }
.pill-gold { background: var(--gold-soft); color: var(--ink); }
.pill-success { background: rgba(30, 129, 86, 0.12); color: var(--success); }

/* ============================================================ Eyebrow */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  display: inline-block;
  opacity: 0.5;
}

/* ============================================================ Hero */
.hero {
  position: relative;
  padding: 24px 24px 0;
  margin-top: 18px;
}
.hero-inner {
  position: relative;
  max-width: 1480px;
  margin: 0 auto;
  height: 720px;
  border-radius: 32px;
  overflow: hidden;
  background: var(--navy);
  isolation: isolate;
}
.hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 23, 44, 0.55) 0%, rgba(11, 23, 44, 0.32) 30%, rgba(11, 23, 44, 0.55) 62%, rgba(11, 23, 44, 0.88) 100%),
    linear-gradient(90deg, rgba(11, 23, 44, 0.45) 0%, rgba(11, 23, 44, 0.12) 55%, rgba(11, 23, 44, 0) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px 64px;
  color: #fff;
  text-shadow: 0 1px 18px rgba(7, 16, 33, 0.45);
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}
.hero-stats b { font-family: var(--serif); font-weight: 400; font-size: 32px; display: block; color: #fff; }

.hero-main {
  display: flex;
  flex-direction: column;
  gap: 40px;
  flex: 1;
}

.hero-heading {
  max-width: 750px;
}

.hero-stats-inline {
  display: flex;
  gap: 48px;
  flex-direction: row;
  text-align: left;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stat-num {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  color: #fff;
  display: block;
}

.hero-stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.05em;
}


.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin: 0 0 18px;
  color: #fff;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-soft);
}
.hero-sub {
  font-size: 17px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 0 32px;
}

/* ============================================================ Search bar */
.search-bar {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr auto;
  align-items: stretch;
  overflow: hidden;
  max-width: 880px;
}
.search-bar.compact { grid-template-columns: 1.2fr 1fr 1fr auto; }
.search-field {
  padding: 16px 22px;
  border-right: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}
.search-field:hover { background: var(--bg-2); }
.search-field:last-of-type { border-right: none; }
.search-field-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.search-field-value {
  font-size: 15px;
  color: var(--navy);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.search-field select {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 15px;
  color: var(--navy);
  font-weight: 500;
  appearance: none;
  cursor: pointer;
  width: 100%;
  outline: none;
}
.search-submit {
  margin: 8px;
  padding: 0 28px;
  background: var(--navy);
  color: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14px;
  transition: background 0.15s;
}
.search-submit:hover { background: var(--navy-2); }

/* ============================================================ Section */
.section {
  padding: 96px 0;
}
.section-sm { padding: 64px 0; }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 40px;
}
.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 12px 0 0;
  max-width: 800px;
}
.section-title em { font-style: italic; color: var(--navy-soft); }
.section-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 420px;
  line-height: 1.5;
  margin: 0;
}

/* ============================================================ Property card */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cards-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-2);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card-media img { transform: scale(1.04); }
.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.card-badge.featured { background: var(--navy); color: #fff; }
.card-badge.gold { background: var(--gold); color: var(--ink); }
.card-fav,
.card-share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--navy);
  backdrop-filter: blur(6px);
  transition: all 0.15s;
  flex-shrink: 0;
}
.card-fav:hover,
.card-share-btn:hover { transform: scale(1.08); background: #fff; }
.card-fav.is-fav { background: var(--navy); color: var(--gold-soft); }
.card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.card-loc {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}
.card-title {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin: 0;
  text-wrap: pretty;
}
.card-specs {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
  margin-top: auto;
}
.card-spec {
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.card-price-block {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.card-price-amount {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1;
}
.card-price-per {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}
.card-price-note {
  font-size: 12px;
  color: var(--muted);
}

/* Card meta row: location + type chip */
.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-meta-row .card-loc {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-type-chip {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
  font-family: 'Montserrat', system-ui, sans-serif;
}

/* List view */
.cards-grid.list-view {
  grid-template-columns: 1fr;
  gap: 16px;
}
.cards-grid.list-view .card {
  flex-direction: row;
}
.cards-grid.list-view .card-media {
  aspect-ratio: auto;
  width: 320px;
  min-height: 220px;
  flex-shrink: 0;
}
.cards-grid.list-view .card-body {
  flex: 1;
  padding: 24px 28px;
}

/* Carousel view */
.cards-grid.carousel-view {
  grid-template-columns: repeat(var(--card-count, 4), minmax(300px, 1fr));
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.cards-grid.carousel-view .card { scroll-snap-align: start; }

/* ============================================================ Stat block */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 8px;
}
.stat-num small { font-size: 28px; color: var(--gold); }
.stat-label {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  max-width: 200px;
}

/* ============================================================ Service · LIQUID GLASS */

/* Decorative aura so the glass has color to refract */
.glass-aura {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}
.glass-aura.gold   { background: radial-gradient(circle, rgba(201,169,97,0.55), transparent 68%); }
.glass-aura.blue   { background: radial-gradient(circle, rgba(70,120,210,0.40), transparent 68%); }
#servicios .container { position: relative; z-index: 1; }

/* ---- Values grid ---- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.value-card,
.service-card {
  position: relative;
  isolation: isolate;
  padding: 32px 30px;
  border-radius: 24px;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(158deg, rgba(255,255,255,0.13) 0%, rgba(255,255,255,0.05) 46%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.16);
  -webkit-backdrop-filter: blur(20px) saturate(155%);
  backdrop-filter: blur(20px) saturate(155%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.30),
    inset 0 0 0 1px rgba(255,255,255,0.02),
    0 24px 48px -24px rgba(0,0,0,0.65);
  transition: transform 0.35s cubic-bezier(.2,.7,.3,1), box-shadow 0.35s ease, border-color 0.35s ease;
}
/* specular sheen */
.value-card::before,
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(130% 90% at 0% 0%, rgba(255,255,255,0.22), transparent 42%);
  opacity: 0.85;
  z-index: 0;
}
/* gold under-glow that wakes on hover */
.value-card::after,
.service-card::after {
  content: "";
  position: absolute;
  inset: auto -40% -60% -40%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,97,0.35), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}
.value-card:hover,
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201,169,97,0.45);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.38),
    0 30px 60px -24px rgba(0,0,0,0.7),
    0 0 0 1px rgba(201,169,97,0.12);
}
.value-card:hover::after,
.service-card:hover::after { opacity: 1; }
.value-card > *,
.service-card > * { position: relative; z-index: 1; }

/* icon chip — frosted gold glass */
.svc-icon {
  width: 56px;
  height: 56px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--gold-soft);
  background: linear-gradient(160deg, rgba(201,169,97,0.34), rgba(201,169,97,0.07));
  border: 1px solid rgba(201,169,97,0.40);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    0 10px 22px -12px rgba(201,169,97,0.7);
  transition: transform 0.35s ease;
}
.svc-icon img {
    filter: brightness(0) saturate(100%) invert(100%);
    width: 27px;
    height: 27px;
}
.value-card:hover .svc-icon,
.service-card:hover .svc-icon { transform: scale(1.06) rotate(-3deg); }
.svc-icon svg { width: 27px; height: 27px; }



.value-card { display: flex; flex-direction: column; gap: 10px; }
.value-num,
.service-num {
  position: absolute;
  top: 26px;
  right: 28px;
  font-family: var(--mono, monospace);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(201,169,97,0.85);
  z-index: 1;
}
.value-title {
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: -0.01em;
  margin: 0;
  color: #fff;
  font-weight: 400;
}
.value-headline {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.value-card p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,0.78);
  margin: 6px 0 0;
}

/* ---- Services grid ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  position: relative;
  z-index: 1;
  background: transparent !important;
  border: none !important;
}
.service-card {
  padding: 34px 30px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: default;
}
.service-title {
  font-family: var(--serif);
  font-size: 25px;
  color: #fff;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.service-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
  margin: 0;
  text-align:justify;
}
.service-cta-row { margin-top: auto; padding-top: 18px; }

/* impactful gold-glass pill button */
.service-link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.service-btn {
  align-self: flex-start;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 999px;
  color: #1B1306 !important;
  border: 1px solid rgba(255,255,255,0.45) !important;
  background: linear-gradient(160deg, rgba(231,202,135,0.98), rgba(201,169,97,0.86));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    0 12px 26px -12px rgba(201,169,97,0.75);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.service-btn svg { stroke: #1B1306; transition: transform 0.2s ease; }
.service-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    0 18px 34px -12px rgba(201,169,97,0.9);
}
.service-btn:hover svg { transform: translateX(4px); }

/* ghost glass variant for secondary CTAs */
.service-btn.ghost {
  background: rgba(255,255,255,0.06);
  color: var(--gold-soft) !important;
  border: 1px solid rgba(201,169,97,0.45) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}
.service-btn.ghost svg { stroke: var(--gold-soft); }
.service-btn.ghost:hover {
  background: rgba(201,169,97,0.14);
  filter: none;
}

/* ============================================================ Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.team-card {
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--bg-2);
}
.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: grayscale(0.2);
}
.team-card:hover img { transform: scale(1.05); filter: grayscale(0); }
.team-card-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 22px;
  color: #fff;
  background: linear-gradient(180deg, transparent 0%, rgba(14, 31, 58, 0.85) 100%);
}
.team-name {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 2px;
}
.team-role {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  font-weight: 500;
}

/* ============================================================ Testimonial */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testi {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--card-radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.testi-quote {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.3;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin: 0;
  flex: 1;
}
.testi-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 64px;
  line-height: 0.5;
  color: var(--gold);
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-2);
  object-fit: cover;
}
.testi-name { font-weight: 600; font-size: 14px; color: var(--navy); }
.testi-meta { font-size: 12px; color: var(--muted); }

/* ============================================================ About strip */
.about-strip {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-image {
  aspect-ratio: 4/5;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-stamp {
  position: absolute;
  bottom: 24px;
  right: 24px;
  /*background: var(--surface);*/
  background: var(--az);
  border-radius: var(--r-pill);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-md);
}
.about-stamp-num {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1;
  color: var(--navy);
}
.about-stamp-text {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
}
.about-body p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 18px;
}
.about-body p.lead {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.3;
  color: var(--navy);
  letter-spacing: -0.01em;
}

/* ============================================================ Footer */
.footer {
  background: var(--navy);
  color: #fff;
  padding: 80px 0 32px;
  margin-top: 80px;
}
[data-theme="dark"] .footer { background: var(--bg-2); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer h4 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
  margin: 0 0 16px;
  font-weight: 600;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-grid > div:last-child ul li {
  font-size: 13px;
  line-height: 1.5;
}
.footer a {
  font-size: 14px;
  opacity: 0.85;
  transition: opacity 0.15s;
}
.footer a:hover { opacity: 1; }
.footer-brand {
  font-family: var(--serif);
  font-size: 48px;
  line-height: 1;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.footer-desc {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.75;
  max-width: 320px;
  margin: 0 0 20px;
}
.footer-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  opacity: 0.7;
}

/* ============================================================ Newsletter */
.newsletter {
  display: flex;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--r-pill);
  padding: 4px;
  max-width: 390px;
}
.newsletter input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 18px;
  color: #fff;
  outline: none;
  font-size: 14px;
}
.newsletter input::placeholder { color: rgba(255, 255, 255, 0.55); }
.newsletter button {
  background: rgb(243, 244, 244);
  color: var(--ink);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
}

/* ============================================================ Tweaks panel */
.tweaks-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: transform 0.15s;
}
.tweaks-fab:hover { transform: scale(1.06); }
.tweaks-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  width: 320px;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  padding: 20px;
  display: none;
  flex-direction: column;
  gap: 18px;
  max-height: 80vh;
  overflow-y: auto;
}
.tweaks-panel.open { display: flex; }
.tweaks-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tweaks-title {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--navy);
}
.tweak-row { display: flex; flex-direction: column; gap: 8px; }
.tweak-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.tweak-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 6px;
}
.tweak-opt {
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid transparent;
  font-size: 12px;
  color: var(--navy);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s;
  text-align: center;
}
.tweak-opt:hover { border-color: var(--line); }
.tweak-opt.active {
  background: var(--navy);
  color: #fff;
}
.tweak-swatch {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.12s;
}
.tweak-swatch.active { border-color: var(--gold); transform: scale(0.94); }
.tweak-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 4px;
  background: var(--bg-2);
  border-radius: 4px;
  outline: none;
}
.tweak-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--navy);
  cursor: pointer;
}

/* ============================================================ Detail page */
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 260px 260px;
  gap: 8px;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 32px;
}
.gallery > :first-child {
  grid-row: span 2;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s;
  cursor: pointer;
}
.gallery img:hover { opacity: 0.92; }

.detail-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: start;
}
.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}
.detail-title {
  font-family: var(--serif);
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0;
}
.detail-loc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 28px 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.spec-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.spec-icon { color: rgb(0, 37, 133); }
.spec-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.spec-value {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy);
}

.detail-section {
  margin-top: 36px;
}
.detail-section h3 {
  font-family: var(--serif);
  font-size: 26px;
  margin: 0 0 14px;
  color: var(--navy);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.detail-section p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.amenities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.amenity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  font-size: 14px;
  color: var(--navy);
}
.amenity-ic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--navy);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.detail-sidebar {
  position: sticky;
  top: 100px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.sidebar-price {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin: 0;
}
.sidebar-price-note {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.sidebar-agent {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg);
  border-radius: 14px;
  margin: 20px 0;
}
.sidebar-agent img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}
.sidebar-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.sidebar-form input,
.sidebar-form textarea {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  background: var(--surface);
  color: var(--navy);
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s;
}
.sidebar-form input:focus,
.sidebar-form textarea:focus { border-color: var(--navy); }
.sidebar-form textarea { resize: vertical; min-height: 80px; }

/* ============================================================ Filters (listing page) */
.listing-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}
.filter-panel {
  /*background: var(--surface);*/
  background: #ffffd4;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  position: sticky;
  top: 100px;
}
.filter-section {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
.filter-section:last-child { border-bottom: none; }
.filter-section h4 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
  font-weight: 600;
}
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.filter-chip {
  padding: 7px 12px;
  border-radius: var(--r-pill);
  background: var(--bg-2);
  font-size: 13px;
  color: var(--navy);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.12s;
}
.filter-chip:hover { border-color: var(--line); }
.filter-chip.active {
  background: var(--navy);
  color: #fff;
}
.filter-range {
  display: flex;
  align-items: center;
  gap: 10px;
}
.filter-range input {
  flex: 1;
  width: 0;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  background: var(--surface);
  color: var(--navy);
  outline: none;
}
.listing-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.listing-count {
  font-size: 14px;
  color: var(--muted);
}
.listing-count b { color: var(--navy); font-family: var(--serif); font-size: 22px; font-weight: 400; }
.view-switch {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 4px;
}
.view-switch button {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  color: var(--muted);
}
.view-switch button.active {
  background: var(--navy);
  color: #fff;
}

/* ============================================================ Contact */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-card-ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-2);
  color: var(--navy);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contact-card h4 {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--navy);
}
.contact-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.form-field input,
.form-field select,
.form-field textarea {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  background: var(--bg);
  color: var(--navy);
  outline: none;
  font-family: inherit;
  transition: all 0.15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--navy);
  background: var(--surface);
}
.form-field textarea { resize: vertical; min-height: 120px; }

/* ============================================================ Breadcrumb */
.crumb {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 18px;
  letter-spacing: 0.04em;
}
.crumb a:hover { color: var(--navy); }
.crumb .sep { opacity: 0.5; }

/* ============================================================ Page hero (smaller pages) */
.page-hero {
  padding: 60px 0 30px;
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 80px);
  /* font-weight: 400; */
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 8px 0 12px;
  color: var(--navy);
}
.page-hero h1 em { font-style: italic; color: var(--navy-soft); }
.page-hero p {
  font-size: 17px;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.5;
  margin: 0;
}

/* ============================================================ Trust strip */
.trust {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
.trust span { opacity: 0.65; }

/* ============================================================ Utilities */
.text-muted { color: var(--muted); }
.text-gold { color: var(--gold); }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.hidden { display: none; }

/* Subtle entry animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease both; }
.fade-up.d1 { animation-delay: 0.1s; }
.fade-up.d2 { animation-delay: 0.2s; }
.fade-up.d3 { animation-delay: 0.3s; }

/* ============================================================
   RESPONSIVE — 1100px (tablet / small desktop)
   ============================================================ */
@media (max-width: 1100px) {
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .testi-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .detail-grid, .listing-wrap, .contact-wrap, .about-strip {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .filter-panel, .detail-sidebar { position: static; }
}

/* ============================================================
   NAV — tablet / iPad (≤ 1024px): hamburguesa, sin dock inferior
   El nav de escritorio (7 enlaces + WhatsApp) necesita ~980px,
   así que en iPad portrait/landscape pasamos al menú hamburguesa.
   ============================================================ */
@media (max-width: 1024px), (pointer: coarse) {
  .nav { grid-template-columns: auto auto; justify-content: space-between; }
  .nav-links { display: none; }
  .nav-wa-btn { display: none !important; }
  .nav-hamburger { display: grid !important; }
}

/* Hero — intermediate widths (tablet landscape) */
@media (max-width: 960px) {
  .hero-inner { height: auto; min-height: 580px; }
  .hero-content { padding: 36px 40px 44px; }
  .hero-title { width: auto !important; height: auto !important; }
}

/* ============================================================
   SAFARI / TOUCH — Global improvements (all breakpoints)
   ============================================================ */
* { -webkit-tap-highlight-color: transparent; }
button, a, label, select, input, textarea { touch-action: manipulation; }

/* ============================================================
   MOBILE — ≤ 720px  (Safari iOS optimized)
   ============================================================ */
@media (max-width: 720px) {
  /* Prevent iOS Safari auto-zoom on input focus */
  input, select, textarea { font-size: 16px !important; }

  .container, .container-wide { padding: 0 16px; }

  /* Top strip — collapse left side */
  .top-strip-left { display: none; }
  .top-strip-inner { justify-content: flex-end; }
  .top-strip-right { gap: 12px; }

  /* Nav */
  .nav-wrap { padding: 0 12px; top: 8px; margin-top: 8px; }
  .nav { padding: 8px 8px 8px 16px; gap: 8px; }
  .nav-links { display: none; }
  .nav-wa-btn { display: none !important; }
  .nav-hamburger { display: grid !important; }

  /* Hero */
  .hero { padding: 10px 10px 0; margin-top: 10px; }
  .hero-inner { height: auto !important; min-height: 420px; border-radius: 20px; }
  .hero-image::after {
    background:
      linear-gradient(180deg, rgba(11, 23, 44, 0.72) 0%, rgba(11, 23, 44, 0.55) 45%, rgba(11, 23, 44, 0.7) 75%, rgba(11, 23, 44, 0.9) 100%) !important;
  }
  .hero-content {
    padding: 20px 20px 28px;
    justify-content: flex-start;
    gap: 24px;
    text-shadow: 0 1px 14px rgba(7, 16, 33, 0.6);
  }
  .hero-top { flex-wrap: wrap; gap: 8px; }
  .hero-stats b { font-size: 22px; }
  .hero-main { gap: 24px; }
  .hero-stats-inline {
    gap: 32px;
    flex-wrap: wrap;
  }
  .hero-stat-num { font-size: 20px; }
  .hero-stat-label { font-size: 12px; }
  .hero-title {
    font-size: clamp(30px, 9.5vw, 50px) !important;
    width: auto !important;
    height: auto !important;
    padding-bottom: 10px !important;
    line-height: 1.05 !important;
    margin-bottom: 0 !important;
  }
  .hero-sub {
    font-size: 14px !important;
    margin-bottom: 16px !important;
    max-width: 100% !important;
    color: rgba(255, 255, 255, 0.95) !important;
  }

  /* Search bar — 2 × 2 grid on mobile */
  .search-bar {
    grid-template-columns: 1fr 1fr;
    border-radius: 14px;
    max-width: 100%;
  }
  .search-field { padding: 12px 14px; }
  .search-field:nth-child(2) { border-right: none; }
  .search-field:nth-child(3),
  .search-field:nth-child(4) { border-top: 1px solid var(--line-soft); }
  .search-field:nth-child(3) { border-right: 1px solid var(--line-soft); }
  .search-field-value,
  .search-field select { font-size: 15px !important; }
  .search-submit {
    grid-column: 1 / -1;
    margin: 0 8px 8px;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 15px;
  }

  /* Trust strip */
  .trust {
    flex-wrap: wrap;
    gap: 10px 20px;
    justify-content: center;
    font-size: 11px;
    padding: 18px 0;
  }

  /* Sections */
  .section { padding: 52px 0; }
  .section-sm { padding: 36px 0; }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 28px;
  }
  .section-title { font-size: clamp(26px, 8vw, 40px); }
  .section-sub { max-width: 100%; font-size: 14px; }

  /* Property cards */
  .cards-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cards-grid.cols-2 { grid-template-columns: minmax(0, 1fr); }

  /* Listing toolbar — wrap count + sort on mobile */
  .listing-toolbar { flex-wrap: wrap; gap: 12px 16px; }

  /* About */
  .about-strip { gap: 28px; }
  .about-image { aspect-ratio: 4/3; }
  .about-stamp { padding: 12px 16px; gap: 10px; bottom: 14px; right: 14px; }
  .about-stamp-num { font-size: 28px; }
  .about-body p { font-size: 15px; }
  .about-body p.lead { font-size: 20px; }

  /* Stats — 2 × 2 */
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px 14px; }
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-child(2n+1) { border-right: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat-num { font-size: 40px; }
  .stat-num small { font-size: 20px; }
  .stat-label { font-size: 12px; max-width: none; }

  /* Values */
  .values-grid { grid-template-columns: 1fr; }
  .value-card { padding: 24px 20px; }
  .value-title { font-size: 26px; }

  /* Team */
  .team-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .team-name { font-size: 16px; }

  /* Testimonials */
  .testi { padding: 24px 20px; }
  .testi-quote { font-size: 18px; }

  /* CTA strip */
  .cta-card {
    grid-template-columns: 1fr !important;
    padding: 36px 24px !important;
    border-radius: 20px !important;
    gap: 24px !important;
    background-color: var(--navy) !important;
  }

  .cta-card .reveal{
    border-radius: 28px;
    padding: 64px 64px;
    color: #fff;
    display: grid;
    grid-template-columns: 1.4fr 1fr; gap: 40px;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color:var(--navy);
  }

  /* Footer */
  .footer {
    padding: 48px 0;
    padding-bottom: max(24px, env(safe-area-inset-bottom, 24px));
    margin-top: 40px;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { font-size: 36px; margin-bottom: 10px; }
  .newsletter { max-width: 100%; }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    font-size: 11px;
    margin-top: 32px;
  }

  /* Tweaks panel */
  .tweaks-panel {
    right: 12px;
    width: calc(100vw - 24px);
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
  .tweaks-fab { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); right: 16px; }

  /* Detail page (Propiedad) */
  .detail-title-row { flex-wrap: wrap; gap: 12px; }
  .detail-title-row > * { min-width: 0; }
  .detail-title { font-size: clamp(28px, 8vw, 40px); }
  .spec-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 8px;
    padding: 20px 0;
  }
  .spec-value { font-size: 18px; }
  .amenities { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Formularios — colapsar filas de 2 columnas */
  .form-row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .form-field input, .form-field select, .form-field textarea { min-width: 0; max-width: 100%; }
}

/* ============================================================
   HAMBURGER BUTTON & MOBILE NAV DRAWER
   ============================================================ */
.nav-hamburger {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--navy);
  cursor: pointer;
  border: none;
  flex-shrink: 0;
  transition: background 0.15s;
}
.nav-hamburger:hover { background: var(--line); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 8000;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s linear 0.3s;
}
.mobile-nav.open {
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}
.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 31, 58, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.mobile-nav.open .mobile-nav-backdrop { opacity: 1; }
.mobile-nav-drawer {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(300px, 82vw);
  background: var(--surface);
  padding: 16px;
  padding-top: max(20px, env(safe-area-inset-top, 20px));
  padding-bottom: max(20px, env(safe-area-inset-bottom, 20px));
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-nav.open .mobile-nav-drawer { transform: translateX(0); }
.mobile-nav-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px 16px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 8px;
}
.mobile-nav-brand {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.mobile-nav-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-2);
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--navy);
  transition: background 0.15s;
}
.mobile-nav-close:hover { background: var(--line); }
.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 13px 14px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
  transition: background 0.15s;
  text-decoration: none;
  min-height: 50px;
}
.mobile-nav-link:hover,
.mobile-nav-link:active { background: var(--bg-2); }
.mobile-nav-link.active {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
}
.mobile-nav-cta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile-nav-cta .btn {
  justify-content: center;
  font-size: 15px;
  padding: 15px 20px;
  min-height: 50px;
}

/* ============================================================
   PORTAL — Propietarios & Arrendatarios
   ============================================================ */
.portal-section-pitch {
  background: var(--navy);
  color: #fff;
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.portal-section-pitch::before {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 580px; height: 580px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,97,0.18), transparent 65%);
  pointer-events: none;
}
.portal-pitch-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}
.portal-pitch-grid h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 12px 0 20px;
  font-weight: 400;
}
.portal-pitch-grid h1 em {
  font-style: italic;
  color: var(--gold-soft);
}
.portal-pitch-grid p {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 24px;
}
.portal-pitch-bullets {
  list-style: none;
  padding: 0; margin: 28px 0 0;
  display: grid;
  gap: 14px;
}
.portal-pitch-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}
.portal-pitch-bullets li::before {
  content: "";
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-grid; place-items: center;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230A1428' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.portal-pitch-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 32px;
  backdrop-filter: blur(8px);
}
.portal-pitch-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  color: #fff;
  margin: 0 0 16px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.portal-pitch-stat {
  font-family: var(--serif);
  font-size: 64px;
  color: var(--gold);
  line-height: 1;
  margin: 12px 0;
  letter-spacing: -0.02em;
}
.portal-pitch-stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== Login layout ===== */
.portal-login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
}
.portal-features {
  list-style: none;
  padding: 0; margin: 32px 0 0;
  display: grid;
  gap: 16px;
}
.portal-features li {
  display: flex; align-items: center; gap: 14px;
  font-size: 15px;
  color: var(--navy);
}
.portal-features li svg {
  width: 40px; height: 40px;
  padding: 10px;
  border-radius: 12px;
  background: var(--bg-2);
  color: var(--navy);
  flex-shrink: 0;
}
.portal-login-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px 36px 28px;
  box-shadow: var(--shadow-md);
}

/* ===== Dashboard shell ===== */
.portal-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
  padding: 40px 0 96px;
}
.portal-sidebar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 18px;
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
}
.portal-user {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 4px 10px 18px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 14px;
}
.portal-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.portal-user-name { font-weight: 700; color: var(--navy); font-size: 14px; line-height: 1.2; }
.portal-user-role { font-size: 11px; color: var(--muted); margin-top: 2px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.portal-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.portal-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
}
.portal-nav a:hover { background: var(--bg-2); color: var(--navy); }
.portal-nav a.active { background: var(--navy); color: #fff; }
.portal-nav a.active svg { color: #fff; }
.portal-nav svg { color: var(--muted); }
.portal-logout {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-2);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  transition: background 0.15s;
}
.portal-logout:hover { background: var(--line); }

.portal-main { min-width: 0; }
.portal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
}
.portal-header-meta {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  line-height: 1.5;
}
.portal-header-meta strong { color: var(--navy); }

.portal-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 22px;
  display: flex;
  flex-direction: column;
}
.kpi-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.kpi-value {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.kpi-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.kpi-warn {
  border-color: rgba(194, 65, 12, 0.25);
  background: linear-gradient(180deg, rgba(194, 65, 12, 0.05), transparent);
}
.kpi-warn .kpi-value { color: #C2410C; }
.kpi-ok {
  border-color: rgba(30, 129, 86, 0.25);
  background: linear-gradient(180deg, rgba(30, 129, 86, 0.05), transparent);
}
.kpi-ok .kpi-value { color: #1E8156; font-size: 48px; }
.kpi-cta { background: var(--navy); color: #fff; }
.kpi-cta .kpi-label { color: rgba(255, 255, 255, 0.7); }
.kpi-cta .kpi-value { color: #fff; }

.portal-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 24px;
}
.portal-section-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.portal-section-h h3 {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--navy);
  margin: 0;
  letter-spacing: -0.01em;
  font-weight: 400;
}

.portal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.portal-card {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.portal-card-img {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  position: relative;
}
.portal-card-status {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.95);
  color: var(--navy);
}
.portal-card-status.ok { color: var(--success); }
.portal-card-status.warn { color: #C2410C; }
.portal-card-body { padding: 18px 20px 20px; }
.portal-card-cod {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.portal-card-body h4 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy);
  margin: 0 0 4px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.portal-card-loc {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}
.portal-card-meta {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}
.portal-card-meta > div { display: flex; flex-direction: column; gap: 2px; }
.portal-card-meta dt {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 0;
}
.portal-card-meta dd {
  font-size: 14px;
  color: var(--navy);
  margin: 0;
  font-weight: 500;
}

.portal-lease-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  overflow: hidden;
}
.portal-lease-img {
  background-size: cover;
  background-position: center;
  min-height: 240px;
}
.portal-lease-body { padding: 24px 28px; }

.portal-table-wrap { overflow-x: auto; }
.portal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.portal-table th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.portal-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--navy);
  vertical-align: middle;
}
.portal-table tr:last-child td { border-bottom: none; }
.portal-table tbody tr:hover { background: var(--bg-2); }
.portal-action {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--bg-2);
  color: var(--navy);
  display: inline-grid; place-items: center;
  margin-left: 4px;
  transition: background 0.15s;
}
.portal-action:hover { background: var(--line); }
.portal-action-pay { background: var(--gold); color: var(--ink); }
.portal-action-pay:hover { background: var(--gold-soft); }

.portal-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  background: var(--bg-2);
  border-radius: 16px;
}

@media (max-width: 1100px) {
  .portal-pitch-grid, .portal-login { grid-template-columns: 1fr; gap: 40px; }
  .portal-shell { grid-template-columns: 1fr; }
  .portal-sidebar { position: static; }
  .portal-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-lease-card { grid-template-columns: 1fr; }
  .portal-lease-img { min-height: 200px; }
}

@media (max-width: 720px) {
  .portal-section { padding: 18px 16px; }
  .portal-kpis { grid-template-columns: 1fr; gap: 12px; }
  .portal-docs { grid-template-columns: 1fr; }
  .portal-section-h { flex-wrap: wrap; gap: 12px; }
  .portal-main { min-width: 0; }
  /* Colapsar layouts inline de 2 columnas dentro de las secciones del portal */
  .portal-section > [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}

/* Documentos del contrato (portal usuarios) */
.portal-docs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 14px;
}
.portal-doc {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--bg);
  transition: all 0.15s;
}
.portal-doc:hover { border-color: var(--line); background: var(--surface); }
.portal-doc-ic {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(201, 169, 97, 0.18);
  color: #8B7430;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.portal-doc-body { flex: 1; min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.portal-doc-body strong {
  color: var(--navy);
  font-size: 14px;
  display: block;
  line-height: 1.3;
}
.portal-doc-meta {
  display: flex;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  flex-wrap: wrap;
}
.portal-doc-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}


/* ============================================================
   ADMIN PORTAL · Empleados Confinca (Admin.html)
   Look más denso, panel oscuro, gráficos.
   ============================================================ */
.adm-body {
  background: #F5F6FA;
}
.adm-login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #0A1428;
  position: relative;
  overflow: hidden;
}
.adm-login-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(201,169,97,0.15), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(14,31,58,0.6), transparent 60%),
    linear-gradient(135deg, #0A1428 0%, #1B3358 100%);
}
.adm-login-card {
  position: relative;
  z-index: 1;
  width: 420px;
  max-width: 100%;
  background: rgba(20, 35, 65, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}

/* ===== Shell ===== */
.adm-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  background: #F5F6FA;
}
.adm-sidebar {
  background: #286ad3;
  color: #fff;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.adm-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 18px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.adm-brand img {
  height: 28px;
  filter: brightness(0) invert(1);
}
.adm-brand-tag {
  background: rgba(201,169,97,0.18);
  color: #C9A961;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 700;
}
.adm-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.adm-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
}
.adm-nav a:hover { background: rgba(255,255,255,0.05); color: #fff; }
.adm-nav a.active { background: #C9A961; color: #0A1428; }
.adm-nav a svg { width: 16px; height: 16px; opacity: 0.9; flex-shrink: 0; }
.adm-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  margin-top: 14px;
}
.adm-user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.adm-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.adm-user-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.adm-user-role {
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
}
.adm-logout {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: transparent;
  color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  transition: all 0.15s;
}
.adm-logout:hover { background: rgba(255,255,255,0.05); color: #fff; }

.adm-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.adm-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  background: #fff;
  border-bottom: 1px solid #E1E6EE;
  position: sticky;
  top: 0;
  z-index: 10;
}
.adm-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 14px;
  background: #F5F6FA;
  border-radius: 999px;
  flex: 1;
  max-width: 420px;
  color: var(--muted);
}
.adm-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 13px;
  color: var(--navy);
}
.adm-topbar-actions {
  display: flex; align-items: center; gap: 18px;
}
.adm-icon-btn {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: #F5F6FA;
  color: var(--navy);
  display: grid; place-items: center;
}
.adm-icon-btn:hover { background: #E8EBF1; }
.adm-badge {
  position: absolute;
  top: 4px; right: 4px;
  background: #C2410C;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  width: 14px; height: 14px;
  border-radius: 50%;
  display: grid; place-items: center;
}
.adm-content {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.adm-section { margin: 0; }
.adm-section-tight { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.adm-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 6px;
}
.adm-title {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--navy);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-weight: 400;
  text-transform: none;
}
.adm-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.5;
}

/* KPI cards (admin) */
.adm-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.adm-kpi {
  display: flex;
  gap: 14px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid #E1E6EE;
  border-radius: 16px;
  align-items: flex-start;
}
.adm-kpi-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.adm-kpi-body { flex: 1; min-width: 0; }
.adm-kpi-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.adm-kpi-value {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.adm-kpi-delta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Cards */
.adm-card {
  background: #fff;
  border: 1px solid #E1E6EE;
  border-radius: 16px;
  padding: 24px;
}
.adm-card-h {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  gap: 16px;
}
.adm-card-tag {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.adm-card-title {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy);
  margin: 0;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.adm-link {
  font-size: 12px;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.adm-link:hover { color: var(--gold); }
.adm-grid-2 {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}
.adm-grid-2:nth-of-type(even) {
  grid-template-columns: 1fr 1.4fr;
}

/* Agenda mini */
.adm-agenda {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.adm-agenda-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 10px;
  background: #F5F6FA;
}
.adm-agenda-time {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: -0.01em;
  width: 56px;
  flex-shrink: 0;
}
.adm-agenda-info { flex: 1; min-width: 0; }
.adm-agenda-info strong { display: block; color: var(--navy); font-size: 13px; }
.adm-agenda-info span { font-size: 12px; color: var(--muted); }
.adm-agenda-asesor img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }

/* Agenda grid (página completa) */
.adm-agenda-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}
.adm-agenda-block {
  display: flex;
  gap: 16px;
  padding: 16px;
  border: 1px solid #E1E6EE;
  border-radius: 12px;
  background: #FAFBFD;
}
.adm-agenda-block-time {
  width: 70px;
  flex-shrink: 0;
  border-right: 1px solid #E1E6EE;
  padding-right: 14px;
}
.adm-agenda-block-hour {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.adm-agenda-block-tag {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-top: 2px;
}
.adm-agenda-block-body strong { color: var(--navy); font-size: 14px; }

/* Tables */
.adm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.adm-table th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding: 12px 14px;
  border-bottom: 1px solid #E1E6EE;
}
.adm-table td {
  padding: 14px 14px;
  border-bottom: 1px solid #EEF1F6;
  color: var(--navy);
  vertical-align: middle;
}
.adm-table tbody tr:hover { background: #FAFBFD; }
.adm-table-compact td { padding: 10px 14px; }
.adm-table-compact th { padding: 8px 14px; }
.adm-prop-mini {
  display: flex; gap: 10px; align-items: center;
}
.adm-prop-mini img {
  width: 38px; height: 38px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.adm-prop-mini strong { display: block; color: var(--navy); font-size: 13px; line-height: 1.2; }
.adm-prop-mini span { font-size: 11px; color: var(--muted); }
.adm-asesor-mini {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--navy);
}
.adm-asesor-mini img {
  width: 24px; height: 24px;
  border-radius: 50%; object-fit: cover;
}

/* Status pills */
.adm-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.adm-status-publicado, .adm-status-asignado { background: rgba(14,31,58,0.08); color: var(--navy); }
.adm-status-pausado { background: rgba(107,118,137,0.15); color: #6B7689; }
.adm-status-arrendado, .adm-status-cerrado { background: rgba(30,129,86,0.12); color: var(--success); }
.adm-status-nuevo { background: rgba(201,169,97,0.2); color: #8B7430; }
.adm-status-agendado { background: rgba(14,112,194,0.12); color: #0E70C2; }
.adm-status-perdido { background: rgba(194,65,12,0.12); color: #C2410C; }

/* Filter chips */
.adm-filter-chip {
  padding: 7px 14px;
  border-radius: 999px;
  background: #F5F6FA;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}
.adm-filter-chip:hover { background: #E8EBF1; }
.adm-filter-chip.active { background: var(--navy); color: #fff; }

/* Action buttons */
.adm-action {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  display: inline-grid;
  place-items: center;
  margin-left: 2px;
  transition: all 0.15s;
}
.adm-action:hover { background: #F5F6FA; color: var(--navy); }
.adm-action-danger:hover { background: rgba(194,65,12,0.1); color: #C2410C; }

.adm-select {
  padding: 8px 12px;
  border: 1px solid #E1E6EE;
  border-radius: 10px;
  background: #fff;
  font-size: 12px;
  color: var(--navy);
  outline: none;
  cursor: pointer;
}

/* Pipeline (kanban) */
.adm-pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.adm-pipeline-stage {
  background: #fff;
  border: 1px solid #E1E6EE;
  border-radius: 14px;
  padding: 14px 12px;
  min-height: 200px;
}
.adm-pipeline-h {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 12px; margin-bottom: 10px;
  border-bottom: 1px solid #EEF1F6;
}
.adm-pipeline-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.adm-pipeline-count {
  background: #F5F6FA;
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.adm-pipeline-card {
  background: #FAFBFD;
  border: 1px solid #EEF1F6;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
  cursor: grab;
  transition: all 0.15s;
}
.adm-pipeline-card:hover { box-shadow: 0 4px 16px rgba(14,31,58,0.08); border-color: #DDE3ED; }
.adm-pipeline-card strong { color: var(--navy); font-size: 13px; display: block; }
.adm-pipeline-prop { font-size: 12px; color: var(--muted); margin: 4px 0 8px; line-height: 1.35; }
.adm-pipeline-meta { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); letter-spacing: 0.04em; }
.adm-pipeline-nuevo { border-top: 3px solid #C9A961; }
.adm-pipeline-asignado { border-top: 3px solid #286ad3; }
.adm-pipeline-agendado { border-top: 3px solid #0E70C2; }
.adm-pipeline-cerrado { border-top: 3px solid #1E8156; }
.adm-pipeline-perdido { border-top: 3px solid #C2410C; }

/* Leads list (mini) */
.adm-lead-list { display: flex; flex-direction: column; }
.adm-lead-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #EEF1F6;
}
.adm-lead-row:last-child { border-bottom: none; }
.adm-lead-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 12px;
  flex-shrink: 0;
}
.adm-lead-info { flex: 1; min-width: 0; }
.adm-lead-info strong { display: block; color: var(--navy); font-size: 13px; }
.adm-lead-info span { font-size: 11px; color: var(--muted); }

/* Legend (donut) */
.adm-legend {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.adm-legend li {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
.adm-legend-dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.adm-legend-name { color: var(--navy); }
.adm-legend-pct { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }

/* Team grid */
.adm-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.adm-team-card {
  background: #fff;
  border: 1px solid #E1E6EE;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}
.adm-team-card img {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid #F5F6FA;
}
.adm-team-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.adm-team-role {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 18px;
}
.adm-team-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 16px 0;
  border-top: 1px solid #EEF1F6;
  border-bottom: 1px solid #EEF1F6;
}
.adm-team-stats > div { display: flex; flex-direction: column; gap: 2px; }
.adm-team-stats strong {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.adm-team-stats span {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.adm-team-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 11px;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .adm-shell { grid-template-columns: 1fr; }
  .adm-sidebar { position: relative; }
  .adm-kpis { grid-template-columns: repeat(2, 1fr); }
  .adm-grid-2, .adm-grid-2:nth-of-type(even) { grid-template-columns: 1fr; }
  .adm-pipeline { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   BOOKING MODAL · Agendar visita (público + portal usuarios)
   ============================================================ */
.cita-modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.cita-modal-wrap.open { opacity: 1; }
.cita-modal-back {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 40, 0.55);
  backdrop-filter: blur(6px);
}
.cita-modal {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
  width: 560px;
  max-width: 100%;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 36px 36px 32px;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}
.cita-modal-wrap.open .cita-modal { transform: translateY(0); }
.cita-modal-x {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--navy);
  display: grid;
  place-items: center;
  z-index: 2;
}
.cita-modal-x:hover { background: var(--line); }
.cita-modal-h {
  margin-bottom: 24px;
}
.cita-modal-tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 6px;
}
.cita-modal-h h2 {
  font-family: 'Montserrat', system-ui, sans-serif !important;
  font-size: 28px;
  color: var(--navy);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.15;
}
.cita-modal-h p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.cita-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cita-mod-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 4px;
}
.cita-mod-opt {
  display: block;
  cursor: pointer;
}
.cita-mod-opt input {
  position: absolute;
  opacity: 0;
}
.cita-mod-opt > div {
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg);
  transition: all 0.15s;
}
.cita-mod-opt > div svg {
  color: var(--muted);
}
.cita-mod-opt > div strong {
  font-size: 14px;
  color: var(--navy);
}
.cita-mod-opt > div span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.cita-mod-opt input:checked ~ div {
  border-color: var(--navy);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(14, 31, 58, 0.08);
}
.cita-mod-opt input:checked ~ div svg {
  color: var(--navy);
}
.cita-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cita-disclaimer {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(201, 169, 97, 0.12);
  border: 1px solid rgba(201, 169, 97, 0.25);
  border-radius: 10px;
  font-size: 12px;
  color: #6b5418;
  line-height: 1.5;
  align-items: flex-start;
}
.cita-disclaimer svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: #8b7430;
}
.cita-disclaimer strong { color: #4a3a14; }

/* Success state */
.cita-success {
  text-align: center;
  padding: 20px 0 4px;
}
.cita-success-ic {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: rgba(30, 129, 86, 0.12);
  color: var(--success);
  display: grid;
  place-items: center;
}
.cita-success h2 {
  font-family: 'Montserrat', system-ui, sans-serif !important;
  font-size: 28px;
  color: var(--navy);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.cita-success p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 24px 24px;
}
.cita-success p strong { color: var(--navy); }
.cita-recap {
  background: var(--bg-2);
  border-radius: 14px;
  padding: 18px 22px;
  text-align: left;
  margin-bottom: 22px;
}
.cita-recap dl {
  margin: 0;
  display: grid;
  gap: 10px;
}
.cita-recap dl > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.cita-recap dt {
  font-weight: 600;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cita-recap dd {
  margin: 0;
  color: var(--navy);
  font-weight: 600;
  text-align: right;
}
.cita-recap dd code {
  background: rgba(14, 31, 58, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
}
.cita-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cita-actions .btn {
  justify-content: center;
  white-space: nowrap;
  font-size: 13px;
  padding: 12px 16px;
}

@media (max-width: 600px) {
  .cita-mod-toggle { grid-template-columns: 1fr; }
  .cita-row-2 { grid-template-columns: 1fr; }
  .cita-actions { grid-template-columns: 1fr; }
  .cita-modal { padding: 28px 22px; }
}

/* ============================================================
   ADMIN · Quick links + Mensajes + Cartera + Botones blancos
   ============================================================ */

/* Botones primary blancos en el contexto del admin */
.adm-main .btn-primary {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(14, 31, 58, 0.06);
}
.adm-main .btn-primary:hover {
  background: #F5F6FA;
  border-color: #D5DBE5;
}
.adm-main .btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--navy);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
.adm-main .btn-ghost:hover { background: var(--bg-2); transform: none; }


/* Quick links sidebar block */
.adm-quicklinks-block {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.adm-quicklinks-block-h {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  font-weight: 700;
  margin: 0 8px 10px;
}
.adm-quicklinks-mini {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 0 4px;
}
.adm-quicklinks-mini a {
  aspect-ratio: 1;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  display: grid;
  place-items: center;
  transition: all 0.15s;
}
.adm-quicklinks-mini a:hover {
  background: rgba(255,255,255,0.12);
  transform: scale(1.08);
}
.adm-quicklinks-mini a svg, .adm-quicklinks-mini a img {
  width: 18px;
  height: 18px;
  filter: brightness(1) saturate(1);
}

/* Quick links full grid */
.adm-quicklinks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.adm-quicklink {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #E1E6EE;
  border-radius: 14px;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}
.adm-quicklink:hover {
  border-color: #C9A961;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14,31,58,0.06);
}
.adm-quicklink-ic {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}
.adm-quicklink-info { flex: 1; min-width: 0; }
.adm-quicklink-info strong {
  display: block;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.2;
}
.adm-quicklink-info span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
  letter-spacing: 0.02em;
}

/* Mensajes / DM */
.adm-mensajes {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: 600px;
  border: 1px solid #E1E6EE;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.adm-msg-list {
  border-right: 1px solid #E1E6EE;
  overflow-y: auto;
}
.adm-msg-item {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #EEF1F6;
  cursor: pointer;
  transition: background 0.15s;
  align-items: flex-start;
}
.adm-msg-item:hover { background: #FAFBFD; }
.adm-msg-item.active { background: #F5F6FA; border-left: 3px solid var(--navy); padding-left: 15px; }
.adm-msg-item.unread strong::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #C2410C;
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
}
.adm-msg-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}
.adm-msg-meta {
  flex: 1;
  min-width: 0;
}
.adm-msg-meta strong {
  display: block;
  color: var(--navy);
  font-size: 13px;
}
.adm-msg-preview {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  margin-top: 4px;
}
.adm-msg-time {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  margin-top: 3px;
}
.adm-msg-pane {
  display: flex;
  flex-direction: column;
  background: #FAFBFD;
}
.adm-msg-pane-h {
  padding: 16px 22px;
  background: #fff;
  border-bottom: 1px solid #E1E6EE;
}
.adm-msg-pane-thread {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.adm-msg-bubble {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
}
.adm-msg-bubble.received {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #E1E6EE;
  color: var(--navy);
  border-bottom-left-radius: 4px;
}
.adm-msg-bubble.sent {
  align-self: flex-end;
  background: var(--navy);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.adm-msg-bubble-time {
  font-size: 10px;
  opacity: 0.6;
  margin-top: 4px;
  letter-spacing: 0.04em;
}
.adm-msg-input {
  padding: 14px 18px;
  background: #fff;
  border-top: 1px solid #E1E6EE;
  display: flex;
  gap: 10px;
}
.adm-msg-input input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #E1E6EE;
  border-radius: 999px;
  background: #F5F6FA;
  color: var(--navy);
  font-size: 13px;
  outline: none;
}
.adm-msg-input input:focus { border-color: var(--navy); background: #fff; }

/* Reportes de daños — tarjetas */
.adm-reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 14px;
}
.adm-report {
  background: #fff;
  border: 1px solid #E1E6EE;
  border-radius: 14px;
  padding: 20px;
  border-left: 4px solid;
}
.adm-report.prio-alta { border-left-color: #C2410C; }
.adm-report.prio-media { border-left-color: #C9A961; }
.adm-report.prio-baja { border-left-color: var(--muted); }
.adm-report-h {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.adm-report-h h4 {
  font-family: 'Montserrat', system-ui, sans-serif !important;
  font-size: 15px;
  color: var(--navy);
  margin: 0;
  line-height: 1.3;
  font-weight: 700;
}
.adm-report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #EEF1F6;
}
.adm-report p {
  font-size: 13px;
  color: var(--navy);
  line-height: 1.55;
  margin: 0;
}

/* Citas tab — agenda cards */
.adm-citas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 14px;
}
.adm-cita {
  background: #fff;
  border: 1px solid #E1E6EE;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.adm-cita.is-pending { border-color: rgba(201,169,97,0.5); background: linear-gradient(180deg, rgba(201,169,97,0.05), #fff); }
.adm-cita-h {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.adm-cita-date {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.adm-cita-date small {
  display: block;
  font-size: 11px;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 600;
}
.adm-cita-modality {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--navy);
}
.adm-cita-modality.virtual { background: rgba(14, 112, 194, 0.1); color: #0E70C2; }
.adm-cita-prop {
  padding-bottom: 12px;
  border-bottom: 1px solid #EEF1F6;
}
.adm-cita-prop strong {
  display: block;
  color: var(--navy);
  font-size: 14px;
}
.adm-cita-prop span {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.adm-cita-client {
  display: flex;
  gap: 12px;
  align-items: center;
}
.adm-cita-client-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}
.adm-cita-client-info strong { display: block; color: var(--navy); font-size: 13px; }
.adm-cita-client-info span { font-size: 11px; color: var(--muted); }
.adm-cita-notes {
  background: #F5F6FA;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--navy);
  line-height: 1.5;
  font-style: italic;
}
.adm-cita-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}

/* Cartera / IPC simulator */
.adm-cartera-chart {
  padding: 20px 0;
}
.ipc-sim {
  background: #fff;
  border: 1px solid #E1E6EE;
  border-radius: 14px;
  padding: 20px 24px;
  margin-top: 16px;
}
.ipc-sim-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: center;
}
.ipc-sim-result {
  background: var(--navy);
  color: #fff;
  padding: 18px 22px;
  border-radius: 12px;
}
.ipc-sim-result .from {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
}
.ipc-sim-result .price {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.ipc-sim-result .arrow {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.ipc-sim-result .price-new {
  font-family: var(--serif);
  font-size: 36px;
  color: #fff;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.ipc-sim-result .diff {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
}

/* Multi owner pago */
.adm-owners-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.adm-owner-row {
  display: grid;
  grid-template-columns: 1.5fr auto 1.2fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: #FAFBFD;
  border: 1px solid #EEF1F6;
  border-radius: 12px;
}
.adm-owner-share {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.adm-owner-pay {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--success);
  text-align: right;
  font-weight: 600;
}

/* Inmueble expanded row */
.adm-prop-expanded {
  background: #F5F6FA;
  border-left: 3px solid var(--gold);
}
.adm-prop-expanded td {
  padding: 18px 22px;
}
.adm-prop-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.adm-prop-detail-block {
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid #EEF1F6;
}
.adm-prop-detail-block h5 {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
  font-weight: 700;
}
.adm-prop-detail-block dl {
  margin: 0;
  display: grid;
  gap: 6px;
}
.adm-prop-detail-block dt {
  font-size: 11px;
  color: var(--muted);
}
.adm-prop-detail-block dd {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--navy);
  font-weight: 600;
}

/* Portal usuario — sección citas */
.user-citas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}
.user-cita {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.user-cita-h {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.user-cita-date {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 16px;
  color: var(--navy);
  font-weight: 700;
}
.user-cita-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.user-cita-actions .btn {
  padding: 6px 12px;
  font-size: 12px;
}


/* ============================================================
   DESCARGA — Estado de cuenta / Cupón de pago (Propietarios & Arrendatarios)
   Tipografía Montserrat, botones en gris claro
   ============================================================ */
.download-card {
  font-family: 'Montserrat', system-ui, sans-serif;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
  box-shadow: var(--shadow-sm);
}
.download-card-left { position: relative; }
.download-card-left::before {
  content: "";
  position: absolute;
  left: 0; top: -8px;
  width: 36px; height: 2px;
  background: var(--gold);
}
.download-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: clamp(34px, 3.8vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 18px 0 18px;
}
.download-title b {
  display: block;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--navy);
  margin-top: 4px;
}
.download-lead {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 380px;
  margin: 0 0 28px;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: #E1E6EE;
  color: var(--navy);
  border: 1px solid #D2D8E3;
  border-radius: 14px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn-download:hover {
  background: #D2D8E3;
  border-color: #BFC7D6;
}
.btn-download:active { transform: scale(0.98); }

.download-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.download-intro {
  font-family: 'Montserrat', sans-serif;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 520px;
}
.download-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.download-steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 20px 22px;
  background: #F4F6FA;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
}
.download-step-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--gold);
  line-height: 1;
  padding-top: 2px;
  letter-spacing: 0.02em;
}
.download-step-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 6px;
}
.download-steps li p {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 980px) {
  .download-card { grid-template-columns: 1fr; gap: 36px; padding: 36px; }
}

/* ============================================================
   PORTAL MODERN — Below-fold (Arrendatarios & Propietarios)
   Liquid-glass · azul #286ad3 · negro · gris claro
   ============================================================ */

/* ---------- DARK BAND (azul → negro) ---------- */
.pmod-dark {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 96px 0 130px;
  margin-top: -1px;
  background:
    radial-gradient(ellipse 62% 75% at 6% -12%, rgba(12, 29, 58, 0.92) 0%, transparent 56%),
    #245bc8;
}
.pmod-dark .container { position: relative; z-index: 2; }
.pmod-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}
.pmod-orb-1 { width: 620px; height: 620px; top: -220px; right: -140px; background: radial-gradient(circle, rgba(96,140,220,0.16), transparent 66%); }
.pmod-orb-2 { width: 520px; height: 520px; bottom: -200px; left: -120px; background: radial-gradient(circle, rgba(42,67,106,0.55), transparent 66%); }

.pmod-head {
  max-width: 880px;
  margin: 0 auto 64px;
  text-align: center;
}
.pmod-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(170,195,235,0.85);
  margin-bottom: 22px;
}
.pmod-eyebrow::before,
.pmod-eyebrow::after {
  content: "";
  width: 30px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(170,195,235,0.6), transparent);
}
.pmod-title {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 5.6vw, 78px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  color: #fff;
  margin: 0 0 24px;
}
.pmod-title em {
  font-style: italic;
  font-weight: 700;
  color: #9DBBF0;
}
.pmod-lead {
  font-size: 17.5px;
  line-height: 1.7;
  color: rgba(255,255,255,0.62);
  max-width: 600px;
  margin: 0 auto;
}
.pmod-cta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.pmod-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.pmod-btn-solid {
  background: #fff;
  color: #07111E;
  box-shadow: 0 4px 24px rgba(255,255,255,0.16);
}
.pmod-btn-solid:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(255,255,255,0.24); }
.pmod-btn-ghost {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.pmod-btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.4); transform: translateY(-2px); }

/* ---------- GLASS CARD GRID ---------- */
.pmod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.pmod-card {
  position: relative;
  isolation: isolate;
  padding: 32px 28px 30px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(158deg, rgba(255,255,255,0.11) 0%, rgba(255,255,255,0.045) 50%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.14);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  backdrop-filter: blur(26px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.30),
    0 30px 60px -30px rgba(0,0,0,0.7);
  transition: transform 0.35s cubic-bezier(.2,.7,.3,1), border-color 0.35s ease, box-shadow 0.35s ease;
}
.pmod-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(130% 90% at 0% 0%, rgba(255,255,255,0.20), transparent 44%);
  z-index: 0;
}
.pmod-card:hover {
  transform: translateY(-6px);
  border-color: rgba(157,187,240,0.45);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.38),
    0 36px 70px -28px rgba(0,0,0,0.78),
    0 0 0 1px rgba(157,187,240,0.12);
}
.pmod-card > * { position: relative; z-index: 1; }
.pmod-ic {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: grid; place-items: center;
  margin-bottom: 20px;
  color: #BFD4FA;
  background: linear-gradient(160deg, rgba(120,160,230,0.32), rgba(120,160,230,0.06));
  border: 1px solid rgba(160,190,240,0.34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.32), 0 10px 22px -12px rgba(60,100,190,0.6);
}
.pmod-ic svg { width: 25px; height: 25px; }
.pmod-card h3 {
  font-family: 'Montserrat', system-ui, sans-serif !important;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 9px;
}
.pmod-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.62);
  margin: 0;
}

/* ---------- STAT STRIP (glass) ---------- */
.pmod-stats {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.pmod-stat {
  position: relative;
  padding: 30px 30px;
  border-radius: 24px;
  background: linear-gradient(158deg, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.03) 100%);
  border: 1px solid rgba(255,255,255,0.12);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
}
.pmod-stat-num {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 700;
  font-size: 52px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 8px;
}
.pmod-stat-num small { font-size: 24px; color: #9DBBF0; font-weight: 700; }
.pmod-stat-label {
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(255,255,255,0.6);
}

/* ---------- LIGHT BAND (gris claro) — Descarga ---------- */
.pmod-light {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #F2F4F7 0%, #E9EDF3 100%);
  padding: 120px 0;
  font-family: 'Montserrat', system-ui, sans-serif;
}
.pmod-light::before { display: none; }
.pmod-light::after  { display: none; }
.pmod-light .container { position: relative; z-index: 2; }
.pmod-light .pmod-head { margin-bottom: 56px; }
.pmod-light .pmod-eyebrow { color: var(--navy); opacity: 0.7; }
.pmod-light .pmod-eyebrow::before,
.pmod-light .pmod-eyebrow::after { background: linear-gradient(90deg, transparent, rgba(14,31,58,0.4), transparent); }
.pmod-light .pmod-title { color: var(--navy); }
.pmod-light .pmod-title em { color: var(--navy-soft); }
.pmod-light .pmod-lead { color: var(--muted); }

.pmod-steps {
  display: grid;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto 44px;
}
.pmod-steps.cols-2 { grid-template-columns: repeat(2, 1fr); }
.pmod-steps.cols-3 { grid-template-columns: repeat(3, 1fr); }
.pmod-step {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 28px 28px;
  border-radius: 24px;
  background: linear-gradient(158deg, rgba(255,255,255,0.80) 0%, rgba(255,255,255,0.52) 55%, rgba(255,255,255,0.38) 100%);
  border: 1px solid rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  backdrop-filter: blur(26px) saturate(170%);
  box-shadow: 0 28px 56px -36px rgba(14,31,58,0.45), inset 0 1.5px 0 rgba(255,255,255,0.95), inset 0 -1px 0 rgba(14,31,58,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.pmod-step::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(120% 80% at 0% 0%, rgba(255,255,255,0.65), transparent 46%);
  z-index: 0;
}
.pmod-step > * { position: relative; z-index: 1; }
.pmod-step:hover { transform: translateY(-4px); border-color: rgba(201,169,97,0.55); box-shadow: 0 34px 64px -34px rgba(14,31,58,0.5), inset 0 1.5px 0 rgba(255,255,255,0.95), 0 0 0 1px rgba(201,169,97,0.14); }
.pmod-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.pmod-step-ic {
  width: 50px; height: 50px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: linear-gradient(160deg, rgba(20,40,72,0.96), rgba(14,31,58,0.88));
  border: 1px solid rgba(14,31,58,0.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 14px 26px -14px rgba(14,31,58,0.7);
}
.pmod-step-ic svg { width: 23px; height: 23px; }
.pmod-step-num {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 1;
  color: var(--navy);
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(14,31,58,0.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
  opacity: 0.8;
}
.pmod-step h4 {
  font-family: 'Montserrat', system-ui, sans-serif !important;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 10px;
}
.pmod-step p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
.pmod-light .pmod-cta-row { margin-top: 0; }
.pmod-btn-navy {
  background: linear-gradient(160deg, #16294A 0%, var(--navy) 100%);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 14px 30px -14px rgba(14,31,58,0.6), inset 0 1px 0 rgba(255,255,255,0.18);
}
.pmod-btn-navy:hover { background: var(--navy-2); transform: translateY(-2px); box-shadow: 0 20px 40px -16px rgba(14,31,58,0.65); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .pmod-grid { grid-template-columns: repeat(2, 1fr); }
  .pmod-stats { grid-template-columns: 1fr; }
  .pmod-steps.cols-2, .pmod-steps.cols-3 { grid-template-columns: 1fr; }
  .pmod-dark { padding: 90px 0 96px; }
  .pmod-light { padding: 84px 0; }
}
@media (max-width: 600px) {
  .pmod-grid { grid-template-columns: 1fr; }
  .pmod-head { margin-bottom: 44px; }
  .pmod-cta-row .pmod-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   NUEVOS COMPONENTES — Admin v2
   Maestra, Perfiles, Portal Clientes, Web Viewer, Tour modal
   ============================================================ */

/* --- Maestra table --- */
.adm-maestra-table input,
.adm-maestra-table select {
  padding: 5px 9px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--navy);
  font-size: 12px;
  font-family: var(--sans);
  transition: border-color 0.15s;
}
.adm-maestra-table input:focus,
.adm-maestra-table select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(14,31,58,0.08);
}
.maestra-row:hover { background: var(--bg-2); }
.adm-maestra-hint {
  font-size: 12px;
  color: var(--muted);
  padding: 8px 12px;
  background: rgba(201,169,97,0.08);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  margin-bottom: 16px;
}

/* --- Perfiles grid --- */
.adm-perfiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.adm-perfil-card {
  background: var(--surface);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.adm-perfil-card:hover { box-shadow: var(--shadow-md); }
.adm-perfil-cover {
  height: 72px;
  flex-shrink: 0;
}
.adm-perfil-body {
  padding: 0 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.adm-perfil-avatar-wrap {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: -28px;
  margin-bottom: 14px;
}
.adm-perfil-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--surface);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.adm-perfil-role-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.adm-perfil-name {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--navy);
  margin: 0 0 2px;
  letter-spacing: -0.01em;
}
.adm-perfil-title {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.adm-perfil-contact {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.adm-perfil-stats {
  display: flex;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 14px;
}
.adm-perfil-stats div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.adm-perfil-stats strong {
  font-size: 18px;
  color: var(--navy);
  font-weight: 700;
}
.adm-perfil-stats span {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.adm-perfil-access { margin-bottom: 16px; }
.adm-perfil-access-h {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.adm-perfil-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.adm-perfil-chip {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--navy);
  font-weight: 500;
}
.adm-perfil-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

/* --- Portal Clientes tab buttons --- */
.adm-portal-ptab {
  transition: color 0.15s, border-color 0.15s;
}
.adm-portal-ptab:hover { color: var(--navy) !important; background: var(--bg-2) !important; }

/* --- Quick links updated (enlaces tab) --- */
.adm-quicklink-badge {
  display: block;
  font-size: 10px;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-top: 2px;
  opacity: 0.6;
}
.adm-quicklink:hover .adm-quicklink-badge { opacity: 1; }

/* --- Web Viewer overlay --- */
#adm-wv { animation: wv-in 0.18s ease; }
@keyframes wv-in {
  from { opacity: 0; transform: scale(0.98); }
  to   { opacity: 1; transform: scale(1); }
}

/* --- Nuevo inmueble modal --- */
#adm-nuevo-modal { animation: wv-in 0.18s ease; }
.adm-nuevo-section {
  background: var(--surface);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line-soft);
  padding: 28px 32px;
  margin-bottom: 20px;
}
.adm-nuevo-section-h {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.adm-nuevo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 860px) {
  .adm-nuevo-grid { grid-template-columns: 1fr 1fr; }
}
.adm-tour-opt { transition: border-color 0.15s, background 0.15s; }
.adm-tour-opt:has(input:checked) {
  border-color: var(--navy) !important;
  background: rgba(14,31,58,0.04);
}

/* --- Maestra add-day modal placeholder --- */
#maestra-add-dia {
  font-size: 12px;
}

/* --- Nav active for new tabs --- */
.adm-nav a[data-tab="maestra"].active { color: #C9A961; }
.adm-nav a[data-tab="maestra"].active svg { stroke: #C9A961; }
.adm-nav a[data-tab="portal"].active,
.adm-nav a[data-tab="perfiles"].active { color: #fff; }

/* ============================================================
   PORTAL CLIENTE — Chat section
   ============================================================ */
.portal-chat-wrap {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 400px;
}
.portal-chat-thread {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-2);
}
.portal-chat-bubble {
  max-width: 72%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
}
.portal-chat-bubble.sent {
  background: var(--navy);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.portal-chat-bubble.recv {
  background: var(--surface);
  color: var(--navy);
  align-self: flex-start;
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.portal-chat-time {
  font-size: 10px;
  opacity: 0.55;
  margin-top: 4px;
  text-align: right;
}
.portal-chat-form {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.portal-chat-form input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 14px;
  font-family: var(--sans);
  color: var(--navy);
  background: var(--bg-2);
}
.portal-chat-form input:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--surface);
}

/* ============================================================ Portal extras (px-) */
/* Notificaciones */
.px-notis { display: flex; flex-direction: column; gap: 10px; }
.px-noti {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; position: relative;
}
.px-noti.unread { background: rgba(14,31,58,0.03); border-color: rgba(14,31,58,0.14); }
.px-noti-ic {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  display: grid; place-items: center; background: var(--bg-2); color: var(--navy);
}
.px-noti-ic.warn { background: rgba(194,65,12,0.1); color: #C2410C; }
.px-noti-ic.ok   { background: rgba(30,129,86,0.12); color: #1E8156; }
.px-noti-ic.gold { background: rgba(201,169,97,0.16); color: #8B7430; }
.px-noti-body { flex: 1; min-width: 0; }
.px-noti-body strong { display: block; font-size: 13px; color: var(--navy); }
.px-noti-body span { font-size: 12px; color: var(--muted); }
.px-noti-time { font-size: 11px; color: var(--muted); white-space: nowrap; }
.px-noti-dot { width: 8px; height: 8px; border-radius: 50%; background: #C2410C; flex-shrink: 0; margin-top: 6px; }

/* Timeline de estado (recibido → asignado → resuelto) */
.px-track { display: flex; align-items: center; gap: 0; margin: 12px 0 4px; }
.px-track-step { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; }
.px-track-step:not(:last-child)::after {
  content: ""; position: absolute; top: 11px; left: 50%; width: 100%; height: 2px;
  background: var(--line); z-index: 0;
}
.px-track-step.done:not(:last-child)::after { background: var(--success); }
.px-track-dot {
  width: 24px; height: 24px; border-radius: 50%; background: var(--surface);
  border: 2px solid var(--line); display: grid; place-items: center; z-index: 1;
  color: var(--muted); font-size: 11px;
}
.px-track-step.done .px-track-dot { background: var(--success); border-color: var(--success); color: #fff; }
.px-track-step.current .px-track-dot { border-color: var(--navy); color: var(--navy); }
.px-track-label { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-top: 7px; text-align: center; }
.px-track-step.done .px-track-label, .px-track-step.current .px-track-label { color: var(--navy); }

/* Estado de cuenta / key-value */
.px-kv { display: grid; gap: 0; }
.px-kv-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.px-kv-row:last-child { border-bottom: none; }
.px-kv-row dt { font-size: 13px; color: var(--muted); margin: 0; }
.px-kv-row dd { font-size: 14px; font-weight: 600; color: var(--navy); margin: 0; font-variant-numeric: tabular-nums; }
.px-kv-row.total { border-top: 2px solid var(--navy); border-bottom: none; padding-top: 14px; margin-top: 4px; }
.px-kv-row.total dt, .px-kv-row.total dd { font-size: 17px; font-weight: 700; color: var(--navy); }

/* Tarjetas info simples */
.px-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.px-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 14px; }
.px-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--bg-2); color: var(--navy); }

/* Modal desglose */
.px-modal { position: fixed; inset: 0; z-index: 9500; background: rgba(14,31,58,0.55); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 20px; }
.px-modal.open { display: flex; }
.px-modal-card { background: #fff; border-radius: 18px; width: 100%; max-width: 460px; box-shadow: 0 24px 80px rgba(0,0,0,0.28); overflow: hidden; }
.px-modal-head { padding: 22px 26px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; }
.px-modal-body { padding: 12px 26px 8px; }
.px-modal-foot { padding: 16px 26px 24px; display: flex; gap: 10px; }
.px-modal-close { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--navy); cursor: pointer; font-size: 16px; display: grid; place-items: center; }

/* Upload zone */
.px-upload { border: 2px dashed var(--line); border-radius: 12px; padding: 22px; text-align: center; cursor: pointer; transition: all 0.15s; background: var(--bg-2); }
.px-upload:hover { border-color: var(--navy); background: rgba(14,31,58,0.03); }

@media (max-width: 700px) {
  .px-track-label { font-size: 9px; }
}

/* ============================================================
   DOCK MÓVIL · Apple "Liquid Glass"  (solo ≤ 720px)
   ============================================================ */
.appbar { display: none; }
.glass-scrim,
.glass-sheet { display: none; }

@media (max-width: 1024px), (pointer: coarse) {

  /* --- Barra superior: solo logo (izq) + hamburguesa (der, centrada) --- */
  .nav-cta .btn-icon { display: none !important; }   /* buscar pasa al dock */
  .nav-cta { justify-content: flex-end; }

  /* --- Espacio para que el contenido no quede tapado por el dock --- */
  .footer {
    padding-bottom: calc(124px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Reubicar Tweaks por encima del dock */
  .tweaks-fab { bottom: calc(98px + env(safe-area-inset-bottom, 0px)) !important; }
  .tweaks-panel { bottom: calc(160px + env(safe-area-inset-bottom, 0px)) !important; }

  /* ================= DOCK ================= */
  .appbar {
    display: flex;
    position: fixed;
    left: 0; right: 0;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    margin: 0 auto;
    max-width: 540px;
    z-index: 1200;
    align-items: stretch;
    gap: 10px;
    padding: 0 14px;
    pointer-events: none;
  }
  .appbar > * { pointer-events: auto; }

  /* Material vidrio compartido */
  .appbar-dock,
  .appbar-search,
  .appbar-pop,
  .glass-sheet-card {
    background:
      linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.42));
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow:
      0 12px 34px rgba(14,31,58,0.20),
      0 2px 10px rgba(14,31,58,0.12),
      inset 0 1px 0 rgba(255,255,255,0.95),
      inset 0 -10px 24px rgba(255,255,255,0.18);
  }

  .appbar-dock {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: stretch;
    padding: 7px 6px;
    border-radius: 28px;
    overflow: visible;
  }

  /* reflejo especular superior */
  .appbar-spec {
    position: absolute;
    inset: 1px 1px auto 1px;
    height: 46%;
    border-radius: 27px 27px 40px 40px / 27px 27px 22px 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0));
    pointer-events: none;
  }

  .appbar-tab {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 2px;
    border: none;
    background: transparent;
    border-radius: 20px;
    color: rgba(14,31,58,0.52);
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease, transform 0.12s ease;
  }
  .appbar-tab:active { transform: scale(0.93); }
  .appbar-ic { display: grid; place-items: center; z-index: 1; }
  .appbar-ic svg { width: 24px; height: 24px; display: block; }
  .appbar-label {
    z-index: 1;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* ====== Lente de vidrio líquido (viaja entre pestañas) ====== */
  .appbar-lens {
    position: absolute;
    top: 5px;
    left: 0;
    height: calc(100% - 10px);   /* CONTENIDO dentro de la barra, no se sale */
    width: 64px;                 /* lo fija el JS al ancho de la pestaña */
    border-radius: 20px;
    transform: translateX(0);
    transform-origin: center center;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    will-change: transform;
    /* vidrio translúcido: refracta el fondo de la barra */
    background:
      linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0.2));
    -webkit-backdrop-filter: blur(8px) saturate(200%) brightness(1.14);
    backdrop-filter: blur(8px) saturate(200%) brightness(1.14);
    border: 1px solid rgba(255,255,255,0.85);
    box-shadow:
      0 5px 14px rgba(14,31,58,0.16),
      0 1px 2px rgba(14,31,58,0.10),
      inset 0 1px 0 rgba(255,255,255,1),
      inset 0 -7px 14px rgba(255,255,255,0.32);
  }
  .appbar-lens.show { opacity: 1; }
  /* reflejo especular del lente */
  .appbar-lens-spec {
    position: absolute;
    inset: 2px 6px auto 6px;
    height: 46%;
    border-radius: 18px 18px 26px 26px / 18px 18px 14px 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0));
    pointer-events: none;
  }
  /* aberración cromática iridiscente en el borde */
  .appbar-lens::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(125deg,
      rgba(255,64,128,0.85),
      rgba(255,196,64,0) 28%,
      rgba(64,196,255,0) 60%,
      rgba(80,224,168,0.85));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask-composite: exclude;
    mix-blend-mode: screen;
    opacity: 0.6;
    pointer-events: none;
  }

  /* pestaña activa: color + icono magnificado por el lente */
  .appbar-tab.is-active,
  .appbar-tab.is-armed,
  .appbar-tab.lens-active { color: var(--navy); }
  .appbar-tab .appbar-ic { transition: transform 0.34s cubic-bezier(0.5,1.3,0.4,1); }
  .appbar-tab.lens-active .appbar-ic { transform: scale(1.12); }

  /* ====== Botón Buscar (círculo de vidrio, separado) ====== */
  .appbar-search {
    flex: 0 0 auto;
    width: 60px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.6);
    color: var(--navy);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.12s ease;
  }
  .appbar-search:active { transform: scale(0.92); }
  .appbar-search svg { width: 24px; height: 24px; }

  /* ====== Popover Propiedades (Arriendo / Venta) ====== */
  .appbar-pop {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 8px;
    width: min(252px, 70vw);
    padding: 8px;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transform: translateY(8px) scale(0.96);
    transform-origin: bottom left;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.22,1,0.36,1);
    z-index: 5;
  }
  .appbar-pop.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
  .appbar-pop-spec {
    position: absolute; inset: 1px 1px auto 1px; height: 40%;
    border-radius: 21px 21px 30px 30px;
    background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0));
    pointer-events: none;
  }
  .appbar-pop-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 16px;
    color: var(--navy);
    text-decoration: none;
    transition: background 0.15s ease;
  }
  .appbar-pop-item:active { background: rgba(14,31,58,0.06); }
  .appbar-pop-ic {
    flex: 0 0 auto;
    width: 38px; height: 38px;
    border-radius: 12px;
    display: grid; place-items: center;
    background: rgba(14,31,58,0.06);
  }
  .appbar-pop-ic svg { width: 20px; height: 20px; }
  .appbar-pop-item b { display: block; font-size: 14px; font-weight: 700; line-height: 1.2; }
  .appbar-pop-item small { display: block; font-size: 11.5px; color: var(--muted); }

  /* ====== Scrim ====== */
  .glass-scrim {
    display: block;
    position: fixed; inset: 0;
    background: rgba(10,20,40,0.28);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1150;
  }
  .glass-scrim.show { opacity: 1; pointer-events: auto; }

  /* ====== Bottom sheet (Favoritos / Cuenta) ====== */
  .glass-sheet {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1300;
    pointer-events: none;
  }
  .glass-sheet-card {
    pointer-events: auto;
    margin: 0 auto;
    max-width: 540px;
    border-radius: 30px 30px 0 0;
    padding: 8px 18px calc(24px + env(safe-area-inset-bottom, 0px));
    transform: translateY(110%);
    transition: transform 0.34s cubic-bezier(0.22,1,0.36,1);
    max-height: 78vh;
    display: flex;
    flex-direction: column;
  }
  .glass-sheet.open .glass-sheet-card { transform: translateY(0); }
  .glass-sheet-grab {
    width: 42px; height: 5px; border-radius: 99px;
    background: rgba(14,31,58,0.22);
    margin: 6px auto 4px;
    flex: 0 0 auto;
  }
  .glass-sheet-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 6px 2px 12px;
    flex: 0 0 auto;
  }
  .glass-sheet-head h3 {
    margin: 0; font-size: 20px; font-weight: 700; color: var(--navy);
    letter-spacing: -0.01em;
  }
  .glass-sheet-x {
    width: 34px; height: 34px; border-radius: 50%;
    border: none; cursor: pointer;
    background: rgba(14,31,58,0.07); color: var(--navy);
    display: grid; place-items: center;
  }
  .glass-sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; }

  /* lista favoritos */
  .glass-fav-list { display: flex; flex-direction: column; gap: 8px; padding-bottom: 4px; }
  .glass-fav {
    display: flex; align-items: center; gap: 12px;
    padding: 8px; border-radius: 18px;
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.5);
    text-decoration: none; color: var(--navy);
  }
  .glass-fav:active { background: rgba(255,255,255,0.8); }
  .glass-fav img {
    width: 58px; height: 58px; border-radius: 14px; object-fit: cover; flex: 0 0 auto;
  }
  .glass-fav-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
  .glass-fav-info small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
  .glass-fav-info b { font-size: 14px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .glass-fav-price { font-family: var(--serif); font-size: 16px; color: var(--navy); }
  .glass-fav-go { flex: 0 0 auto; color: var(--muted); transform: rotate(-90deg); }

  /* vacío */
  .glass-empty { text-align: center; padding: 24px 16px 12px; }
  .glass-empty-ic {
    width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px;
    display: grid; place-items: center;
    background: rgba(14,31,58,0.06); color: var(--navy);
  }
  .glass-empty-ic svg { width: 26px; height: 26px; }
  .glass-empty p { margin: 0 0 18px; font-size: 14px; color: var(--muted); }
  .glass-empty p b { display: block; font-size: 16px; color: var(--navy); margin-bottom: 4px; }

  /* cuenta */
  .glass-acc-user {
    display: flex; align-items: center; gap: 12px;
    padding: 12px; margin-bottom: 12px; border-radius: 18px;
    background: rgba(14,31,58,0.04);
  }
  .glass-acc-avatar {
    width: 46px; height: 46px; border-radius: 14px; flex: 0 0 auto;
    display: grid; place-items: center;
    background: var(--navy); color: #fff;
  }
  .glass-acc-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .glass-acc-tx b { font-size: 15px; color: var(--navy); }
  .glass-acc-tx small { font-size: 12px; color: var(--muted); }
  .glass-acc-list { display: flex; flex-direction: column; gap: 6px; padding-bottom: 4px; }
  .glass-acc {
    display: flex; align-items: center; gap: 12px;
    padding: 12px; border-radius: 16px;
    text-decoration: none; color: var(--navy);
    transition: background 0.15s ease;
  }
  .glass-acc:active { background: rgba(14,31,58,0.06); }
  .glass-acc-ic {
    width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto;
    display: grid; place-items: center;
    background: rgba(14,31,58,0.06);
  }
  .glass-acc-ic svg { width: 21px; height: 21px; }
  .glass-acc-go { margin-left: auto; color: var(--muted); }
}

/* Pantallas muy pequeñas (iPhone SE / mini) */
@media (max-width: 360px) {
  .appbar { gap: 8px; padding: 0 10px; }
  .appbar-label { font-size: 9.5px; }
  .appbar-ic svg { width: 22px; height: 22px; }
  .appbar-search { width: 54px; }
  .appbar-search svg { width: 22px; height: 22px; }
}

/* Tema oscuro: vidrio adaptado */
[data-theme="dark"] .appbar-dock,
[data-theme="dark"] .appbar-search,
[data-theme="dark"] .appbar-pop,
[data-theme="dark"] .glass-sheet-card {
  background: linear-gradient(180deg, rgba(40,52,78,0.72), rgba(20,28,46,0.55));
  border-color: rgba(255,255,255,0.14);
  box-shadow:
    0 12px 34px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.18);
}
[data-theme="dark"] .appbar-tab { color: rgba(244,246,251,0.6); }
[data-theme="dark"] .appbar-tab.is-active,
[data-theme="dark"] .appbar-tab.is-armed { color: #fff; }
[data-theme="dark"] .appbar-tab.is-active::before,
[data-theme="dark"] .appbar-tab.is-armed::before {
  background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.08));
}
[data-theme="dark"] .appbar-search { color: #fff; }


/*============================================================
   HOME
   ============================================================ */

body.home-redesign{
  /* Paleta: azul Confinca (#286ad3), negro y gris claro */
  --az:        #286ad3;   /* azul Confinca — oscuro */
  --az-bright: #1B3358;   /* azul para hover */
  --az-deep:   #0A1730;   /* azul más profundo */
  --az-lite:   #93AAD6;   /* azul claro para acentos sobre fondos oscuros */
  --az-tint:   #E6EAF1;   /* tinte muy claro */
  --char:      #286ad3;   /* superficies oscuras = azul Confinca */
  --char-2:    #1B3358;
  --soft:      #ECEEF2;   /* gris claro de fondo */
  --soft-2:    #E4E7EC;
  --line-2:    #DEE2E9;
  --gold:      var(--az);       /* todos los acentos dorados → azul */
  --gold-soft: var(--az-tint);
  background: var(--soft);
}

/* ===== Tipografía base — Montserrat, títulos bold ===== */
body.home-redesign{ font-family:'Montserrat',system-ui,sans-serif; }

/* ===== Eyebrow → azul ===== */
body.home-redesign .eyebrow{ color:var(--az); font-weight:700; letter-spacing:.16em; }
body.home-redesign .eyebrow::before{ background:var(--az); opacity:.7; }

/* títulos: acentos en italic → azul */
body.home-redesign .section-title em,
body.home-redesign .hero-v2 h1 em{ color:var(--az); font-style:italic; }

/* ============================================================
   HERO COVER — portada full-bleed cinematográfica
   Slideshow de imágenes (crossfade + Ken Burns) o video de fondo.
   ============================================================ */
body.home-redesign .hero{ display:none; }   /* oculta el hero viejo */

/* =====================================================
   HERO SLIDER · 3 elementos · HTML puro (sin JSON/JS data)
   Paleta CONFINCA: azul / negro / gris claro
   ===================================================== */
:root{
  --az:        #286ad3;
  --az-deep:   #0A1730;
  --soft:      #ECEEF2;
}
*{ box-sizing:border-box; }
body{
  margin:0; background:var(--soft);
  font-family:'Montserrat',system-ui,sans-serif;
}

.hero-v2{ background:var(--soft); padding:16px 16px 0; }

.hero-cover{
  position:relative; max-width:1480px; margin:0 auto;
  min-height:min(88vh,820px);
  border-radius:30px; overflow:hidden;
  display:flex; isolation:isolate;
  box-shadow:0 40px 90px -50px rgba(10,20,45,.65);
  margin-top: 15px;
}

/* ----- slides ----- */
.hc-media{ position:absolute; inset:0; z-index:0; /*background:var(--az-deep);*/ }

.hc-slide{
  position:absolute; inset:0;
  background-size:cover; background-position:center;
  opacity:0; transform:scale(1);
  transition:opacity 1.2s ease, transform 8s ease;
}
.hc-slide.is-active{ opacity:1; transform:scale(1.08); z-index:1; }

.hc-scrim{
  position:absolute; inset:0; z-index:2; pointer-events:none;
  background:
    linear-gradient(90deg, rgba(39,98,212,.82) 0%, rgba(39,98,212,.55) 38%, rgba(39,98,212,.12) 70%, rgba(39,98,212,.05) 100%),
    linear-gradient(180deg, rgba(39,98,212,.45) 0%, rgba(39,98,212,0) 30%, rgba(39,98,212,.15) 60%, rgba(39,98,212,.78) 100%);
}

/* ----- contenido de cada slide ----- */
.hc-content{
  position:absolute; inset:0; z-index:3; color:#fff;
  display:flex; flex-direction:column; align-items:flex-start; justify-content:center;
  max-width:960px; text-align:left;
  padding:64px clamp(28px,5vw,72px) 110px;
  opacity:0; visibility:hidden; transition:opacity .5s ease .15s;
}
.hc-content.is-active{ opacity:1; visibility:visible; }

.hc-kicker{
  display:inline-flex; align-items:center; gap:10px;
  padding:9px 18px; border-radius:999px;
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.26);
  backdrop-filter:blur(10px);
  font-size:12px; font-weight:700; letter-spacing:.1em;
  text-transform:uppercase;
}

.hc-kicker .dot{ width:7px; height:7px; border-radius:50%; background:#fff; }

.hc-content h1{
  font-weight:800; font-size:clamp(32px,5vw,62px);
  line-height:1.05; letter-spacing:-.03em;
  margin:20px 0 0; text-shadow:0 4px 40px rgba(7,16,33,.55);
}
.hc-content h1 em{ color:#B6B6B6; font-style:normal; display:block; }

.hc-content p{
  font-size:clamp(15px,1.3vw,18px); line-height:1.6; font-weight:500;
  color:rgba(255,255,255,.92); max-width:52ch; margin:18px 0 0;
}

.hc-actions{ display:flex; flex-wrap:wrap; gap:14px; margin-top:28px; }

.btn-az{
  display:inline-flex; align-items:center; gap:10px;
  padding:15px 28px; border-radius:999px;
  background:#fff; color:var(--az); font-weight:700; font-size:15px;
  text-decoration:none;
  box-shadow:0 16px 36px -14px rgba(0,0,0,.5);
  transition:transform .18s ease, background .18s ease, color .18s ease;
}
.btn-az:hover{ background:var(--az); color:#fff; transform:translateY(-2px); }

.btn-dark{
  display:inline-flex; align-items:center; gap:10px;
  padding:15px 26px; border-radius:999px;
  background:rgba(255,255,255,.1); color:#fff; font-weight:700; font-size:15px;
  border:1.5px solid rgba(255,255,255,.55); text-decoration:none;
  backdrop-filter:blur(8px);
  transition:all .18s ease;
}
.btn-dark:hover{ background:#fff; color:var(--az); }

/* ----- franja inferior: badges (izq.) + puntos (der.) ----- */
.hc-bottom{
  position:absolute; left:0; right:0; bottom:0; z-index:4;
  display:flex; align-items:flex-end; justify-content:space-between; gap:18px;
  padding:0 clamp(28px,5vw,72px) 30px; flex-wrap:wrap;
}
.hc-badges{ display:flex; gap:12px; flex-wrap:wrap; }
.hc-badge{
  display:flex; flex-direction:column; gap:2px;
  padding:14px 20px; border-radius:16px;
  background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.2);
  backdrop-filter:blur(14px);
  min-width:118px;
}
.hc-badge b{ font-size:clamp(22px,2.4vw,30px); font-weight:800; color:#fff; letter-spacing:-.03em; line-height:1; }
.hc-badge span{ font-size:11.5px; font-weight:600; color:rgba(255,255,255,.78); letter-spacing:.01em; }

/* ----- puntos indicadores ----- */
.hc-dots{ display:flex; gap:8px; align-items:center; padding-bottom:8px; }
.hc-dot{
  width:9px; height:9px; border-radius:999px; cursor:pointer;
  background:rgba(255,255,255,.4); border:none; padding:0;
  transition:width .3s ease, background .3s ease;
}
.hc-dot.is-active{ width:28px; background:#fff; }
.hc-dot:hover{ background:rgba(255,255,255,.7); }

@media (max-width:760px){
  .hero-cover{ min-height:78vh; border-radius:20px; }
  .hc-content{ padding:44px 20px 90px; }
  .hc-content h1{ font-size:clamp(28px,8vw,40px); }
  .hc-bottom{ justify-content:center; }
  .hc-dots{ justify-content:center; width:100%; }
}

@media (prefers-reduced-motion: reduce){
  .hc-slide{ transition:opacity .3s ease; }
  .hc-slide.is-active{ transform:scale(1); }
}


.hc-actions{ display:flex; flex-wrap:wrap; gap:14px; margin-top:32px; justify-content:flex-start; }

/* ----- franja inferior: badges + puntos ----- */
.hc-bottom{
  position:absolute; left:0; right:0; bottom:0; z-index:2;
  display:flex; align-items:flex-end; justify-content:space-between; gap:18px;
  padding: 0 clamp(28px,5vw,72px) 30px; flex-wrap:wrap;
}
.hc-badges{ display:flex; gap:12px; flex-wrap:wrap; }
.hc-badge{
  display:flex; flex-direction:column; gap:2px;
  padding:14px 20px; border-radius:16px;
  background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.2);
  -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px);
  min-width:118px;
}
.hc-badge b{ font-size:clamp(22px,2.4vw,30px); font-weight:800; color:#fff; letter-spacing:-.03em; line-height:1; }
.hc-badge span{ font-size:11.5px; font-weight:600; color:rgba(255,255,255,.78); letter-spacing:.01em; }
.hc-dots{ display:flex; gap:8px; align-items:center; padding-bottom:8px; }
.hc-dot{
  width:9px; height:9px; border-radius:999px; cursor:pointer;
  background:rgba(255,255,255,.4); border:none; padding:0;
  transition:width .3s ease, background .3s ease;
}
.hc-dot.is-active{ width:28px; background:#fff; }
.hc-dot:hover{ background:rgba(255,255,255,.7); }

@media (prefers-reduced-motion: reduce){
  .hc-slide{ transition:opacity .4s ease; }
  .hc-slide.is-active{ transform:scale(1); }
}

.btn-az{
  display:inline-flex; align-items:center; gap:10px;
  padding:16px 30px; border-radius:999px;
  background:#fff; color:var(--az); font-weight:700; font-size:15px;
  box-shadow:0 16px 36px -14px rgba(0,0,0,.5);
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn-az:hover{ background:var(--az); color:#fff; transform:translateY(-2px); box-shadow:0 22px 46px -16px rgba(0,0,0,.55); }
.btn-az svg{ transition:transform .2s ease; }
.btn-az:hover svg{ transform:translateX(4px); }
.btn-dark{
  display:inline-flex; align-items:center; gap:10px;
  padding:16px 28px; border-radius:999px;
  background:rgba(255,255,255,.1); color:#fff; font-weight:700; font-size:15px;
  border:1.5px solid rgba(255,255,255,.55);
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
  transition:all .18s ease;
}
.btn-dark:hover{ background:#fff; color:var(--az); transform:translateY(-2px); border-color:#fff; }

/* buscador flotante sobre la portada */
.hero-search-float{
  position:absolute; left:50%; bottom:30px; transform:translateX(-50%);
  width:min(940px, 92%); z-index:3;
}

/* botones azul sólido (versiones usadas en secciones claras) */
.btn-az.solid{ background:var(--az); color:#fff; box-shadow:0 12px 30px -12px rgba(14,31,58,.55); }
.btn-az.solid:hover{ background:var(--az-bright); color:#fff; }

/* franja de stats bajo el hero */
.hv-stats{
  max-width:1320px; margin:48px auto 0; padding:0 32px;
  display:grid; grid-template-columns:repeat(3,1fr); gap:18px;
}
.hv-stat{
  background:#fff; border:1px solid var(--line-2); border-radius:20px;
  padding:26px 28px; display:flex; flex-direction:column; gap:6px;
  transition:transform .25s ease, box-shadow .25s ease;
}
.hv-stat:hover{ transform:translateY(-4px); box-shadow:0 18px 40px -22px rgba(20,30,55,.3); }
.hv-stat-num{ font-size:48px; font-weight:800; letter-spacing:-.04em; color:var(--char); line-height:1; }
.hv-stat-num .u{ color:var(--az); }
.hv-stat-label{ font-size:13px; color:var(--muted); font-weight:600; letter-spacing:.02em; }

/* barra de búsqueda — justo bajo la portada */
.hv-search{ max-width:1240px; margin:20px auto 0; padding:0 32px; position:relative; z-index:5; }
.home-redesign .search-bar{ box-shadow:0 24px 60px -28px rgba(20,30,55,.45); border:1px solid var(--line-2); }
.home-redesign .search-submit{ background:var(--az); }
.home-redesign .search-submit:hover{ background:var(--az-deep); }

/* ============================================================
   Botones generales en Home → azul / negro
   ============================================================ */
body.home-redesign .btn-primary{ background:var(--char); }
body.home-redesign .btn-primary:hover{ background:var(--char-2); }
body.home-redesign .btn .btn-gold{ background:var(--az); !impo color:#fff; }
body.home-redesign .btn .btn-gold:hover{ background:var(--az-deep); }
body.home-redesign .btn-ghost{
  background: linear-gradient(145deg, rgba(255,255,255,.72), rgba(255,255,255,.38));
  border-color: rgba(255,255,255,.80);
  color: var(--char);
}
body.home-redesign .btn-ghost:hover{
  background: linear-gradient(145deg, rgba(255,255,255,.90), rgba(255,255,255,.65));
  color: var(--az);
}

/* CTA buttons en sección oscura */
.cta-card .btn-gold{
  background: #fff !important;
  color: var(--az) !important;
  font-weight: 700 !important;
  box-shadow: 0 12px 32px -8px rgba(14,31,58,.5) !important;
  transition: all .2s ease !important;
}
.cta-card .btn-gold:hover{
  background: var(--az) !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 16px 40px -10px rgba(14,31,58,.6) !important;
}

.cta-card .btn-ghost{
  background: rgba(255,255,255,.12) !important;
  border: 1.5px solid rgba(255,255,255,.4) !important;
  color: #fff !important;
  -webkit-backdrop-filter: blur(8px) !important;
  backdrop-filter: blur(8px) !important;
  font-weight: 600 !important;
  transition: all .2s ease !important;
}
.cta-card .btn-ghost:hover{
  background: rgba(255,255,255,.22) !important;
  border-color: rgba(255,255,255,.7) !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
}

/* ============================================================
   TRUST STRIP — limpio (legacy)
   ============================================================ */
body.home-redesign .trust{ border-color:var(--line-2); color:var(--muted); }

/* ============================================================
   TRUST STRIP V2 — marquee moderno
   ============================================================ */
.trust-modern-wrap {
  margin-top: 36px;
  background: var(--soft);
  border-top: 1px solid rgba(14,31,58,.08);
  border-bottom: 1px solid rgba(14,31,58,.08);
  position: relative;
  overflow: hidden;
}

.trust-modern-label {
  position: absolute;
  left: clamp(20px, 4vw, 52px);
  top: 50%;
  transform: translateY(-50%);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(14,31,58,.28);
  z-index: 3;
  white-space: nowrap;
  font-family: 'Montserrat', sans-serif;
}

.trust-modern-wrap::before,
.trust-modern-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: clamp(80px, 12vw, 180px);
  z-index: 2;
  pointer-events: none;
}
.trust-modern-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--soft) 55%, transparent);
}
.trust-modern-wrap::after {
  right: 0;
  background: linear-gradient(-90deg, var(--soft) 55%, transparent);
}

.trust-marquee { overflow: hidden; }

.trust-marquee-inner {
  display: flex;
  align-items: center;
  width: max-content;
  animation: trustTicker 34s linear infinite;
}
.trust-marquee-inner:hover { animation-play-state: paused; }

.t-item {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 17px 40px;
  white-space: nowrap;
  cursor: default;
  transition: opacity .2s;
}
.t-item:hover { opacity: .75; }

.t-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--az-tint);
  border: 1px solid rgba(14,31,58,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.t-icon svg {
  width: 13px; height: 13px;
  stroke: var(--az);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.t-name {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(14,31,58,.58);
  font-family: 'Montserrat', sans-serif;
}

.t-sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(14,31,58,.16);
  flex-shrink: 0;
}

@keyframes trustTicker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .trust-marquee-inner { animation: none; }
}

/* ============================================================
   SECCIONES — fondos gris claro SÓLIDO (sin saltos a blanco)
   ============================================================ */
body.home-redesign .section{ background:var(--soft) !important; }
body.home-redesign section[style*="--bg-2"],
body.home-redesign #nosotros,
body.home-redesign .section-sm{ background:var(--soft) !important; }
body.home-redesign .section-title{ color:var(--char); }

/* Asegurar que NO haya cambios de fondo blanco */
body.home-redesign .container{ background:transparent; }
body.home-redesign .about-strip,
body.home-redesign .stats,
body.home-redesign .values-grid,
body.home-redesign .services-grid,
body.home-redesign .team-grid,
body.home-redesign .testi-grid{ background:transparent; }

/* tarjetas de propiedad un poco más suaves */
body.home-redesign .card{ border-color:var(--line-2); }
body.home-redesign .card-badge.featured{ background:var(--az); }
body.home-redesign .card-price-amount,
body.home-redesign .card-title{ color:var(--char); }

/* ============================================================
   NOSOTROS — más corto, número destacado, "Saber más"
   ============================================================ */
body.home-redesign .about-stamp{ background:var(--char); }
body.home-redesign .about-stamp-num{ color:var(--az-lite); font-weight:800; }
body.home-redesign .about-stamp-text{ color:rgba(255,255,255,.7); }

/* ============================================================
   STATS BAND — números grandes en azul + count up
   ============================================================ */
body.home-redesign .stats{ border:none; gap:18px; grid-template-columns:repeat(4,1fr); }
body.home-redesign .stat{
  border:none; background:#fff; border-radius:20px; padding:30px 28px;
  border:1px solid var(--line-2);
  transition:transform .25s ease, box-shadow .25s ease;
}
body.home-redesign .stat:hover{ transform:translateY(-4px); box-shadow:0 18px 40px -22px rgba(20,30,55,.3); }
body.home-redesign .stat-num{ font-size:58px; font-weight:800; letter-spacing:-.04em; color:var(--char); }
body.home-redesign .stat-num small{ color:var(--az); font-weight:800; }

/* ============================================================
   SERVICIOS — antes azul navy, ahora gris claro con tarjetas
   carbón (negro) + tarjetas blancas. Acentos azules.
   ============================================================ */
body.home-redesign #servicios{
  background:var(--soft) !important; color:var(--char) !important;
}
body.home-redesign #servicios .glass-aura{ display:none; }
body.home-redesign #servicios .eyebrow{ color:var(--az) !important; }
body.home-redesign #servicios .section-title{ color:var(--char) !important; }
body.home-redesign #servicios .section-sub{ color:var(--muted) !important; }

/* los 3 pilares → tarjetas carbón (negras) */
body.home-redesign .value-card{
  background:var(--char) !important;
  border:1px solid #23262d !important;
  backdrop-filter:none !important; -webkit-backdrop-filter:none !important;
  box-shadow:0 24px 50px -28px rgba(0,0,0,.5) !important;
  color:#fff;
}
body.home-redesign .value-card::before,
body.home-redesign .value-card::after{ display:none !important; }
body.home-redesign .value-card:hover{ transform:translateY(-6px); border-color:var(--az) !important; }
body.home-redesign .value-num{ color:var(--az-lite) !important; }
body.home-redesign .value-title{ color:#fff !important; font-weight:800 !important; }
body.home-redesign .value-card .svc-icon{ color:#fff !important; background:rgba(147,170,214,.20) !important; border:1px solid rgba(147,170,214,.34) !important; }
body.home-redesign .value-headline{ color:var(--az-lite) !important; }
body.home-redesign .value-card p{ color:rgba(255,255,255,.72) !important; }

/* los 6 servicios → tarjetas blancas limpias */
body.home-redesign .service-card{
  background:#fff !important;
  border:1px solid var(--line-2) !important;
  backdrop-filter:none !important; -webkit-backdrop-filter:none !important;
  box-shadow:0 2px 14px rgba(20,30,55,.04) !important;
  color:var(--char) !important;
}
body.home-redesign .service-card::before,
body.home-redesign .service-card::after{ display:none !important; }
body.home-redesign .service-card:hover{ transform:translateY(-6px); border-color:var(--az) !important; box-shadow:0 22px 48px -24px rgba(20,30,55,.35) !important; }
body.home-redesign .service-num{ color:var(--az) !important; }
body.home-redesign .service-title{ color:var(--char) !important; font-weight:800 !important; }
body.home-redesign .service-desc{ color:var(--muted) !important; }

/* icono → chip azul (en ambas tarjetas) */
body.home-redesign .value-card .svc-icon,
body.home-redesign .service-card .svc-icon{
  color:var(--az) !important;
  background:rgba(14,31,58,.08) !important;
  border:1px solid rgba(14,31,58,.16) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.2) !important;
}
body.home-redesign .value-card .svc-icon{ color:#fff !important; background:rgba(147,170,214,.20) !important; border:1px solid rgba(147,170,214,.34) !important; }

/* botones de servicio → azul */
body.home-redesign .service-btn{
  background:var(--az) !important; color:#fff !important;
  border:none !important; box-shadow:0 10px 24px -12px rgba(29,78,216,.6) !important;
}
body.home-redesign .service-btn svg{ stroke:#fff !important; }
body.home-redesign .service-btn.ghost{
  background:var(--az-tint) !important; color:var(--az) !important;
  border:1px solid rgba(29,78,216,.25) !important; box-shadow:none !important;
}
body.home-redesign .service-btn.ghost svg{ stroke:var(--az) !important; }

/* ============================================================
   EQUIPO / TESTIMONIOS — acentos azules
   ============================================================ */
body.home-redesign .testi{ border-color:var(--line-2); }
body.home-redesign .testi-mark{ color:var(--az); }
body.home-redesign .testi-quote{ color:var(--char); }
body.home-redesign .team-name{ color:#fff; }

/* ============================================================
   CTA STRIP — negro carbón con botón azul
   ============================================================ */
body.home-redesign .cta-card{ background:var(--char) !important; }
body.home-redesign .cta-card .btn-gold{ background:var(--az) !important; color:#fff !important; }
body.home-redesign .cta-card .btn-gold:hover{ background:var(--az-bright) !important; }

/* ============================================================
   ANIMACIONES — scroll reveal
   ============================================================ */
body.home-redesign .reveal{ opacity:0; transform:translateY(28px); }
body.home-redesign .reveal.in{
  opacity:1; transform:none;
  transition:opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
body.home-redesign .reveal.d1{ transition-delay:.08s; }
body.home-redesign .reveal.d2{ transition-delay:.16s; }
body.home-redesign .reveal.d3{ transition-delay:.24s; }
body.home-redesign .reveal.d4{ transition-delay:.32s; }
@media (prefers-reduced-motion: reduce){
  body.home-redesign .reveal{ opacity:1 !important; transform:none !important; }
}

/* entrada del hero */
body.home-redesign .hv-anim{ opacity:0; transform:translateY(22px); animation:hvIn .9s cubic-bezier(.2,.7,.2,1) forwards; }
body.home-redesign .hv-anim.h2{ animation-delay:.12s; }
body.home-redesign .hv-anim.h3{ animation-delay:.22s; }
body.home-redesign .hv-anim.h4{ animation-delay:.32s; }
body.home-redesign .hv-anim.h5{ animation-delay:.42s; }
@keyframes hvIn{ to{ opacity:1; transform:none; } }
body.home-redesign .hv-photo{ opacity:0; transform:scale(.96); animation:hvPhoto 1.1s cubic-bezier(.2,.7,.2,1) .15s forwards; }
@keyframes hvPhoto{ to{ opacity:1; transform:scale(1); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:980px){
  .hv-stats{ grid-template-columns:1fr 1fr; }
  body.home-redesign .stats{ grid-template-columns:1fr 1fr; }
  .hero-cover{ min-height: 78vh; }
  .hero-cover-inner{ padding: 52px 24px 168px; max-width:none; }
  .hc-bottom{ padding-bottom:24px; }
}
@media (max-width:560px){
  .hv-stats{ grid-template-columns:1fr; }
  .hero-cover{ min-height: 80vh; border-radius:22px; }
  .hero-cover h1{ font-size:clamp(32px,8.8vw,46px); }
  .hero-cover-inner{ padding: 44px 20px 200px; }
  .hc-badge{ min-width:0; flex:1; padding:11px 14px; }
  .hc-badge span{ font-size:10.5px; }
  .hc-bottom{ flex-direction:column-reverse; align-items:stretch; gap:12px; padding:0 20px 20px; }
  .hc-dots{ justify-content:center; }
  .hv-search{ margin-top:16px; padding:0 18px; }
}

/* ============================================================
   RESPONSIVE — tablet/iPad y móvil: neutraliza tamaños fijos
   (anchos y alturas en línea) para que el contenido fluya y
   los márgenes se mantengan en todos los dispositivos.
   ============================================================ */
@media (max-width:1100px){
  /* Las secciones tienen alturas fijas en px que recortan el
     contenido al reordenarse: dejamos que el contenido mande. */
  body.home-redesign section[style*="height"]{ height:auto !important; }
  /* El título y subtítulo del hero llevan anchos fijos en px
     que desbordan en pantallas estrechas. */
  .hero-cover h1{ width:auto !important; max-width:100%; }
  .hero-cover .hc-sub{ width:auto !important; max-width:100%; }
}
/* CTA: apilar texto y botones desde tablet */
@media (max-width:880px){
  body.home-redesign .cta-card{
    grid-template-columns:1fr !important;
    padding:48px 36px !important;
    gap:28px !important;
  }
  body.home-redesign .stats{ grid-template-columns:1fr 1fr; }
}

/* ============================================================
   LIQUID GLASS SEARCH — encima de Inmuebles Destacados
   ============================================================ */
.lg-search-section {
  position: relative;
  padding: 0 32px;
  max-width: 1320px;
  margin: 48px auto 0;
  display: flex;
  justify-content: center;
  background: transparent;
}
.lg-search-section::before { display: none; }

.lg-search-bar {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  display: flex;
  align-items: stretch;
  border-radius: 24px;

  /* === Liquid Glass core === */
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.72) 0%,
    rgba(255,255,255,0.42) 35%,
    rgba(230,236,248,0.52) 65%,
    rgba(255,255,255,0.62) 100%
  );
  backdrop-filter: blur(28px) saturate(200%) brightness(1.06);
  -webkit-backdrop-filter: blur(28px) saturate(200%) brightness(1.06);

  /* Layered border for glass illusion */
  border: 1px solid rgba(255,255,255,0.75);
  outline: 1px solid rgba(14,31,58,0.07);
  outline-offset: -1px;

  /* Depth */
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,0.95),
    inset 0 -1px 0 rgba(14,31,58,0.06),
    inset 1px 0 0 rgba(255,255,255,0.55),
    inset -1px 0 0 rgba(14,31,58,0.04),
    0 4px 6px -2px rgba(14,31,58,0.04),
    0 16px 48px -12px rgba(14,31,58,0.16),
    0 32px 80px -24px rgba(14,31,58,0.10);

  overflow: hidden;
  transition: box-shadow .3s ease, transform .3s ease;
}
.lg-search-bar:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,0.95),
    inset 0 -1px 0 rgba(14,31,58,0.06),
    inset 1px 0 0 rgba(255,255,255,0.55),
    inset -1px 0 0 rgba(14,31,58,0.04),
    0 4px 6px -2px rgba(14,31,58,0.04),
    0 20px 60px -12px rgba(14,31,58,0.22),
    0 40px 90px -24px rgba(14,31,58,0.14);
}

/* top specular highlight */
.lg-search-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 5%; right: 5%;
  height: 1.5px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.9) 20%,
    rgba(255,255,255,1) 50%,
    rgba(255,255,255,0.9) 80%,
    transparent 100%);
  border-radius: 99px;
  pointer-events: none;
  z-index: 10;
}

/* prismatic shimmer overlay */
.lg-search-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    rgba(255,255,255,0.38) 0%,
    rgba(159,192,255,0.06) 25%,
    transparent 45%,
    rgba(147,200,220,0.05) 65%,
    rgba(255,255,255,0.18) 100%
  );
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
}

/* fields */
.lg-field {
  flex: 1;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 26px;
  cursor: pointer;
  transition: background .2s ease;
}
.lg-field:hover {
  background: rgba(255,255,255,0.35);
}
.lg-field + .lg-field {
  border-left: 1px solid rgba(14,31,58,0.09);
}
.lg-field-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(14,31,58,0.5);
  margin-bottom: 5px;
  font-family: 'Montserrat', sans-serif;
}
.lg-field-select {
  background: none;
  border: none;
  outline: none;
  font-size: 15px;
  font-weight: 600;
  color: #286ad3;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23286ad3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 14px;
}
.lg-field-select option { color: #286ad3; background: #fff; }

/* buscar button */
.lg-submit {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 32px;
  margin: 10px 10px 10px 0;
  border-radius: 16px;
  border: none;
  background: linear-gradient(145deg, rgba(14,31,58,.96), #286ad3);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: .01em;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.18), 0 6px 20px -6px rgba(14,31,58,.5);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.lg-submit:hover {
  background: linear-gradient(145deg, #1B3358, #243F68);
  transform: scale(1.02) translateY(-1px);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.22), 0 12px 32px -8px rgba(14,31,58,.55);
}
.lg-submit svg { flex-shrink: 0; }

@media (max-width: 780px) {
  .lg-search-bar { flex-wrap: wrap; border-radius: 20px; }
  .lg-field { flex: 1 1 calc(50% - 1px); padding: 14px 18px; }
  .lg-field:nth-child(2) { border-left: none; }
  .lg-field:nth-child(3),
  .lg-field:nth-child(4) { border-top: 1px solid rgba(14,31,58,0.09); }
  .lg-field:nth-child(3) { border-left: none; }
  .lg-submit { flex: 1 1 100%; margin: 0 10px 10px; border-radius: 14px; justify-content: center; padding: 16px; }
  .lg-search-section { padding: 0 18px; height: auto !important; }
}

/* ============================================================
   CARD DE PROPIEDAD — ajustes de estilo para que encaje con el nuevo diseño
   ============================================================ */

      
      .card-badge.property-type {
          display: inline-block;
          /*background: rgba(14, 31, 58, 0.12);*/
          background: white;
          border: 1px solid rgba(14, 31, 58, 0.2);
          color: #286ad3;
          font-weight: 700;
          font-size: 11px;
          letter-spacing: 0.1em;
          text-transform: uppercase;
          padding: 6px 14px;
          border-radius: 12px;
          margin-bottom: 8px;
          visibility: hidden;
          opacity: 0;
          transform: translateY(-8px);
          transition: visibility 0.3s, opacity 0.3s ease, transform 0.3s ease;
      }

      .card:hover .card-badge.property-type {
          visibility: visible;
          opacity: 1;
          transform: translateY(0);
      }
      .card-price-wrapper {
        display: flex;
        align-items: baseline;
        gap: 6px;
        margin: 12px 0 16px 0;
      }
      .card-price-amount {
        font-weight: 900 !important;
        font-size: clamp(28px, 5vw, 36px) !important;
        letter-spacing: -0.02em;
      }
      .card-price-operation {
        font-size: 13px;
        font-weight: 600;
        color: var(--muted);
        text-transform: capitalize;
      }
      .card-price-label {
        font-size: 11px;
        font-weight: 600;
        color: rgba(14, 31, 58, 0.5);
        text-transform: lowercase;
        align-self: center;
      }


      /* ============================================================
         pay header
         ============================================================ */
         .payHeader{
          width:6px;height:6px;border-radius:50%;background:#60D6A0
        }

        /* ============================================================
         NOSOTROS - PAGINA NOSOTROS
         ============================================================ */
        .story-section {
    padding: 96px 0;
  }
  .story-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: start;
  }
  .story-grid.reverse {
    grid-template-columns: 1.4fr 1fr;
  }
  .story-media {
    aspect-ratio: 4/5;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    background: var(--bg-2);
  }
  .story-media img {
    width: 100%; height: 100%; object-fit: cover;
  }
  .story-h {
    font-family: var(--serif);
    font-size: clamp(36px, 4vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--navy);
    margin: 8px 0 24px;
    font-weight: 400;
  }
  .story-h em { font-style: italic; color: var(--navy-soft); }
  .story-body p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--muted);
    margin: 0 0 18px;
  }
  .story-body p.lead {
    font-family: var(--serif);
    font-size: 24px;
    line-height: 1.35;
    color: var(--navy);
    letter-spacing: -0.01em;
    margin-bottom: 24px;
  }
  .timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 80px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .tl-step {
    padding: 32px 28px;
    border-right: 1px solid var(--line);
    position: relative;
  }
  .tl-step:last-child { border-right: none; }
  .tl-year {
    font-family: var(--serif);
    font-size: 56px;
    line-height: 1;
    color: var(--navy);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
  }
  .tl-label {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 8px;
  }
  .tl-text {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.55;
  }
  .leadership-card {
    background: var(--navy);
    color: #fff;
    border-radius: 28px;
    padding: 56px 60px;
    /*display: grid;*/
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: center;
    margin-top: 64px;
    position: relative;
    overflow: hidden;
  }
  .leadership-card::before {
    content: "";
    position: absolute;
    top: -40%; right: -10%;
    width: 480px; height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,169,97,0.18), transparent 70%);
    pointer-events: none;
  }
  .leadership-photo {
    width: 280px; height: 320px;
    border-radius: 20px;
    object-fit: cover;
    background: var(--navy-soft);
  }
  .leadership-name {
    font-family: var(--serif);
    font-size: 44px;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
    color: #fff;
    font-weight: 400;
  }
  .leadership-role {
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
    font-weight: 600;
  }
  .leadership-bio {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    margin-bottom: 18px;
  }
  .awards {
    display: flex; gap: 32px; margin-top: 28px; padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.15);
  }
  .award { display: flex; flex-direction: column; gap: 4px; }
  .award b {
    font-family: var(--serif);
    font-size: 32px; line-height: 1;
    color: var(--gold);
  }
  .award span { font-size: 12px; color: rgba(255,255,255,0.7); letter-spacing: 0.06em; text-transform: uppercase; }

  @media (max-width: 1100px) {
    .story-grid, .story-grid.reverse, .leadership-card { grid-template-columns: 1fr; gap: 40px; padding: 36px; }
    .timeline { grid-template-columns: repeat(2, 1fr); }
    .tl-step:nth-child(2) { border-right: none; }
  }


  /* ===================================================
                          BLOG
  =================================================*/

  /*BLOG*/

  .blog-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
  }
  .blog-meta {
    display: flex; align-items: center; gap: 8px;
    font-size: 12.5px;
    color: var(--muted);
  }
  .blog-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line); }

  /* Featured */
  .blog-feature {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
  }
  .blog-feature-media { position: relative; min-height: 380px; background: var(--bg-2); }
  .blog-feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .blog-feature-body { padding: 48px 52px; display: flex; flex-direction: column; justify-content: center; }
  .blog-feature-body h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(30px, 3.2vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--navy);
    margin: 14px 0 16px;
  }
  .blog-feature-body p {
    font-size: 16px; line-height: 1.7; color: var(--muted); margin: 0 0 28px;
  }

  /* Grid */
  .blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 48px;
  }
  .blog-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    display: flex; flex-direction: column;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }
  .blog-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(14,31,58,0.10); }
  .blog-card-media { aspect-ratio: 16/10; background: var(--bg-2); overflow: hidden; }
  .blog-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
  .blog-card:hover .blog-card-media img { transform: scale(1.05); }
  .blog-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
  .blog-card-body h3 {
    font-size: 19px; font-weight: 700; line-height: 1.25; color: var(--navy); margin: 0;
    letter-spacing: -0.01em;
  }
  .blog-card-body .blog-excerpt { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; flex: 1; }
  .blog-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }

  /* Reader */
  .reader { position: fixed; inset: 0; z-index: 9000; display: none; align-items: flex-start; justify-content: center; padding: 40px 20px; background: rgba(14,31,58,0.55); backdrop-filter: blur(4px); overflow-y: auto; }
  .reader.open { display: flex; }
  .reader-card { background: #fff; border-radius: 24px; max-width: 760px; width: 100%; overflow: hidden; box-shadow: 0 30px 90px rgba(0,0,0,0.3); }
  .reader-media { aspect-ratio: 16/8; background: var(--bg-2); position: relative; }
  .reader-media img { width: 100%; height: 100%; object-fit: cover; }
  .reader-x { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; border: none; background: rgba(255,255,255,0.92); color: var(--navy); cursor: pointer; display: grid; place-items: center; }
  .reader-body { padding: 40px 48px 48px; }
  .reader-body h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; color: var(--navy); margin: 14px 0 18px; letter-spacing: -0.01em; }
  .reader-body p { font-size: 16.5px; line-height: 1.75; color: var(--muted); margin: 0 0 18px; }
  .reader-body p.lead { font-family: var(--serif); font-size: 21px; line-height: 1.45; color: var(--navy); }

  @media (max-width: 920px) {
    .blog-feature { grid-template-columns: 1fr; }
    .blog-feature-media { min-height: 240px; }
    .blog-feature-body { padding: 32px; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 620px) {
    .blog-grid { grid-template-columns: 1fr; }
    .reader-body { padding: 28px 24px 36px; }
  }

  /*============================================================
   PAGINA CONTACTO
   ============================================================ */
   .office-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    margin-top: 60px;
  }
  .office-image {
    background: linear-gradient(135deg, oklch(0.92 0.02 220), oklch(0.85 0.04 240));
    min-height: 300px;
    position: relative;
    overflow: hidden;
  }
  .office-image img { width: 100%; height: 100%; object-fit: cover; }
  .office-body { padding: 44px; }
  .office-body h3 {
    font-family: var(--serif);
    font-size: 36px;
    color: var(--navy);
    margin: 0 0 14px;
    letter-spacing: -0.01em;
  }
  .office-body p {
    color: var(--muted);
    line-height: 1.6;
    font-size: 15px;
    margin: 0 0 8px;
  }
  .schedule-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--line-soft);
    font-size: 14px;
  }
  .schedule-row span:first-child { color: var(--navy); font-weight: 500; }
  .schedule-row span:last-child { color: var(--muted); }

  .ph{
        font-size:24px;
    }


  /*============================================================
   BOTON WHATSAPP — flotante, verde, con sombra
   ============================================================ */
.wa-float {
        position: fixed;
        bottom: 24px;
        right: 24px;
        z-index: 9999;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }

    /* Tooltip / burbuja */
    .wa-float__tooltip {
        background: #fff;
        color: #1a1a1a;
        padding: 10px 16px;
        border-radius: 12px 12px 4px 12px;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.08);
        font-size: 14px;
        font-weight: 500;
        line-height: 1.4;
        max-width: 220px;
        opacity: 0;
        transform: translateY(8px) scale(0.95);
        animation: wa-tooltip-in 0.5s ease 2s forwards;
        pointer-events: none;
        position: relative;
    }

    .wa-float__tooltip span {
        color: #25D366;
        font-weight: 700;
    }

    .wa-float__tooltip-close {
        position: absolute;
        top: 4px;
        right: 8px;
        background: none;
        border: none;
        color: #999;
        font-size: 16px;
        cursor: pointer;
        pointer-events: all;
        padding: 0 2px;
        line-height: 1;
    }

    .wa-float__tooltip-close:hover {
        color: #333;
    }

    /* Botón principal */
    .wa-float__btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: #25D366;
        border: none;
        cursor: pointer;
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4), 0 2px 6px rgba(0, 0, 0, 0.1);
        transition: transform 0.25s ease, box-shadow 0.25s ease;
        position: relative;
        text-decoration: none;
    }

    .wa-float__btn:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5), 0 3px 8px rgba(0, 0, 0, 0.12);
    }

    .wa-float__btn:active {
        transform: scale(0.95);
    }

    .wa-float__btn svg {
        width: 32px;
        height: 32px;
        fill: #fff;
    }

    /* Pulso */
    .wa-float__btn::before {
        content: '';
        position: absolute;
        inset: -4px;
        border-radius: 50%;
        background: rgba(37, 211, 102, 0.35);
        animation: wa-pulse 2s ease-in-out infinite;
        z-index: -1;
    }

    /* Badge "1" de notificación */
    .wa-float__badge {
        position: absolute;
        top: -2px;
        right: -2px;
        width: 20px;
        height: 20px;
        background: #ff3b30;
        border-radius: 50%;
        border: 2px solid #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        font-weight: 700;
        color: #fff;
        animation: wa-badge-bounce 0.5s ease 2.5s both;
    }

    @keyframes wa-pulse {
        0%, 100% { transform: scale(1); opacity: 0.6; }
        50% { transform: scale(1.35); opacity: 0; }
    }

    @keyframes wa-tooltip-in {
        to { opacity: 1; transform: translateY(0) scale(1); }
    }

    @keyframes wa-badge-bounce {
        0% { transform: scale(0); }
        60% { transform: scale(1.3); }
        100% { transform: scale(1); }
    }

    /* Responsive: más pequeño en móvil */
    @media (max-width: 480px) {
        .wa-float { bottom: 16px; right: 16px; }
        .wa-float__btn { width: 52px; height: 52px; }
        .wa-float__btn svg { width: 28px; height: 28px; }
        .wa-float__tooltip { font-size: 13px; max-width: 180px; }
    }

    /* Respeta preferencia de movimiento reducido */
    @media (prefers-reduced-motion: reduce) {
        .wa-float__btn::before { animation: none; }
        .wa-float__tooltip { animation: none; opacity: 1; transform: none; }
        .wa-float__badge { animation: none; transform: scale(1); }
    }

/*=============================================================
    PAGINA PROPIETARIOS
    ============================================================ */
    .hlg-wrap {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 60% at 82% -5%, rgba(201,169,97,.22) 0%, transparent 55%),
    radial-gradient(ellipse 55% 55% at 8% 105%, rgba(27,51,88,.95) 0%, transparent 58%),
    radial-gradient(ellipse 100% 90% at 50% 50%, #0d4187 0%, #2762d4ff 55%, #1c458cff 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hlg-orb { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(70px); }
.hlg-orb-1 { width: 650px; height: 650px; top: -200px; right: -130px; background: radial-gradient(circle, rgba(201,169,97,.18) 0%, transparent 65%); }
.hlg-orb-2 { width: 480px; height: 480px; bottom: -120px; left: -90px; background: radial-gradient(circle, rgba(42,67,106,.8) 0%, transparent 68%); }
.hlg-orb-3 { width: 280px; height: 280px; top: 48%; left: 40%; background: radial-gradient(circle, rgba(255,255,255,.035) 0%, transparent 70%); }

.hlg-container {
  max-width: 1180px; width: 100%; margin: 0 auto;
  padding: 88px 48px 64px;
  display: grid; /*grid-template-columns: 1.15fr .85fr;*/
  gap: 72px; align-items: center; position: relative; z-index: 2;
}

.hlg-eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 20px; opacity: .9;
}
.hlg-eyebrow::before { content: ''; display: block; width: 28px; height: 1px; background: var(--gold); opacity: .6; }

.hlg-title {
  font-family: var(--serif); font-size: clamp(38px, 5.4vw, 60px);
  font-weight: 700; color: #fff; line-height: 1.06;
  letter-spacing: -.028em; margin: 0 0 20px;
}
.hlg-title em { color: var(--gold); font-style: italic; }

.hlg-desc { font-size: 15.5px; color: rgba(255,255,255,.5); line-height: 1.72; margin: 0 0 36px; max-width: 430px; }

.hlg-feats { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.hlg-feats li { display: flex; align-items: center; gap: 14px; font-size: 14px; color: rgba(255,255,255,.65); font-weight: 500; }
.hlg-feat-ic {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(201,169,97,.1); border: 1px solid rgba(201,169,97,.2);
  display: grid; place-items: center; flex-shrink: 0; color: var(--gold);
}

.hlg-card {
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255,255,255,.13); border-radius: 28px;
  padding: 44px 40px 36px;
  box-shadow: 0 48px 110px rgba(0,0,0,.55), inset 0 1.5px 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(0,0,0,.18);
  position: relative;
}
.hlg-card::before {
  content: ''; position: absolute; top: 0; left: 12%; right: 12%;
  height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.38), transparent);
}

.hlg-card-hd { text-align: center; margin-bottom: 28px; }
.hlg-card-lbl { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.32); font-weight: 700; margin-bottom: 10px; }
.hlg-card-title { font-family: var(--serif); font-size: 30px; font-weight: 700; color: #fff; letter-spacing: -.022em; margin: 0; line-height: 1.12; }

.hlg-field { margin-bottom: 14px; }
.hlg-field label { display: block; font-size: 9.5px; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.4); font-weight: 700; margin-bottom: 8px; }
.hlg-field input {
  width: 100%; box-sizing: border-box;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px; padding: 13px 16px; font-size: 14px; color: #fff;
  font-family: var(--sans); outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.hlg-field input::placeholder { color: rgba(255,255,255,.22); }
.hlg-field input:focus { border-color: rgba(201,169,97,.55); background: rgba(255,255,255,.11); box-shadow: 0 0 0 3px rgba(201,169,97,.12); }

.hlg-row { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 20px; font-size: 12.5px; }
.hlg-check { display: flex; align-items: center; gap: 7px; color: rgba(255,255,255,.42); cursor: pointer; }
.hlg-check input[type="checkbox"] { width: auto; accent-color: var(--gold); }
.hlg-row a { color: rgba(255,255,255,.42); text-decoration: none; transition: color .2s; }
.hlg-row a:hover { color: var(--gold); }

.hlg-err { padding: 11px 15px; background: rgba(194,65,12,.18); border: 1px solid rgba(194,65,12,.3); border-radius: 10px; font-size: 12.5px; color: #ff9070; margin-bottom: 14px; }

.hlg-submit {
  width: 100%; padding: 15px; background: #fff; color: #07111e; border: none;
  border-radius: 999px; font-size: 14.5px; font-weight: 700;
  font-family: var(--sans); cursor: pointer; letter-spacing: .01em;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 24px rgba(255,255,255,.14);
}
.hlg-submit:hover { background: var(--gold); color: #07111e; box-shadow: 0 8px 32px rgba(201,169,97,.32); }
.hlg-submit:active { transform: scale(.98); }

.hlg-demo { margin-top: 18px; padding: 12px 16px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.09); border-radius: 13px; text-align: center; font-size: 12px; color: rgba(255,255,255,.42); }
.hlg-demo-lbl { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.26); font-weight: 700; margin-bottom: 4px; }

.hlg-signup { text-align: center; margin-top: 16px; font-size: 12.5px; color: rgba(255,255,255,.36); }
.hlg-signup a { color: rgba(255,255,255,.68); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.24); transition: color .2s, border-color .2s; }
.hlg-signup a:hover { color: var(--gold); border-color: var(--gold); }

/* ===== ACCESS CARD — Centro de Acceso único ===== */
.hlg-access-ic {
  width: 62px; height: 62px; border-radius: 19px; margin: 0 auto 16px;
  display: grid; place-items: center; color: var(--gold);
  background: linear-gradient(160deg, rgba(201,169,97,.28), rgba(201,169,97,.07));
  border: 1px solid rgba(201,169,97,.38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.32), 0 14px 30px -14px rgba(201,169,97,.45);
}
.hlg-access-txt { text-align: center; font-size: 13.5px; color: rgba(255,255,255,.55); line-height: 1.7; margin: 0 0 22px; }
.hlg-access-txt strong { color: rgba(255,255,255,.88); font-weight: 600; }
.hlg-access-btn { display: flex; align-items: center; justify-content: center; gap: 10px; box-sizing: border-box; text-decoration: none; }
.hlg-access-list { list-style: none; padding: 18px 2px 0; margin: 20px 0 0; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 11px; }
.hlg-access-list li { display: flex; align-items: center; gap: 11px; font-size: 12.5px; color: rgba(255,255,255,.52); font-weight: 500; }
.hlg-access-chip { width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center; color: var(--gold); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13); box-shadow: inset 0 1px 0 rgba(255,255,255,.16); }

.hlg-scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  color: rgba(255,255,255,.28); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; font-weight: 600; cursor: pointer; z-index: 3;
  animation: hlgBob 2.2s ease-in-out infinite; transition: color .2s;
}
.hlg-scroll-hint:hover { color: rgba(255,255,255,.5); }
@keyframes hlgBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ===== RESPONSIVE — Hero Liquid Glass (iPhone · Android · iPad) ===== */
/* iPad landscape / small laptop: mantiene 2 columnas, márgenes alineados */
@media (max-width: 1024px) {
  .hlg-container { gap: 48px; padding: 72px 32px 56px; }
}
/* iPad portrait y por debajo: una sola columna, card centrada */
@media (max-width: 880px) {
  /* Quita la altura fija para que no recorte el contenido apilado */
  #hlg-section { height: auto !important; }
  .hlg-wrap { min-height: auto; }
  .hlg-container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 24px 72px;
    max-width: 560px;
  }
  .hlg-desc, .hlg-feats { display: none; }
  .hlg-title { font-size: clamp(34px, 7vw, 48px) !important; }
  .hlg-scroll-hint { display: none; }
}
/* Teléfonos: márgenes iguales al resto de la página (16px) */
@media (max-width: 720px) {
  .hlg-container { padding: 40px 16px 60px; }
  .hlg-card { padding: 36px 24px 30px; border-radius: 22px; }
  .hlg-card-title { font-size: 27px; }
}
/* Teléfonos pequeños (iPhone SE / mini, Android compactos) */
@media (max-width: 400px) {
  .hlg-container { padding: 36px 14px 52px; }
  .hlg-card { padding: 30px 18px 26px; border-radius: 20px; }
  .hlg-card-title { font-size: 25px; }
  .hlg-title { font-size: clamp(28px, 8.5vw, 38px) !important; }
  .hlg-card-hd { margin-bottom: 22px; }
}

/* ===== PORTALES — fondo azul degradado continuo (hero + pitch, sin costura) ===== */
#portales-bg {
  position: relative;
  background:
    radial-gradient(ellipse 68% 42% at 82% 0%, rgba(201,169,97,.20) 0%, transparent 52%),
    radial-gradient(ellipse 62% 38% at 4% 20%, rgba(27,51,88,.85) 0%, transparent 58%),
    linear-gradient(180deg, #05111f 0%, #0a1428 30%, #0c1730 56%, #0a1428 80%, #060e1c 100%);
}
#portales-bg .hlg-wrap { background: transparent; }
#portales-bg .pmod-dark { background: transparent; margin-top: 0; }


/*=============================================================
    PAGINA DETALLE INMUEBLE
    ============================================================ */
    .prop-gallery-wrap { margin-bottom: 36px; }

  .gallery-mode-row {
    display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap;
  }
  .gmt-btn {
    padding: 7px 16px; border-radius: 20px; font-size: 12px; font-weight: 700;
    border: 1.5px solid var(--line); background: #fff; color: var(--muted);
    cursor: pointer; transition: all .14s; display: flex; align-items: center; gap: 6px;
  }
  .gmt-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
  .gmt-btn:hover:not(.active) { border-color: var(--navy); color: var(--navy); }
  .ai-badge {
    padding: 3px 9px; border-radius: 20px; font-size: 10px; font-weight: 800;
    background: linear-gradient(135deg, #7C3AED, #C2410C);
    color: #fff; letter-spacing: .06em; text-transform: uppercase;
  }

  .gallery-layout {
    display: grid;
    grid-template-columns: 1fr 110px;
    gap: 8px;
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
  }
  .gallery-main {
    position: relative; overflow: hidden; border-radius: 16px 0 0 16px; cursor: zoom-in;
  }
  .gallery-main img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s cubic-bezier(.4,0,.2,1);
  }
  .gallery-main:hover img { transform: scale(1.03); }
  .gallery-main-overlay {
    position: absolute; bottom: 16px; right: 16px;
    display: flex; gap: 8px;
  }
  .gallery-overlay-btn {
    padding: 8px 14px; border-radius: 10px; font-size: 12px; font-weight: 700;
    background: rgba(0,0,0,.55); backdrop-filter: blur(8px);
    color: #fff; border: 1px solid rgba(255,255,255,.2); cursor: pointer;
    display: flex; align-items: center; gap: 6px; transition: background .14s;
  }
  .gallery-overlay-btn:hover { background: rgba(0,0,0,.75); }

  .gallery-thumbs {
    display: flex; flex-direction: column; gap: 8px; overflow: hidden;
  }
  .gallery-thumb {
    flex: 1; overflow: hidden; border-radius: 0; cursor: pointer; position: relative;
    transition: transform .14s;
  }
  .gallery-thumb:first-child { border-radius: 0 16px 0 0; }
  .gallery-thumb:last-child  { border-radius: 0 0 16px 0; }
  .gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; display: block; }
  .gallery-thumb:hover img { transform: scale(1.08); }
  .gallery-thumb.active::after {
    content: ""; position: absolute; inset: 0;
    border: 3px solid var(--gold); pointer-events: none;
  }
  .gallery-thumb-more {
    position: absolute; inset: 0; background: rgba(14,31,58,.62);
    display: grid; place-items: center; font-size: 14px; font-weight: 800; color: #fff;
  }

  /* ── LIGHTBOX ─────────────────────────────────────── */
  #lb-overlay {
    position: fixed; inset: 0; z-index: 9000;
    background: rgba(0,0,0,.94); backdrop-filter: blur(10px);
    display: none; align-items: center; justify-content: center; flex-direction: column; gap: 14px;
  }
  #lb-overlay.open { display: flex; }
  .lb-img-wrap { position: relative; display: flex; align-items: center; justify-content: center; width: 90vw; max-height: 78vh; }
  #lb-img { max-width: 100%; max-height: 78vh; border-radius: 12px; object-fit: contain; }
  .lb-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
    color: #fff; font-size: 22px; cursor: pointer; display: grid; place-items: center;
    transition: background .14s; backdrop-filter: blur(4px);
  }
  .lb-nav:hover { background: rgba(255,255,255,.22); }
  #lb-prev { left: -28px; }
  #lb-next { right: -28px; }
  #lb-close {
    position: fixed; top: 20px; right: 24px; width: 42px; height: 42px;
    border-radius: 50%; background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2); color: #fff; font-size: 20px;
    cursor: pointer; display: grid; place-items: center; z-index: 9001;
    transition: background .14s;
  }
  #lb-close:hover { background: rgba(255,255,255,.25); }
  .lb-strip {
    display: flex; gap: 8px; overflow-x: auto; padding: 4px 24px;
    max-width: 90vw; scrollbar-width: thin;
  }
  .lb-strip-thumb {
    width: 64px; height: 48px; border-radius: 8px; overflow: hidden;
    cursor: pointer; flex-shrink: 0; opacity: .55; transition: opacity .14s;
    border: 2px solid transparent;
  }
  .lb-strip-thumb.active { opacity: 1; border-color: var(--gold); }
  .lb-strip-thumb img { width: 100%; height: 100%; object-fit: cover; }
  #lb-counter {
    color: rgba(255,255,255,.65); font-size: 13px; font-weight: 600; letter-spacing: .06em;
  }
  .lb-mode-label {
    position: absolute; top: 12px; left: 12px;
    padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 700;
    background: linear-gradient(135deg, #7C3AED, #C2410C); color: #fff;
  }

  /* ── MEDIA CARDS (360 + Video) ────────────────────── */
  .media-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 32px; }
  .media-card {
    background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px;
    padding: 20px 22px; display: flex; align-items: center; gap: 14px; cursor: pointer;
    transition: all .15s;
  }
  .media-card:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
  .media-card-icon {
    width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
    font-size: 24px; flex-shrink: 0;
  }
  .media-card-body strong { display: block; font-size: 15px; color: var(--navy); margin-bottom: 3px; }
  .media-card-body span { font-size: 12px; color: var(--muted); }
  .media-card-unavailable { opacity: .5; cursor: default; }
  .media-card-unavailable:hover { transform: none; box-shadow: none; border-color: var(--line); }

  /* ── REDES SOCIALES (cards estilo media) ──────────── */
  .social-section { margin: 36px 0 0; }
  .social-head {
    font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 14px;
  }
  .social-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .social-card {
    display: flex; align-items: center; gap: 13px; text-decoration: none;
    background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px;
    padding: 16px 18px; transition: all .15s;
  }
  .social-card:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
  .social-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
  .social-icon svg { width: 25px; height: 25px; display: block; }
  .social-body strong { display: block; font-size: 14px; color: var(--navy); margin-bottom: 2px; line-height: 1.2; }
  .social-body span { font-size: 12px; color: var(--muted); }
  @media (max-width: 480px) { .social-cards { grid-template-columns: 1fr; } }

  /* ── ACCIONES: Me gusta + Compartir ───────────────── */
  .detail-actions { display: flex; gap: 10px; flex-shrink: 0; }
  .action-pill {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 10px 18px; border-radius: 999px; cursor: pointer;
    border: 1.5px solid var(--line); background: var(--surface);
    color: var(--navy); font-size: 14px; font-weight: 600; font-family: inherit;
    transition: all .15s; white-space: nowrap;
  }
  .action-pill:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
  .action-pill .pill-ico { display: grid; place-items: center; }
  .action-pill .pill-ico svg { width: 18px; height: 18px; display: block; }
  .action-pill.is-fav { color: #C2410C; border-color: rgba(194,65,12,.4); background: rgba(194,65,12,.08); }
  .action-pill.is-fav .pill-ico svg { fill: #C2410C; stroke: #C2410C; }
  @media (max-width: 760px) {
    .detail-actions { width: 100%; }
    .action-pill { flex: 1; justify-content: center; }
  }

  /* ── MEDIA MODAL ──────────────────────────────────── */
  #media-modal {
    position: fixed; inset: 0; z-index: 8000; background: rgba(0,0,0,.88);
    display: none; align-items: center; justify-content: center; flex-direction: column; gap: 16px;
  }
  #media-modal.open { display: flex; }
  .media-modal-inner {
    width: min(900px, 94vw); background: #111; border-radius: 16px; overflow: hidden;
    aspect-ratio: 16/9; position: relative;
  }
  .media-modal-inner iframe { width: 100%; height: 100%; border: none; }
  #media-modal-close {
    position: fixed; top: 20px; right: 24px;
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
    color: #fff; font-size: 20px; cursor: pointer; display: grid; place-items: center;
  }
  #media-modal-title {
    color: #fff; font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  }

  /* ── MAP ──────────────────────────────────────────── */
  .pmap {
    height: 240px; border-radius: 16px; overflow: hidden;
    background: radial-gradient(circle at 30% 40%, oklch(0.93 0.04 145) 0 5px, transparent 6px),
                radial-gradient(circle at 60% 70%, oklch(0.93 0.04 145) 0 4px, transparent 5px),
                linear-gradient(135deg, oklch(0.96 0.02 200), oklch(0.92 0.02 145));
    position: relative; border: 1px solid var(--line);
  }
  .pmap-pin {
    position: absolute; top: 45%; left: 48%;
    width: 36px; height: 36px; background: var(--navy); color: #fff;
    border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
    display: grid; place-items: center; box-shadow: var(--shadow-md);
  }
  .pmap-pin svg { transform: rotate(45deg); }

  @media (max-width: 760px) {
    .gallery-layout { grid-template-columns: 1fr; height: auto; }
    .gallery-thumbs { flex-direction: row; height: 72px; }
    .gallery-main { border-radius: 16px; min-height: 260px; }
    .gallery-thumb:first-child, .gallery-thumb:last-child { border-radius: 8px; }
    .media-cards { grid-template-columns: 1fr; }
    #lb-prev { left: -20px; } #lb-next { right: -20px; }
  }

  /* ── FICHA PÚBLICA (campos públicos del admin, solo los llenos) ── */
  .ficha-wrap { display: flex; flex-direction: column; gap: 22px; }
  .ficha-block-title {
    font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--muted); margin: 0 0 12px;
  }
  .ficha-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; margin: 0;
  }
  .ficha-row {
    display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
    padding: 11px 0; border-bottom: 1px solid var(--line-soft); margin: 0;
  }
  .ficha-row-wide { grid-column: 1 / -1; flex-direction: column; align-items: flex-start; gap: 4px; }
  .ficha-row dt { font-size: 13px; color: var(--muted); margin: 0; }
  .ficha-row dd { font-size: 14px; font-weight: 600; color: var(--navy); margin: 0; text-align: right; }
  .ficha-row-wide dd { text-align: left; font-weight: 500; line-height: 1.5; }
  @media (max-width: 620px) { .ficha-grid { grid-template-columns: 1fr; } }

  /* ── FAV (me gusta) estado activo ─────────────────── */
  .btn-icon.is-fav { color: #C2410C; border-color: rgba(194,65,12,.35); background: rgba(194,65,12,.08); }
  .btn-icon.is-fav svg { fill: #C2410C; stroke: #C2410C; }
  .btn-icon { transition: all .15s; }

  /*===================================================================
  GALERIA DETALLES INMUEBLE
  ===================================================================*/
  /* ============== GALERÍA TABS ============== */
.gallery-wrapper {
    margin-bottom: 32px;
}
.gallery-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.gallery-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1.5px solid var(--line, #ddd);
    background: var(--surface, #fff);
    color: var(--navy, #286ad3);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.gallery-tab.active {
    background: var(--navy, #286ad3);
    color: #fff;
    border-color: var(--navy, #286ad3);
}
.gallery-tab:not(.active):hover {
    border-color: var(--navy, #286ad3);
}
.gallery-ai-note {
    font-size: 12px;
    color: var(--muted, #888);
    margin-left: 8px;
}

/* ============== GALERÍA CONTENEDOR ============== */
.gallery-container {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 8px;
    height: 480px;
}
.gallery-main {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    height: 100%;
}
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.gallery-main:hover img {
    transform: scale(1.02);
}

/* Badge */
.gallery-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    z-index: 2;
    display: none;
}
.gallery-badge.real {
    display: none;
}
.gallery-badge.ai {
    display: inline-block;
    background: linear-gradient(135deg, #7C3AED, #C2410C);
    color: #fff;
}

/* Botón ver todas */
.gallery-see-all {
    position: absolute;
    bottom: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background 0.2s;
    z-index: 2;
}
.gallery-see-all:hover {
    background: rgba(0, 0, 0, 0.85);
}

/* Thumbnails */
.gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    overflow-y: auto;
}
.gallery-thumb {
    min-height: 0;
    flex: 1;
    max-height: 155px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.gallery-thumb:hover img {
    transform: scale(1.05);
}
.gallery-thumb.active {
    border-color: var(--navy, #286ad3);
}

/* ============== LIGHTBOX ============== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.lightbox.open {
    display: flex;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    z-index: 10;
    transition: background 0.2s;
}
.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}
.lightbox-body {
    max-width: 90vw;
    max-height: 85vh;
}
.lightbox-body img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 14px;
    border-radius: 50%;
    transition: background 0.2s;
    z-index: 10;
}
.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
}
.lightbox-prev {
    left: 20px;
}
.lightbox-next {
    right: 20px;
}
.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 600;
    z-index: 10;
}

/* ============== RESPONSIVE ============== */
@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    .gallery-main {
        height: 300px;
    }
    .gallery-thumbs {
        flex-direction: row;
        height: 80px;
        overflow-x: auto;
    }
    .gallery-thumb {
        min-width: 100px;
        max-height: none;
        flex: none;
    }
}

/* ============== VIDEO MODAL ============== */
.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.video-modal.open {
    display: flex;
}
.video-modal-content {
    position: relative;
    width: 90vw;
    max-width: 900px;
}
.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
    z-index: 10;
}
.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
}
.video-modal-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    border-radius: 12px;
    overflow: hidden;
}
.video-modal-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ============== MODAL COMPARTIR ============== */
.share-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.share-modal.open {
    display: flex;
}
.share-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    width: 90vw;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: shareModalIn 0.25s ease;
}
@keyframes shareModalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.share-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy, #286ad3);
    margin: 0 0 4px;
}
.share-modal-subtitle {
    font-size: 14px;
    color: var(--muted, #888);
    margin: 0 0 24px;
}
.share-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}
.share-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1.5px solid var(--line, #e5e5e5);
    background: #fff;
    color: var(--navy, #286ad3);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}
.share-option:hover {
    border-color: var(--navy, #286ad3);
    background: rgba(14, 31, 58, 0.03);
}
.share-link-box {
    text-align: left;
    margin-bottom: 20px;
}
.share-link-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--muted, #888);
    margin-bottom: 8px;
    text-transform: uppercase;
}
.share-link-row {
    display: flex;
    gap: 8px;
}
.share-link-row input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1.5px solid var(--line, #e5e5e5);
    font-size: 13px;
    color: var(--navy, #286ad3);
    background: var(--surface, #fafafa);
    outline: none;
}
.share-link-copy {
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    background: var(--navy, #286ad3);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.share-link-copy:hover {
    opacity: 0.85;
}
.share-modal-close-btn {
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--navy, #286ad3);
    cursor: pointer;
    padding: 8px 24px;
    transition: opacity 0.2s;
}
.share-modal-close-btn:hover {
    opacity: 0.6;
}

.btn-whatsapp {
  background: #3EB046;
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.18), 0 6px 20px -8px rgba(14,31,58,.4);
}

.btn-whatsapp:hover {
  background: linear-gradient(145deg, rgba(62,176,70,1), rgba(33,115,41,1));
  transform: translateY(-2px);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.22), 0 12px 28px -10px rgba(14,31,58,.5);
}

/* ============== MODAL AGENDAR VISITA ============== */
.appointment-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    overflow-y: auto;
    padding: 20px;
}
.appointment-modal.open {
    display: flex;
}
.appointment-modal-content {
    background: #fff;
    border-radius: 20px;
    padding: 36px;
    width: 100%;
    max-width: 520px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: appointmentIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}
@keyframes appointmentIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.appointment-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--navy, #286ad3);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: background 0.2s;
}
.appointment-close:hover {
    background: rgba(0, 0, 0, 0.05);
}
.appointment-header {
    margin-bottom: 24px;
}
.appointment-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #B8860B;
    text-transform: uppercase;
}
.appointment-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy, #286ad3);
    margin: 6px 0;
}
.appointment-subtitle {
    font-size: 13px;
    color: var(--muted, #888);
    line-height: 1.5;
}

/* Tipo de visita */
.visit-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}
.visit-type-card {
    padding: 14px;
    border: 2px solid var(--line, #e5e5e5);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.visit-type-card:hover {
    border-color: var(--navy, #286ad3);
}
.visit-type-card.active {
    border-color: var(--navy, #286ad3);
    background: rgba(14, 31, 58, 0.03);
}
.visit-type-card svg {
    margin-bottom: 4px;
}
.visit-type-card strong {
    font-size: 13px;
    color: var(--navy, #286ad3);
}
.visit-type-card span {
    font-size: 11px;
    color: var(--muted, #888);
    line-height: 1.4;
}

/* Campos */
.appointment-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
.appointment-field {
    display: flex;
    flex-direction: column;
}
.appointment-field-full {
    margin-bottom: 12px;
}
.appointment-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--navy, #286ad3);
    text-transform: uppercase;
    margin-bottom: 6px;
}
.appointment-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1.5px solid var(--line, #e5e5e5);
    background: var(--surface, #f9f9f9);
    color: var(--navy, #286ad3);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}
.appointment-input:focus {
    border-color: var(--navy, #286ad3);
}

/* Aviso */
.appointment-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(184, 134, 11, 0.08);
    border-radius: 10px;
    margin: 16px 0;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}
.appointment-notice svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: #B8860B;
}

/* Botón */
.appointment-submit {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: none;
    background: var(--navy, #286ad3);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}
.appointment-submit:hover {
    opacity: 0.9;
}
.appointment-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Éxito */
.appointment-success {
    text-align: center;
    padding: 20px 0;
}
.appointment-success h4 {
    font-size: 18px;
    font-weight: 700;
    color: #16a34a;
    margin: 12px 0 6px;
}
.appointment-success p {
    font-size: 13px;
    color: var(--muted, #888);
}

@media (max-width: 768px) {
    .visit-type-grid {
        grid-template-columns: 1fr;
    }
    .appointment-row {
        grid-template-columns: 1fr;
    }
    .appointment-modal-content {
        padding: 24px;
    }
}

/*FORMULARIOS AFIANZADORAS*/
.forms-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.forms-modal.open {
    display: flex;
}
.forms-modal-content {
    background: #fff;
    border-radius: 20px;
    padding: 36px;
    width: 90vw;
    max-width: 440px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: formsIn 0.25s ease;
}
@keyframes formsIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.forms-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--navy, #286ad3) !important;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: background 0.2s;
}
.forms-modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
}
.forms-modal-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--navy, #286ad3) !important;
    margin: 0 0 4px;
}
.forms-modal-subtitle {
    font-size: 13px;
    color: var(--muted, #888) !important;
    margin: 0 0 24px;
}
.forms-group {
    margin-bottom: 20px;
}
.forms-group-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--navy, #286ad3) !important;
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}
.forms-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1.5px solid var(--line, #e5e5e5);
    color: var(--navy, #286ad3) !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 8px;
}
.forms-option:hover {
    border-color: var(--navy, #286ad3);
    background: rgba(14, 31, 58, 0.03);
}
.forms-modal-close-btn {
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--navy, #286ad3) !important;
    cursor: pointer;
    padding: 8px 24px;
    margin-top: 8px;
    width: 100%;
    transition: opacity 0.2s;
}
.forms-modal-close-btn:hover {
    opacity: 0.6;
}

/*botones flotantes*/
.float-buttons {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid var(--line, #e5e5e5);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
    color: #0E1F3A !important;
    position: relative;
    overflow: visible;
}

.float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    border-color: var(--navy, #0E1F3A);
}

.float-btn-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: contain;
}

.float-btn svg {
    stroke: #0E1F3A;
}

.float-btn-label {
    position: absolute;
    right: 66px;
    background: var(--navy, #0E1F3A);
    color: #fff !important;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    transition: all 0.25s ease;
    pointer-events: none;
}

.float-btn-label::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 6px solid var(--navy, #0E1F3A);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.float-btn:hover .float-btn-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.float-btn-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.float-btn.logo-full {
    padding: 0;
    border: none;
    overflow: hidden;
}

.float-btn.logo-full {
    padding: 0;
    border: none;
    overflow: visible;
}

.float-btn.logo-full .float-btn-img {
    border-radius: 50%;
    clip-path: circle(50%);
}

@media (max-width: 768px) {
    .float-buttons {
        right: 12px;
    }
    .float-btn {
        width: 48px;
        height: 48px;
    }
    .float-btn-img {
        width: 28px;
        height: 28px;
    }
    .float-btn-label {
        display: none;
    }

    .float-btn-img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
    }

    .float-btn.logo-full {
        padding: 0;
        border: none;
        overflow: hidden;
    }
}