/* =============================================================================================
   RemateJudicial.com.mx — el mismo diseño que RemateJudicialCR (frontend/src/styles.css y las hojas de sus
   componentes: landing, feature-header, public-list, map-explorer, property-detail, guide, site-footer).
   Las reglas están copiadas de allá; como aquí todo vive en una sola hoja, las que se repetían entre componentes
   van dentro de la clase de su página (.landing, .list-page, .explorer-container, .property-page, .page-body).
   El tema se aplica con <html data-theme="light|dark"> (lo pone el script del <head> antes de pintar).
   ============================================================================================= */
:root,
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --surface-4: #e2e8f0;
  --card-gradient: linear-gradient(145deg, #ffffff, #f8fafc);
  --input-bg: #ffffff;

  --text: #0f172a;
  --text-2: #334155;
  --text-3: #475569;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --text-faint: #cbd5e1;

  --border: #e2e8f0;
  --border-soft: #f1f5f9;
  --border-strong: #cbd5e1;
  --ink: #0f172a;

  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-text: #2563eb;
  --accent-strong-text: #1e40af;

  --blue-soft: #eff6ff;   --blue-border: #bfdbfe;  --blue-text: #1e40af;
  --red-soft: #fef2f2;    --red-border: #fecaca;   --red-text: #b91c1c;
  --amber-soft: #fffbeb;  --amber-border: #fde68a; --amber-text: #92400e;
  --green-soft: #f0fdf4;  --green-border: #bbf7d0; --green-text: #166534;
  --violet-soft: #f5f3ff; --violet-border: #ddd6fe; --violet-text: #5b21b6;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.12);
  --overlay: rgba(15, 23, 42, 0.55);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1220;
  --surface: #131c2e;
  --surface-2: #172238;
  --surface-3: #1e293b;
  --surface-4: #334155;
  --card-gradient: linear-gradient(145deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.95));
  --input-bg: #0f172a;

  --text: #f1f5f9;
  --text-2: #cbd5e1;
  --text-3: #b6c2d2;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --text-faint: #475569;

  --border: #263247;
  --border-soft: #1e293b;
  --border-strong: #3b4a63;
  --ink: #ffffff;

  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-text: #60a5fa;
  --accent-strong-text: #93c5fd;

  --blue-soft: rgba(59, 130, 246, 0.14);  --blue-border: rgba(96, 165, 250, 0.35);  --blue-text: #93c5fd;
  --red-soft: rgba(239, 68, 68, 0.14);    --red-border: rgba(248, 113, 113, 0.35);  --red-text: #fca5a5;
  --amber-soft: rgba(245, 158, 11, 0.14); --amber-border: rgba(251, 191, 36, 0.35); --amber-text: #fcd34d;
  --green-soft: rgba(34, 197, 94, 0.14);  --green-border: rgba(74, 222, 128, 0.35); --green-text: #86efac;
  --violet-soft: rgba(139, 92, 246, 0.16); --violet-border: rgba(167, 139, 250, 0.35); --violet-text: #c4b5fd;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.55);
  --overlay: rgba(2, 6, 23, 0.7);
}

*, *::before, *::after { box-sizing: border-box; }
/* Los contenedores de CR miden el ancho sin el relleno (Angular no cambia box-sizing): así quedan del mismo ancho */
.nav-container, .landing .hero, .row-section, .features, .cta-banner, .footer-content, .list-page, .map-section,
.content-grid, .page-body, .nf { box-sizing: content-box; }
html, body { margin: 0; padding: 0; font-family: Inter, sans-serif; background-color: var(--bg); color: var(--text); }
a { color: var(--accent-text); }
button, input, select { font-family: inherit; }
.ic { width: 1.15em; height: 1.15em; fill: currentColor; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.mxn { font-size: .6em; font-weight: 700; letter-spacing: 0; opacity: .8; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Transición suave al cambiar de tema (solo colores; se activa después de la primera pintura) */
html.theme-ready body, html.theme-ready body * {
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.15s ease;
}

/* ---- Leaflet (globos y controles) ---- */
html[data-theme="dark"] .leaflet-popup-content-wrapper,
html[data-theme="dark"] .leaflet-popup-tip { background: var(--surface); color: var(--text); box-shadow: var(--shadow-md); }
html[data-theme="dark"] .leaflet-popup-content-wrapper a:not([class*="btn"]) { color: var(--accent-text); }
html[data-theme="dark"] .leaflet-container a.leaflet-popup-close-button { color: var(--text-muted); }
html[data-theme="dark"] .leaflet-bar a,
html[data-theme="dark"] .leaflet-control-layers { background: var(--surface); color: var(--text); border-color: var(--border); }
html[data-theme="dark"] .leaflet-bar a:hover { background: var(--surface-3); }
.leaflet-container { font-family: Inter, sans-serif; }
.custom-leaflet-icon { background: none !important; border: none !important; }
.popup-rj { font-size: .85rem; line-height: 1.45; min-width: 190px; }
.popup-rj strong { display: block; font-size: .9rem; margin-bottom: .15rem; }
.popup-rj .pp-price { font-weight: 800; color: var(--accent-text); }
.popup-rj .btn-more { display: inline-block; margin-top: .5rem; padding: .4rem .8rem; background: #2563eb; color: #fff !important;
  border-radius: 6px; text-decoration: none; font-size: .8rem; font-weight: 600; }
/* Botones del globo: un renglón propio, misma altura, separados; si no caben, el segundo baja completo */
.popup-rj .pp-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .65rem; }
.popup-rj .pp-acciones .btn-more, .popup-rj .pp-acciones .fav-globo { display: inline-flex; align-items: center; justify-content: center;
  box-sizing: border-box; height: 2.15rem; margin: 0; padding: 0 .85rem; border-radius: 8px; font-size: .8rem; font-weight: 700; line-height: 1; white-space: nowrap; }
.popup-rj .pp-acciones .btn-more:hover { background: #1d4ed8; }

/* ---- Logo (brand-logo de CR): mazo + «RemateJudicial» + «MX» con la bandera debajo ---- */
.bl { display: inline-flex; align-items: center; gap: 0.45em; }
.bl-icon { width: 1.6em; height: 1.6em; flex: none; display: block; }
.bl-name { white-space: nowrap; }
.bl-cc { position: relative; color: var(--brand-cc, #3b82f6); }
.bl-cc::after {
  content: ''; position: absolute; left: 0.04em; right: 0.04em; bottom: -0.2em; height: max(4px, 0.22em);
  border-radius: 1px; -webkit-print-color-adjust: exact; print-color-adjust: exact;
  background: linear-gradient(90deg, #006847 0 33.33%, #fff 33.33% 66.66%, #CE1126 66.66%);
}

/* ---- Interruptor de tema (theme-toggle de CR) ---- */
.theme-toggle { display: inline-flex; align-items: center; gap: 0.3rem; background: var(--surface-3); color: var(--text-2);
  border: 1px solid var(--border); border-radius: 999px; padding: 0.35rem 0.7rem; font: 600 0.8rem Inter, system-ui, sans-serif;
  cursor: pointer; white-space: nowrap; }
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle .tt { display: inline-flex; align-items: center; gap: 0.3rem; }
.theme-toggle .ic { width: 1.1rem; height: 1.1rem; }
.theme-toggle.compact { padding: 0.35rem; }
html[data-theme="dark"] .theme-toggle .tt-a-oscuro,
html[data-theme="light"] .theme-toggle .tt-a-claro { display: none; }
@media (max-width: 640px) { .theme-toggle .label { display: none; } .theme-toggle { padding: 0.35rem; } }

/* =============================================================================================
   Barra de las páginas internas (feature-header de CR)
   ============================================================================================= */
.feature-nav {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1100;
  box-shadow: var(--shadow-sm);
}
.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}
.logo-mini {
  --brand-cc: #3b82f6;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  gap: 1rem;
  background: var(--surface-3);
  padding: 0.25rem;
  border-radius: 12px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: color 0.2s, background-color 0.2s;
}
.nav-item svg { opacity: 0.7; flex-shrink: 0; }
.nav-item:hover { color: var(--text); }
.nav-item.active { background-color: var(--surface); color: var(--accent-text); box-shadow: var(--shadow-sm); }
.nav-item.active svg { opacity: 1; }
.nav-spacer { width: 145px; display: flex; justify-content: flex-end; flex-shrink: 0; }
@media (max-width: 1240px) {
  .nav-links { gap: 0.4rem; }
  .nav-item { padding: 0.5rem 0.8rem; }
  .nav-spacer { width: auto; margin-left: 0.5rem; }
}
@media (min-width: 769px) and (max-width: 1080px) {
  .nav-text { display: none; }
  .nav-item svg { width: 20px; height: 20px; }
}
@media (max-width: 768px) {
  .nav-container { padding: 0 1rem; }
  .logo-mini { display: none; }
  .nav-spacer { width: auto; margin-left: 0.4rem; }
  .nav-links { width: 100%; justify-content: center; gap: 0.25rem; }
  .nav-item { flex: 1; justify-content: center; padding: 0.5rem 0.35rem; font-size: 0.78rem; white-space: nowrap; }
  .nav-item svg { display: none; }
}
@media (max-width: 600px) {
  .nav-container { padding: 0 0.6rem; }
  .nav-text { display: none; }
  .nav-item svg { display: inline-block; width: 22px; height: 22px; }
}
@media (max-width: 360px) {
  .nav-links { gap: 0.1rem; }
  .nav-item { padding: 0.5rem 0.2rem; }
}

/* =============================================================================================
   Pie de página (site-footer de CR)
   ============================================================================================= */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 3rem 1.5rem 1.5rem; font-family: Inter, sans-serif; }
.sf-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.sf-logo { --brand-cc: #60a5fa; font-weight: 800; font-size: 1.15rem; color: #fff; margin-bottom: .6rem; }
.sf-brand p { font-size: .85rem; line-height: 1.6; color: #94a3b8; margin: 0; max-width: 34ch; }
.sf-col h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: #64748b; margin: 0 0 .85rem; font-weight: 700; }
.sf-col a { display: block; color: #cbd5e1; text-decoration: none; font-size: .88rem; margin-bottom: .55rem; transition: color .15s; }
.sf-col a:hover { color: #60a5fa; }
.sf-bottom { max-width: 1100px; margin: 2.5rem auto 0; padding-top: 1.25rem; border-top: 1px solid #1e293b; }
.sf-bottom p { font-size: .78rem; line-height: 1.55; color: #64748b; margin: 0 0 .4rem; }
@media (max-width: 820px) { .sf-inner { grid-template-columns: 1fr 1fr; gap: 2rem; } .sf-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .sf-inner { grid-template-columns: 1fr; } }

/* =============================================================================================
   Portada (landing de CR)
   ============================================================================================= */
.landing {
  --primary: var(--accent);
  --primary-dark: var(--accent-hover);
  --secondary: var(--text-muted);
  --text-main: var(--text);
  font-family: Inter, sans-serif;
  color: var(--text-main);
  background-color: var(--bg);
  min-height: 100vh;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 1100;
  border-bottom: 1px solid var(--border);
}
.navbar .logo { --brand-cc: var(--accent); font-weight: 800; font-size: 1.25rem; color: var(--text); text-decoration: none; }
.navbar nav, .nav-right, .nav-tools { display: flex; gap: 1.5rem; align-items: center; }
.menu-btn {
  display: none; align-items: center; justify-content: center; width: 40px; height: 40px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer;
}
.menu-btn .ic { width: 24px; height: 24px; }
.menu-btn .ic-close, .navbar.menu-open .menu-btn .ic-menu { display: none; }
.navbar.menu-open .menu-btn .ic-close { display: inline-block; }
.nav-link { text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: .92rem; transition: color .15s; }
.nav-link:hover { color: var(--accent); }
@media (max-width: 920px) {
  .navbar { padding: .7rem 1rem; }
  .nav-tools { gap: .6rem; }
  .menu-btn { display: inline-flex; }
  .navbar .theme-toggle .label { display: none; }
  .navbar .theme-toggle { padding: .35rem; }
  .navbar nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: .4rem 1rem .8rem; background: var(--surface); border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(15, 23, 42, .12);
  }
  .navbar.menu-open nav { display: flex; }
  .navbar nav .nav-link { padding: .8rem .25rem; font-size: 1rem; border-bottom: 1px solid var(--border-soft); }
  .navbar nav .nav-link:last-child { border-bottom: none; }
}
@media (max-width: 420px) { .navbar { padding: .7rem .75rem; } .navbar .logo { font-size: 1.08rem; } }

.landing .hero {
  display: grid;
  grid-template-columns: minmax(380px, 5fr) 6fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 5% 3.5rem;
  max-width: 1400px;
  margin: 0 auto;
}
.landing .badge {
  display: inline-flex; align-items: center; gap: 8px; background: var(--green-soft); color: var(--green-text);
  border: 1px solid var(--green-border); font-size: .8rem; font-weight: 700; padding: .35rem .9rem; border-radius: 999px;
  margin-bottom: 1.25rem;
}
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: #10b981; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 #10b98180; } 50% { box-shadow: 0 0 0 6px #10b98100; } }
.landing .hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; margin: 0 0 1rem; }
.landing .hero h1 em { font-style: italic; }
.landing .hero p { color: var(--secondary); font-size: 1.02rem; line-height: 1.6; margin: 0 0 1.5rem; max-width: 52ch; }
.hero-search {
  display: flex; background: var(--surface); border: 2px solid var(--border); border-radius: 12px; overflow: hidden;
  max-width: 460px; transition: border-color .15s, box-shadow .15s; margin: 0 0 1.5rem;
}
.hero-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px #2563eb1f; }
.hero-search input {
  flex: 1; border: none; outline: none; padding: .9rem 1.1rem; font-family: inherit; font-size: .95rem;
  color: var(--text-main); background: var(--surface); min-width: 0;
}
.hero-search button {
  border: none; background: var(--primary); color: #fff; padding: 0 1.6rem; font-weight: 700; font-size: .95rem;
  cursor: pointer; transition: background .15s;
}
.hero-search button:hover { background: var(--primary-dark); }
.hero-stats { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.stat {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: .7rem 1.1rem; text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.stat:hover { transform: translateY(-2px); border-color: var(--blue-border); box-shadow: 0 6px 16px #00000012; }
.stat-num { font-size: 1.45rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.stat-label { font-size: .74rem; color: var(--secondary); font-weight: 600; }
.landing .hero-actions { display: flex; gap: .85rem; flex-wrap: wrap; }
.btn-primary-large {
  display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; text-decoration: none;
  padding: .85rem 1.6rem; border-radius: 12px; font-weight: 700; font-size: .98rem; box-shadow: 0 6px 18px #2563eb4d;
  transition: background .15s, transform .15s;
}
.btn-primary-large:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-secondary-large {
  display: inline-flex; align-items: center; background: var(--surface); color: var(--text); text-decoration: none;
  border: 1px solid var(--border); padding: .85rem 1.6rem; border-radius: 12px; font-weight: 700; font-size: .98rem;
  transition: border-color .15s, transform .15s;
}
.btn-secondary-large:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.hero-map-card {
  position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--border);
  box-shadow: 0 20px 50px #0f172a1f; background: var(--surface);
}
#hero-map { height: 480px; width: 100%; z-index: 0; }
.map-overlay-cta {
  position: absolute; bottom: 14px; right: 14px; z-index: 500; background: #0f172a; color: #fff; text-decoration: none;
  padding: .6rem 1.1rem; border-radius: 10px; font-weight: 700; font-size: .85rem; box-shadow: 0 4px 14px #0000004d;
  transition: background .15s;
}
.map-overlay-cta:hover { background: #1e293b; }
.hero-map-btn { display: none; }

.row-section { max-width: 1400px; margin: 0 auto; padding: 1.25rem 5%; }
.row-header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.row-header h2 { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.row-link { color: var(--accent); text-decoration: none; font-weight: 700; font-size: .88rem; white-space: nowrap; }
.row-link:hover { text-decoration: underline; }

/* Tarjetas de remates (portada y «Otros remates cerca» de la ficha) */
.prop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.prop-card {
  display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.1rem 1.2rem;
  text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .15s, border-color .15s; min-width: 0;
}
.prop-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px #0f172a1a; border-color: var(--blue-border); }
.prop-top { display: flex; align-items: center; gap: 8px; margin-bottom: .6rem; }
.date-chip { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.date-chip.urgent { background: var(--amber-soft); color: var(--amber-text); }
.date-chip.new { background: var(--green-soft); color: var(--green-text); }
.prop-date { font-size: .76rem; color: var(--text-muted); }
.prop-price { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: .35rem; color: var(--accent-hover); }
.prop-loc { font-size: .85rem; color: var(--text); margin-bottom: .3rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prop-meta { font-size: .76rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.prov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .85rem; }
.prov-card {
  display: flex; justify-content: space-between; align-items: center; gap: .5rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; padding: .9rem 1.1rem; text-decoration: none;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.prov-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 6px 16px #00000012; }
.prov-name { font-weight: 700; color: var(--text); font-size: .9rem; }
.prov-count { background: var(--blue-soft); color: var(--accent); font-weight: 800; font-size: .85rem; padding: .15rem .65rem; border-radius: 999px; }
.prov-card.vacia .prov-count { background: var(--surface-3); color: var(--text-subtle); }

.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; max-width: 1400px;
  margin: 0 auto; padding: 2.5rem 5%;
}
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.75rem; transition: transform .15s, box-shadow .15s; }
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px #0f172a14; }
.icon-wrapper { font-size: 2rem; margin-bottom: .85rem; }
.feature-card h3 { margin: 0 0 .5rem; font-size: 1.05rem; font-weight: 700; }
.feature-card p { margin: 0; color: var(--text-muted); font-size: .9rem; line-height: 1.55; }
.learn-section { padding-top: 2rem; padding-bottom: 1rem; }
.learn-intro { color: var(--text-muted); font-size: .92rem; line-height: 1.6; max-width: 70ch; margin: -.35rem 0 1.25rem; }
.learn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.learn-card {
  display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.35rem 1.4rem;
  text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.learn-card:hover { transform: translateY(-3px); border-color: var(--blue-border); box-shadow: 0 10px 24px #0f172a14; }
.learn-ico { display: block; font-size: 1.6rem; margin-bottom: .6rem; }
.learn-title { display: block; font-weight: 700; font-size: .98rem; color: var(--text); margin-bottom: .3rem; }
.learn-desc { display: block; font-size: .84rem; line-height: 1.55; color: var(--text-muted); }

/* «Remates judiciales en …»: texto y enlaces por zona, tipo y almoneda (explore-links de CR) */
.xl h2 { font-size: 1.35rem; font-weight: 800; margin: 0 0 .6rem; color: var(--text); }
.xl-intro { margin: 0 0 1.2rem; font-size: .95rem; line-height: 1.65; color: var(--text-2); max-width: 80ch; }
.xl-intro a { color: var(--accent-text); font-weight: 600; }
.xl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.xl-group { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: .9rem 1rem; display: flex; flex-direction: column; gap: .15rem; }
.xl-group h3 { margin: 0 0 .4rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.xl-group a { display: flex; justify-content: space-between; gap: .6rem; padding: .3rem 0; font-size: .9rem; color: var(--text); text-decoration: none; }
.xl-group a:hover { color: var(--accent-text); }
.xl-group a.all { color: var(--accent-text); font-weight: 700; }
.xl-group em { font-style: normal; color: var(--text-muted); font-size: .8rem; }

.cta-banner {
  text-align: center; padding: 3.5rem 5%; margin: 1.5rem auto 3rem; border-radius: 20px; max-width: 1300px;
  background: linear-gradient(135deg, var(--accent-hover), var(--accent)); color: #fff;
}
.cta-banner h2 { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .5rem; }
.cta-banner p { opacity: .9; margin: 0 0 1.5rem; }
.btn-dark { background: var(--surface); color: var(--accent-hover); box-shadow: 0 6px 18px #0003; }
.btn-dark:hover { background: var(--surface-3); }

.landing-footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-content {
  max-width: 1400px; margin: 0 auto; padding: 1.75rem 5%; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: .75rem;
}
.footer-content .logo { --brand-cc: var(--accent); font-weight: 800; font-size: 1.25rem; color: var(--text); text-decoration: none; }
.footer-content p { color: var(--text-muted); font-size: .82rem; margin: 0; line-height: 1.55; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: .82rem; font-weight: 600; }
.footer-links a:hover { color: var(--accent); }

@media (max-width: 960px) {
  .landing .hero { grid-template-columns: 1fr; padding-top: 2rem; gap: 1.75rem; }
  #hero-map { height: 360px; }
}
@media (max-width: 768px) {
  .hero-map-btn {
    display: flex; align-items: center; justify-content: center; gap: .5rem; margin: .2rem 0 1.1rem; padding: .95rem 1.2rem;
    border-radius: 14px; background: var(--accent); color: #fff; font-weight: 800; font-size: 1.05rem; text-decoration: none;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .35);
  }
  .hero-map-btn .ic { width: 1.4rem; height: 1.4rem; }
}
@media (max-width: 560px) {
  .hero-stats .stat { flex: 1; }
  .landing .hero-actions a { flex: 1; justify-content: center; }
  #hero-map { height: 300px; }
  .row-header { flex-wrap: wrap; }
}

/* =============================================================================================
   Lista de remates (public-list de CR)
   ============================================================================================= */
.pg-lista { background: var(--surface-2); }
.list-page { max-width: 1200px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; min-height: 60vh; }
.list-page .crumbs-mini { font-size: .8rem; color: var(--text-muted); margin: 0 0 .5rem; }
.list-page .crumbs-mini a { color: var(--text-muted); text-decoration: none; }
.list-page .crumbs-mini a:hover { color: var(--text); }
.list-header h1 { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; color: var(--text); margin: 0 0 .25rem; }
.list-page .subtitle { color: var(--text-muted); margin: 0 0 1.25rem; font-size: .92rem; line-height: 1.55; }
.filters-bar {
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: .85rem; margin-bottom: .75rem; box-shadow: 0 1px 3px #0000000a;
}
.filters-bar .filter input:not([type=checkbox]), .filters-bar .filter select {
  border: 1px solid var(--border); border-radius: 8px; padding: .55rem .7rem; font-family: inherit; font-size: .85rem;
  color: var(--text); outline: none; background: var(--surface); transition: border-color .15s; min-width: 0; max-width: 240px;
}
.filters-bar .filter input:not([type=checkbox]):focus, .filters-bar .filter select:focus { border-color: #3b82f6; }
.filters-bar .filter.search input { width: 220px; }
.filters-bar .filter.money input { width: 150px; }
.risk-filter {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 38px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); border-radius: 10px; padding: 0 .75rem; font-size: .85rem; font-weight: 600;
  cursor: pointer; white-space: nowrap; user-select: none;
}
.risk-filter input { accent-color: #3b82f6; margin: 0; width: 15px; height: 15px; flex: none; }
.risk-filter:has(input:checked) { border-color: var(--blue-border); background: var(--blue-soft); color: var(--blue-text); }
.list-page .filter-actions { display: flex; gap: .5rem; margin-left: auto; }
.list-page .btn-apply {
  background: #3b82f6; color: #fff; border: none; border-radius: 8px; padding: .55rem 1.1rem; font-weight: 700;
  font-size: .85rem; cursor: pointer; text-decoration: none;
}
.list-page .btn-apply:hover { background: #2563eb; }
.list-page .btn-clear {
  display: inline-flex; align-items: center; background: var(--surface-3); color: var(--text-3); border: none; border-radius: 8px;
  padding: .55rem .9rem; font-weight: 600; font-size: .85rem; cursor: pointer; text-decoration: none;
}
.list-page .btn-clear:hover { background: var(--surface-4); }
.list-page .results-count { color: var(--text-muted); font-size: .85rem; margin: 0 0 .6rem; }
.list-page .table-wrap {
  position: relative;   /* el texto oculto de las columnas (sr-only) no se sale y no ensancha la página en el teléfono */
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow-x: auto; box-shadow: 0 1px 3px #0000000a;
}
.remates-table { width: 100%; border-collapse: collapse; min-width: 860px; }
.remates-table th {
  text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted);
  padding: .8rem .9rem; border-bottom: 2px solid var(--border-soft); white-space: nowrap; font-weight: 700;
}
.remates-table th a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 2px; transition: color .15s; }
.remates-table th a:hover, .remates-table th.active, .remates-table th.active a { color: var(--accent-text); }
.sort-icon { width: 14px; height: 14px; opacity: .55; }
th.active .sort-icon { opacity: 1; }
.remates-table td { padding: .75rem .9rem; border-bottom: 1px solid var(--border-soft); font-size: .86rem; color: var(--text-2); }
.remates-table tbody tr { cursor: pointer; transition: background .12s; }
.remates-table tbody tr:hover { background: color-mix(in srgb, #3b82f6 7%, var(--surface)); }
.remates-table tbody tr:last-child td { border-bottom: none; }
.cell-date { white-space: nowrap; color: var(--text-muted); }
.cell-date small { margin-left: .35rem; font-size: .74rem; color: var(--text-subtle); }
.cell-mono { font-family: ui-monospace, monospace; font-weight: 600; white-space: nowrap; }
.cell-tipo { white-space: nowrap; }
.cell-price { font-weight: 700; color: var(--text); white-space: nowrap; }
.cell-loc { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1200px) { .cell-loc { max-width: 170px; } }
.alm-chip {
  display: inline-flex; align-items: center; margin-left: .35rem; padding: .1rem .45rem; border-radius: 999px; font-size: .7rem;
  font-weight: 700; white-space: nowrap; vertical-align: middle; color: var(--blue-text); background: var(--blue-soft);
  border: 1px solid var(--blue-border);
}
.alm-chip.a2 { color: var(--blue-text); }
.alm-chip.a1 { color: var(--green-text); background: var(--green-soft); border-color: var(--green-border); }
.alm-chip.a3 { color: var(--violet-text); background: var(--violet-soft); border-color: var(--violet-border); }
.btn-ver {
  display: inline-flex; align-items: center; gap: 5px; background: var(--blue-soft); color: var(--accent-text);
  border: 1px solid var(--blue-border); border-radius: 8px; padding: .35rem .8rem; font-weight: 700; font-size: .8rem;
  cursor: pointer; text-decoration: none; transition: all .15s; white-space: nowrap;
}
.btn-ver:hover { background: #2563eb; color: #fff; }
.btn-ver .ic { width: 15px; height: 15px; }
.list-page .no-results { display: flex; flex-direction: column; align-items: center; padding: 4rem 1rem; color: var(--text-muted); text-align: center; }
.list-page .no-results .ic { width: 2.6rem; height: 2.6rem; color: var(--text-faint); margin-bottom: .5rem; }
.list-page .pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.25rem; }
.list-page .pagination a, .list-page .pagination .off {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: .5rem 1rem; font-weight: 600;
  font-size: .85rem; color: var(--text-2); text-decoration: none;
}
.list-page .pagination a:hover { border-color: #3b82f6; color: var(--accent-text); }
.list-page .pagination .off { opacity: .4; }
.list-page .pagination span.info { color: var(--text-muted); font-size: .85rem; }
.list-page .seo-text { margin-top: 2rem; color: var(--text-muted); font-size: .88rem; line-height: 1.65; max-width: 80ch; }
@media (max-width: 700px) {
  .filters-bar { gap: .5rem; }
  .filters-bar .filter, .filters-bar .filter.search input, .filters-bar .filter.money input { width: 100%; }
  .filters-bar .filter select, .filters-bar .filter input:not([type=checkbox]) { width: 100%; max-width: none; flex: 1; }
  .risk-filter { width: 100%; }
  .list-page .filter-actions { width: 100%; margin-left: 0; }
  .list-page .filter-actions > * { flex: 1; justify-content: center; text-align: center; }
  .list-header h1 { font-size: 1.5rem; }
}

/* =============================================================================================
   Mapa explorador (map-explorer de CR)
   ============================================================================================= */
body.pg-mapa { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.explorer-container { display: flex; flex: 1; min-height: 0; overflow: hidden; background-color: var(--surface-2); position: relative; }
.explorer-container .sidebar {
  width: 400px; flex-shrink: 0; display: flex; flex-direction: column; border-right: 1px solid var(--border);
  background: var(--surface); z-index: 10; box-shadow: 4px 0 10px rgba(0, 0, 0, 0.03); min-height: 0;
}
.sheet-handle { display: none; }
.explorer-container .sidebar-header { padding: 1.5rem; border-bottom: 1px solid var(--border-soft); background: var(--surface); margin: 0; }
.explorer-container .header-main { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.explorer-container .header-main h1 { font-size: 1.5rem; font-weight: 700; color: var(--text); margin: 0; }
.btn-filter-toggle {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border: 1px solid var(--border); background: var(--surface);
  border-radius: 8px; font-size: 0.875rem; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all 0.2s;
}
.btn-filter-toggle:hover { background: var(--surface-2); color: var(--text); }
.btn-filter-toggle.active, .filters-open .btn-filter-toggle { background: var(--blue-soft); border-color: #3b82f6; color: var(--accent-text); }
.btn-filter-toggle .ic { width: 18px; height: 18px; }
.btn-filter-toggle.solo-movil { display: none; }
.explorer-container .search-bar { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; }
.explorer-container .search-bar input {
  flex: 1; min-width: 0; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: 10px; font-size: 0.9375rem;
  background: var(--input-bg); color: var(--text); transition: border-color 0.2s;
}
.explorer-container .search-bar input:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
.btn-search {
  display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem; background: #1e293b; color: white;
  border: none; border-radius: 10px; cursor: pointer; transition: background 0.2s;
}
.btn-search:hover { background: #0f172a; }
html[data-theme="dark"] .btn-search { background: #334155; }
.btn-search .ic { width: 20px; height: 20px; }
.filter-panel {
  display: none; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px dashed var(--border); flex-direction: column;
  gap: 1.1rem; animation: fadeIn 0.3s ease-out;
}
.filters-open .filter-panel { display: flex; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.filter-section > label, .filter-group > label {
  display: block; font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.5rem;
  text-transform: uppercase; letter-spacing: 0.025em;
}
.filter-row { display: flex; gap: 1rem; }
.filter-group { flex: 1; min-width: 0; }
.filter-group select, .filter-group input {
  width: 100%; padding: 0.625rem; border: 1px solid var(--border); border-radius: 6px; font-size: 0.875rem;
  background: var(--input-bg); color: var(--text);
}
.checkbox-container {
  display: flex; align-items: center; position: relative; padding-left: 30px; cursor: pointer; font-size: 0.875rem;
  color: var(--text-2); user-select: none; font-weight: 500;
}
.checkbox-container input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.checkmark {
  position: absolute; top: 50%; left: 0; transform: translateY(-50%); height: 18px; width: 18px; background-color: var(--surface);
  border: 2px solid var(--border-strong); border-radius: 4px; transition: all 0.2s;
}
.checkbox-container:hover input ~ .checkmark { border-color: #94a3b8; }
.checkbox-container input:checked ~ .checkmark { background-color: #3b82f6; border-color: #3b82f6; }
.checkmark::after { content: ""; position: absolute; display: none; left: 4px; top: 0; width: 4px; height: 9px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checkbox-container input:checked ~ .checkmark::after { display: block; }
.explorer-container .filter-actions { display: flex; gap: 0.75rem; margin-top: 0.25rem; }
.explorer-container .btn-clear {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem; background: var(--surface-3);
  color: var(--text-3); border: none; border-radius: 8px; font-weight: 600; cursor: pointer; text-decoration: none; font-size: .9rem;
}
.explorer-container .btn-apply {
  flex: 2; padding: 0.75rem; background: #2563eb; color: white; border: none; border-radius: 8px; font-weight: 600;
  cursor: pointer; box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2); font-size: .9rem;
}
.explorer-container .results-count { font-size: 0.8125rem; color: var(--text-subtle); margin: 1rem 0 0 0; font-weight: 500; }
.explorer-container .results-count a { font-weight: 600; }
.properties-list {
  flex: 1; overflow-y: auto; padding: 1rem; background: var(--surface-2); display: flex; flex-direction: column; gap: 1rem; min-height: 0;
}
.property-card {
  background: var(--surface); border-radius: 12px; box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  cursor: pointer; transition: all 0.2s ease; border: 1px solid var(--border); display: flex; flex-direction: column;
  width: 100%; text-decoration: none; color: var(--text); flex-shrink: 0;
}
.property-card:hover { transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1); border-color: #3b82f6; }
.property-card.active { border: 2px solid #3b82f6; background: color-mix(in srgb, #3b82f6 7%, var(--surface)); }
.property-card.hovered {
  border: 2px solid #f59e0b; box-shadow: 0 0 0 1px #f59e0b, 0 10px 15px -3px rgb(0 0 0 / 0.1);
  background: color-mix(in srgb, #f59e0b 8%, var(--surface)); transform: translateY(-2px);
}
.property-info { padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; width: 100%; min-width: 0; }
.card-header-row { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; width: 100%; min-width: 0; }
.case-number { margin: 0; font-size: 1rem; font-weight: 800; color: var(--text); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.explorer-container .badge {
  font-size: 0.65rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 9999px; text-transform: uppercase;
  background: var(--surface-3); color: var(--text-muted); white-space: nowrap; flex-shrink: 0;
}
.explorer-container .badge-exact { background: var(--green-soft); color: var(--green-text); }
.card-price-row { margin-top: -0.25rem; }
.main-price { font-size: 1.35rem; font-weight: 900; color: var(--accent-text); }
.card-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; font-size: 0.85rem; color: var(--text-muted); margin-top: -0.25rem; }
.meta-inline strong { color: var(--text-2); }
.auction-timeline {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.35rem; background: var(--surface-3); padding: 0.5rem;
  border-radius: 8px; width: 100%;
}
.timeline-slot { display: flex; flex-direction: column; gap: 0.15rem; text-align: center; opacity: 0.45; min-width: 0; }
.timeline-slot.has-date { opacity: 1; }
.slot-label { font-size: 0.6rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.slot-date { font-size: 0.725rem; font-weight: 800; color: var(--text); }
.slot-price { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.active-1 .slot-label, .active-1 .slot-date, .active-1 .slot-price { color: #10b981 !important; }
.active-2 .slot-label, .active-2 .slot-date, .active-2 .slot-price { color: var(--accent-text) !important; }
.active-3 .slot-label, .active-3 .slot-date, .active-3 .slot-price { color: #8b5cf6 !important; }
.timeline-slot.active-1, .timeline-slot.active-2, .timeline-slot.active-3 {
  background: var(--surface); padding: 0.25rem; border-radius: 6px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); transform: scale(1.05); z-index: 2;
}
.card-footer {
  margin-top: 0.25rem; padding-top: 0.5rem; border-top: 1px dashed var(--border); display: flex; flex-direction: column;
  gap: 0.4rem; width: 100%; min-width: 0;
}
.footer-item { display: flex; align-items: center; gap: 0.4rem; color: var(--text-3); font-size: 0.8rem; line-height: 1.1; min-width: 0; }
.footer-item .ic { width: 1.1rem; height: 1.1rem; color: var(--text-subtle); }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.explorer-container .no-results { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; color: var(--text-subtle); text-align: center; }
.explorer-container .no-results .ic { width: 3rem; height: 3rem; margin-bottom: 1rem; opacity: 0.3; }
.btn-reset {
  margin-top: 1rem; padding: 0.625rem 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text-3); font-weight: 600; cursor: pointer; text-decoration: none;
}
.list-more { text-align: center; font-size: .82rem; color: var(--text-muted); margin: 0; }
.map-container { flex: 1; position: relative; min-width: 0; }
#mapa-explorar { height: 100%; width: 100%; background: var(--surface-3); }
.map-legend {
  position: absolute; top: 1.5rem; right: 1.5rem; z-index: 900; background: color-mix(in srgb, var(--surface) 85%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 1rem; border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  display: flex; flex-direction: column; gap: 0.6rem; min-width: 160px;
}
.legend-item { display: flex; align-items: center; gap: 0.75rem; }
.legend-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 2px white, 0 0 0 3px rgba(0, 0, 0, 0.05); }
.legend-text { font-size: 0.75rem; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.status-approx { background-color: #ef4444; }
.status-1 { background-color: #10b981; }
.status-2 { background-color: #3b82f6; }
.status-3 { background-color: #8b5cf6; }
.explorer-container .spinner {
  width: 40px; height: 40px; border: 4px solid var(--border-soft); border-top: 4px solid #3b82f6; border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.map-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 800; pointer-events: none; }
.map-loading.listo { display: none; }

@media (max-width: 768px) {
  .explorer-container { flex-direction: column; }
  .map-container { position: absolute; inset: 0; z-index: 1; }
  .map-legend {
    top: 10px; right: 10px; padding: 0.5rem 0.75rem; min-width: unset; background: color-mix(in srgb, var(--surface) 95%, transparent);
    -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); gap: 0.35rem;
  }
  .legend-dot { width: 10px; height: 10px; }
  .legend-text { font-size: 0.65rem; }
  /* La lista pasa a ser una hoja que sube desde abajo (bottom sheet de CR) */
  .explorer-container .sidebar {
    position: absolute; left: 0; right: 0; bottom: 0; width: auto; height: 158px; z-index: 1000; border-right: none;
    border-radius: 20px 20px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15); overflow: hidden;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .explorer-container .sidebar.expanded { height: calc(100% - 12px); }
  .sheet-handle {
    display: flex; flex-direction: column; align-items: center; width: 100%; padding: 10px 16px 6px; cursor: pointer;
    user-select: none; flex-shrink: 0; background: none; border: none; color: inherit; -webkit-tap-highlight-color: transparent;
  }
  .handle-bar { width: 40px; height: 5px; background: var(--border-strong); border-radius: 100px; margin-bottom: 8px; }
  .sheet-handle-info { width: 100%; display: flex; justify-content: space-between; align-items: center; }
  .sheet-title { font-size: 0.85rem; font-weight: 700; color: var(--text); }
  .sheet-chevron { font-size: 0.75rem; color: var(--text-subtle); transition: transform 0.3s; }
  .sidebar.expanded .sheet-chevron { transform: rotate(180deg); }
  .explorer-container .sidebar-header { padding: 0 12px 8px; border-bottom: none; }
  .explorer-container .header-main, .explorer-container .results-count { display: none; }
  .explorer-container .search-bar { margin-bottom: 0; }
  .explorer-container .search-bar input { padding: 0.6rem 0.85rem; font-size: 0.9rem; }
  .btn-filter-toggle.solo-movil { display: flex; padding: 0.5rem 0.7rem; }
  .filter-panel { margin-top: .75rem; padding-top: .75rem; gap: .8rem; max-height: 46vh; overflow-y: auto; }
  .properties-list { padding: 0 12px 12px; gap: 10px; background: var(--surface); }
  .property-info { padding: 0.75rem; gap: 0.5rem; }
  .case-number { font-size: 0.9rem; }
  .main-price { font-size: 1.1rem; }
  .card-meta-row { font-size: 0.8rem; gap: 0.5rem; }
  .property-card .auction-timeline, .property-card .card-footer { display: none; }
}

/* =============================================================================================
   Ficha del remate (property-detail de CR)
   ============================================================================================= */
.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem; padding: 1rem 2rem; background: var(--bg);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); font-size: 0.875rem; min-width: 0;
}
.breadcrumb-link { display: flex; align-items: center; gap: 0.35rem; color: var(--text-muted); text-decoration: none; font-weight: 500; transition: color 0.2s; white-space: nowrap; }
.breadcrumb-link .ic { width: 1.1rem; height: 1.1rem; }
.breadcrumb-link:hover { color: var(--text); }
.breadcrumb-separator { color: var(--text-faint); font-weight: 300; }
.breadcrumb-current { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.breadcrumb-spacer { flex: 1; }
.breadcrumb .logo-bc { --brand-cc: #3b82f6; font-weight: 800; font-size: .95rem; color: var(--text); text-decoration: none; margin-right: .5rem; }
.property-page { background: var(--bg); color: var(--text); padding-bottom: 3rem; }
.hero-section {
  background: linear-gradient(135deg, var(--surface-3) 0%, var(--bg) 50%, color-mix(in srgb, #4f46e5 18%, var(--bg)) 100%);
  padding: 2.5rem 2rem 2rem; border-bottom: 1px solid color-mix(in srgb, var(--ink) 6%, transparent);
}
.hero-content { max-width: 1100px; margin: 0 auto; min-width: 0; }
.hero-badges { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.property-page .badge {
  display: inline-flex; align-items: center; padding: 0.3rem 0.75rem; border-radius: 9999px; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-active { background: rgba(16, 185, 129, 0.15); color: var(--green-text); border: 1px solid rgba(16, 185, 129, 0.25); }
.badge-inactive { background: var(--amber-soft); color: var(--amber-text); border: 1px solid var(--amber-border); }
.badge-tipo { background: var(--surface-3); color: var(--text-2); border: 1px solid var(--border); }
.hero-title { font-size: 2rem; font-weight: 900; color: var(--text); margin: 0 0 0.75rem 0; line-height: 1.2; letter-spacing: -0.02em; }
.hero-subtitle { display: flex; align-items: center; gap: 0.4rem; font-size: 1.0625rem; color: var(--text-muted); margin-bottom: 1.5rem; font-weight: 500; }
.hero-subtitle .ic { width: 1.25rem; height: 1.25rem; color: #ef4444; }
.hero-ids { display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; margin: -0.75rem 0 1.25rem; font-size: 0.85rem; color: var(--text-muted); }
.hero-ids span + span::before { content: '·'; margin-right: 0.9rem; color: var(--text-subtle); }
.next-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem;
  background: var(--blue-soft); border: 1px solid var(--blue-border); color: var(--blue-text);
  border-radius: 14px; padding: 0.85rem 1.1rem; margin-bottom: 1rem;
}
.next-info, .next-price { display: flex; flex-direction: column; gap: 0.2rem; }
.next-price { align-items: flex-end; text-align: right; }
.next-amount { font-size: 2.1rem; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; color: var(--text); }
.next-box.passed { background: color-mix(in srgb, var(--ink) 4%, transparent); border-color: var(--border); color: var(--text-2); }
.next-label { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.next-when { font-size: 1.1rem; font-weight: 800; color: var(--text); }
.next-money { font-size: 0.85rem; font-weight: 600; color: var(--text-2); }
.hero-indicators { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.ind {
  display: block; background: color-mix(in srgb, var(--surface) 85%, transparent); border: 1px solid var(--border); border-radius: 14px;
  padding: 0.85rem 1rem; text-decoration: none; color: inherit; transition: border-color 0.15s;
}
a.ind:hover { border-color: var(--border-strong); }
.ind-label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); }
.ind-value { font-size: 1.35rem; font-weight: 800; color: var(--text); margin-top: 0.15rem; letter-spacing: -0.01em; }
.ind-sub { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.15rem; }
.property-page .hero-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hact {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 0.95rem; border-radius: 10px; background: var(--surface);
  border: 1px solid var(--border); color: var(--text-2); font-weight: 600; font-size: 0.875rem; text-decoration: none; cursor: pointer;
  font-family: inherit; transition: border-color 0.15s, color 0.15s;
}
.hact:hover { border-color: var(--border-strong); color: var(--text); }
.hact .ic { width: 1.1rem; height: 1.1rem; color: var(--accent-text); }
.ended {
  display: flex; gap: 1rem; align-items: flex-start; margin: 0 0 1.25rem; padding: 1.25rem 1.35rem; border-radius: 16px;
  background: var(--amber-soft); border: 2px solid var(--amber-border); color: var(--amber-text);
}
.ended-icon { font-size: 2rem; line-height: 1; flex-shrink: 0; }
.ended h2 { margin: 0 0 .35rem; font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em; color: inherit; }
.ended .when { margin: 0 0 .35rem; font-size: 1rem; font-weight: 700; color: inherit; }
.ended .note { margin: 0 0 .9rem; font-size: .9rem; line-height: 1.55; color: var(--text-2); }
.ended .actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.ended .btn { display: inline-flex; align-items: center; border-radius: 10px; padding: .6rem 1rem; font-weight: 700; font-size: .9rem; text-decoration: none; }
.ended .btn.primary { background: var(--accent); color: #fff; }
.ended .btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.map-section { max-width: 1100px; margin: 0 auto; padding: 1.5rem 2rem 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.section-header h2 { display: flex; align-items: center; gap: 0.5rem; font-size: 1.25rem; font-weight: 700; color: var(--text); margin: 0; }
.section-header h2 .ic { width: 1.5rem; height: 1.5rem; color: var(--accent-text); }
.map-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.btn-map-action {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1.05rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; color: var(--text); text-decoration: none; cursor: pointer; font-weight: 700; font-size: 0.82rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); transition: transform 0.15s, box-shadow 0.15s;
}
.btn-map-action:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); }
.btn-map-action .ic { width: 1.1rem; height: 1.1rem; }
.btn-map-action .gm { color: #ea4335; }
.btn-map-action .wz { color: #33ccff; }
.detail-map {
  width: 100%; height: 380px; border-radius: 16px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); background: var(--surface-3);
}
.map-note { margin: .6rem 0 0; font-size: .8rem; color: var(--text-muted); }
.content-grid { max-width: 1100px; margin: 1rem auto 0; padding: 0 2rem; display: flex; flex-direction: column; gap: 1rem; }
.group-title {
  display: flex; align-items: center; gap: .75rem; margin: .5rem 0 0; font-size: .78rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted);
}
.group-title::after { content: ''; flex: 1; height: 1px; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.detail-card {
  background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 80%, transparent), color-mix(in srgb, var(--surface) 90%, transparent));
  border: 1px solid color-mix(in srgb, var(--ink) 6%, transparent); border-radius: 16px; padding: 1.25rem 1.5rem;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: border-color 0.2s; min-width: 0;
}
.detail-card:hover { border-color: color-mix(in srgb, var(--ink) 12%, transparent); }
.card-title {
  display: flex; align-items: center; gap: 0.5rem; font-size: 1.125rem; font-weight: 700; color: var(--text); margin: 0 0 1rem 0;
  padding-bottom: 0.6rem; border-bottom: 1px solid color-mix(in srgb, var(--ink) 6%, transparent);
}
.card-title .ic { width: 1.35rem; height: 1.35rem; color: var(--accent-text); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; }
.info-row { display: flex; flex-direction: column; gap: 0.5rem; padding-bottom: 0.5rem; min-width: 0; }
.info-row.full-width { grid-column: 1 / -1; }
.info-label { font-size: 0.6875rem; font-weight: 600; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.05em; }
.info-value { font-size: 0.9375rem; color: var(--text); font-weight: 500; line-height: 1.5; word-break: break-word; }
.info-value.highlight { color: var(--accent-text); font-weight: 700; }
.summary-text { font-size: 1rem; color: var(--text-2); line-height: 1.7; margin: 0; }
.desc-text { font-size: .95rem; color: var(--text-2); line-height: 1.7; margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid color-mix(in srgb, var(--ink) 6%, transparent); }
.auction-schedule-highlight { border: 1px solid rgba(59, 130, 246, 0.2); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15); }
.auction-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.auction-item {
  background: color-mix(in srgb, var(--ink) 2%, transparent); border: 1px solid color-mix(in srgb, var(--ink) 5%, transparent);
  border-radius: 16px; padding: 1.5rem; display: flex; flex-direction: column; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative; overflow: hidden; min-width: 0;
}
.auction-item:hover { border-color: rgba(59, 130, 246, 0.3); background: color-mix(in srgb, var(--ink) 4%, transparent); transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2); }
.auction-item.first { background: rgba(59, 130, 246, 0.04); border-color: rgba(59, 130, 246, 0.2); }
.auction-item.is-next { border-color: var(--blue-border); box-shadow: 0 0 0 2px color-mix(in srgb, #3b82f6 25%, transparent); }
.auction-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.auction-badge {
  font-size: 0.7rem; font-weight: 800; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.08em;
  background: color-mix(in srgb, var(--ink) 5%, transparent); padding: 0.25rem 0.6rem; border-radius: 6px;
}
.auction-item.first .auction-badge { color: var(--accent-text); background: rgba(59, 130, 246, 0.1); }
.next-tag {
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue-text); background: var(--blue-soft);
  border: 1px solid var(--blue-border); padding: 0.15rem 0.5rem; border-radius: 999px; margin-right: auto; margin-left: 0.5rem;
}
.next-tag.past { color: var(--amber-text); background: var(--amber-soft); border-color: var(--amber-border); }
.btn-calendar {
  background: color-mix(in srgb, var(--ink) 5%, transparent); border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  color: var(--text-muted); width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
}
.btn-calendar:hover { background: #3b82f6; color: white; border-color: #3b82f6; }
.btn-calendar .ic { width: 1.2rem; height: 1.2rem; }
.auction-date-container, .auction-price-container { display: flex; flex-direction: column; gap: 0.2rem; margin-bottom: 1.25rem; }
.auction-date-main { display: flex; align-items: center; gap: 0.6rem; font-size: 1.125rem; font-weight: 700; color: var(--text); }
.auction-date-main .ic { width: 1.15rem; height: 1.15rem; color: var(--accent-text); }
.auction-date-sub, .auction-price-sub { font-size: 0.75rem; color: var(--text-subtle); font-style: italic; padding-left: 1.75rem; line-height: 1.4; }
.auction-time { display: flex; align-items: center; gap: 0.4rem; font-size: 0.875rem; color: var(--text-muted); margin-top: 0.4rem; padding-left: 1.75rem; font-weight: 500; }
.auction-time .ic { width: 0.95rem; height: 0.95rem; color: var(--text-faint); }
.auction-price-main { font-size: 1.35rem; font-weight: 900; color: var(--accent-text); padding-left: 1.75rem; letter-spacing: -0.01em; }
.auction-pct {
  font-size: 0.75rem; color: var(--text-faint); font-weight: 600; margin-top: auto; padding-top: 0.5rem;
  border-top: 1px solid color-mix(in srgb, var(--ink) 4%, transparent); text-align: right;
}
.money-rows { display: flex; flex-direction: column; gap: .6rem; }
.money-row {
  display: grid; grid-template-columns: .8fr 1fr 1fr 1fr; gap: 1rem; align-items: center; padding: .8rem 1rem; border-radius: 12px;
  border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 70%, transparent);
}
.money-row .mr-tag { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-text); }
.money-row .mr-label { display: block; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-subtle); }
.money-row .mr-value { display: block; font-size: 1.05rem; font-weight: 800; color: var(--text); }
.money-note { margin: .25rem 0 0; font-size: .85rem; color: var(--text-muted); line-height: 1.55; }
.callout { border-radius: 14px; padding: 1.1rem 1.35rem; font-size: .92rem; line-height: 1.65; display: flex; gap: .85rem; align-items: flex-start; margin: 1.25rem 0; }
.callout .ico { font-size: 1.15rem; line-height: 1.4; flex-shrink: 0; }
.callout p { margin: 0; font-size: .92rem; line-height: 1.65; color: inherit; }
.callout p + p { margin-top: .6rem; }
.callout a { color: inherit; font-weight: 700; }
.callout.info { background: var(--blue-soft); border: 1px solid var(--blue-border); color: var(--blue-text); }
.callout.warn { background: var(--amber-soft); border: 1px solid var(--amber-border); color: var(--amber-text); }
.callout.danger { background: var(--red-soft); border: 1px solid var(--red-border); color: var(--red-text); }
.callout.success { background: var(--green-soft); border: 1px solid var(--green-border); color: var(--green-text); }
.content-grid .callout { margin: 0; }
.content-grid .prop-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
@media (max-width: 768px) {
  .breadcrumb { padding: 0.75rem 1.25rem; font-size: 0.8125rem; }
  .breadcrumb .logo-bc .bl-name { display: none; }
  .hero-section { padding: 1.75rem 1rem; }
  .hero-title { font-size: 1.5rem; }
  .content-grid { margin-top: 0.75rem; padding: 0 1rem; gap: 0.75rem; }
  .detail-card { padding: 1rem; }
  .info-grid { grid-template-columns: 1fr; gap: 1rem; }
  .auction-cards { grid-template-columns: 1fr; }
  .detail-map { height: 280px; }
  .map-section { padding: 1rem 1rem 0; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .next-when { font-size: 1rem; }
  .next-price { align-items: flex-start; text-align: left; width: 100%; padding-top: 0.6rem; border-top: 1px solid var(--blue-border); }
  .next-amount { font-size: 1.9rem; }
  .ind-value { font-size: 1.15rem; }
  .money-row { grid-template-columns: 1fr 1fr; }
  .money-row .mr-tag { grid-column: 1 / -1; }
  .ended { flex-direction: column; gap: .5rem; }
  .ended h2 { font-size: 1.25rem; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 1.25rem; }
  .breadcrumb .theme-toggle .label { display: none; }
}

/* =============================================================================================
   Páginas de texto: guía, remates bancarios, acerca (guide de CR)
   ============================================================================================= */
.page-hero { background: linear-gradient(135deg, #0f172a, #1e3a8a); color: #fff; padding: 3rem 1.5rem 3.5rem; }
.page-hero-inner { max-width: 900px; margin: 0 auto; }
.crumbs { font-size: .8rem; color: #93c5fd; margin-bottom: 1rem; display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.crumbs a { color: #93c5fd; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { color: #94a3b8; }
.page-hero h1 { font-size: 2.35rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin: 0 0 .9rem; }
.page-hero h1 em { font-style: normal; color: #60a5fa; }
.page-hero .lead { font-size: 1.05rem; line-height: 1.65; color: #cbd5e1; margin: 0; max-width: 62ch; }
.hero-chips { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-chip {
  background: #ffffff1a; border: 1px solid rgba(255, 255, 255, .18); color: #e2e8f0; border-radius: 999px; padding: .4rem .9rem;
  font-size: .82rem; font-weight: 600; text-decoration: none; transition: background .15s;
}
.hero-chip:hover { background: #fff3; color: #fff; }
.pg-texto { background: var(--surface-2); }
.page-body { max-width: 900px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; color: var(--text); }
.page-body section.block { margin-bottom: 3.25rem; scroll-margin-top: 5rem; }
.page-body .block > h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: var(--text); margin: 0 0 .5rem; display: flex; align-items: center; gap: .6rem; }
.page-body .block > h2 .h2-emoji { font-size: 1.35rem; }
.page-body .block > .sub { font-size: .95rem; color: var(--text-muted); line-height: 1.6; margin: 0 0 1.5rem; max-width: 68ch; }
.page-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin: 0 0 .4rem; }
.page-body p, .page-body li { font-size: .95rem; line-height: 1.7; color: var(--text-2); }
.page-body .card p:last-child { margin-bottom: 0; }
.page-body .card p:first-child { margin-top: 0; }
.page-body a { color: var(--accent-text); font-weight: 600; }
.page-body .card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.35rem 1.5rem; box-shadow: 0 1px 3px #0f172a0a; }
.page-body .card ul { margin: .25rem 0 0; padding-left: 1.2rem; }
.page-body .card li + li { margin-top: .4rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.num-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: .9rem; }
.num-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.2rem 1.15rem; box-shadow: 0 1px 3px #0f172a0a; }
.num-card .num { font-size: 2.1rem; font-weight: 900; letter-spacing: -.04em; color: var(--accent-text); line-height: 1; }
.num-card .num-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); margin: .45rem 0 .6rem; }
.page-body .num-card p { font-size: .83rem; line-height: 1.55; color: var(--text-muted); margin: 0; }
.num-card.highlight { border-color: var(--blue-border); background: var(--blue-soft); }
.num-card.alarm { border-color: var(--red-border); background: var(--red-soft); }
.num-card.alarm .num { color: var(--red-text); }
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(var(--blue-border), var(--surface-4)); }
.tl-step { display: flex; gap: 1.25rem; margin-bottom: 1.5rem; position: relative; }
.tl-marker { flex-shrink: 0; width: 56px; display: flex; flex-direction: column; align-items: center; gap: .35rem; z-index: 1; }
.tl-emoji {
  width: 56px; height: 56px; border-radius: 50%; background: var(--surface); border: 2px solid var(--blue-border); display: flex;
  align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: 0 2px 8px #2563eb1a;
}
.tl-num { font-size: .68rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.tl-content { flex: 1; min-width: 0; }
.tl-head { margin-bottom: .75rem; }
.tl-head h3 { font-size: 1.08rem; line-height: 1.35; margin-bottom: .45rem; }
.tl-tags { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.tl-when { font-size: .73rem; font-weight: 700; color: var(--accent-text); background: var(--blue-soft); border-radius: 6px; padding: .15rem .5rem; text-transform: uppercase; letter-spacing: .03em; }
.tl-content p { margin: 0 0 .7rem; }
.tl-content p:last-child { margin-bottom: 0; }
.tl-content .callout { margin: 1rem 0 0; }
.cta-box { background: linear-gradient(135deg, #1e3a8a, #2563eb); color: #fff; border-radius: 20px; padding: 2.25rem 2rem; text-align: center; }
.page-body .cta-box h2 { color: #fff; font-size: 1.4rem; font-weight: 800; margin: 0 0 .6rem; justify-content: center; }
.page-body .cta-box p { color: #dbeafe; margin: 0 auto 1.5rem; max-width: 52ch; }
.cta-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.btn-white, .btn-ghost {
  border-radius: 12px; padding: .8rem 1.6rem; font-weight: 700; font-size: .92rem; text-decoration: none;
  transition: transform .15s, box-shadow .15s; display: inline-block;
}
.page-body .btn-white { background: var(--surface); color: var(--blue-text); }
.page-body .btn-ghost { background: #ffffff1f; color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.btn-white:hover, .btn-ghost:hover { transform: translateY(-2px); box-shadow: 0 8px 20px #0000002e; }
.disclaimer {
  margin-top: 3rem; padding: 1.25rem 1.4rem; background: var(--surface-3); border: 1px solid var(--border); border-radius: 14px;
  font-size: .82rem; line-height: 1.65; color: var(--text-muted);
}
.page-body .disclaimer p { font-size: .82rem; color: var(--text-muted); margin: 0; }
.disclaimer strong { color: var(--text-3); }
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .85rem; margin-top: 2.5rem; }
.page-body .related a { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.15rem; text-decoration: none; transition: border-color .15s, transform .15s; }
.page-body .related a:hover { border-color: var(--blue-border); transform: translateY(-2px); }
.related .r-title { display: block; font-weight: 700; color: var(--text); font-size: .92rem; margin-bottom: .2rem; }
.related .r-desc { display: block; font-size: .8rem; color: var(--text-muted); line-height: 1.5; font-weight: 400; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.compare-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.35rem 1.5rem; }
.compare-card.ok { border-top: 4px solid #22c55e; }
.compare-card.no { border-top: 4px solid #ef4444; }
.compare-card .lc-head { font-weight: 800; font-size: .95rem; color: var(--text); margin-bottom: .9rem; display: flex; align-items: center; gap: .45rem; }
.compare-card ul { margin: 0; padding-left: 1.15rem; }
.page-body .compare-card li { font-size: .88rem; line-height: 1.6; margin-bottom: .55rem; }
@media (max-width: 640px) {
  .page-hero { padding: 2.25rem 1.25rem 2.5rem; }
  .page-hero h1 { font-size: 1.75rem; }
  .page-hero .lead { font-size: .95rem; }
  .page-body { padding: 2rem 1.25rem 3rem; }
  .page-body .block > h2 { font-size: 1.25rem; }
  .compare-grid { grid-template-columns: 1fr; }
  .tl-step { gap: .85rem; }
  .tl-marker, .tl-emoji { width: 46px; }
  .tl-emoji { height: 46px; font-size: 1.25rem; }
  .timeline::before { left: 22px; }
}

/* =============================================================================================
   Página no encontrada (not-found de CR)
   ============================================================================================= */
.nf { max-width: 640px; margin: 0 auto; padding: 4.5rem 1.5rem 5rem; text-align: center; }
.nf-code { font-size: 4.5rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin: 0 0 1rem; color: var(--accent-text); }
.nf h1 { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 .9rem; color: var(--text); }
.nf-lead { font-size: 1.05rem; line-height: 1.65; color: var(--text-muted); margin: 0 auto 2rem; max-width: 52ch; }
.nf-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.nf-btn {
  display: inline-block; padding: .7rem 1.2rem; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text-2); font-weight: 600; text-decoration: none; transition: background-color .2s, border-color .2s;
}
.nf-btn:hover { background: var(--surface-3); }
.nf-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.nf-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
@media (max-width: 480px) { .nf { padding: 3rem 1rem 4rem; } .nf-code { font-size: 3.5rem; } .nf h1 { font-size: 1.5rem; } .nf-btn { flex: 1 1 100%; } }

@media print { .feature-nav, .navbar, .site-footer, .breadcrumb .theme-toggle, .hero-actions, .map-actions { display: none !important; } }

/* Historial de almonedas: la de esta ficha resaltada */
.money-row.hist-actual{outline:2px solid var(--accent);outline-offset:-2px;border-radius:10px}

/* Páginas por lugar y categoría (colecciones) */
.coleccion .col-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:16px 0}
.coleccion .col-stat{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:12px 14px;display:flex;flex-direction:column}
.coleccion .col-stat .n{font-size:1.35rem;font-weight:800;color:var(--accent-text)}
.coleccion .col-stat .l{font-size:.82rem;color:var(--text-muted)}
.coleccion .col-map{height:360px;border-radius:14px;border:1px solid var(--border);margin:8px 0 18px;overflow:hidden}
.coleccion .subtitle strong{color:var(--text,inherit)}
@media (max-width:640px){.coleccion .col-map{height:280px}}

/* ---------- Ficha: frente al mercado (propiedades en venta cerca) */
.mk-veredicto { border: 1px solid var(--border); border-radius: 12px; padding: .85rem 1rem; margin-bottom: 1rem; line-height: 1.5; color: var(--text); }
.mk-veredicto.mk-barato { background: var(--green-soft); border-color: var(--green-border); }
.mk-veredicto.mk-barato strong { color: var(--green-text); }
.mk-veredicto.mk-caro { background: var(--red-soft); border-color: var(--red-border); }
.mk-veredicto.mk-caro strong { color: var(--red-text); }
.mk-veredicto.mk-parecido { background: var(--amber-soft); border-color: var(--amber-border); }
.mk-veredicto.mk-parecido strong { color: var(--amber-text); }
.mk-postura { display: block; margin-top: .35rem; font-size: .9rem; color: var(--text-muted); }
.mk-map { height: 300px; margin-top: 1rem; }
.mk-leyenda { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .8rem; color: var(--text-muted); margin: .5rem 0 0; }
.mk-leyenda span { display: inline-flex; align-items: center; gap: .35rem; }
.mk-pt { width: 10px; height: 10px; border-radius: 50%; display: inline-block; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(15, 23, 42, .25); }
.mk-pt.mk-caro, .mk-dot-caro { background: #16a34a; }
.mk-pt.mk-parecido, .mk-dot-parecido { background: #d97706; }
.mk-pt.mk-barato, .mk-dot-barato { background: #dc2626; }
.mk-lista { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.mk-lista li { display: grid; grid-template-columns: 1fr auto; gap: .1rem .75rem; padding: .55rem .75rem; border: 1px solid var(--border-soft); border-radius: 10px; background: var(--surface); }
.mk-l-tipo { font-weight: 700; color: var(--text); font-size: .9rem; min-width: 0; overflow-wrap: anywhere; }
.mk-l-datos { grid-column: 1; font-size: .8rem; color: var(--text-muted); }
.mk-l-precio { grid-column: 2; grid-row: 1 / span 2; text-align: right; font-weight: 800; color: var(--text); align-self: center; white-space: nowrap; }
.mk-l-precio small { display: block; font-weight: 600; font-size: .75rem; color: var(--text-muted); }

/* ---------- Ficha: otros remates cerca (como «Propiedades cercanas» de Costa Rica) */
.cc-sub, .cc-frase { color: var(--text-muted); font-size: .92rem; line-height: 1.55; margin: 0 0 .9rem; }
.cc-frase strong, .cc-sub strong { color: var(--text); }
.cc-regla { width: 100%; height: auto; display: block; margin: .25rem 0 .25rem; overflow: visible; }
.cc-regla .r-banda { fill: var(--blue-soft); stroke: var(--blue-border); }
.cc-regla .r-eje { stroke: var(--border-strong); stroke-width: 1; }
.cc-regla .r-punto { fill: var(--text-subtle); opacity: .85; }
.cc-regla .r-mediana { stroke: var(--accent); stroke-width: 2.5; }
.cc-regla .r-este { fill: #dc2626; stroke: var(--surface); stroke-width: 2.5; }
.cc-regla .r-texto { font: 700 13px system-ui, sans-serif; fill: var(--text); }
.cc-regla .r-marca { font: 600 11px system-ui, sans-serif; fill: var(--text-subtle); }
.mk-pt.cc-pt-punto { background: var(--text-subtle); }
.mk-pt.cc-pt-este { background: #dc2626; }
.cc-banda { display: inline-block; width: 18px; height: 10px; border-radius: 3px; background: var(--blue-soft); border: 1px solid var(--blue-border); }
.cc-med { display: inline-block; width: 3px; height: 12px; background: var(--accent); }
.cc-aviso { margin: .75rem 0 0; padding: .7rem .85rem; border-radius: 10px; background: var(--amber-soft); border: 1px solid var(--amber-border); color: var(--amber-text); font-size: .88rem; line-height: 1.5; }
.cc-orden { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 1rem 0 .5rem; font-size: .82rem; color: var(--text-muted); }
.cc-orden button { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: .25rem .7rem; font: inherit; cursor: pointer; }
.cc-orden button.activo { background: var(--accent); border-color: var(--accent); color: #fff; }
.cc-tabla-wrap { overflow-x: auto; margin-top: .75rem; border: 1px solid var(--border-soft); border-radius: 10px; }
.cc-tabla { width: 100%; border-collapse: collapse; font-size: .84rem; min-width: 720px; }
.cc-tabla th { text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-subtle); font-weight: 700; padding: .55rem .6rem; border-bottom: 1px solid var(--border); background: var(--surface); }
.cc-tabla td { padding: .5rem .6rem; border-bottom: 1px solid var(--border-soft); color: var(--text); vertical-align: top; }
.cc-tabla tr:last-child td { border-bottom: 0; }
.cc-tabla .num { text-align: right; white-space: nowrap; }
.cc-tabla .mono { white-space: nowrap; color: var(--text-muted); }
.cc-tabla a { font-weight: 700; color: var(--accent-text); white-space: nowrap; text-decoration: none; }
.cc-tabla td.cc-barato { color: var(--red-text); font-weight: 700; }
.cc-tabla td.cc-caro { color: var(--green-text); font-weight: 700; }
.cc-tabla tr.cc-oculta { display: none; }
.cc-pill { display: inline-block; font-size: .7rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; white-space: nowrap; }
.cc-pill.cc-proximo { background: var(--green-soft); color: var(--green-text); }
.cc-pill.cc-pasado { background: var(--border-soft); color: var(--text-muted); }
.cc-mas { margin-top: .75rem; border: 1px solid var(--border); background: var(--surface); color: var(--accent-text); border-radius: 10px; padding: .5rem .9rem; font: 600 .85rem system-ui, sans-serif; cursor: pointer; }

/* Indicadores de arriba: frente a otros remates y frente al mercado (verde = más barato) */
.ind-value.lvl-barato { color: var(--green-text); }
.ind-value.lvl-caro { color: var(--red-text); }
.ind-value.lvl-parecido { color: var(--amber-text); }

/* Enlace al dashboard en la ficha (solo lo ve el administrador con la sesión abierta) */
.admin-link { margin: 0 0 .75rem; }
.admin-link a { display: inline-block; padding: .4rem .8rem; border-radius: 9px; background: var(--violet-soft); border: 1px solid var(--violet-border); color: var(--violet-text); font-weight: 700; font-size: .85rem; text-decoration: none; }

/* ---------- Cuenta: «Ingresar / Mi cuenta», corazones de favoritos y el aviso flotante */
.nav-cuenta { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .75rem; margin-right: .5rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font-weight: 700; font-size: .85rem; text-decoration: none; white-space: nowrap; }
.nav-cuenta:hover { border-color: var(--accent); color: var(--accent-text); }
.nav-cuenta.con-sesion { background: var(--blue-soft); border-color: var(--blue-border); color: var(--accent-text); }
.nav-cuenta .ic { width: 1rem; height: 1rem; }
.nav-spacer { width: auto; min-width: 145px; }
.navbar .nav-cuenta { margin-right: .25rem; }
@media (max-width: 640px) { .nav-cuenta span { display: none; } .nav-cuenta { padding: .4rem; margin-right: .35rem; } .nav-spacer { min-width: 0; } }

.fav-btn { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; font: inherit; }
.fav-btn .ic { width: 1.15rem; height: 1.15rem; }
.fav-btn .fav-si, .fav-btn.activo .fav-no { display: none; }
.fav-btn.activo .fav-si { display: inline-block; color: #e11d48; }
.fav-btn.activo { border-color: #fda4af; }
.fav-btn:disabled { opacity: .6; cursor: progress; }
.prop-wrap { position: relative; display: flex; }
.prop-wrap > .prop-card { flex: 1; min-width: 0; }
.fav-chico { position: absolute; top: .55rem; right: .55rem; z-index: 2; width: 34px; height: 34px; justify-content: center; padding: 0;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); box-shadow: var(--shadow-sm); }
.fav-chico:hover { color: #e11d48; border-color: #fda4af; }
.prop-wrap .prop-top { padding-right: 2.6rem; }
.fav-globo { margin-top: .5rem; padding: .3rem .6rem; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text-2); font-size: .8rem; font-weight: 700; }
.fav-globo:hover { border-color: #fda4af; color: #e11d48; }
.fav-globo.activo { color: #be123c; }
html[data-theme="dark"] .fav-globo.activo { color: #fda4af; }
.alerta-lista { margin: -.25rem 0 1rem; }
.alerta-lista a { display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; font-weight: 700; color: var(--accent-text); text-decoration: none; }
.alerta-lista .ic { width: 1.05rem; height: 1.05rem; }
#aviso-flotante { position: fixed; left: 50%; bottom: 1.25rem; transform: translate(-50%, 1rem); opacity: 0; pointer-events: none; z-index: 3000;
  background: var(--ink); color: var(--surface); padding: .65rem 1rem; border-radius: 999px; font-weight: 700; font-size: .9rem; box-shadow: var(--shadow-lg);
  transition: opacity .2s, transform .2s; }
html[data-theme="dark"] #aviso-flotante { background: #f1f5f9; color: #0f172a; }
#aviso-flotante.visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Páginas de la cuenta (/entrar, /mi-cuenta, /baja) */
.pg-cuenta { background: var(--surface-2); }
.cu-entrar { min-height: 70vh; display: grid; place-items: center; padding: 2rem 1rem; }
.cu-caja { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 1.75rem; box-shadow: var(--shadow-md); color: var(--text); }
.cu-caja h1 { font-size: 1.45rem; font-weight: 800; margin: 0 0 .6rem; letter-spacing: -.02em; }
.cu-txt { color: var(--text-muted); font-size: .92rem; line-height: 1.55; margin: 0 0 1.1rem; overflow-wrap: anywhere; }
.cu-txt strong { color: var(--text); }
.cu-txt a, .cu-nota a, .cu-aviso a { color: var(--accent-text); font-weight: 600; }
.cu-caja form { display: flex; flex-direction: column; gap: .5rem; }
.cu-caja label, .cu-campo label { font-size: .78rem; font-weight: 700; color: var(--text-2); }
.cu-caja input[type=email], .cu-caja input[type=text], .cu-campo input, .cu-campo select {
  font: 500 .95rem Inter, system-ui, sans-serif; color: var(--text); background: var(--input-bg); border: 1px solid var(--border-strong); border-radius: 10px; padding: .6rem .75rem; min-width: 0; }
.cu-caja input:focus, .cu-campo input:focus, .cu-campo select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.cu-codigo { font-size: 1.6rem !important; font-weight: 800 !important; letter-spacing: .4em; text-align: center; }
.cu-btn { display: inline-flex; align-items: center; justify-content: center; padding: .65rem 1rem; border-radius: 10px; border: 1px solid transparent; font: 700 .9rem Inter, system-ui, sans-serif; cursor: pointer; text-decoration: none; }
.cu-primario { background: var(--accent); color: #fff; margin-top: .5rem; }
.cu-primario:hover { background: var(--accent-hover); }
.cu-suave { background: var(--surface); border-color: var(--border); color: var(--text); }
.cu-peligro { background: #dc2626; color: #fff; }
.cu-btn-texto { background: none; border: 0; padding: 0; color: var(--accent-text); font: 700 .85rem Inter, system-ui, sans-serif; cursor: pointer; }
.cu-rojo { color: var(--red-text); }
.cu-otro { flex-direction: row !important; flex-wrap: wrap; align-items: center; gap: .4rem !important; margin-top: 1rem; font-size: .85rem; color: var(--text-muted); }
.cu-otro a { color: var(--accent-text); font-weight: 600; text-decoration: none; }
.cu-check { display: flex !important; align-items: flex-start; gap: .55rem; font-size: .9rem !important; font-weight: 600 !important; color: var(--text) !important; line-height: 1.45; }
.cu-check input { width: 18px; height: 18px; margin-top: .1rem; accent-color: var(--accent); flex-shrink: 0; }
.cu-aviso { border: 1px solid var(--border); border-radius: 10px; padding: .7rem .9rem; font-size: .88rem; margin: 0 0 1rem; line-height: 1.5; }
.cu-ok { background: var(--green-soft); border-color: var(--green-border); color: var(--green-text); }
.cu-error { background: var(--red-soft); border-color: var(--red-border); color: var(--red-text); }
.cu-info { background: var(--blue-soft); border-color: var(--blue-border); color: var(--blue-text); }
.cu-nota { color: var(--text-muted); font-size: .82rem; line-height: 1.5; margin: .75rem 0 0; }
.cu-pagina { max-width: 860px; margin: 0 auto; padding: 2rem 1.25rem 4rem; color: var(--text); }
.cu-cab { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.cu-cab h1 { font-size: 1.7rem; font-weight: 800; margin: 0; letter-spacing: -.02em; }
.cu-sub { margin: .2rem 0 0; color: var(--text-muted); overflow-wrap: anywhere; }
.cu-carta { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.25rem 1.35rem; margin-bottom: 1rem; scroll-margin-top: 5rem; }
.cu-carta h2 { display: flex; align-items: center; gap: .5rem; font-size: 1.1rem; font-weight: 800; margin: 0 0 .75rem; }
.cu-carta h2 .ic { width: 1.2rem; height: 1.2rem; color: var(--accent-text); }
.cu-n { font-size: .78rem; font-weight: 700; color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: .05rem .55rem; }
.cu-vacio { color: var(--text-muted); font-size: .9rem; margin: 0; line-height: 1.55; }
.cu-favs, .cu-alertas { list-style: none; margin: 0; padding: 0; }
.cu-favs li, .cu-alertas li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .15rem 1rem; padding: .8rem 0; border-bottom: 1px solid var(--border-soft); align-items: center; }
.cu-favs li:last-child, .cu-alertas li:last-child { border-bottom: 0; }
.cu-favs li > form { grid-column: 2; grid-row: 1 / span 3; }
.cu-fav-t { font-weight: 700; color: var(--accent-text); text-decoration: none; overflow-wrap: anywhere; }
.cu-fav-d, .cu-fav-m { display: block; font-size: .84rem; color: var(--text-muted); }
.cu-fav-m strong { color: var(--text); }
.cu-pasado { opacity: .6; }
.cu-pausada { opacity: .65; }
.cu-acc { display: flex; gap: 1rem; }
.cu-nueva { margin-top: 1rem; }
.cu-nueva summary { cursor: pointer; font-weight: 700; color: var(--accent-text); font-size: .92rem; }
.cu-form { display: flex; flex-direction: column; gap: .75rem; margin-top: .9rem; align-items: flex-start; }
.cu-campos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem 1rem; width: 100%; }
.cu-campo { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.cu-dias { max-width: 220px; }
.cu-pie { text-align: center; }
@media (max-width: 700px) { .cu-campos { grid-template-columns: minmax(0, 1fr); } }

/* Aviso de privacidad: lo que falta por llenar se ve resaltado */
mark.pendiente { background: #fef08a; color: #713f12; padding: 0 .25rem; border-radius: 4px; font-weight: 700; }

/* ---------- Inmuebles adjudicados de bancos (/inmuebles-adjudicados, /inmueble-adjudicado/…) */
.badge-banco { background: var(--banco, #475569); color: #fff; border: 1px solid transparent; }
.badge-aviso { background: var(--amber-soft); color: var(--amber-text); border: 1px solid var(--amber-border); }
.bn-chip { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; color: #fff; background: var(--banco, #475569); white-space: nowrap; }
.bn-sit { display: inline-block; padding: 0.1rem 0.45rem; border-radius: 6px; font-size: 0.78rem; font-weight: 600; background: var(--amber-soft); color: var(--amber-text); border: 1px solid var(--amber-border); white-space: nowrap; }
.bancos-map { height: 420px; margin: 0.75rem 0 0.25rem; }
@media (max-width: 768px) { .bancos-map { height: 320px; } }
.pin-banco-wrap { background: none; border: none; }
.pin-banco { display: block; width: 14px; height: 14px; border-radius: 4px; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(15, 23, 42, .45); }
.pin-banco.con-aviso { border-color: #facc15; }
.mk-pt.bn-aviso { background: var(--text-subtle); border-color: #facc15; border-radius: 3px; }
.legend-capa { cursor: pointer; gap: 0.4rem; }
.legend-capa input { margin: 0; accent-color: var(--accent); }
.legend-dot.status-banco { border-radius: 3px; background: linear-gradient(135deg, #ff6b00 0 33%, #eb0029 33% 66%, #1464a5 66%); }
.popup-rj .pp-aviso { color: #92400e; font-weight: 600; font-size: 0.82rem; }
html[data-theme="dark"] .popup-rj .pp-aviso { color: #fbbf24; }
.cu-subtit { font-size: 1rem; margin: 1.1rem 0 .2rem; display: flex; gap: .5rem; align-items: center; color: var(--text); }

/* ---------- Capas del mapa (capas.js) */
.capas-boton { margin-top: .2rem; padding: .35rem .6rem; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; text-align: left; }
.capas-boton::after { content: " ▾"; }
.capas-boton[aria-expanded="true"]::after { content: " ▴"; }
.capas-lista { display: flex; flex-direction: column; gap: .3rem; max-height: 50vh; overflow-y: auto; font-size: .8rem; color: var(--text-2); }
.capas-lista[hidden] { display: none; }
.capas-lista label { display: flex; gap: .45rem; align-items: center; cursor: pointer; }
.capas-lista input { margin: 0; accent-color: var(--accent); }
.capas-grupo { margin-top: .35rem; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.capa-escala { margin-top: .4rem; max-width: 220px; }
.capa-escala-t { font-size: .72rem; font-weight: 700; color: var(--text-2); }
.capa-escala-f { display: flex; margin-top: .2rem; }
.capa-escala-f span { flex: 1; height: 8px; }
.capa-escala-f span:first-child { border-radius: 4px 0 0 4px; }
.capa-escala-f span:last-child { border-radius: 0 4px 4px 0; }
.capa-escala-x { font-size: .68rem; color: var(--text-muted); margin-top: .15rem; }
.leaflet-control-layers { font: inherit; font-size: .8rem; }
@media (max-width: 768px) { .capas-lista { max-height: 40vh; font-size: .72rem; } .capa-escala { max-width: 160px; } }

/* ---------- «La zona» en la ficha: un vistazo y una tarjeta por tema con sus datos y su mapa (zona.js) */
.zona-vistazo { margin: 0; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.zona-vistazo-tit { margin: .1rem 0 .45rem; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.hero-content .zona-vistazo { margin: 0 0 1rem; }
.zona-vistazo .ind-value { font-size: 1.1rem; }
.zona-card .mk-veredicto { margin-bottom: 1rem; }
.zona-cuerpo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 1.5rem; align-items: start; }
.zona-cuerpo.sin-mapa { grid-template-columns: 1fr; }
.zona-sub { margin: 1.1rem 0 .15rem; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.zona-datos > .zona-sub:first-child { margin-top: 0; }
.zona-lista { list-style: none; margin: 0; padding: 0; }
.zona-lista li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--border-soft); font-size: .92rem; }
.zona-lista li:last-child { border-bottom: 0; }
.zona-lista span { color: var(--text-2); }
.zona-lista b { text-align: right; color: var(--text); font-weight: 700; flex-shrink: 0; max-width: 62%; }
.zona-lista b small { display: block; font-weight: 500; font-size: .78rem; color: var(--text-muted); }
.zona-lista b.ojo { color: var(--red-text); }
.zona-texto { margin: 0 0 .9rem; font-size: .92rem; line-height: 1.55; color: var(--text-2); }
.zona-mapa { height: 340px; border-radius: 14px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); background: var(--surface-3); }
.zona-mapa-wrap .mk-leyenda { margin-top: .55rem; }
.zona-escala { display: inline-flex; align-items: center; gap: .3rem; }
.zona-escala i { display: inline-block; width: 16px; height: 8px; }
.zona-escala i:first-of-type { border-radius: 4px 0 0 4px; }
.zona-escala i:last-of-type { border-radius: 0 4px 4px 0; }
.zona-sq { display: inline-block; width: 11px; height: 11px; border-radius: 3px; opacity: .75; }
.zona-ln { display: inline-block; width: 16px; height: 3px; border-radius: 2px; }
.zona-aro { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 1.5px dashed var(--text-2); }
.zona-card .money-note { margin-top: 1rem; }
/* En el celular los recuadros del encabezado van de a dos (precio, depósito… y los de la zona): menos alto antes del mapa */
@media (max-width: 640px) {
  .property-page .hero-indicators { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .property-page .hero-indicators .ind { padding: .65rem .75rem; }
  .property-page .hero-indicators .ind-value { font-size: 1.02rem; }
  .property-page .hero-indicators .ind-sub { font-size: .74rem; }
}
@media (max-width: 860px) {
  .zona-cuerpo { grid-template-columns: 1fr; gap: 1rem; }
  .zona-mapa { height: 280px; }
  .zona-vistazo { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .zona-vistazo .ind { padding: .65rem .75rem; }
  .zona-vistazo .ind-value { font-size: .98rem; }
  .zona-vistazo .ind-sub { font-size: .74rem; }
}

/* ---- Estudio con IA (templates/_estudio.html, static/estudio.js) ---- */
.estudio-ia { border-color: color-mix(in srgb, var(--accent) 28%, transparent); }
.ei-intro { margin: 0 0 1rem; font-size: .92rem; line-height: 1.6; color: var(--text-2); }
.ei-candado { display: grid; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.ei-muestra, .ei-candado-txt { grid-area: 1 / 1; }
.ei-muestra { padding: 1rem 1.1rem; filter: blur(5px); opacity: .55; user-select: none; pointer-events: none; }
.ei-muestra p { margin: .4rem 0 0; font-size: .9rem; }
.ei-candado-txt { display: flex; flex-direction: column; justify-content: center; gap: .7rem;
  padding: 1rem 1.1rem; background: color-mix(in srgb, var(--surface) 82%, transparent); }
.ei-candado-txt p { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--text); }
.ei-candado-txt .ic { width: 1.1rem; height: 1.1rem; vertical-align: -3px; color: var(--accent-text); }
.ei-acciones { display: flex; flex-wrap: wrap; gap: .55rem; margin: .2rem 0 .3rem; }
.ei-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.5rem; padding: .55rem 1.1rem;
  border-radius: 10px; border: 1px solid var(--accent); background: var(--accent); color: #fff !important; font: 700 .9rem Inter, sans-serif;
  text-decoration: none; cursor: pointer; }
.ei-btn:hover { background: var(--accent-hover); }
.ei-btn:disabled { opacity: .5; cursor: not-allowed; }
.ei-btn.ei-suave { background: transparent; color: var(--accent-text) !important; }
.ei-btn.ei-suave:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.ei-veredicto { border: 1px solid var(--border); border-radius: 12px; padding: .9rem 1.1rem; margin: 0 0 .9rem; background: var(--surface-2); }
.ei-et, .ei-et-mini { font-weight: 800; }
.ei-et { display: inline-block; font-size: 1.05rem; }
.ei-frase { margin: .35rem 0 0; font-weight: 600; line-height: 1.5; }
.ei-resumen { margin: .55rem 0 0; font-size: .92rem; line-height: 1.6; color: var(--text-2); }
.ei-fecha { margin: .55rem 0 0; font-size: .8rem; color: var(--text-3); }
.ei-msg { margin: .5rem 0 0; font-size: .88rem; line-height: 1.55; color: var(--text-2); }
.ei-msg.ei-ok { color: #15803d; } .ei-msg.ei-error { color: #b91c1c; }
.ei-nota { margin: .8rem 0 0; font-size: .78rem; color: var(--text-3); }
.ei-verde { color: #15803d; } .ei-ambar { color: #a16207; } .ei-rojo { color: #b91c1c; } .ei-gris { color: var(--text-3); }
html[data-theme="dark"] .ei-verde, html[data-theme="dark"] .ei-msg.ei-ok { color: #4ade80; }
html[data-theme="dark"] .ei-ambar { color: #fbbf24; }
html[data-theme="dark"] .ei-rojo, html[data-theme="dark"] .ei-msg.ei-error { color: #f87171; }
.cu-sub2 { margin: -.3rem 0 .6rem; font-size: .88rem; color: var(--text-3); }
.cu-estudios li > :not(.cu-descargar) { grid-column: 1; }
.cu-estudios .cu-descargar { grid-column: 2; grid-row: 1 / span 3; display: inline-flex; align-items: center; gap: .25rem; text-decoration: none; }
.cu-estudios .cu-descargar .ic { width: 1.05rem; height: 1.05rem; }
@media (max-width: 560px) { .ei-candado-txt { background: var(--surface); } .ei-muestra { display: none; } }

/* ---- Subastas judiciales (templates/subastas.html) ---- */
.subastas-faq h3 { font-size: 1rem; margin: 1.1rem 0 .3rem; color: var(--text); }
.subastas-faq p { margin: 0; max-width: 75ch; font-size: .93rem; line-height: 1.65; color: var(--text-2); }
.sub-intro a { font-weight: 600; }
span.prov-card { cursor: default; }
span.prov-card:hover { transform: none; border-color: var(--border); box-shadow: none; }
.sub-dos { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 2rem; }
.sub-lista { list-style: none; margin: 0 0 .6rem; padding: 0; }
.sub-lista li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--border-soft); font-size: .92rem; color: var(--text-2); }
.sub-lista li b { color: var(--accent-text); font-weight: 800; }

/* Guía de remates (templates/guia/) */
.guia-cierre { margin-top: 2.5rem; }
.guia-sig { display: grid; gap: .2rem; padding: 1.1rem 1.3rem; border-radius: 16px; text-decoration: none; color: var(--text);
  border: 1px solid var(--blue-border); background: var(--blue-soft); }
.guia-sig:hover { border-color: var(--accent); }
.guia-sig-etq { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--blue-text); }
.guia-sig-t { font-size: 1.15rem; font-weight: 800; }
.guia-sig-d { font-size: .88rem; color: var(--text-muted); }
.guia-cierre .related { margin-top: 1rem; }
.guia-todas { margin: 1rem 0 0; font-size: .9rem; }
.guia-asis { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.2rem; margin: 2rem 0;
  padding: 1rem 1.25rem; border-radius: 16px; border: 1px solid var(--violet-border); background: var(--violet-soft); color: var(--text); }
.guia-asis p { margin: 0; font-size: .92rem; line-height: 1.55; max-width: 60ch; }
.guia-estados { display: flex; flex-wrap: wrap; gap: .5rem; }
.guia-estados a { display: inline-flex; gap: .4rem; align-items: center; padding: .45rem .75rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); text-decoration: none; font-size: .86rem; font-weight: 600; }
.guia-estados a b { color: var(--accent-text); }
.guia-estados a:hover { border-color: var(--accent); }
.guia-tabla { overflow-x: auto; margin: 1rem 0; border: 1px solid var(--border); border-radius: 14px; }
.guia-tabla table { border-collapse: collapse; width: 100%; font-size: .88rem; }
.guia-tabla th, .guia-tabla td { padding: .6rem .75rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-soft); }
.guia-tabla th { background: var(--bg); font-weight: 700; color: var(--text); white-space: nowrap; }
.guia-tabla td small { color: var(--text-muted); }
.guia-faq h3 { font-size: 1.02rem; margin: 1.4rem 0 .4rem; }
.guia-faq p { margin: 0 0 .5rem; line-height: 1.65; }
.guia-glosario dt { font-weight: 800; margin-top: 1.1rem; scroll-margin-top: 5rem; }
.guia-glosario dd { margin: .25rem 0 0; line-height: 1.6; color: var(--text); }
.guia-calc { display: grid; gap: .9rem; padding: 1.2rem; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.guia-calc label { display: grid; gap: .3rem; font-weight: 600; font-size: .88rem; }
.guia-calc input, .guia-calc select { font: 500 1rem Inter, sans-serif; padding: .6rem .7rem; border: 1px solid var(--border-strong); border-radius: 10px;
  background: var(--input-bg); color: var(--text); }
.guia-calc-res { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .7rem; }
.guia-calc-res div { padding: .8rem; border-radius: 12px; background: var(--bg); border: 1px solid var(--border-soft); }
.guia-calc-res b { display: block; font-size: 1.15rem; }
.guia-calc-res span { font-size: .8rem; color: var(--text-muted); }
.guia-fuente { font-size: .8rem; color: var(--text-muted); }
button.hact { font: inherit; cursor: pointer; }
.link-asis { border: 0; background: none; padding: 0; font: inherit; color: var(--accent-text); text-decoration: underline; cursor: pointer; }
.guia-calc label { min-width: 0; }
.guia-calc input, .guia-calc select { width: 100%; min-width: 0; box-sizing: border-box; }
/* Páginas de lugares (templates/lugar.html y _lugar_extra.html) */
.lx-km-wrap { position: relative; }
.lx-km { position: absolute; top: .55rem; right: 2.6rem; font-size: .72rem; font-weight: 700; padding: .15rem .45rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); }
.lx-sub { display: block; width: 100%; font-size: .74rem; color: var(--text-muted); margin-top: .2rem; }
.prov-card .lx-sub { order: 3; }
.lx-datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .8rem; }
.lx-dato { padding: 1rem; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); display: grid; gap: .25rem; }
.lx-dato b { font-size: 1.35rem; font-weight: 800; }
.lx-dato span { font-size: .88rem; color: var(--text); line-height: 1.45; }
.lx-dato small { font-size: .74rem; color: var(--text-muted); }
.lx-vacio { padding: 1.1rem 1.3rem; border-radius: 16px; border: 1px dashed var(--border-strong); background: var(--bg); margin: .5rem 0 0; }
.lx-alerta .guia-asis span { display: flex; gap: .5rem; flex-wrap: wrap; }

/* «¿Ve un error?» y correcciones de las fichas (templates/_reportar.html, static/reportar.js) */
.reportar { margin: 0.9rem 0 1.4rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.reportar summary { cursor: pointer; padding: 0.7rem 1rem; font-weight: 600; font-size: 0.9rem; color: var(--accent-text); list-style: none; }
.reportar summary::-webkit-details-marker { display: none; }
.reportar summary::before { content: "✎ "; }
.reportar[open] summary { border-bottom: 1px solid var(--border-soft); }
.reportar-form { display: grid; gap: 0.45rem; padding: 0.8rem 1rem 1rem; }
.reportar-form label { font-size: 0.82rem; font-weight: 600; color: var(--text-2); }
.reportar-form select, .reportar-form textarea { font: 0.92rem Inter, system-ui, sans-serif; padding: 0.5rem 0.6rem; border: 1px solid var(--border-strong);
  border-radius: 8px; background: var(--input-bg); color: var(--text); width: 100%; box-sizing: border-box; }
.reportar-nota { margin: 0.1rem 0 0; font-size: 0.8rem; color: var(--text-muted); }
.btn-reportar { justify-self: start; background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 0.55rem 1rem;
  font: 600 0.88rem Inter, system-ui, sans-serif; cursor: pointer; }
.btn-reportar:hover { background: var(--accent-hover); }
.btn-reportar:disabled { opacity: 0.6; cursor: default; }
.reportar-ok { margin: 0; font-size: 0.88rem; color: var(--green-text); }
.reportar-ok.mal { color: var(--red-text); }
.correcciones { margin-top: 0.9rem; padding: 0.7rem 0.9rem; border: 1px solid var(--blue-border); background: var(--blue-soft); border-radius: 10px; }
.correcciones h3 { margin: 0 0 0.3rem; font-size: 0.9rem; color: var(--blue-text); }
.correcciones ul { margin: 0; padding-left: 1.1rem; font-size: 0.88rem; color: var(--text-2); }

/* «Reportar error» y «Guardar» arriba a la derecha de la ficha, como en RemateJudicialCR (templates/_acciones_arriba.html) */
.hero-badges { align-items: center; }
.top-acciones { margin-left: auto; display: inline-flex; gap: .5rem; }
.top-btn { display: inline-flex; align-items: center; gap: .35rem; height: 38px; padding: 0 .95rem; border-radius: 9999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font: 600 .88rem Inter, system-ui, sans-serif;
  text-decoration: none; cursor: pointer; transition: color .15s, border-color .15s, transform .15s; white-space: nowrap; }
.top-btn .ic { width: 1.1rem; height: 1.1rem; }
.top-btn:hover { color: var(--text); border-color: var(--border-strong); transform: scale(1.04); }
.top-err:hover { color: var(--red-text); border-color: var(--red-border); }
.top-btn.fav-btn.activo { color: var(--text); }
.top-btn .t-corto { display: none; }
@media (max-width: 600px) {
  .top-btn .t-largo { display: none; }
  .top-btn .t-corto { display: inline; }
  .top-btn { height: 34px; padding: 0 .75rem; }
}
