/* ──────────────────────────────────────────────────────────────────
 *  Kre. — Cartera web · v3 (paleta oficial Kre.)
 *  Editorial tech (Bloomberg/Monocle) + Zillow-style search
 *  Tipografía: Manrope (display) · Inter (body)
 *  Acento: rojo Kre. #B7102A — usado contenidamente
 * ────────────────────────────────────────────────────────────────── */

/* ── TOKENS ─────────────────────────────────────────────────────── */
:root {
  /* Marca Kre. (rojo reservado: CTAs primarios, badges urgencia, destructive) */
  --kre-red:        #B7102A;
  --kre-red-lift:   #DB313F;
  --kre-red-deep:   #8A0C1F;
  --kre-red-wash:   #FDEEF0;
  --kre-black:      #191C1D;   /* PRIMARY — logo, headings, sticky */
  --kre-graphite:   #0A0C10;
  --kre-gold:       #C9A961;   /* SUTIL — markers calidad y destacados */
  --kre-gold-deep:  #8F7434;
  --kre-gold-wash:  #F8F1DC;

  /* Surfaces (quiet luxury — off-white cálido) */
  --bg:             #FFFFFF;
  --bg-soft:        #FAFAF8;
  --bg-tint:        #F4F3EF;
  --bg-line:        #ECECE6;
  --bg-deep:        #191C1D;
  --bg-deep-2:      #2E3132;

  /* Text */
  --text:           #191C1D;
  --text-soft:      #5F5E5E;
  --text-muted:     #525C6F;
  --text-faint:     rgba(25, 28, 29, 0.18);
  --text-line:      rgba(25, 28, 29, 0.08);
  --on-deep:        #FFFFFF;
  --on-deep-soft:   rgba(255, 255, 255, 0.72);
  --on-deep-muted:  rgba(255, 255, 255, 0.45);

  /* Accent → rojo Kre. */
  --accent:         var(--kre-red);
  --accent-lift:    var(--kre-red-lift);
  --accent-deep:    var(--kre-red-deep);
  --accent-wash:    var(--kre-red-wash);
  --accent-faint:   rgba(183, 16, 42, 0.10);

  /* States */
  --danger:         var(--kre-red);
  --success:        #1f7a4d;
  --warning:        #c47a1a;
  --info:           #2563c9;

  /* Borders (más finos — Apple-minimal) */
  --border:         rgba(25, 28, 29, 0.08);
  --border-strong:  rgba(25, 28, 29, 0.16);
  --border-on-deep: rgba(255, 255, 255, 0.12);

  /* Radii */
  --r-xs:    4px;
  --r-sm:    8px;
  --r-md:    12px;
  --r-lg:    16px;
  --r-xl:    24px;
  --r-2xl:   32px;
  --r-pill:  9999px;

  /* Shadows */
  --shadow-1: 0 1px 2px rgba(25, 28, 29, 0.06), 0 1px 1px rgba(25, 28, 29, 0.03);
  --shadow-2: 0 2px 8px rgba(25, 28, 29, 0.06), 0 8px 24px rgba(25, 28, 29, 0.06);
  --shadow-3: 0 4px 16px rgba(25, 28, 29, 0.08), 0 24px 48px rgba(25, 28, 29, 0.10);
  --shadow-4: 0 8px 32px rgba(25, 28, 29, 0.10), 0 32px 80px rgba(25, 28, 29, 0.14);
  --shadow-card:        0 0 0 1px var(--border), 0 1px 2px rgba(0,0,0,0.02), 0 6px 20px rgba(0,0,0,0.04);
  --shadow-card-hover:  0 0 0 1px var(--border), 0 4px 12px rgba(0,0,0,0.05), 0 20px 44px rgba(0,0,0,0.10);
  --shadow-red:         0 8px 24px rgba(183, 16, 42, 0.22);
  --shadow-red-soft:    0 4px 14px rgba(183, 16, 42, 0.14);

  /* Spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
  --s-11: 160px;

  /* Type stacks oficiales */
  --display: 'Manrope', -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --sans:    'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --mono:    ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Layout */
  --header-h:    64px;
  --filter-h:    72px;
  --compare-h:   72px;
  --content-max: 1320px;
  --side-nav-w:  56px;

  /* Breakpoints (referencia) */
  --bp-sm: 600px;
  --bp-md: 900px;
  --bp-lg: 1200px;

  /* Motion */
  --ease:      cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:  0.18s;
  --t-med:   0.32s;
  --t-slow:  0.6s;
}

/* ── RESET ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "cv11";
}
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
button:disabled { cursor: not-allowed; opacity: 0.5; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--kre-red); color: var(--bg); }

/* ── TYPOGRAPHY HELPERS ─────────────────────────────────────────── */
.display      { font-family: var(--display); font-feature-settings: "ss01", "cv11"; }
.num          { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.muted        { color: var(--text-muted); }
.soft         { color: var(--text-soft); }
.red          { color: var(--kre-red); }

/* ── ICONS (SVG inline) ─────────────────────────────────────────── */
.icon {
  width: 18px; height: 18px;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
  stroke: currentColor;
}
.icon-xs { width: 12px; height: 12px; }
.icon-sm { width: 14px; height: 14px; }
.icon-lg { width: 22px; height: 22px; }
.icon-xl { width: 28px; height: 28px; }

/* ── EYEBROW ────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px;
  background: var(--kre-red); display: inline-block;
}
.eyebrow.on-deep { color: var(--on-deep-soft); }
.eyebrow.on-deep::before { background: var(--kre-red-lift); }

/* ── HEADLINES (Manrope, alto contraste) ────────────────────────── */
.h-hero {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 6.5vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--text);
}
.h-hero em {
  font-style: normal;
  color: var(--kre-red);
  font-weight: 800;
}
.h-1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
}
.h-2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.h-3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.lead {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--text-soft);
  font-weight: 400;
}

/* ── HEADER ─────────────────────────────────────────────────────── */
.kre-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 var(--s-5);
  z-index: 50;
}
.kre-brand {
  display: flex; align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.kre-logo {
  height: 26px;
  width: auto;
  display: block;
}
.kre-header-nav {
  margin-left: auto;
  display: flex; align-items: center;
  gap: var(--s-2);
}
.kre-nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  padding: 8px 12px;
  border-radius: var(--r-sm);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
  display: inline-flex; align-items: center; gap: 6px;
}
.kre-nav-link:hover, .kre-nav-link.active {
  color: var(--text);
  background: var(--bg-soft);
}
.kre-nav-link.red {
  color: var(--kre-red);
}
.kre-nav-link.red:hover { background: var(--accent-wash); color: var(--kre-red-deep); }
.kre-nav-link .icon { width: 16px; height: 16px; }

/* Hamburguesa mobile */
.kre-nav-burger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  align-items: center; justify-content: center;
  color: var(--text);
  background: var(--bg);
}
.kre-nav-burger:hover { background: var(--bg-soft); }

/* Mobile drawer */
.kre-drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(25, 28, 29, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 90;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-med) var(--ease);
}
.kre-drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.kre-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 320px; max-width: 86vw;
  background: var(--bg);
  z-index: 91;
  transform: translateX(100%);
  transition: transform var(--t-med) var(--ease-snap);
  padding: var(--s-5);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-4);
}
.kre-drawer.open { transform: translateX(0); }
.kre-drawer-head { display: flex; align-items: center; margin-bottom: var(--s-6); }
.kre-drawer-head img { height: 28px; }
.kre-drawer-close {
  margin-left: auto;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  color: var(--text-soft);
}
.kre-drawer-close:hover { background: var(--bg-soft); color: var(--text); }
.kre-drawer-link {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
  letter-spacing: -0.015em;
}
.kre-drawer-link.red { color: var(--kre-red); }
.kre-drawer-foot {
  margin-top: auto;
  padding-top: var(--s-5);
  font-size: 13px;
  color: var(--text-muted);
}

/* ── BUTTONS ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 12px 22px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--kre-red);
  color: var(--bg);
  border-color: var(--kre-red);
  box-shadow: var(--shadow-red-soft);
}
.btn-primary:hover {
  background: var(--kre-red-deep);
  border-color: var(--kre-red-deep);
  box-shadow: var(--shadow-red);
}

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--bg-soft);
  border-color: var(--text);
}

.btn-dark {
  background: var(--kre-black);
  color: var(--bg);
  border-color: var(--kre-black);
}
.btn-dark:hover { background: #2E3132; border-color: #2E3132; }

.btn-soft {
  background: var(--bg-soft);
  color: var(--text);
  border-color: var(--border);
}
.btn-soft:hover { background: var(--bg-tint); border-color: var(--border-strong); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  padding: 10px 14px;
}
.btn-ghost:hover { background: var(--bg-soft); }

.btn-outline-red {
  background: transparent;
  color: var(--kre-red);
  border-color: var(--kre-red);
}
.btn-outline-red:hover { background: var(--accent-wash); }

.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-xl { padding: 18px 32px; font-size: 17px; font-weight: 700; border-radius: var(--r-md); }

/* ── PILLS / BADGES ─────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.pill.red {
  background: transparent;
  color: var(--kre-red-deep);
  border-color: rgba(183, 16, 42, 0.30);
  font-weight: 700;
}
.pill.gold {
  background: var(--kre-gold-wash);
  color: var(--kre-gold-deep);
  border-color: rgba(143, 116, 52, 0.22);
}
.pill.dark { background: var(--kre-black); color: var(--bg); border-color: var(--kre-black); }
.pill.outline { background: transparent; }
.pill.success { background: rgba(31, 122, 77, 0.08); color: var(--success); border-color: rgba(31, 122, 77, 0.20); }

/* ── FIELDS / INPUTS ────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.field-input {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  padding: 12px 14px;
  border-radius: var(--r-sm);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field-input:focus-within {
  border-color: var(--kre-red);
  box-shadow: 0 0 0 4px var(--accent-faint);
}
.field-input .pre { color: var(--text-muted); font-size: 14px; font-weight: 600; }
.field-input input,
.field-input select {
  flex: 1; min-width: 0;
  border: 0; outline: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.field-input input::placeholder { color: var(--text-faint); font-weight: 400; }
.field-input .suf { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* ── PROJECT CARD ───────────────────────────────────────────────── */
.proj-card {
  position: relative;
  background: var(--bg);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
  animation: card-in 0.5s var(--ease-out) both;
  text-align: left;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 0;
  font-family: inherit;
  box-sizing: border-box;
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.proj-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.proj-card.active {
  box-shadow: 0 0 0 2px var(--kre-black), 0 24px 56px rgba(0,0,0,0.10);
}
.proj-card.compare-on {
  box-shadow: var(--shadow-card-hover);
}
.proj-card.compare-on::after {
  content: "";
  position: absolute;
  top: 14px; left: 14px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--kre-red);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.6);
  z-index: 4;
}

.proj-card-img {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-tint);
}
.proj-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}
.proj-card:hover .proj-card-img img { transform: scale(1.05); }

.proj-card-badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  background: rgba(25, 28, 29, 0.88);
  color: var(--bg);
  border-radius: var(--r-pill);
  z-index: 2;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.proj-card-badge.dark { background: rgba(25, 28, 29, 0.88); }
.proj-card-badge.gold {
  background: var(--kre-gold-wash);
  color: var(--kre-gold-deep);
  border: 1px solid rgba(143, 116, 52, 0.22);
}
.proj-card-badge.red {
  background: var(--kre-red);
  color: var(--bg);
  box-shadow: var(--shadow-red-soft);
}

/* Acción superior derecha — comparar */
.proj-card-actions {
  position: absolute; top: 12px; right: 12px;
  display: flex; gap: 6px;
  z-index: 3;
}
.proj-card-compare {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(25, 28, 29, 0.12);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  color: var(--text);
  padding: 0;
}
.proj-card-compare:hover {
  border-color: var(--kre-red);
  color: var(--kre-red);
  transform: scale(1.05);
}
.proj-card-compare.active {
  background: var(--kre-red);
  border-color: var(--kre-red);
  color: var(--bg);
  box-shadow: var(--shadow-red);
}
.proj-card-compare .icon { width: 16px; height: 16px; }

.proj-card-photos {
  position: absolute; bottom: 12px; right: 12px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  background: rgba(25, 28, 29, 0.85);
  color: var(--bg);
  border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.proj-card-photos .icon { width: 12px; height: 12px; }

.proj-card-body {
  padding: var(--s-4) var(--s-5) var(--s-5);
  flex: 1;
  display: flex; flex-direction: column;
  gap: var(--s-2);
  min-width: 0;
}
.proj-card-meta {
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  min-width: 0;
  overflow-wrap: anywhere;
}
.proj-card-name {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.proj-card-hook {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.proj-card-foot {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-top: var(--s-3);
  margin-top: auto;
  border-top: 1px solid var(--text-line);
  gap: var(--s-3);
  min-width: 0;
  flex-wrap: wrap;
}
.proj-card-price {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  display: flex; flex-direction: column;
  min-width: 0;
}
.proj-card-price > span:last-child { white-space: nowrap; }
.proj-card-price .cur {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  margin-right: 2px;
  display: inline;
}
.proj-card-price .lbl {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 2px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.proj-card-sub {
  font-size: 12px;
  color: var(--kre-red-deep);
  text-align: right;
  font-weight: 700;
  background: var(--accent-wash);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Placeholder cuando no hay foto */
.proj-card-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, #191C1D 0%, #2E3132 100%);
  color: var(--on-deep);
  padding: var(--s-5);
  text-align: center;
  position: relative;
}
.proj-card-placeholder::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(183,16,42,0.12) 1px, transparent 0);
  background-size: 24px 24px;
}
.proj-card-placeholder .ph-mark {
  font-family: var(--display);
  font-size: 11px;
  color: var(--kre-red-lift);
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
}
.proj-card-placeholder .ph-name {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  max-width: 220px;
  position: relative;
}

/* ── LOADING / SKELETON ─────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-soft) 0%, var(--bg-tint) 50%, var(--bg-soft) 100%);
  background-size: 200% 100%;
  animation: skel 1.4s ease-in-out infinite;
  border-radius: var(--r-md);
}
@keyframes skel {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skel-card {
  border-radius: var(--r-lg);
  background: var(--bg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.skel-card .skel-img { aspect-ratio: 3/2; border-radius: 0; }
.skel-card .skel-body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.skel-card .skel-line { height: 12px; border-radius: 6px; }
.skel-card .skel-line.short { width: 35%; }
.skel-card .skel-line.med   { width: 70%; }
.skel-card .skel-line.tall  { height: 22px; width: 55%; margin-top: 6px; }

/* ── EMPTY / ERROR STATES ──────────────────────────────────────── */
.empty-state, .error-state {
  text-align: center;
  padding: var(--s-9) var(--s-5);
  color: var(--text-soft);
}
.empty-state h2, .error-state h2 { margin-bottom: var(--s-3); color: var(--text); }
.empty-state p, .error-state p { margin-bottom: var(--s-5); max-width: 40ch; margin-left: auto; margin-right: auto; }
.error-state { color: var(--danger); }

/* ── RULES ──────────────────────────────────────────────────────── */
.rule        { height: 1px; background: var(--border); }
.rule-strong { height: 1px; background: var(--text); }
.rule-red    { height: 2px; background: var(--kre-red); width: 32px; border-radius: 2px; }

/* ── SECTIONS DARK ──────────────────────────────────────────────── */
.section-dark {
  background: var(--kre-black);
  color: var(--on-deep);
}
.section-dark .eyebrow { color: var(--on-deep-soft); }
.section-dark .eyebrow::before { background: var(--kre-red-lift); }
.section-dark .h-1, .section-dark .h-2 { color: var(--on-deep); }
.section-dark .lead { color: var(--on-deep-soft); }

/* ── STATS STRIP (negro, contundente) ───────────────────────────── */
.stats-strip {
  background: var(--kre-black);
  color: var(--on-deep);
  padding: var(--s-6) 0;
}
.stats-strip-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--s-5);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
}
.stat-item {
  display: flex; flex-direction: column;
  border-left: 2px solid var(--kre-red);
  padding-left: var(--s-4);
}
.stat-item .stat-num {
  font-family: var(--display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--on-deep);
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}
.stat-item .stat-num .red { color: var(--kre-red-lift); }
.stat-item .stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--on-deep-soft);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.stat-skel {
  display: inline-block;
  width: 1.4em;
  height: 0.85em;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.18) 50%, rgba(255,255,255,0.10) 100%);
  background-size: 200% 100%;
  animation: skel 1.4s ease-in-out infinite;
  vertical-align: -0.06em;
}

/* ── COMPARE BAR (sticky bottom) ───────────────────────────────── */
.compare-bar {
  position: fixed;
  left: 50%;
  bottom: var(--s-4);
  transform: translateX(-50%) translateY(120%);
  z-index: 70;
  background: var(--kre-black);
  color: var(--on-deep);
  border-radius: var(--r-pill);
  padding: 10px 12px 10px 22px;
  display: flex; align-items: center; gap: var(--s-3);
  box-shadow: 0 12px 32px rgba(25,28,29,0.32), 0 0 0 1px rgba(255,255,255,0.06);
  transition: transform var(--t-med) var(--ease-out);
  max-width: calc(100vw - 32px);
}
.compare-bar.show { transform: translateX(-50%) translateY(0); }
.compare-bar-count {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.compare-bar-count .num { color: var(--kre-red-lift); }
.compare-bar-thumbs {
  display: flex;
  margin-left: -4px;
}
.compare-bar-thumb {
  width: 32px; height: 32px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid var(--kre-black);
  margin-left: -8px;
  background-color: var(--bg-deep-2);
}
.compare-bar-thumb.empty { background: rgba(255,255,255,0.10); }
.compare-bar-clear {
  font-size: 12px;
  color: var(--on-deep-soft);
  padding: 8px 12px;
  border-radius: var(--r-pill);
}
.compare-bar-clear:hover { color: var(--on-deep); background: rgba(255,255,255,0.06); }
.compare-bar-cta {
  background: var(--kre-red);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background var(--t-fast) var(--ease);
}
.compare-bar-cta:hover { background: var(--kre-red-lift); }
.compare-bar-cta:disabled,
.compare-bar-cta.disabled {
  background: rgba(255,255,255,0.08);
  color: var(--on-deep-muted);
  cursor: not-allowed;
  pointer-events: none;
}

/* ── BOTTOM SHEET (mobile) ─────────────────────────────────────── */
.sheet-backdrop {
  position: fixed; inset: 0;
  background: rgba(25, 28, 29, 0.50);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-med) var(--ease);
}
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--bg);
  border-top-left-radius: var(--r-xl);
  border-top-right-radius: var(--r-xl);
  z-index: 201;
  transform: translateY(100%);
  transition: transform var(--t-med) var(--ease-snap);
  max-height: 86vh;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-4);
}
.sheet.open { transform: translateY(0); }
.sheet-handle {
  width: 40px; height: 4px;
  background: var(--border-strong);
  border-radius: 2px;
  margin: 10px auto;
}
.sheet-head {
  padding: 0 var(--s-5) var(--s-3);
  display: flex; align-items: center; gap: var(--s-3);
  border-bottom: 1px solid var(--border);
}
.sheet-head h3 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  flex: 1;
}
.sheet-body {
  padding: var(--s-5);
  overflow-y: auto;
  flex: 1;
}
.sheet-foot {
  padding: var(--s-4) var(--s-5);
  border-top: 1px solid var(--border);
  background: var(--bg);
  display: flex; gap: var(--s-3);
}
.sheet-foot .btn { flex: 1; }

/* ── UTILITIES ──────────────────────────────────────────────────── */
.container { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--s-5); }
.hide-mobile { }
.show-mobile { display: none; }
.balance { text-wrap: balance; }
.pretty  { text-wrap: pretty; }

@media (max-width: 900px) {
  .hide-mobile { display: none !important; }
  .show-mobile { display: revert; }
  .kre-nav-burger { display: inline-flex; }
  .kre-header-nav .hide-mobile + .hide-mobile { display: none; }
  .container { padding: 0 var(--s-4); }
  .stats-strip-inner { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
}
@media (max-width: 600px) {
  .kre-logo { height: 26px; }
}

/* ── SIDEBAR NAV (vertical icons, Zillow-style) ──────────────────── */
.side-nav {
  position: fixed;
  left: 0;
  top: var(--header-h);
  bottom: 0;
  width: var(--side-nav-w);
  background: var(--bg);
  border-right: 1px solid var(--border);
  z-index: 45;
  display: flex; flex-direction: column;
  align-items: center;
  padding: var(--s-4) 0;
  gap: 4px;
}
.side-nav-link {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  color: var(--text-soft);
  transition: all var(--t-fast) var(--ease);
  text-decoration: none;
  position: relative;
}
.side-nav-link .icon { width: 20px; height: 20px; }
.side-nav-link .lbl { display: none; }
.side-nav-link:hover {
  color: var(--kre-red);
  background: var(--accent-wash);
}
.side-nav-link.active {
  color: var(--kre-red);
}
.side-nav-link.active::before {
  content: "";
  position: absolute;
  left: -8px; top: 10px; bottom: 10px;
  width: 2px;
  background: var(--kre-red);
  border-radius: 0 2px 2px 0;
}
.side-nav-link .badge {
  position: absolute;
  top: 6px; right: 6px;
  min-width: 16px; height: 16px;
  background: var(--kre-red);
  color: var(--bg);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--bg);
}

/* ── HERO FULL-BLEED (Zillow-style) ───────────────────────────── */
.hero-bleed {
  position: relative;
  width: 100%;
  min-height: clamp(480px, 70vh, 720px);
  overflow: hidden;
  background: var(--kre-graphite);
}
.hero-bleed-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-bleed-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.88);
}
.hero-bleed-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(25,28,29,0.20) 0%,
    rgba(25,28,29,0.06) 30%,
    rgba(25,28,29,0.14) 60%,
    rgba(25,28,29,0.55) 100%);
}
.hero-bleed-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--s-9) var(--s-5) var(--s-8);
  display: flex; flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: inherit;
  color: var(--on-deep);
}
.hero-bleed-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--r-pill);
  color: var(--on-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--s-5);
}
.hero-bleed-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--kre-red-lift);
  box-shadow: 0 0 0 4px rgba(219, 49, 63, 0.30);
}
.hero-bleed-h {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: #fff;
  max-width: 18ch;
  margin: 0 auto var(--s-4);
  text-wrap: balance;
  text-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.hero-bleed-h .red { color: var(--kre-red-lift); }
.hero-bleed-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.45;
  color: rgba(255,255,255,0.86);
  font-weight: 500;
  max-width: 52ch;
  margin: 0 auto var(--s-6);
  text-shadow: 0 2px 12px rgba(0,0,0,0.30);
}
.hero-bleed-search {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.30);
  border: 1.5px solid rgba(255,255,255,0.40);
  transition: box-shadow var(--t-med) var(--ease);
}
.hero-bleed-search:focus-within {
  box-shadow: 0 12px 40px rgba(0,0,0,0.30), 0 0 0 4px rgba(183,16,42,0.30);
}
.hero-bleed-search .pre {
  display: flex; align-items: center;
  padding: 0 4px 0 22px;
  color: var(--text-muted);
}
.hero-bleed-search .pre .icon { width: 22px; height: 22px; }
.hero-bleed-search input {
  flex: 1; min-width: 0;
  border: 0; outline: 0;
  padding: 0 16px;
  font-family: var(--sans);
  font-size: 17px;
  color: var(--text);
  background: transparent;
  font-weight: 500;
  min-height: 60px;
}
.hero-bleed-search input::placeholder { color: var(--text-muted); font-weight: 400; }
.hero-bleed-search button {
  border: 0;
  background: var(--kre-red);
  color: var(--bg);
  padding: 0 28px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
  display: flex; align-items: center; gap: 8px;
  letter-spacing: -0.005em;
  min-width: 124px;
  justify-content: center;
}
.hero-bleed-search button:hover { background: var(--kre-red-deep); }
.hero-bleed-chips {
  display: flex; gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--s-4);
}
.hero-bleed-chips .city-chip {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--on-deep);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-bleed-chips .city-chip:hover:not(.disabled) {
  background: rgba(255,255,255,0.92);
  color: var(--kre-black);
  border-color: rgba(255,255,255,0.92);
}
.hero-bleed-chips .city-chip.disabled { color: rgba(255,255,255,0.40); }

/* ── CAROUSEL HORIZONTAL ──────────────────────────────────────── */
.carousel {
  position: relative;
}
.carousel-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: var(--s-5);
  gap: var(--s-4);
  flex-wrap: wrap;
}
.carousel-h {
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text);
}
.carousel-h-sub {
  font-size: 14px;
  color: var(--text-soft);
  margin-top: 4px;
}
.carousel-nav {
  display: flex; gap: 8px;
}
.carousel-nav button {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border-strong);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.carousel-nav button:hover {
  border-color: var(--kre-red);
  color: var(--kre-red);
}
.carousel-nav button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 320px);
  gap: var(--s-4);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding: var(--s-5);
  scrollbar-width: none;
  padding-bottom: var(--s-2);
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * {
  scroll-snap-align: start;
}

/* ── AUTH (avatar + dropdown) ───────────────────────────────────── */
.auth-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 14px 4px 4px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: var(--bg);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  height: 40px;
}
.auth-trigger:hover { border-color: var(--text); background: var(--bg-soft); }
.auth-trigger .avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--kre-red);
  color: var(--bg);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0.02em;
}
.auth-trigger .name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth-dropdown {
  position: absolute;
  top: calc(var(--header-h) - 6px);
  right: var(--s-5);
  width: 240px;
  background: var(--bg);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-3);
  z-index: 60;
  opacity: 0; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.auth-dropdown.open {
  opacity: 1; pointer-events: auto;
  transform: translateY(0);
}
.auth-dropdown-head {
  padding: var(--s-4);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: var(--s-3);
}
.auth-dropdown-head .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--kre-red);
  color: var(--bg);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.auth-dropdown-head .name {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.auth-dropdown-head .email {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 2px;
}
.auth-dropdown a, .auth-dropdown button {
  display: flex; align-items: center; gap: 10px;
  padding: 12px var(--s-4);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  width: 100%;
  text-align: left;
  border-radius: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
.auth-dropdown a:hover, .auth-dropdown button:hover { background: var(--bg-soft); }
.auth-dropdown a .icon, .auth-dropdown button .icon { width: 16px; height: 16px; color: var(--text-soft); }
.auth-dropdown .danger { color: var(--kre-red); border-top: 1px solid var(--border); }
.auth-dropdown .danger .icon { color: var(--kre-red); }

/* ── AUTH MODAL ─────────────────────────────────────────────────── */
.auth-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(25,28,29,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 300;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-med) var(--ease);
}
.auth-modal-backdrop.open { opacity: 1; pointer-events: auto; }

.auth-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: calc(100% - 32px);
  max-width: 440px;
  background: var(--bg);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-4);
  z-index: 301;
  opacity: 0; pointer-events: none;
  transition: all var(--t-med) var(--ease);
  overflow: hidden;
}
.auth-modal.open {
  opacity: 1; pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.auth-modal-head {
  padding: var(--s-5) var(--s-5) 0;
  position: relative;
}
.auth-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: transparent;
  color: var(--text-soft);
  display: flex; align-items: center; justify-content: center;
}
.auth-modal-close:hover { background: var(--bg-soft); color: var(--text); }
.auth-modal-logo { height: 28px; margin-bottom: var(--s-4); }
.auth-modal-h {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--s-2);
}
.auth-modal-sub {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: var(--s-4);
  line-height: 1.5;
}
.auth-modal-benefits {
  list-style: none;
  margin: 0 0 var(--s-5);
  padding: var(--s-3) 0 0;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column;
  gap: 8px;
}
.auth-modal-benefits li {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  display: flex; align-items: flex-start; gap: 8px;
  line-height: 1.4;
}
.auth-modal-benefits li::before {
  content: "";
  width: 14px; height: 14px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--kre-red);
  flex-shrink: 0;
  position: relative;
  display: block;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ── SOFT TOAST (signup nag) ─────────────────────────────────────── */
.soft-toast {
  position: fixed;
  left: 20px; bottom: 20px;
  background: var(--kre-black);
  color: var(--on-deep);
  border-radius: var(--r-md);
  padding: 14px 16px;
  max-width: 320px;
  z-index: 250;
  box-shadow: 0 10px 32px rgba(25,28,29,0.32), 0 0 0 1px rgba(255,255,255,0.06);
  transform: translateY(120%);
  opacity: 0;
  transition: all var(--t-med) var(--ease-out);
}
.soft-toast.show { transform: translateY(0); opacity: 1; }
.soft-toast-title {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
.soft-toast-sub {
  font-size: 12px;
  color: var(--on-deep-soft);
  line-height: 1.4;
  margin-bottom: 10px;
}
.soft-toast-actions { display: flex; gap: 8px; }
.soft-toast-actions .btn { padding: 7px 12px; font-size: 12px; }
.soft-toast-actions .later {
  background: transparent;
  color: var(--on-deep-soft);
  border: 1px solid rgba(255,255,255,0.18);
}
.soft-toast-actions .later:hover { color: var(--on-deep); }
.auth-modal-social {
  padding: var(--s-3) var(--s-5) 0;
  display: flex; flex-direction: column; align-items: center; gap: var(--s-3);
}
.auth-modal-social .g_id_signin { width: 100%; display: flex; justify-content: center; }
.auth-modal-divider {
  position: relative;
  text-align: center;
  width: 100%;
  margin: var(--s-2) 0 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.auth-modal-divider::before {
  content: "";
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.auth-modal-divider span {
  position: relative;
  background: var(--bg);
  padding: 0 12px;
  z-index: 1;
}
.auth-modal-body { padding: 0 var(--s-5) var(--s-5); }
.auth-modal-body .field { margin-bottom: var(--s-3); }
.auth-modal-body .field-label {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  font-size: 13px;
}
.auth-modal-body .field-input { padding: 14px 14px; }
.auth-modal-body .field-input input { font-size: 15px; }
.auth-modal-body .btn { width: 100%; padding: 14px 22px; }
.auth-modal-err {
  background: var(--accent-wash);
  color: var(--kre-red-deep);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  margin-bottom: var(--s-3);
  display: none;
}
.auth-modal-err.show { display: block; }
.auth-modal-foot {
  padding: var(--s-4) var(--s-5);
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 14px;
  color: var(--text-soft);
}
.auth-modal-foot button {
  color: var(--kre-red);
  font-weight: 700;
  margin-left: 4px;
  padding: 0;
}
.auth-modal-foot button:hover { color: var(--kre-red-deep); }
.auth-modal-legal {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--s-3);
  line-height: 1.4;
}

/* Sidebar responsive */
.has-side-nav { padding-left: var(--side-nav-w); }
@media (max-width: 900px) {
  .side-nav { display: none; }
  .has-side-nav { padding-left: 0; }
}

/* ── MOBILE COMPACT (cards + compare-bar + FAB) ───────────────────── */
@media (max-width: 600px) {
  /* Cards menos altas: aspect-ratio 16:10 en lugar de 3:2 */
  .proj-card-img { aspect-ratio: 16 / 10; }
  .proj-card-body { padding: var(--s-3) var(--s-4) var(--s-4); gap: 6px; }
  .proj-card-name { font-size: 17px; }
  .proj-card-hook { -webkit-line-clamp: 1; font-size: 13px; }
  .proj-card-meta { font-size: 11px; }
  .proj-card-price { font-size: 19px; }
  .proj-card-price .lbl { font-size: 10px; }
  /* Grid 1 columna confirmado */
  .results-grid { grid-template-columns: 1fr; }

  /* Compare-bar compacto y full-width */
  .compare-bar {
    left: 8px; right: 8px;
    bottom: 8px;
    transform: translateY(120%);
    padding: 8px 10px 8px 16px;
    max-width: calc(100vw - 16px);
    border-radius: var(--r-md);
  }
  .compare-bar.show { transform: translateY(0); }
  .compare-bar-count { font-size: 13px; }
  .compare-bar-thumbs { display: none; }
  .compare-bar-clear { display: none; }
  .compare-bar-cta { padding: 8px 14px; font-size: 13px; flex: 1; justify-content: center; }
}

/* Body padding bottom global cuando hay compare-bar visible (mobile) */
@media (max-width: 600px) {
  body.has-compare-bar .grid-wrap,
  body.has-compare-bar { padding-bottom: 120px; }
}

/* ── PRINT ──────────────────────────────────────────────────────── */
@media print {
  .kre-header, .compare-bar, .sheet, .sheet-backdrop, .side-nav, .auth-modal, button, .no-print { display: none !important; }
  body { background: white; color: black; }
}
