/* CRM Inmobiliario — marketing en el sitio público */
.crmk-drop {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: #dc2626;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: .02em;
    white-space: nowrap;
}
.blii .crmk-drop { position: absolute; top: 48px; right: 10px; z-index: 3; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.crmk-price-drop { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; font-size: 16px; vertical-align: middle; }
.crmk-price-drop del { color: #8a949e; font-weight: 400; }

/* Botón comparar en tarjetas (junto al corazón) */
.crmk-compare-btn {
    float: right;
    width: 30px;
    height: 30px;
    margin: 0 4px 0 0;
    padding: 0;
    border: 1px solid #d6dce1;
    border-radius: 50%;
    background: #fff;
    color: #66727f;
    font-size: 13px;
    cursor: pointer;
    line-height: 28px;
}
.crmk-compare-btn:hover { border-color: var(--primary-color, #1d5f6f); color: var(--primary-color, #1d5f6f); }
.crmk-compare-btn.is-on { background: var(--primary-color, #1d5f6f); border-color: var(--primary-color, #1d5f6f); color: #fff; }

/* Acciones en la ficha */
.crmk-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.crmk-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid #d6dce1;
    border-radius: 999px;
    background: #fff;
    color: #1f2933 !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
}
.crmk-action:hover { border-color: var(--primary-color, #1d5f6f); color: var(--primary-color, #1d5f6f) !important; }
.crmk-action.is-on { background: var(--primary-color, #1d5f6f); border-color: var(--primary-color, #1d5f6f); color: #fff !important; }
.crmk-action:focus-visible, .crmk-compare-btn:focus-visible { outline: 3px solid rgba(29, 95, 111, .35); outline-offset: 2px; }

/* Barra flotante del comparador */
.crmk-bar[hidden] { display: none; }
.crmk-bar {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 1000000; /* por encima del aviso de cookies */
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 8px 18px;
    border-radius: 999px;
    background: #1f2933;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
    transform: translateX(-50%);
    font-size: 15px;
}
.crmk-bar__go { padding: 7px 16px; border-radius: 999px; background: var(--primary-color, #1d5f6f); color: #fff !important; font-weight: 700; text-decoration: none !important; }
.crmk-bar__clear { width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.crmk-toast { position: fixed; left: 50%; bottom: 80px; z-index: 1000; padding: 10px 16px; border-radius: 8px; background: #1f2933; color: #fff; transform: translateX(-50%); }

/* Página comparar */
.crmk-page { padding-bottom: 40px; }
.crmk-empty { padding: 30px 0; color: #66727f; }
.crmk-compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 10px 0 20px; }
.crmk-compare { width: 100%; min-width: 640px; border-collapse: collapse; table-layout: fixed; }
.crmk-compare th, .crmk-compare td { padding: 10px 12px; border-bottom: 1px solid #e3e7eb; text-align: left; vertical-align: top; font-size: 14px; }
.crmk-compare tbody th { width: 180px; color: #66727f; font-weight: 600; background: #fafbfc; }
.crmk-compare thead th { border-bottom: 2px solid #e3e7eb; }
.crmk-compare__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; margin-bottom: 8px; background: #eef1f4; }
.crmk-compare__img img { width: 100%; height: 100%; object-fit: cover; }
.crmk-compare__name { display: block; color: #1f2933; font-weight: 700; font-size: 15px; line-height: 1.3; }
.crmk-compare__remove { margin-top: 6px; padding: 0; border: 0; background: none; color: #dc2626; font-size: 13px; cursor: pointer; }
.crmk-compare td.is-best { background: #ecfdf3; }
.crmk-compare td.is-best strong, .crmk-compare td.is-best { color: #166534; }
.crmk-compare .fa-check { color: #16a34a; }
.crmk-compare__feature td { text-align: center; }
.crmk-compare__feature td span { color: #b0b8c0; }

/* Páginas por sector */
.crmk-sector__title { margin-bottom: 6px; }
.crmk-sector__intro { color: #66727f; max-width: 760px; }
.crmk-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 18px; }
.crmk-stats div { flex: 1 1 150px; padding: 12px 14px; border: 1px solid #e3e7eb; border-radius: 10px; background: #fafbfc; }
.crmk-stats span { display: block; font-size: 12px; color: #66727f; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.crmk-stats strong { display: block; font-size: 20px; color: #1f2933; font-variant-numeric: tabular-nums; }
.crmk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.crmk-chips a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid #d6dce1; border-radius: 999px; color: #1f2933; font-size: 14px; text-decoration: none; }
.crmk-chips a:hover, .crmk-chips a.is-active { border-color: var(--primary-color, #1d5f6f); color: var(--primary-color, #1d5f6f); }
.crmk-chips a.is-active { background: var(--primary-color, #1d5f6f); color: #fff; }
.crmk-chips span { font-size: 12px; color: inherit; opacity: .7; }
.crmk-pagination { margin: 10px 0 20px; }
.crmk-sector__more { margin: 10px 0 30px; }
.crmk-related { margin-top: 26px; }
.crmk-related h2 { font-size: 20px; margin: 0 0 12px; }
.crmk-related h2 a { color: #1f2933; }
.crmk-sector-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.crmk-sector-card { padding: 14px 16px; border: 1px solid #e3e7eb; border-radius: 10px; }
.crmk-sector-card__title { display: flex; justify-content: space-between; font-weight: 700; font-size: 16px; color: #1f2933; margin-bottom: 6px; }
.crmk-sector-card ul { list-style: none; margin: 0; padding: 0; }
.crmk-sector-card li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; font-size: 14px; }
.crmk-sector-card span { color: #66727f; }

@media (max-width: 575px) {
    .crmk-bar { left: 12px; right: 12px; transform: none; justify-content: space-between; bottom: 84px; }
    .crmk-compare tbody th { width: 120px; }
}
