/**
 * Estilos Modernos Centraliza para Resultados y Destacados de Inmuebles
 * Compatible con shortcodes [solo-resultado], [destacados], [destacados_al], [formulario-resultados]
 * y Widgets Nativos de Elementor y Centraliza Builder.
 * 100% Controlable mediante Variables CSS Scoped (--cz-*).
 */

:root,
.cz-results-wrapper {
    --cz-cols: 3;
    --cz-gap: 28px;
    --cz-accent: #2563eb;
    --cz-price: #ECA023;
    --cz-badge-bg: #ECA023;
    --cz-badge-text: #ffffff;
    --cz-title-color: #0f172a;
    --cz-text-color: #64748b;
    --cz-meta-color: #475569;
    --cz-card-bg: #ffffff;
    --cz-card-border: #e2e8f0;
    --cz-border-radius: 14px;
    --cz-sort-bar-bg: #f8fafc;
    --cz-sort-bar-text: #1e293b;
}

.cz-results-wrapper {
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    width: 100%;
    box-sizing: border-box;
}

.cz-results-wrapper * {
    box-sizing: border-box;
}

/* ── Barra Superior de Conteo y Ordenación ── */
.cz-results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 22px;
    background: var(--cz-sort-bar-bg, #f8fafc);
    border: 1px solid var(--cz-card-border, #e2e8f0);
    border-radius: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.cz-count-text {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--cz-sort-bar-text, #1e293b);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cz-count-text span {
    color: var(--cz-accent, #2563eb);
    background: rgba(37, 99, 235, 0.08);
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 800;
}

.cz-sort-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cz-sort-wrap label {
    font-size: 0.88rem;
    color: var(--cz-text-color, #64748b);
    font-weight: 600;
}

.cz-sort-select {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--cz-card-border, #cbd5e1);
    font-size: 0.88rem;
    background-color: var(--cz-card-bg, #ffffff);
    color: var(--cz-sort-bar-text, #1e293b);
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.cz-sort-select:focus {
    border-color: var(--cz-accent, #2563eb);
}

/* ── Rejilla de Inmuebles ── */
.cz-results-grid {
    display: grid !important;
    grid-template-columns: repeat(var(--cz-cols, 3), minmax(0, 1fr)) !important;
    gap: var(--cz-gap, 28px) !important;
    margin-bottom: 40px !important;
    width: 100% !important;
}

@media (max-width: 1024px) {
    .cz-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 20px !important;
    }
}

@media (max-width: 640px) {
    .cz-results-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }
}

/* ── Tarjeta Base ── */
.cz-feat-card,
article.cz-feat-card {
    background: var(--cz-card-bg, #ffffff);
    border-radius: var(--cz-border-radius, 14px);
    border: 1px solid var(--cz-card-border, #e2e8f0);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    display: flex;
    flex-direction: column;
    position: relative !important;
    box-sizing: border-box;
    height: 100%;
}

.cz-feat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
}

.cz-feat-img-wrap {
    position: relative;
    width: 100%;
    height: 240px;
    aspect-ratio: 16 / 10;
    background: #0f172a;
    overflow: hidden;
    display: block;
    text-decoration: none;
}

.cz-feat-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
    display: block;
}

.cz-feat-card:hover .cz-feat-img {
    transform: scale(1.06);
}

/* ── Botón de Favoritos Universal ── */
.cz-fav-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cz-text-color, #64748b);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 0;
}

.cz-fav-btn:hover {
    background: #ffffff;
    color: #ef4444;
    transform: scale(1.12);
}

.cz-fav-btn.is-active,
.cz-fav-btn.is-fav {
    background: #ef4444;
    color: #ffffff;
}

.cz-fav-btn.is-active svg,
.cz-fav-btn.is-fav svg {
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

.cz-fav-btn--pink {
    background: rgba(255, 230, 235, 0.9);
    color: #e11d48;
}

.cz-fav-btn--pink:hover {
    background: #ffffff;
    color: #be123c;
    transform: scale(1.12);
}

/* ══════════════════════════════════════════════════════════
   ── MODELO 1: CONTEMPORARY COAST ─────────────────────────
   ══════════════════════════════════════════════════════════ */
.cz-card--contemporary .cz-badge-type {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--cz-badge-bg, rgba(15, 23, 42, 0.82));
    backdrop-filter: blur(6px);
    color: var(--cz-badge-text, #ffffff);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
}

.cz-card--contemporary .cz-feat-price {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: var(--cz-price, #ECA023);
    color: var(--cz-badge-text, #0b1325);
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
    z-index: 5;
}

.cz-card--contemporary .cz-feat-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.cz-card--contemporary .cz-feat-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--cz-title-color, #0f172a);
    margin: 0 0 10px;
    line-height: 1.35;
}

.cz-card--contemporary .cz-feat-title a {
    color: var(--cz-title-color, #0f172a);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.cz-card--contemporary .cz-feat-title a:hover {
    color: var(--cz-accent, #2563eb);
}

.cz-card--contemporary .cz-card-desc {
    font-size: 0.88rem;
    color: var(--cz-text-color, #64748b);
    line-height: 1.5;
    margin: 0 0 16px;
}

.cz-card--contemporary .cz-feat-meta {
    display: flex;
    gap: 16px;
    border-top: 1px solid var(--cz-card-border, #f1f5f9);
    padding-top: 14px;
    margin: 0;
    font-size: 0.88rem;
    color: var(--cz-meta-color, #475569);
    flex-wrap: wrap;
}

.cz-card--contemporary .cz-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cz-card--contemporary .cz-meta-item svg {
    color: var(--cz-meta-color, #64748b);
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   ── MODELO 2: AGENCY PRO MLS ─────────────────────────────
   ══════════════════════════════════════════════════════════ */
.cz-card--agency-pro .cz-agency-badge-op {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--cz-badge-text, #ffffff);
    z-index: 5;
    background: var(--cz-badge-bg, #16a34a);
}

.cz-card--agency-pro .cz-agency-badge-op.is-sale {
    background: var(--cz-badge-bg, #16a34a);
}

.cz-card--agency-pro .cz-agency-badge-op.is-rental {
    background: var(--cz-accent, #2563eb);
}

.cz-card--agency-pro .cz-agency-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.cz-card--agency-pro .cz-agency-micro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.82rem;
}

.cz-card--agency-pro .cz-agency-loc-tag {
    color: var(--cz-text-color, #64748b);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cz-card--agency-pro .cz-agency-ref-chip {
    background: var(--cz-card-border, #f1f5f9);
    color: var(--cz-meta-color, #475569);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.cz-card--agency-pro .cz-agency-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--cz-title-color, #0f172a);
    margin: 0 0 14px;
    line-height: 1.4;
}

.cz-card--agency-pro .cz-agency-title a {
    color: var(--cz-title-color, #0f172a);
    text-decoration: none;
    transition: color 0.2s;
}

.cz-card--agency-pro .cz-agency-title a:hover {
    color: var(--cz-accent, #2563eb);
}

.cz-card--agency-pro .cz-agency-chips {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.cz-card--agency-pro .cz-spec-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--cz-card-bg, #f8fafc);
    border: 1px solid var(--cz-card-border, #e2e8f0);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--cz-meta-color, #334155);
}

.cz-card--agency-pro .cz-agency-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--cz-card-border, #f1f5f9);
    padding-top: 14px;
}

.cz-card--agency-pro .cz-agency-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--cz-price, #2563eb);
}

.cz-card--agency-pro .cz-agency-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--cz-accent, #2563eb);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s;
}

.cz-card--agency-pro .cz-agency-cta-btn:hover {
    opacity: 0.9;
}

/* ══════════════════════════════════════════════════════════
   ── MODELO 3: LUXURY SIGNATURE ───────────────────────────
   ══════════════════════════════════════════════════════════ */
.cz-card--luxury-overlay .cz-luxury-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 16px 14px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    z-index: 5;
}

.cz-card--luxury-overlay .cz-luxury-type {
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cz-card--luxury-overlay .cz-luxury-price {
    color: var(--cz-price, #ffffff);
    font-size: 1.2rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.cz-card--luxury-overlay .cz-luxury-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.cz-card--luxury-overlay .cz-luxury-loc-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--cz-title-color, #0f172a);
    margin: 0 0 4px;
}

.cz-card--luxury-overlay .cz-luxury-loc-title a {
    color: var(--cz-title-color, #0f172a);
    text-decoration: none;
    transition: color 0.2s;
}

.cz-card--luxury-overlay .cz-luxury-loc-title a:hover {
    color: var(--cz-accent, #2563eb);
}

.cz-card--luxury-overlay .cz-luxury-ref {
    font-size: 0.8rem;
    color: var(--cz-meta-color, #94a3b8);
    font-weight: 600;
    margin-bottom: 12px;
}

.cz-card--luxury-overlay .cz-luxury-desc {
    font-size: 0.88rem;
    color: var(--cz-text-color, #64748b);
    line-height: 1.5;
    margin: 0 0 16px;
}

.cz-card--luxury-overlay .cz-luxury-meta {
    display: flex;
    gap: 16px;
    border-top: 1px solid var(--cz-card-border, #f1f5f9);
    padding-top: 14px;
    font-size: 0.88rem;
    color: var(--cz-meta-color, #475569);
}

.cz-card--luxury-overlay .cz-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ══════════════════════════════════════════════════════════
   ── MODELO 4: COASTAL CLEAN ──────────────────────────────
   ══════════════════════════════════════════════════════════ */
.cz-card--coastal-clean .cz-coastal-loc-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--cz-card-bg, rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(4px);
    color: var(--cz-title-color, #1e293b);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.cz-card--coastal-clean .cz-coastal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.cz-card--coastal-clean .cz-coastal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cz-title-color, #0f172a);
    margin: 0 0 8px;
}

.cz-card--coastal-clean .cz-coastal-title a {
    color: var(--cz-title-color, #0f172a);
    text-decoration: none;
    transition: color 0.2s;
}

.cz-card--coastal-clean .cz-coastal-title a:hover {
    color: var(--cz-accent, #2563eb);
}

.cz-card--coastal-clean .cz-coastal-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--cz-price, #2563eb);
    margin-bottom: 12px;
}

.cz-card--coastal-clean .cz-coastal-desc {
    font-size: 0.88rem;
    color: var(--cz-text-color, #64748b);
    line-height: 1.5;
    margin: 0 0 16px;
}

.cz-card--coastal-clean .cz-coastal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--cz-card-border, #f1f5f9);
    padding-top: 14px;
}

.cz-card--coastal-clean .cz-coastal-specs {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--cz-meta-color, #475569);
}

.cz-card--coastal-clean .cz-coastal-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--cz-card-border, #f1f5f9);
    color: var(--cz-meta-color, #334155);
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.cz-card--coastal-clean .cz-coastal-share-btn:hover {
    background: #e2e8f0;
}

/* ══════════════════════════════════════════════════════════
   ── MODELO 5: CLASSIC EDITORIAL ───────────────────────────
   ══════════════════════════════════════════════════════════ */
.cz-card--classic-portal .cz-classic-badge-type {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--cz-badge-bg, #ECA023);
    color: var(--cz-badge-text, #ffffff);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 5;
}

.cz-card--classic-portal .cz-classic-badge-status {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--cz-card-bg, rgba(255, 255, 255, 0.95));
    color: var(--cz-title-color, #0f172a);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    z-index: 5;
}

.cz-card--classic-portal .cz-classic-badge-price {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: var(--cz-price, #2563eb);
    color: var(--cz-badge-text, #ffffff);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 800;
    z-index: 5;
}

.cz-card--classic-portal .cz-classic-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.cz-card--classic-portal .cz-classic-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--cz-title-color, #0f172a);
    margin: 0 0 4px;
    letter-spacing: -0.2px;
}

.cz-card--classic-portal .cz-classic-title a {
    color: var(--cz-title-color, #0f172a);
    text-decoration: none;
    transition: color 0.2s;
}

.cz-card--classic-portal .cz-classic-title a:hover {
    color: var(--cz-accent, #2563eb);
}

.cz-card--classic-portal .cz-classic-sub {
    font-size: 0.88rem;
    color: var(--cz-text-color, #64748b);
    font-weight: 600;
    margin-bottom: 12px;
}

.cz-card--classic-portal .cz-classic-desc {
    font-size: 0.88rem;
    color: var(--cz-text-color, #475569);
    line-height: 1.5;
    margin: 0 0 16px;
}

.cz-card--classic-portal .cz-classic-more {
    color: var(--cz-accent, #2563eb);
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
}

.cz-card--classic-portal .cz-classic-social {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--cz-card-border, #f1f5f9);
    padding-top: 12px;
}

.cz-card--classic-portal .cz-social-label {
    font-size: 0.78rem;
    color: var(--cz-meta-color, #94a3b8);
    font-weight: 600;
}

.cz-card--classic-portal .cz-social-links {
    display: flex;
    gap: 8px;
}

.cz-card--classic-portal .cz-social-link {
    color: var(--cz-meta-color, #64748b);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.cz-card--classic-portal .cz-social-link:hover {
    color: var(--cz-accent, #2563eb);
}

/* ── Paginación Moderna ── */
.paginar {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.half-pagination .pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.half-pagination .pagination li a,
.half-pagination .pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--cz-card-border, #cbd5e1);
    background: var(--cz-card-bg, #ffffff);
    color: var(--cz-meta-color, #334155);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.half-pagination .pagination li a:hover {
    border-color: var(--cz-accent, #2563eb);
    color: var(--cz-accent, #2563eb);
}

.half-pagination .pagination li.active a,
.half-pagination .pagination li.active span {
    background: var(--cz-accent, #2563eb) !important;
    color: #ffffff !important;
    border-color: var(--cz-accent, #2563eb) !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
    cursor: default;
}

/* ── Estado Vacío ── */
.cz-empty-state {
    background: var(--cz-sort-bar-bg, #f8fafc);
    border: 1px dashed var(--cz-card-border, #cbd5e1);
    border-radius: 14px;
    padding: 56px 24px;
    text-align: center;
    margin: 20px 0;
}

/* ── Acciones de Resultados y Filtro de Favoritos ── */
.cz-results-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cz-favs-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--cz-card-bg, #ffffff);
    border: 1px solid var(--cz-card-border, #cbd5e1);
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--cz-meta-color, #475569);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    line-height: 1;
}

.cz-favs-filter-btn svg {
    color: #ef4444;
    transition: transform 0.2s ease, fill 0.2s ease;
    flex-shrink: 0;
}

.cz-favs-filter-btn .cz-favs-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.76rem;
    font-weight: 800;
    transition: all 0.2s ease;
}

.cz-favs-filter-btn:hover {
    border-color: #f87171;
    background: #fff5f5;
    color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.12);
}

.cz-favs-filter-btn:hover svg {
    transform: scale(1.15);
}

.cz-favs-filter-btn.is-active {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.cz-favs-filter-btn.is-active svg {
    color: #ffffff;
    fill: #ffffff;
}

.cz-favs-filter-btn.is-active .cz-favs-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* ── Micro-animación Pop del Corazón ── */
@keyframes czFavHeartPop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.35); }
    70%  { transform: scale(0.92); }
    100% { transform: scale(1); }
}

.cz-fav-pop,
.cz-fav-btn.cz-fav-pop,
.cz-favs-filter-btn.cz-fav-pop svg {
    animation: czFavHeartPop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) both !important;
}

/* ── Spinner y Loading de Favoritos ── */
.cz-favs-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    width: 100%;
}

.cz-favs-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(239, 68, 68, 0.15);
    border-top-color: #ef4444;
    border-radius: 50%;
    animation: czFavsSpin 0.8s linear infinite;
}

@keyframes czFavsSpin {
    to { transform: rotate(360deg); }
}

/* ── Vista Dedicada de Favoritos (/favoritos/) ── */
.cz-favs-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cz-fav-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.cz-fav-action-btn--wa {
    background: #25D366;
    color: #ffffff;
}

.cz-fav-action-btn--wa:hover {
    background: #20bd5a;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.28);
}

.cz-fav-action-btn--copy {
    background: #f1f5f9;
    color: #334155;
    border-color: #cbd5e1;
}

.cz-fav-action-btn--copy:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.cz-fav-action-btn--clear {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
}

.cz-fav-action-btn--clear:hover {
    background: #fecaca;
    color: #991b1b;
}
