/* ==========================================================
   Fase 3 — Capa visual moderna global del frontend publico
   ----------------------------------------------------------
   CSS incremental y reversible. No modifica /admin/ y se carga
   despues de Bootstrap, style.css y la capa legacy.
========================================================== */
:root {
  --ise-primary: #0f766e;
  --ise-primary-dark: #115e59;
  --ise-primary-soft: #e6f5f2;
  --ise-accent: #f59e0b;
  --ise-ink: #16213a;
  --ise-muted: #64748b;
  --ise-border: #e2e8f0;
  --ise-surface: #ffffff;
  --ise-surface-soft: #f8fafc;
  --ise-page-bg: #f5f7fb;
  --ise-radius-sm: 10px;
  --ise-radius: 16px;
  --ise-radius-lg: 24px;
  --ise-shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
  --ise-shadow: 0 16px 42px rgba(15, 23, 42, 0.10);
  --ise-shadow-hover: 0 22px 60px rgba(15, 23, 42, 0.14);
  --ise-transition: 180ms ease;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.07), transparent 32rem),
    linear-gradient(180deg, #ffffff 0%, var(--ise-page-bg) 42%, #ffffff 100%);
  color: var(--ise-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#page-wrapper {
  min-height: 100vh;
  background: transparent;
}

.full-row {
  position: relative;
}

.page-banner,
.banner-full-row.page-banner {
  overflow: hidden;
  min-height: 260px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.page-banner::before,
.banner-full-row.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.54), rgba(15, 118, 110, 0.36));
  z-index: 0;
}

.page-banner > *,
.banner-full-row.page-banner > * {
  position: relative;
  z-index: 1;
}

.double-down-line-left::before,
.double-down-line-left::after,
.double-down-line-center::before,
.double-down-line-center::after {
  background-color: var(--ise-primary) !important;
}

.text-success,
.text-primary,
.hover-text-success:hover,
.hover-text-success a:hover,
.icon-success {
  color: var(--ise-primary) !important;
}

.bg-success,
.btn-success,
.badge-success {
  background-color: var(--ise-primary) !important;
}

.btn,
button,
input[type="submit"],
input[type="button"] {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform var(--ise-transition), box-shadow var(--ise-transition), background-color var(--ise-transition), border-color var(--ise-transition), color var(--ise-transition);
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  transform: translateY(-1px);
}

.btn-success,
.btn-primary,
.btn-secondary {
  border-color: transparent !important;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.18);
}

.btn-success:hover,
.btn-primary:hover {
  background-color: var(--ise-primary-dark) !important;
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.24);
}

.btn-outline-success,
.btn-outline-primary,
.btn-outline-info {
  color: var(--ise-primary) !important;
  border-color: rgba(15, 118, 110, 0.38) !important;
  background: rgba(255, 255, 255, 0.86);
}

.btn-outline-success:hover,
.btn-outline-primary:hover,
.btn-outline-info:hover {
  color: #ffffff !important;
  background: var(--ise-primary) !important;
  border-color: var(--ise-primary) !important;
}

.form-control,
.form-select,
select,
textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"] {
  border-radius: var(--ise-radius-sm) !important;
  border-color: var(--ise-border) !important;
  background-color: rgba(255, 255, 255, 0.94) !important;
  color: var(--ise-ink) !important;
  box-shadow: none !important;
  transition: border-color var(--ise-transition), box-shadow var(--ise-transition), background-color var(--ise-transition);
}

.form-control:focus,
.form-select:focus,
select:focus,
textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="search"]:focus {
  border-color: rgba(15, 118, 110, 0.55) !important;
  box-shadow: 0 0 0 0.22rem rgba(15, 118, 110, 0.13) !important;
  background-color: #ffffff !important;
}

.card,
.sidebar-widget,
.widget,
.agent-widget,
.bg-white,
.submit-form,
.contact-form,
.table-responsive,
.dashboard-personal-info,
.invoice-list-table,
.property-overview,
.property-overview-data,
.property-grid-1,
.featured-thumb {
  border: 1px solid rgba(226, 232, 240, 0.88) !important;
  border-radius: var(--ise-radius) !important;
  background-color: var(--ise-surface) !important;
  box-shadow: var(--ise-shadow-sm);
}

.sidebar-widget,
.widget,
.agent-widget,
.submit-form,
.contact-form,
.property-overview,
.property-overview-data {
  padding: clamp(1rem, 2vw, 1.35rem);
}

.featured-thumb,
.property-grid-1 {
  overflow: hidden;
  transition: transform var(--ise-transition), box-shadow var(--ise-transition), border-color var(--ise-transition);
}

.featured-thumb:hover,
.property-grid-1:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 118, 110, 0.22) !important;
  box-shadow: var(--ise-shadow-hover);
}

.featured-thumb .overflow-hidden.position-relative,
.property-grid-1 .overflow-hidden.position-relative {
  border-radius: var(--ise-radius) var(--ise-radius) 0 0;
  background: linear-gradient(135deg, #f8fafc, #eef2f7) !important;
}

.featured-thumb img,
.property-grid-1 img {
  max-width: 100%;
}

.featured-thumb .listing-price,
.featured-thumb .price,
.property-grid-1 .listing-price,
.property-grid-1 .price {
  color: var(--ise-primary-dark) !important;
  font-weight: 800;
}

.badge,
[class*="badge-"] {
  border-radius: 999px !important;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.breadcrumb,
.breadcrumbs,
.breadcrumb-item {
  color: rgba(255, 255, 255, 0.86);
}

.breadcrumb a,
.breadcrumbs a,
.breadcrumb-item a {
  color: #ffffff !important;
  text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumbs a:hover,
.breadcrumb-item a:hover {
  text-decoration: underline;
}

.pagination,
.page-link {
  border-radius: 999px;
}

.page-link {
  color: var(--ise-primary);
  border-color: var(--ise-border);
  margin: 0 0.15rem;
}

.page-link:hover,
.page-item.active .page-link {
  color: #ffffff;
  background-color: var(--ise-primary);
  border-color: var(--ise-primary);
}

.table {
  color: var(--ise-ink);
}

.table thead th {
  background-color: var(--ise-surface-soft);
  color: var(--ise-muted);
  border-bottom-color: var(--ise-border);
}

.property_list_widget {
  display: grid;
  gap: 0.85rem;
}

.property_list_widget li {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
  gap: 0.85rem;
  min-height: 72px;
  padding: 0.75rem;
  border: 1px solid rgba(226, 232, 240, 0.78);
  border-radius: var(--ise-radius-sm);
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  transition: transform var(--ise-transition), border-color var(--ise-transition), box-shadow var(--ise-transition);
}

.property_list_widget li:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.22);
  box-shadow: var(--ise-shadow-sm);
}

.property_list_widget .sidebar-property-thumb,
.property_list_widget li > img {
  width: 80px !important;
  height: 62px !important;
  object-fit: cover;
  object-position: center center;
  border-radius: 12px;
  background: #f1f5f9;
}

.property_list_widget h6 {
  margin: 0 0 0.25rem;
  line-height: 1.25;
}

.property_list_widget h6 a {
  color: var(--ise-ink);
  text-decoration: none;
}

.property_list_widget h6 a:hover {
  color: var(--ise-primary);
}

.property_list_widget .font-14,
.property_list_widget span {
  color: var(--ise-muted);
}

.alert {
  border: 0;
  border-radius: var(--ise-radius);
  box-shadow: var(--ise-shadow-sm);
}

.nav-pills .nav-link,
.nav-tabs .nav-link {
  border-radius: 999px;
}

.nav-pills .nav-link.active,
.nav-tabs .nav-link.active {
  background-color: var(--ise-primary);
  border-color: var(--ise-primary);
}

@media (max-width: 767px) {
  .page-banner,
  .banner-full-row.page-banner {
    min-height: 210px;
  }

  .sidebar-widget,
  .widget,
  .agent-widget,
  .submit-form,
  .contact-form {
    padding: 1rem;
  }

  .property_list_widget li {
    grid-template-columns: 72px 1fr;
    gap: 0.7rem;
  }

  .property_list_widget .sidebar-property-thumb,
  .property_list_widget li > img {
    width: 72px !important;
    height: 58px !important;
  }
}

/* ==========================================================
   Fase 4 — Cabecera, footer y ajustes visuales de detalle
========================================================== */
.frontend-topbar {
  position: relative;
  z-index: 1031;
  width: 100%;
  padding: 0.55rem clamp(0.85rem, 2vw, 1.5rem);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 118, 110, 0.88)) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
}

.frontend-topbar.float-right {
  float: none !important;
}

.frontend-topbar-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.frontend-topbar-list li {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
}

.frontend-topbar-list a {
  color: rgba(255, 255, 255, 0.94) !important;
  text-decoration: none;
}

.frontend-topbar-list a:hover {
  color: #ffffff !important;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.frontend-topbar-list .btn {
  padding: 0.42rem 0.9rem;
  color: #ffffff !important;
  text-decoration: none !important;
}

.frontend-navbar {
  z-index: 1030;
  margin-top: 0 !important;
  padding-block: 0.75rem !important;
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.frontend-navbar .container-fluid {
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 2vw, 1.5rem);
}

.frontend-navbar-logo {
  max-width: min(250px, 58vw);
  height: auto;
  object-fit: contain;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.frontend-navbar .navbar-toggler {
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 14px;
  padding: 0.55rem 0.7rem;
  background: rgba(230, 245, 242, 0.74);
}

.frontend-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.22rem rgba(15, 118, 110, 0.13);
}

.frontend-navbar-menu {
  align-items: center;
  gap: 0.15rem;
}

.frontend-navbar-menu .nav-link {
  border-radius: 999px;
  padding: 0.62rem 0.92rem !important;
  color: var(--ise-ink) !important;
  font-weight: 700;
  line-height: 1.15;
  transition: background-color var(--ise-transition), color var(--ise-transition), transform var(--ise-transition);
}

.frontend-navbar-menu .nav-link:hover,
.frontend-navbar-menu .nav-link:focus,
.frontend-navbar-menu .nav-link.active {
  color: var(--ise-primary-dark) !important;
  background: var(--ise-primary-soft);
  transform: translateY(-1px);
}

.frontend-navbar .dropdown-menu {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  box-shadow: var(--ise-shadow);
  padding: 0.55rem;
}

.frontend-navbar .dropdown-item {
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
  font-weight: 600;
}

.frontend-navbar .dropdown-item:hover,
.frontend-navbar .dropdown-item:focus {
  color: var(--ise-primary-dark);
  background: var(--ise-primary-soft);
}

.frontend-footer {
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.32), transparent 30rem),
    linear-gradient(135deg, #101827, #172337 48%, #0f3d3b) !important;
  color: #ffffff;
}

.frontend-footer-main {
  padding: clamp(2.4rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2rem);
}

.frontend-footer-card,
.frontend-footer-brand {
  height: 100%;
}

.frontend-footer-logo img {
  max-width: 180px;
  height: auto;
  object-fit: contain;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.frontend-footer-text {
  color: rgba(255, 255, 255, 0.78) !important;
  line-height: 1.8;
}

.frontend-footer a {
  color: rgba(255, 255, 255, 0.86) !important;
  text-decoration: none;
}

.frontend-footer a:hover {
  color: #ffffff !important;
  text-decoration: underline;
  text-underline-offset: 0.22rem;
}

.frontend-footer .widget-title {
  margin-bottom: 1.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.frontend-footer-links,
.frontend-footer-contact,
.frontend-footer-legal {
  margin: 0;
  padding: 0;
  list-style: none;
}

.frontend-footer-links li + li,
.frontend-footer-contact li + li {
  margin-top: 0.72rem;
}

.frontend-footer-contact li {
  display: grid;
  grid-template-columns: 1.35rem 1fr;
  gap: 0.65rem;
  align-items: start;
  color: rgba(255, 255, 255, 0.82);
}

.frontend-footer-contact i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  min-height: 1.35rem;
  color: #a7f3d0 !important;
  margin-top: 0.08rem;
}

.frontend-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.frontend-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none !important;
  transition: transform var(--ise-transition), background-color var(--ise-transition), border-color var(--ise-transition);
}

.frontend-footer-social a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.34);
}

.frontend-footer-bottom {
  padding: 1.05rem 0 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.frontend-footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.frontend-footer-legal.float-right,
.line-menu.float-right {
  float: none !important;
}

.frontend-location-modal {
  overflow: hidden;
  border: 0;
  border-radius: var(--ise-radius-lg);
  box-shadow: var(--ise-shadow-hover);
}

.frontend-location-modal .modal-header,
.frontend-location-modal .modal-footer {
  border-color: var(--ise-border);
}

.property-operation-badge.bg-success {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0) !important;
  border: 1px solid rgba(16, 185, 129, 0.32);
  color: #047857 !important;
  box-shadow: 0 10px 22px rgba(16, 185, 129, 0.16);
  font-weight: 900;
  letter-spacing: 0.01em;
}

.property-detail-facts {
  overflow: hidden;
  margin-top: 0.75rem;
  padding: clamp(1rem, 2vw, 1.25rem) !important;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--ise-radius) !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  box-shadow: var(--ise-shadow-sm);
}

.property-detail-facts ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.property-detail-facts li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  min-height: 68px;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.property-detail-facts li span {
  background: transparent !important;
  line-height: 1.35;
}

.property-detail-facts li span:first-child {
  color: var(--ise-muted) !important;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.property-detail-facts li span:last-child {
  color: var(--ise-ink) !important;
  font-size: 1rem;
  font-weight: 800;
  text-align: right;
}

@media (max-width: 991px) {
  .frontend-topbar-list {
    justify-content: center;
  }

  .frontend-navbar-collapse {
    margin-top: 0.85rem;
    padding: 0.75rem;
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--ise-shadow-sm);
  }

  .frontend-navbar-menu {
    align-items: stretch;
  }

  .frontend-navbar-menu .nav-link {
    display: block;
  }
}

@media (max-width: 767px) {
  .frontend-topbar {
    padding-inline: 0.85rem;
  }

  .frontend-topbar-list {
    gap: 0.35rem 0.75rem;
    font-size: 0.86rem;
  }

  .frontend-footer-legal {
    justify-content: flex-start;
  }

  .property-detail-facts ul {
    grid-template-columns: 1fr;
  }

  .property-detail-facts li {
    min-height: auto;
  }
}

/* ==========================================================
   Fase 5 — Buscadores, filtros y carrusel de financiación
========================================================== */
.slider-banner1 .text-white > h1 {
  max-width: 960px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--ise-radius-lg) !important;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.78), rgba(15, 118, 110, 0.58)) !important;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(10px);
}

.frontend-search-section {
  min-height: 430px;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.frontend-search-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(20, 184, 166, 0.34), transparent 28rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.78), rgba(15, 118, 110, 0.52));
}

.frontend-search-copy {
  max-width: 820px;
  margin-bottom: 1.25rem;
}

.frontend-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
  color: var(--ise-primary-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-white .frontend-eyebrow,
.frontend-search-copy .frontend-eyebrow {
  color: #a7f3d0;
}

.frontend-search-copy h1,
.frontend-search-copy h2 {
  color: #ffffff;
  line-height: 1.18;
  text-shadow: 0 14px 34px rgba(15, 23, 42, 0.34);
}

.frontend-search-panel {
  width: 100%;
  padding: clamp(1rem, 2vw, 1.35rem);
  /* border: 1px solid rgba(255, 255, 255, 0.28); */
  /* border-radius: var(--ise-radius-lg); */
  /* background: rgba(255, 255, 255, 0.94); */
  /* box-shadow: 0 24px 65px rgba(15, 23, 42, 0.20); */
  backdrop-filter: blur(18px);
}

.frontend-search-panel--hero {
  max-width: 1180px;
}

.frontend-search-panel--compact {
  border-color: rgba(226, 232, 240, 0.78);
}

.frontend-search-label {
  display: block;
  margin-bottom: 0.38rem;
  color: var(--ise-muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.frontend-search-control {
  min-height: 3.05rem;
  border-radius: 15px !important;
}

.frontend-search-submit {
  min-height: 3.05rem;
  border-radius: 15px !important;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.frontend-availability-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.frontend-availability-chip {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  min-height: 3.05rem;
  margin: 0 !important;
  padding: 0.65rem 0.95rem;
  border: 1px solid rgba(15, 118, 110, 0.20);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ise-ink);
  font-weight: 800;
  cursor: pointer;
  user-select: none;
  transition: transform var(--ise-transition), border-color var(--ise-transition), background-color var(--ise-transition), box-shadow var(--ise-transition);
}

.frontend-availability-chip input.custom-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.frontend-availability-chip .checkmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(15, 118, 110, 0.42);
  border-radius: 999px;
  background: #ffffff;
  transition: border-color var(--ise-transition), background-color var(--ise-transition), box-shadow var(--ise-transition);
}

.frontend-availability-chip input.custom-checkbox:checked + .checkmark,
.frontend-availability-chip.is-active .checkmark {
  border-color: var(--ise-primary);
  background: radial-gradient(circle, #ffffff 0 30%, var(--ise-primary) 34% 100%);
  box-shadow: 0 0 0 0.22rem rgba(15, 118, 110, 0.13);
}

.frontend-availability-chip.is-active {
  border-color: rgba(15, 118, 110, 0.46);
  background: var(--ise-primary-soft);
  color: var(--ise-primary-dark);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.12);
}

@supports selector(:has(*)) {
  .frontend-availability-chip:has(input.custom-checkbox:checked) {
    border-color: rgba(15, 118, 110, 0.46);
    background: var(--ise-primary-soft);
    color: var(--ise-primary-dark);
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.12);
  }
}

.frontend-availability-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: var(--ise-shadow-sm);
}

.city-filter-panel {
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: var(--ise-radius-lg);
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.10), transparent 22rem),
    linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: var(--ise-shadow-sm);
}

.city-filter-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
}

.city-filter-panel__header h3 {
  color: var(--ise-ink);
  font-weight: 900;
}

.city-filter-panel__header p {
  color: var(--ise-muted);
}

.city-filter-panel__section + .city-filter-panel__section {
  margin-top: 1.15rem;
}

.city-filter-panel__section h4 {
  margin-bottom: 0.75rem;
  color: var(--ise-muted);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.city-filter-chips,
.city-sort-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.city-filter-chip,
.city-filter-action,
.city-filter-reset {
  border-radius: 999px !important;
  font-weight: 800 !important;
}

.city-filter-chip.is-active,
.city-filter-action.is-checked {
  color: #ffffff !important;
  background: var(--ise-primary) !important;
  border-color: var(--ise-primary) !important;
}

.city-sort-form {
  display: grid;
  gap: 1rem;
}

.city-availability-chips {
  padding-top: 0.25rem !important;
}

.frontend-finance-carousel-section {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.2rem, 3vw, 1.7rem);
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: var(--ise-radius-lg);
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.11), transparent 22rem),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: var(--ise-shadow-sm);
}

.frontend-finance-carousel-heading {
  max-width: 760px;
  margin-bottom: 1.2rem;
}

.frontend-finance-carousel-heading h2 {
  margin-bottom: 0.45rem;
  color: var(--ise-ink);
  font-weight: 900;
  line-height: 1.15;
}

.frontend-finance-carousel-heading p {
  margin: 0;
  color: var(--ise-muted);
}

.frontend-property-carousel.owl-carousel,
.frontend-property-carousel .owl-stage-outer {
  height: auto !important;
}

.frontend-property-carousel .owl-stage {
  display: flex;
}

.frontend-property-carousel .owl-item {
  display: flex;
  height: auto;
}

.frontend-carousel-property-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.frontend-carousel-property-card__image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f1f5f9;
}

.frontend-carousel-property-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ise-transition);
}

.frontend-carousel-property-card:hover .frontend-carousel-property-card__image img {
  transform: scale(1.035);
}

.frontend-carousel-property-card__badge,
.frontend-carousel-property-card__operation {
  position: absolute;
  top: 0.85rem;
  z-index: 1;
  padding: 0.36rem 0.65rem;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.20);
}

.frontend-carousel-property-card__badge {
  left: 0.85rem;
  background: linear-gradient(135deg, #35c27a, #20a967);
}

.frontend-carousel-property-card__operation {
  right: 0.85rem;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
}

.frontend-carousel-property-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}

.frontend-carousel-property-card__price {
  margin-bottom: 0.55rem;
  color: var(--ise-primary-dark);
  font-size: 1.25rem;
  font-weight: 900;
}

.frontend-carousel-property-card__body h3 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.25;
}

.frontend-carousel-property-card__body h3 a {
  color: var(--ise-ink);
  text-decoration: none;
}

.frontend-carousel-property-card__body h3 a:hover {
  color: var(--ise-primary);
}

.frontend-carousel-property-card__location,
.frontend-carousel-property-card__meta,
.frontend-carousel-property-card__footer {
  color: var(--ise-muted);
  font-size: 0.88rem;
}

.frontend-carousel-property-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.frontend-carousel-property-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.32rem 0.52rem;
  border-radius: 999px;
  background: #f8fafc;
}

.frontend-carousel-property-card__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(226, 232, 240, 0.85);
}

.frontend-property-carousel .owl-nav {
  margin-top: 1rem;
}

.frontend-property-carousel .owl-nav button.owl-prev,
.frontend-property-carousel .owl-nav button.owl-next {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px !important;
  background: var(--ise-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.20);
}

.frontend-property-carousel .owl-dots {
  margin-top: 0.8rem;
}

@media (max-width: 991px) {
  .frontend-search-section {
    background-attachment: scroll;
  }

  .city-filter-panel__header {
    flex-direction: column;
  }

  .city-filter-reset {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .frontend-search-panel {
    padding: 0.95rem;
  }

  .frontend-availability-chips,
  .city-filter-chips,
  .city-sort-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .frontend-availability-chip,
  .city-filter-chip,
  .city-filter-action {
    width: 100%;
    justify-content: center;
  }

  .frontend-finance-carousel-section {
    padding: 1rem;
  }
}


/* Fase 6: tarjetas modernas de propiedades/anuncios */
.property-modern-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
  transition: transform var(--ise-transition), box-shadow var(--ise-transition), border-color var(--ise-transition);
}

.property-modern-card:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 184, 166, 0.35);
  box-shadow: 0 26px 62px rgba(15, 23, 42, 0.13);
}

.property-modern-card--inactive {
  opacity: 0.86;
}

.property-modern-card--inactive .property-modern-card__image {
  filter: saturate(0.74);
}

.property-modern-card--inactive a,
.property-modern-card--inactive .property-modern-card__media a,
.property-modern-card--inactive .property-modern-card__body a {
  pointer-events: none;
  cursor: not-allowed;
}

.property-modern-card--inactive .property-modern-card__body {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.property-modern-card__media {
  aspect-ratio: 16 / 10;
  border-radius: 24px 24px 0 0;
  background: #eef2f7;
}

.property-modern-card__media a {
  display: block;
  height: 100%;
}

.property-modern-card__image,
.property-card-image.property-modern-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ise-transition);
}

.property-modern-card:hover .property-modern-card__image {
  transform: scale(1.035);
}

.property-modern-card .featured,
.property-modern-card .featuredb {
  position: absolute;
  top: 0.95rem;
  left: 0.95rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: auto;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #34d399, #10b981) !important;
  color: #ffffff !important;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.property-modern-card .featuredb {
  background: linear-gradient(135deg, #64748b, #334155) !important;
}

.property-modern-card .featuredc {
  position: absolute;
  top: 50%;
  left: -34%;
  z-index: 4;
  width: 168%;
  min-height: auto;
  padding: 0;
  border-radius: 0;
  background: #a80808 !important;
  color: #ffffff !important;
  font-size: clamp(0.84rem, 1.05vw, 1rem);
  font-weight: 950;
  letter-spacing: 0.06em;
  line-height: 2.2rem;
  text-align: center;
  text-transform: uppercase;
  opacity: 0.94;
  transform: rotate(-30deg) translateY(-50%);
  transform-origin: 50% 50%;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.26);
  pointer-events: none;
}

.property-modern-card__status,
.property-modern-card .sale {
  position: absolute;
  top: 0.95rem;
  right: 0.95rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: auto;
  padding: 0.55rem 0.92rem;
  border-radius: 999px;
  background: rgba(209, 250, 229, 0.95) !important;
  color: #047857 !important;
  font-size: clamp(0.82rem, 0.92vw, 0.96rem);
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(16, 185, 129, 0.18);
  backdrop-filter: blur(8px);
}

.property-modern-card__price,
.property-modern-card .box.price {
  right: 1rem;
  bottom: 1rem;
  left: auto;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 2rem);
  margin: 0 !important;
  padding: 0.76rem 1.12rem;
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(236, 253, 245, 0.96)) !important;
  color: #047857 !important;
  font-size: clamp(1.22rem, 1.55vw, 1.62rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.02em;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18), 0 0 0 4px rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(10px);
}

.property-modern-card__price .inner,
.property-modern-card .box.price .inner {
  position: static !important;
  left: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 !important;
  border-radius: inherit !important;
  background: transparent !important;
  color: inherit !important;
  font: inherit !important;
  white-space: nowrap;
  overflow: visible !important;
  transform: none !important;
  animation: none !important;
  -webkit-animation: none !important;
}

.property-modern-card__body,
.property-modern-card .featured-thumb-data {
  display: flex;
  flex: 1;
  flex-direction: column;
  border: 0 !important;
  border-radius: 0 0 24px 24px;
  background: #ffffff;
  box-shadow: none !important;
}

.property-modern-card__body h5,
.property-modern-card .featured-thumb-data h5 {
  font-size: clamp(1.12rem, 1.08vw, 1.28rem);
  font-weight: 900;
  line-height: 1.32;
}

.property-modern-card__body h5 a,
.property-modern-card .featured-thumb-data h5 a {
  color: var(--ise-ink);
  font-size: inherit;
  font-weight: 900;
  line-height: inherit;
  text-decoration: none;
}

.property-modern-card__body h5 a:hover,
.property-modern-card .featured-thumb-data h5 a:hover {
  color: var(--ise-primary-dark);
}

.property-modern-card .location,
.property-modern-card .featured-thumb-data .text-capitalize {
  color: var(--ise-muted);
  font-size: 0.9rem;
}

.property-modern-card__features,
.property-modern-card .quantity {
  margin: 0.75rem 1rem 0;
  padding: 0 !important;
  background: transparent !important;
}

.property-modern-card__features ul,
.property-modern-card .quantity ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.property-modern-card__features li,
.property-modern-card .quantity li {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.34rem 0.58rem;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 800;
}

.property-modern-card .featured-thumb-data > .p-4:last-child,
.property-modern-card .featured-thumb-data > .p-4.d-inline-block,
.property-modern-card .featured-thumb-data > .px-4.pb-4 {
  margin-top: auto;
  border-top: 1px solid rgba(226, 232, 240, 0.78);
}

.property-modern-sidebar-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}

.property-modern-sidebar-list > li,
.property_list_widget > li {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.property_list_widget > li .sidebar-property-thumb,
.property-modern-sidebar-list > li img {
  width: 80px !important;
  height: 62px !important;
  border-radius: 14px;
  object-fit: cover;
  background: #eef2f7;
}

.property_list_widget > li h6 {
  margin: 0 0 0.25rem;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.28;
}

.property_list_widget > li h6 a {
  color: var(--ise-ink);
  text-decoration: none;
}

.property_list_widget > li h6 a:hover {
  color: var(--ise-primary-dark);
}

.property_list_widget > li .font-14 {
  color: var(--ise-muted);
  font-size: 0.82rem !important;
}

@media (max-width: 767px) {
  .property-modern-card__media {
    aspect-ratio: 4 / 3;
  }

  .property-modern-card .featured,
  .property-modern-card .featuredb,
  .property-modern-card__status,
  .property-modern-card .sale {
    font-size: 0.74rem;
  }

  .property-modern-card .featuredc {
    left: -45%;
    width: 190%;
    font-size: 0.78rem;
    line-height: 1.9rem;
  }

  .property-modern-card__price,
  .property-modern-card .box.price {
    font-size: 1rem;
  }
}

/* ==========================================================
   Fase 7 — Detalle de propiedad moderno
========================================================== */
.property-detail-shell {
  align-items: flex-start;
  margin-inline: 0;
  padding: clamp(1rem, 2.2vw, 1.5rem);
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
}

.property-detail-main.btn.disabled {
  pointer-events: none;
  opacity: 1;
}

.property-detail-gallery,
#single-property.property-detail-gallery {
  overflow: hidden;
  max-width: 100%;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 28px;
  background: #0f172a;
  box-shadow: 0 22px 58px rgba(15, 23, 42, 0.14);
}

.property-detail-gallery .ls-slide,
.property-detail-gallery .ls-bg-wrap,
.property-detail-gallery .ls-bg {
  border-radius: 28px;
}

.property-detail-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-detail-summary,
.property-detail-content-card,
.property-detail-side-card {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
}

.property-detail-summary {
  margin-inline: 0;
  padding: clamp(1rem, 2vw, 1.4rem);
}

.property-detail-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.property-reference-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0.48rem 0.78rem;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 999px;
  background: var(--ise-primary-soft);
  color: var(--ise-muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.property-reference-pill span {
  color: var(--ise-primary-dark);
  font-weight: 950;
}

.property-detail-title {
  color: var(--ise-ink);
  font-weight: 950;
  letter-spacing: -0.02em;
}

.property-detail-location-card {
  display: grid;
  gap: 0.55rem;
  max-width: 100%;
}

.property-detail-location-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ise-muted);
  font-weight: 700;
}

.property-detail-location-item i {
  display: inline-grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  border-radius: 999px;
  background: var(--ise-primary-soft);
  color: var(--ise-primary);
  font-size: 0.78rem;
}

.property-detail-price-card {
  height: 100%;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.35rem;
  padding: clamp(1rem, 2vw, 1.25rem);
  border-radius: 22px;
  background: linear-gradient(135deg, #f8fafc, #ecfdf5);
}

.property-detail-price-label {
  color: var(--ise-muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.property-detail-price-card strong {
  color: var(--ise-primary-dark);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 950;
  line-height: 1;
}

.property-detail-content-card,
.property-detail-side-card {
  padding: clamp(1rem, 2vw, 1.35rem);
}

.property-detail-richtext {
  margin-top: 1rem;
  color: #334155;
  font-size: 1rem;
  line-height: 1.75;
}

.property-detail-richtext :last-child {
  margin-bottom: 0;
}

.property-detail-feature-list {
  gap: 0.5rem 0;
}

.property-detail-feature-list ul,
.property-detail-feature-list ol {
  margin-bottom: 0;
}

.property-detail-feature-list li,
.property-detail-feature-list .text-success,
.property-detail-feature-list span {
  color: #334155 !important;
}

.property-detail-feature-list li,
.property-detail-feature-list .col-md-4,
.property-detail-feature-list .col-md-6,
.property-detail-feature-list .col-lg-4,
.property-detail-feature-list .col-lg-6 {
  margin-bottom: 0.65rem;
}

.property-detail-feature-list li {
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 999px;
  background: #f8fafc;
  font-weight: 750;
}

.property-detail-accordion .accordion-item {
  overflow: hidden;
  border-color: rgba(226, 232, 240, 0.95);
  border-radius: 18px !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.property-detail-accordion .accordion-item + .accordion-item {
  margin-top: 0.7rem;
}

.property-floorplan-button.accordion-button {
  color: var(--ise-ink);
  background: #f8fafc;
  font-weight: 900;
}

.property-floorplan-button.accordion-button:not(.collapsed) {
  color: var(--ise-primary-dark);
  background: var(--ise-primary-soft);
  box-shadow: none;
}

.property-detail-floorplans img {
  display: block;
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  background: #eef2f7;
}

.property-agent-card .agent-contact {
  padding-top: 0 !important;
}

.property-agent-card__image {
  width: 100%;
  max-width: 170px;
  height: 200px;
  border-radius: 22px;
  object-fit: cover;
  background: #eef2f7;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.property-agent-card__data h6 {
  font-size: 1.15rem;
  font-weight: 950;
}

.property-agent-card__data ul {
  display: grid;
  gap: 0.45rem;
  padding-left: 0;
  list-style: none;
}

.property-agent-card__data li {
  color: var(--ise-muted);
  font-weight: 700;
}

.property-agent-card__data a {
  color: var(--ise-ink);
  text-decoration: none;
}

.property-agent-card__data a:hover {
  color: var(--ise-primary-dark);
}

.property-agent-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.property-agent-social__link {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ise-primary-dark);
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
}

.property-agent-social__link:hover {
  background: var(--ise-primary);
  color: #ffffff !important;
}

.property-detail-sidebar {
  display: grid;
  gap: 0;
}

.property-detail-side-card h4,
.property-detail-side-card h5 {
  color: var(--ise-ink) !important;
  font-weight: 950;
}

.property-mortgage-card .input-group-text {
  min-width: 3rem;
  justify-content: center;
  border-color: var(--ise-border);
  background: var(--ise-primary-soft);
  color: var(--ise-primary-dark);
  font-weight: 900;
}

.property-mortgage-result table {
  overflow: hidden;
  border-radius: 16px;
}

.property-mortgage-result thead tr,
.property-mortgage-result .bg-secondary {
  background: var(--ise-primary-dark) !important;
}

.property-contact-card .form-group {
  margin-bottom: 0;
}

.property-contact-feedback:empty {
  display: none;
}

.property-captcha-label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--ise-muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.property-captcha-row {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.property-captcha-row .captcha-image {
  min-height: 48px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  background: #f8fafc;
}

.property-captcha-refresh {
  display: inline-grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: 999px;
  background: var(--ise-primary-soft);
  color: var(--ise-primary-dark);
  cursor: pointer;
}

.property-captcha-refresh:hover {
  background: var(--ise-primary);
  color: #ffffff;
}

.property-print-button {
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.16);
}

@media (min-width: 768px) {
  .property-detail-price-card.text-md-end {
    align-items: flex-end;
    text-align: right;
  }
}

@media (max-width: 1199px) {
  .property-detail-gallery,
  #single-property.property-detail-gallery {
    height: 560px !important;
  }
}

@media (max-width: 767px) {
  .property-detail-shell {
    padding: 0.8rem;
    border-radius: 20px;
  }

  .property-detail-gallery,
  #single-property.property-detail-gallery {
    height: 420px !important;
    border-radius: 20px;
  }

  .property-detail-gallery .ls-slide,
  .property-detail-gallery .ls-bg-wrap,
  .property-detail-gallery .ls-bg {
    border-radius: 20px;
  }

  .property-detail-badge-row,
  .property-captcha-row {
    align-items: stretch;
    flex-direction: column;
  }

  .property-reference-pill,
  .property-operation-badge,
  .property-captcha-refresh {
    justify-content: center;
    width: 100%;
  }

  .property-agent-card__image {
    max-width: 100%;
    height: 240px;
    margin-bottom: 1rem;
  }
}


/* ==========================================================
   Fase 8 — Páginas corporativas y formularios públicos
========================================================== */
.frontend-content-section {
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.frontend-page-card,
.frontend-form-card,
.frontend-contact-card,
.frontend-calc-card,
.frontend-agent-card {
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}

.frontend-page-card {
  padding: clamp(1.15rem, 3vw, 2rem);
}

.frontend-page-card h1,
.frontend-page-card h2,
.frontend-page-card h3,
.frontend-form-card h2,
.frontend-contact-card h3 {
  color: var(--ise-ink) !important;
  letter-spacing: -0.02em;
}

.frontend-rich-content {
  color: #334155;
  font-size: 1rem;
  line-height: 1.78;
}

.frontend-rich-content img,
.frontend-image-card img,
.about-img img,
.frontend-agent-card img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
}

.frontend-image-card {
  overflow: hidden;
  border-radius: 26px;
}

.frontend-contact-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.frontend-contact-info {
  height: 100%;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: 28px;
  background: linear-gradient(145deg, #0f766e 0%, #115e59 100%) !important;
  box-shadow: 0 24px 54px rgba(15, 118, 110, 0.22);
}

.frontend-contact-info ul {
  padding-left: 0;
  list-style: none;
}

.frontend-contact-info a,
.frontend-contact-info span {
  color: rgba(255, 255, 255, 0.9) !important;
}

.frontend-contact-info h5,
.frontend-contact-info h3 {
  color: #ffffff !important;
}

.frontend-form-card {
  padding: clamp(1.2rem, 2.6vw, 2rem);
}

.frontend-form-card .form-control,
.frontend-form-card textarea,
.frontend-form-card select {
  min-height: 48px;
  border-radius: 16px;
  background: #f8fafc;
}

.frontend-form-card textarea.form-control {
  min-height: 145px;
}

.frontend-captcha-box {
  padding: 1rem;
  border: 1px dashed rgba(15, 118, 110, 0.32);
  border-radius: 20px;
  background: #f0fdfa;
}

.frontend-captcha-box .captcha-image {
  max-width: 260px;
  min-height: 52px;
  border: 1px solid rgba(226, 232, 240, 0.94);
  border-radius: 14px;
  background: #ffffff;
}

.frontend-captcha-box .refresh-captcha {
  display: inline-grid;
  width: 2.6rem;
  height: 2.6rem;
  margin-left: 0.6rem;
  place-items: center;
  border-radius: 999px;
  background: #d1fae5;
  color: #047857;
  cursor: pointer;
}

.frontend-map-frame {
  display: block;
  min-height: 360px;
  border: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.frontend-faq-shell,
.frontend-legal-shell {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.frontend-faq-accordion .accordion-item {
  overflow: hidden;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 18px !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.frontend-faq-accordion .accordion-button {
  font-weight: 900;
  color: var(--ise-ink);
}

.frontend-faq-accordion .accordion-button:not(.collapsed) {
  background: #ecfdf5;
  color: #047857;
  box-shadow: none;
}

.frontend-finance-content {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.frontend-calc-card {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(1rem, 2.4vw, 1.5rem);
  overflow: hidden;
}

.frontend-calc-table {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-collapse: separate !important;
  border-spacing: 0;
  border-radius: 20px;
}

.frontend-calc-table thead tr {
  background: linear-gradient(135deg, #0f766e, #115e59) !important;
}

.frontend-calc-table th,
.frontend-calc-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
}

.frontend-calc-table tbody tr:last-child td {
  border-bottom: 0;
}

.frontend-calc-table tbody tr:last-child {
  color: #047857;
  font-size: 1.08rem;
}

.frontend-agent-grid {
  row-gap: 1.5rem;
}

.frontend-agent-card {
  height: 100%;
  overflow: hidden;
  text-align: center;
  transition: transform var(--ise-transition), box-shadow var(--ise-transition);
}

.frontend-agent-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 68px rgba(15, 23, 42, 0.12);
}

.frontend-agent-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f1f5f9;
}

.frontend-agent-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.frontend-agent-card__body {
  padding: 1.15rem;
}

.frontend-agent-card__body a {
  color: var(--ise-primary-dark);
  font-weight: 800;
  text-decoration: none;
}

@media (min-width: 992px) {
  .property-modern-card__body h5,
  .property-modern-card .featured-thumb-data h5 {
    font-size: 1.22rem;
  }
}

@media (max-width: 767px) {
  .frontend-page-card,
  .frontend-form-card,
  .frontend-contact-card,
  .frontend-calc-card,
  .frontend-agent-card {
    border-radius: 20px;
  }

  .frontend-contact-info {
    border-radius: 22px;
  }
}

/* ==========================================================
   Fase 13 — Limpieza CSS y galería moderna de detalle
   - Sustituye la dependencia visual de LayerSlider en propertydetail.php.
   - Mantiene una estructura parecida: imagen grande, transición y miniaturas abajo.
========================================================== */
.property-gallery-modern {
  display: block;
  margin: 0 auto 2rem;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 28px;
  background: linear-gradient(135deg, #0f172a, #111827);
  box-shadow: 0 22px 58px rgba(15, 23, 42, 0.14);
}

.property-gallery-modern__viewport {
  position: relative;
  min-height: clamp(360px, 54vw, 700px);
  overflow: hidden;
  background: #0f172a;
}

.property-gallery-modern__slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  opacity: 0;
  transform: scale(1.018);
  transition: opacity 760ms ease, transform 1200ms ease;
  pointer-events: none;
}

.property-gallery-modern__slide.is-active {
  z-index: 2;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.property-gallery-modern__slide img,
.property-gallery-modern .property-detail-main-image {
  width: 100%;
  height: 100%;
  min-height: clamp(360px, 54vw, 700px);
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  background: #0f172a;
}

.property-gallery-modern__nav,
.property-gallery-modern__pause {
  position: absolute;
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.92);
  color: #14532d;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.22);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.property-gallery-modern__nav {
  top: 50%;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  transform: translateY(-50%);
}

.property-gallery-modern__nav--prev {
  left: 1rem;
}

.property-gallery-modern__nav--next {
  right: 1rem;
}

.property-gallery-modern__pause {
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.property-gallery-modern__nav:hover,
.property-gallery-modern__pause:hover,
.property-gallery-modern__nav:focus-visible,
.property-gallery-modern__pause:focus-visible {
  background: #dcfce7;
  color: #166534;
  transform: translateY(-50%) scale(1.04);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.28);
}

.property-gallery-modern__pause:hover,
.property-gallery-modern__pause:focus-visible {
  transform: scale(1.03);
}

.property-gallery-modern,
.property-gallery-modern__viewport,
.property-gallery-modern__nav,
.property-gallery-modern__pause {
  overscroll-behavior: contain;
}

.property-gallery-modern__nav {
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.property-gallery-modern__thumbs {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.96);
  scrollbar-width: thin;
}

.property-gallery-modern__thumb {
  flex: 0 0 96px;
  width: 96px;
  height: 70px;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 16px;
  background: #ffffff;
  opacity: 0.74;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
  transition: transform 180ms ease, opacity 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}


.property-gallery-modern__nav,
.property-gallery-modern__pause,
.property-gallery-modern__thumb {
  cursor: pointer;
  touch-action: manipulation;
}

.property-gallery-modern__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.property-gallery-modern__thumb.is-active,
.property-gallery-modern__thumb:hover,
.property-gallery-modern__thumb:focus-visible {
  opacity: 1;
  transform: translateY(-2px);
  border-color: #86efac;
  box-shadow: 0 12px 28px rgba(22, 101, 52, 0.22);
}

/* Mantiene compatibilidad con estilos anteriores de detalle, pero evita reglas LayerSlider sobre la galería nueva. */
.property-detail-gallery.property-gallery-modern .ls-slide,
.property-detail-gallery.property-gallery-modern .ls-bg-wrap,
.property-detail-gallery.property-gallery-modern .ls-bg {
  border-radius: 0;
}

@media (max-width: 1199px) {
  .property-gallery-modern__viewport,
  .property-gallery-modern__slide img,
  .property-gallery-modern .property-detail-main-image {
    min-height: 560px;
  }
}

@media (max-width: 767px) {
  .property-gallery-modern {
    border-radius: 20px;
  }

  .property-gallery-modern__viewport,
  .property-gallery-modern__slide img,
  .property-gallery-modern .property-detail-main-image {
    min-height: 420px;
  }

  .property-gallery-modern__nav {
    width: 40px;
    height: 40px;
  }

  .property-gallery-modern__pause {
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.48rem 0.72rem;
  }

  .property-gallery-modern__thumb {
    flex-basis: 82px;
    width: 82px;
    height: 62px;
    border-radius: 13px;
  }
}

/* ==========================================================
   Fase 16 — Pulido profesional de paginas corporativas y antispam
========================================================== */
.frontend-modern-page-shell {
  position: relative;
}

.frontend-section-heading {
  max-width: 880px;
  margin: 0 auto clamp(1.25rem, 3vw, 2.25rem);
  text-align: left;
}

.frontend-section-heading--center {
  text-align: center;
}

.frontend-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
  padding: 0.42rem 0.82rem;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.frontend-section-heading h2 {
  margin-bottom: 0.65rem;
  color: var(--ise-ink);
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  font-weight: 900;
  letter-spacing: -0.045em;
}

.frontend-section-heading p {
  margin: 0;
  color: var(--ise-muted);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.7;
}

.frontend-modern-corporate-page,
.frontend-modern-finance-page,
.frontend-contact-section--modern {
  overflow: hidden;
}

.frontend-modern-corporate-page::before,
.frontend-modern-finance-page::before,
.frontend-contact-section--modern::before {
  content: "";
  position: absolute;
  top: 4rem;
  right: -8rem;
  width: 22rem;
  height: 22rem;
  pointer-events: none;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.13), transparent 68%);
}

.frontend-modern-info-card {
  position: relative;
  overflow: hidden;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.frontend-modern-info-card::after {
  content: "";
  position: absolute;
  inset: auto 1.15rem 1.15rem auto;
  width: 7rem;
  height: 7rem;
  pointer-events: none;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(245, 158, 11, 0.08));
}

.frontend-finance-card {
  border-color: rgba(16, 185, 129, 0.22) !important;
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.82), rgba(255, 255, 255, 0.96) 42%),
    #ffffff !important;
}

.frontend-legal-modern,
.frontend-faq-modern {
  max-width: 1120px;
}

.frontend-legal-card,
.frontend-faq-card {
  position: relative;
  overflow: hidden;
}

.frontend-legal-card::before,
.frontend-faq-card::before,
.frontend-contact-form-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, #10b981, #22c55e, #f59e0b);
}

.frontend-legal-card h1,
.frontend-faq-card h1 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.frontend-faq-accordion .accordion-body {
  color: #334155;
  font-size: 1rem;
  line-height: 1.75;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.frontend-contact-info--modern {
  position: sticky;
  top: 1.5rem;
  overflow: hidden;
}

.frontend-contact-info--modern::after {
  content: "";
  position: absolute;
  right: -4rem;
  bottom: -4rem;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.11);
}

.frontend-contact-form-card {
  position: relative;
  overflow: hidden;
}

.frontend-contact-form-card .btn-success {
  min-height: 48px;
  padding-inline: 2rem;
  font-size: 1rem;
}

.frontend-captcha-label {
  display: block;
  margin-bottom: 0.65rem;
  color: #115e59;
  font-weight: 900;
}

.app-antispam-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 991.98px) {
  .frontend-contact-info--modern {
    position: static;
  }
}

/* ==========================================================
   Fix 1 — Cards de propiedades con mayor presencia en desktop
   - Recupera una percepción visual más cercana a la versión antigua.
   - Mantiene la misma estructura Bootstrap col-md-6 col-lg-4.
   - Aumenta la altura útil de imagen, títulos, precio y metadatos.
========================================================== */
@media (min-width: 992px) {
  .property-modern-card {
    border-radius: 26px;
  }

  .property-modern-card__media {
    aspect-ratio: 4 / 3;
    min-height: 285px;
    border-radius: 26px 26px 0 0;
  }

  .property-modern-card__body,
  .property-modern-card .featured-thumb-data {
    border-radius: 0 0 26px 26px;
  }

  .property-modern-card .featured-thumb-data > .p-4:first-child,
  .property-modern-card__body > .p-4:first-child {
    padding-top: 1.35rem !important;
    padding-right: 1.35rem !important;
    padding-left: 1.35rem !important;
  }

  .property-modern-card__body h5,
  .property-modern-card .featured-thumb-data h5 {
    font-size: clamp(1.26rem, 1.22vw, 1.44rem);
    line-height: 1.3;
  }

  .property-modern-card .location,
  .property-modern-card .featured-thumb-data .text-capitalize {
    font-size: 0.96rem;
  }

  .property-modern-card__status,
  .property-modern-card .sale {
    padding: 0.62rem 1.02rem;
    font-size: clamp(0.9rem, 0.95vw, 1rem);
  }

  .property-modern-card__price,
  .property-modern-card .box.price {
    padding: 0.86rem 1.25rem;
    font-size: clamp(1.38rem, 1.65vw, 1.9rem);
  }

  .property-modern-card__features,
  .property-modern-card .quantity {
    margin: 0.9rem 1.15rem 0;
  }

  .property-modern-card__features li,
  .property-modern-card .quantity li {
    min-height: 2.18rem;
    padding: 0.4rem 0.66rem;
    font-size: 0.88rem;
  }

  .property-modern-sidebar-list > li,
  .property_list_widget > li {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 0.85rem;
    padding: 0.7rem;
  }

  .property_list_widget > li .sidebar-property-thumb,
  .property-modern-sidebar-list > li img {
    width: 104px !important;
    height: 82px !important;
    border-radius: 16px;
  }

  .property_list_widget > li h6 {
    font-size: 1rem;
  }
}

@media (min-width: 1400px) {
  .property-modern-card__media {
    min-height: 315px;
  }

  .property-modern-card__body h5,
  .property-modern-card .featured-thumb-data h5 {
    font-size: 1.42rem;
  }
}

/* ==========================================================
   Fix 2 — Contraste en contacto y tarjetas de ciudades completas
   - Evita que los textos de /contacto se camuflen sobre fondos oscuros.
   - Sustituye el margen negativo de las cards de ciudades por tarjetas limpias.
   - Mantiene el formulario POST original y los mismos valores de ciudad.
========================================================== */
.page-banner .frontend-section-heading {
  max-width: 920px;
  padding: clamp(1rem, 2.6vw, 1.65rem);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.76), rgba(15, 118, 110, 0.58));
  box-shadow: 0 22px 62px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(10px);
}

.page-banner .frontend-section-heading h2,
.page-banner .frontend-section-heading p {
  color: #ffffff !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.32);
}

.page-banner .frontend-section-heading p {
  color: rgba(255, 255, 255, 0.92) !important;
}

.page-banner .frontend-section-heading .frontend-section-kicker {
  border-color: rgba(187, 247, 208, 0.44);
  background: rgba(236, 253, 245, 0.16);
  color: #bbf7d0;
}

.frontend-contact-section--modern > .container > .frontend-section-heading {
  padding: clamp(1rem, 2vw, 1.45rem);
  border: 1px solid rgba(16, 185, 129, 0.16);
  border-radius: 26px;
  background: linear-gradient(135deg, #ffffff, #f0fdf4);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.07);
}

.frontend-contact-section--modern > .container > .frontend-section-heading h2 {
  color: #0f172a !important;
}

.frontend-contact-section--modern > .container > .frontend-section-heading p {
  color: #334155 !important;
}

.home-city-section {
  position: relative;
}

.home-city-grid {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

.home-city-card {
  min-height: 360px;
  border-radius: 26px;
  background: #0f172a;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.16);
  isolation: isolate;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.home-city-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.58) 74%, rgba(15, 23, 42, 0.72) 100%);
  pointer-events: none;
}

.home-city-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 62px rgba(15, 23, 42, 0.22);
}

.home-city-card__image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-height: 360px;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  transition: transform 420ms ease;
}

.home-city-card:hover .home-city-card__image {
  transform: scale(1.055);
}

.home-city-card__content {
  top: auto !important;
  bottom: 0;
  left: 0;
  transform: none !important;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: stretch;
  justify-content: flex-end;
  min-height: 56%;
  padding: 1rem;
}

.home-city-card__content .h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.home-city-card__button {
  min-height: 44px;
  white-space: normal;
  border: 1px solid rgba(255, 255, 255, 0.74) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  color: #0f766e !important;
  font-weight: 900;
  line-height: 1.18;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.home-city-card__button:hover,
.home-city-card__button:focus-visible {
  background: #dcfce7 !important;
  color: #14532d !important;
}

.home-city-card__count {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  padding: 0.52rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.48);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.32);
}

@media (min-width: 1200px) {
  .home-city-grid {
    --bs-gutter-x: 1.1rem;
  }

  .home-city-card,
  .home-city-card__image {
    min-height: 385px;
  }

  .home-city-card__content {
    padding: 1.05rem 0.82rem;
  }

  .home-city-card__button {
    font-size: 0.9rem;
  }

  .home-city-card__count {
    font-size: 0.82rem;
  }
}

@media (min-width: 1400px) {
  .home-city-card,
  .home-city-card__image {
    min-height: 405px;
  }

  .home-city-card__button {
    font-size: 0.96rem;
  }
}

@media (max-width: 991.98px) {
  .home-city-card,
  .home-city-card__image {
    min-height: 330px;
  }
}

@media (max-width: 575.98px) {
  .home-city-card,
  .home-city-card__image {
    min-height: 300px;
  }
}


/* Fix 3: contador de viviendas disponible con datos reales por operación. */
.home-fact-section {
  position: relative;
}

.home-fact-section::before {
  opacity: 0.82;
}

.home-fact-counter {
  position: relative;
  z-index: 2;
}

.home-fact-card {
  height: 100%;
  min-height: 188px;
  padding: clamp(1rem, 2vw, 1.35rem) 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(12px);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.home-fact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.28);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}

.home-fact-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #047857;
  font-size: 1.45rem;
  box-shadow: inset 0 0 0 1px rgba(4, 120, 87, 0.08);
}

.home-fact-card__number,
.fact-counter .home-fact-card__number {
  display: block;
  margin-bottom: 0.55rem !important;
  color: #047857 !important;
  font-size: clamp(2rem, 3.4vw, 3.15rem);
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.home-fact-card__label {
  color: #0f172a;
  font-size: 0.93rem;
  font-weight: 850;
  line-height: 1.25;
  text-transform: none;
}

@media (min-width: 1200px) {
  .home-fact-card {
    min-height: 205px;
  }

  .home-fact-card__label {
    font-size: 0.98rem;
  }
}

@media (max-width: 575.98px) {
  .home-fact-card {
    min-height: 165px;
  }

  .home-fact-card__number,
  .fact-counter .home-fact-card__number {
    font-size: 2.1rem;
  }
}

/* Fix 4: reparación visual del contador de inicio.
   Se refuerza contraste, se recuperan iconos visibles y se evita que reglas globales
   del tema antiguo camuflen texto/números sobre el fondo oscuro. */
.home-fact-section .home-fact-counter {
  color: #0f172a !important;
}

.home-fact-section .home-fact-counter .row {
  row-gap: 1.25rem;
}

.home-fact-section .home-fact-card,
.home-fact-section .fact-counter .home-fact-card,
.home-fact-section .count.home-fact-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  height: 100%;
  min-height: 210px;
  padding: clamp(1.15rem, 2vw, 1.55rem) 1rem !important;
  border: 1px solid rgba(20, 184, 166, 0.20) !important;
  border-radius: 1.35rem !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 253, 244, 0.96)) !important;
  color: #0f172a !important;
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.26) !important;
  backdrop-filter: blur(14px);
}

.home-fact-section .home-fact-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, #86efac, #22c55e, #14b8a6);
  z-index: -1;
}

.home-fact-section .home-fact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 197, 94, 0.36) !important;
  box-shadow: 0 32px 76px rgba(15, 23, 42, 0.34) !important;
}

.home-fact-section .home-fact-card__icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 3.45rem;
  height: 3.45rem;
  margin-bottom: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 1.15rem;
  background: linear-gradient(135deg, #22c55e, #059669) !important;
  color: #ffffff !important;
  font-size: 1.42rem;
  box-shadow: 0 16px 34px rgba(5, 150, 105, 0.30);
}

.home-fact-section .home-fact-card__icon i,
.home-fact-section .home-fact-card__icon .fa,
.home-fact-section .home-fact-card__icon .fas {
  display: inline-block !important;
  color: #ffffff !important;
  font-size: 1em !important;
  line-height: 1 !important;
}

.home-fact-section .home-fact-card__number,
.home-fact-section .fact-counter .home-fact-card__number,
.home-fact-section .fact-counter .count-num.home-fact-card__number {
  display: block !important;
  margin-top: 0.75rem !important;
  margin-bottom: 0.6rem !important;
  color: #047857 !important;
  font-size: clamp(2.35rem, 3.9vw, 3.65rem) !important;
  font-weight: 950 !important;
  line-height: 0.95 !important;
  letter-spacing: -0.055em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.80);
}

.home-fact-section .home-fact-card__label {
  display: block !important;
  color: #164e3b !important;
  font-size: 0.98rem !important;
  font-weight: 850 !important;
  line-height: 1.25;
  text-transform: none;
}

@media (min-width: 1200px) {
  .home-fact-section .home-fact-card,
  .home-fact-section .fact-counter .home-fact-card,
  .home-fact-section .count.home-fact-card {
    min-height: 224px;
  }
}

@media (max-width: 575.98px) {
  .home-fact-section .home-fact-card,
  .home-fact-section .fact-counter .home-fact-card,
  .home-fact-section .count.home-fact-card {
    min-height: 178px;
  }

  .home-fact-section .home-fact-card__icon {
    width: 3rem;
    height: 3rem;
  }

  .home-fact-section .home-fact-card__number,
  .home-fact-section .fact-counter .home-fact-card__number,
  .home-fact-section .fact-counter .count-num.home-fact-card__number {
    font-size: 2.35rem !important;
  }
}


/* Fix 5: los contadores de inicio son enlaces reales al listado filtrado. */
.home-fact-section .home-fact-card--link {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  text-decoration: none !important;
  cursor: pointer;
}

.home-fact-section .home-fact-card--link:focus-visible {
  outline: 3px solid rgba(34, 197, 94, 0.45);
  outline-offset: 4px;
}

.home-fact-section .home-fact-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.85rem;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #047857 !important;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.home-fact-section .home-fact-card--link:hover .home-fact-card__cta,
.home-fact-section .home-fact-card--link:focus-visible .home-fact-card__cta {
  background: #059669;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.home-fact-section .home-fact-card--link:hover .home-fact-card__label,
.home-fact-section .home-fact-card--link:focus-visible .home-fact-card__label {
  color: #065f46 !important;
}
