/* ========== COCHES.GAL – Estilos unificados ========== */
/* @font-face se inyecta desde el layout con {{ $url }} */

/* ---------- Base: variables y reset ---------- */
:root {
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --primary-light: #818CF8;
    --secondary: #93C5FD;
    --accent: #22D3EE;
    --accent-lime: #A3E635;
    --accent-orange: #F97316;
    --accent-pink: #EC4899;
    --warm-orange: #4F46E5;
    --coral: #5B21B6;
    --background: #F8FAFC;
    --background-light: #FFFFFF;
    --text-dark: #1E293B;
    --text-medium: #475569;
    --text-light: #64748B;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    --gradient-primary: linear-gradient(135deg, #6366F1 0%, #22D3EE 100%);
    --gradient-secondary: linear-gradient(135deg, var(--primary) 0%, var(--coral) 100%);
    --shadow-sm: 0 2px 4px rgba(99, 102, 241, 0.08);
    --shadow-md: 0 4px 12px rgba(99, 102, 241, 0.12);
    --shadow-lg: 0 8px 24px rgba(99, 102, 241, 0.16);
    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.25);
    --font-display: 'ITC Avant Garde', 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-base: 0.3s ease;
    /* Estados para alertas */
    --success: #10B981;
    --success-light: #D1FAE5;
    --success-dark: #059669;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --warning-dark: #D97706;
    --error: #EF4444;
    --error-light: #FEE2E2;
    --error-dark: #DC2626;
    --info: #3B82F6;
    --info-light: #DBEAFE;
    --info-dark: #2563EB;
    /* Vehicle card Ultimate v2 */
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --star-gold: #FCD34D;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { height: 100%; }
body { font-family: var(--font-body); background: var(--background); color: var(--text-dark); line-height: 1.6; min-height: 100%; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: bold; }
a { text-decoration: none !important; }

/* ---------- Mobile UX: evitar zoom al enfocar en iOS (inputs/select < 16px provocan zoom) ---------- */
@media (max-width: 768px) {
    input:not([type="checkbox"]):not([type="radio"]),
    select,
    textarea,
    .form-control,
    .form-select {
        font-size: 16px !important;
    }
    .form-control-sm,
    .form-select-sm {
        font-size: 16px !important;
    }
}

/* ---------- Alertas COCHES.GAL (Opción A: suave con borde esquerdo) ---------- */
.alert-cg.alert-cg-soft {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: none;
    border-radius: var(--radius-md);
    border-left: 4px solid;
    font-size: 0.9375rem;
    line-height: 1.5;
    box-shadow: var(--shadow-sm);
}
.alert-cg-soft.alert-success { background: var(--success-light); border-left-color: var(--success); color: var(--text-dark); }
.alert-cg-soft.alert-info { background: var(--info-light); border-left-color: var(--info); color: var(--text-dark); }
.alert-cg-soft.alert-warning { background: var(--warning-light); border-left-color: var(--warning); color: var(--text-dark); }
.alert-cg-soft.alert-danger { background: var(--error-light); border-left-color: var(--error); color: var(--text-dark); }
.alert-cg-soft.alert-primary { background: var(--info-light); border-left-color: var(--info); color: var(--text-dark); }
.alert-cg-soft.alert-secondary { background: var(--gray-100); border-left-color: var(--text-medium); color: var(--text-dark); }
.alert-cg-soft .alert-icon { font-size: 1.15rem; flex-shrink: 0; }
.alert-cg-soft.alert-success .alert-icon { color: var(--success-dark); }
.alert-cg-soft.alert-info .alert-icon,
.alert-cg-soft.alert-primary .alert-icon { color: var(--info-dark); }
.alert-cg-soft.alert-warning .alert-icon { color: var(--warning-dark); }
.alert-cg-soft.alert-danger .alert-icon { color: var(--error-dark); }
.alert-cg-soft.alert-secondary .alert-icon { color: var(--text-medium); }
.alert-cg-soft .alert-body { flex: 1; min-width: 0; }
.alert-cg-soft .btn-close {
    position: static;
    flex-shrink: 0;
    align-self: center;
    margin: 0 0 0 auto;
    padding: 0.25rem;
    opacity: 0.6;
    font-size: 0.75rem;
}
.alert-cg-soft .btn-close:hover { opacity: 1; }

/* ---------- Layout global: navbar, footer, botones ---------- */
.navbar-glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    padding: 14px 0;
    transition: all var(--transition-base);
}
.navbar-glass.scrolled { box-shadow: var(--shadow-md); }
.navbar-brand {
    font-family: var(--font-display);
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--text-dark) !important;
    display: flex;
    align-items: center;
}
.navbar-brand img { height: 40px; width: auto; }
.nav-link {
    color: var(--text-medium) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}
.nav-link:hover { color: var(--primary) !important; }
.nav-link.active {
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary) !important;
    border: 1px solid rgba(99, 102, 241, 0.25);
}
.btn-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: white !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 20px !important;
    border-radius: var(--radius-full);
    border: none;
    transition: all var(--transition-base);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
    text-decoration: none !important;
}
.btn-glow:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); color: white !important; }
.btn-glow .me-2 { margin-right: 0 !important; }
.btn-outline-cg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--primary) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 20px !important;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    text-decoration: none !important;
}
.btn-outline-cg:hover { background: rgba(99, 102, 241, 0.12); color: var(--primary-dark) !important; transform: translateY(-1px); border-color: rgba(99, 102, 241, 0.3); }
.btn-outline-cg .me-2 { margin-right: 0 !important; }
.btn-concesionario-perfil {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(59, 130, 246, 0.08) 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--primary) !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 16px;
    border-radius: var(--radius-full);
    transition: all 0.25s ease;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
}
.btn-concesionario-perfil:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(59, 130, 246, 0.15) 100%);
    border-color: rgba(99, 102, 241, 0.4);
    color: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.2);
}
.btn-concesionario-perfil i { font-size: 1rem; opacity: 0.95; }
.btn-share-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: rgba(100, 116, 139, 0.08);
    border: 1px solid rgba(100, 116, 139, 0.25);
    color: var(--text-medium, #64748b) !important;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    transition: all 0.25s ease;
    text-decoration: none !important;
}
.btn-share-toggle:hover {
    background: rgba(100, 116, 139, 0.14);
    border-color: rgba(100, 116, 139, 0.4);
    color: var(--text-dark, #1e293b) !important;
    transform: translateY(-1px);
}
.btn-share-toggle i { font-size: 0.9rem; }
.btn-favorito {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    border: none;
    color: white !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 20px !important;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    box-shadow: 0 4px 20px rgba(219, 39, 119, 0.4);
    text-decoration: none !important;
}
.btn-favorito:hover {
    background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(219, 39, 119, 0.5);
}
.btn-favorito i { font-size: 1rem; }
.btn-eliminar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: rgba(225, 83, 75, 0.06);
    border: 1px solid rgba(225, 83, 75, 0.3);
    color: var(--coral, #e5534b) !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 16px;
    border-radius: var(--radius-full);
    transition: all 0.25s ease;
    text-decoration: none !important;
}
.btn-eliminar:hover {
    background: rgba(225, 83, 75, 0.14);
    border-color: rgba(225, 83, 75, 0.5);
    color: #c73e36 !important;
    transform: translateY(-2px);
}
.btn-eliminar i { font-size: 0.95rem; }
.nav-profile {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 24px;
    padding: 1.25rem 1.5rem;
    background: var(--background-light);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(99, 102, 241, 0.08);
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.06);
}
.nav-profile-item {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-full);
    color: var(--text-medium);
    background: transparent;
    border: 1px solid transparent;
    transition: all var(--transition-base);
    text-decoration: none !important;
}
.nav-profile-item:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.15);
    transform: translateY(-1px);
}
.nav-profile-item.active {
    background: var(--gradient-primary);
    color: white !important;
    border-color: transparent;
}
.nav-profile-item.active:hover { color: white !important; transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.nav-profile-item .me-2 { margin-right: 0.5rem; }
.nav-profile-external { font-weight: 500; }
.btn-mensajes-unread { box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.5); }
.lang-pill {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-full);
    padding: 8px 36px 8px 16px;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233B82F6' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    min-width: 120px;
}
.lang-pill:hover { background-color: rgba(99, 102, 241, 0.15); border-color: rgba(99, 102, 241, 0.3); }
.lang-pill:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2); }
.navbar-actions-wrap { display: flex; flex-direction: column; align-items: stretch; gap: 0.5rem; }
.navbar-actions-wrap .btn { width: 100%; }
@media (min-width: 768px) {
    .navbar-actions-wrap { flex-direction: row; align-items: center; gap: 0.75rem; }
    .navbar-actions-wrap .btn { width: auto; }
    .navbar-actions-wrap .btn-nav-icon { padding: 8px 14px !important; font-size: 0.9rem; border-width: 1px; color: var(--text-medium) !important; }
    .navbar-actions-wrap .btn-nav-icon:hover { color: var(--primary) !important; background: rgba(99, 102, 241, 0.08); }
    .navbar-actions-wrap .btn-nav-icon.active { background: rgba(99, 102, 241, 0.12); border-color: rgba(99, 102, 241, 0.25); color: var(--primary) !important; }
}
.navbar-actions-wrap .dropdown-menu {
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 0.5rem;
    min-width: 200px;
}
.navbar-actions-wrap .dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    font-weight: 500;
}
.navbar-actions-wrap .dropdown-item:hover { background: rgba(99, 102, 241, 0.08); color: var(--primary); }
.navbar-actions-wrap .dropdown-item.active { background: rgba(99, 102, 241, 0.12); color: var(--primary); }
.navbar-actions-wrap .dropdown-item.text-danger:hover { color: var(--coral, #e5534b) !important; background: rgba(225, 83, 75, 0.08); }
.navbar-actions-wrap .dropdown-divider { border-color: rgba(99, 102, 241, 0.12); }
.footer-cg {
    background: var(--background-light);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(99, 102, 241, 0.15);
}
.footer-brand { font-family: var(--font-display); font-size: 1.8rem; font-weight: bold; color: var(--text-dark); display: inline-block; }
.footer-brand img { height: 36px; width: auto; }
.footer-cg .footer-title { font-weight: 700; margin-bottom: 16px; color: var(--text-dark); font-size: 1rem; }
.footer-cg .footer-links { list-style: none; padding: 0; }
.footer-cg .footer-links li { margin-bottom: 10px; }
.footer-cg .footer-links a { color: var(--text-medium); font-size: 0.95rem; transition: color var(--transition-base); }
.footer-cg .footer-links a:hover { color: var(--primary); }
.footer-cg .footer-bottom { border-top: 1px solid rgba(99, 102, 241, 0.12); padding-top: 24px; margin-top: 40px; }

/* ---------- Componentes unificados ---------- */
.card-cg {
    background: var(--background-light);
    border: 1px solid rgba(99, 102, 241, 0.08);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.06);
    transition: all 0.3s ease;
}
.card-cg:hover { box-shadow: 0 8px 32px rgba(99, 102, 241, 0.1); }
.btn-pill-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--gradient-primary);
    color: white !important;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none !important;
}
.btn-pill-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); color: white !important; }
.btn-pill-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary) !important;
    border: 1px solid rgba(99, 102, 241, 0.15);
    transition: all 0.2s ease;
    text-decoration: none !important;
}
.btn-pill-outline:hover { background: rgba(99, 102, 241, 0.12); transform: translateY(-1px); color: var(--primary) !important; }
.page-section-cg { padding-top: 1.5rem; padding-bottom: 3rem; }
@media (max-width: 767px) {
    .container.page-section-cg { padding-top: 0 !important; }
}
.page-title-cg { font-size: 1.75rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.5rem; }
.page-subtitle-cg { font-size: 1.05rem; color: var(--text-medium); margin-bottom: 1.5rem; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2); }

/* ---------- Leads (solicitudes) ---------- */
/* Leads: tabs Recibidas / Enviadas */
.leads-tabs-wrap { display: flex; justify-content: flex-start; }
.leads-tabs {
    display: inline-flex;
    align-items: stretch;
    gap: 0;
    padding: 4px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}
.leads-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-medium);
    background: transparent;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none !important;
}
.leads-tab:hover { color: var(--primary); background: rgba(99, 102, 241, 0.08); }
.leads-tab.active {
    color: white;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-sm);
}
.leads-tab.active:hover { color: white; background: var(--primary-dark); box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35); }
.leads-tab-icon { font-size: 1rem; opacity: 0.9; }
.leads-tab:not(.active) .leads-tab-icon { color: var(--text-light); }
.leads-tab.active .leads-tab-icon { color: inherit; }

.leads-page-header { background: var(--background-light); border: 1px solid rgba(99, 102, 241, 0.08); border-left: 4px solid var(--primary); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; box-shadow: 0 2px 12px rgba(99, 102, 241, 0.06); }
.leads-page-header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.leads-page-header-icon { width: 48px; height: 48px; border-radius: var(--radius-md); background: rgba(99, 102, 241, 0.12); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.leads-page-title { font-size: 1.5rem; font-weight: 700; color: var(--text-dark); margin: 0 0 0.25rem 0; }
.leads-page-desc { font-size: 0.9rem; color: var(--text-medium); margin: 0; }
.leads-page-count { margin-left: auto; font-size: 0.85rem; font-weight: 600; color: var(--primary); background: rgba(99, 102, 241, 0.1); padding: 0.35rem 0.75rem; border-radius: var(--radius-full); }

.leads-empty { padding: 3rem 2rem !important; max-width: 420px; margin: 0 auto; }
.leads-empty-icon { width: 80px; height: 80px; margin: 0 auto 1.25rem; border-radius: 50%; background: rgba(99, 102, 241, 0.08); color: var(--text-medium); display: flex; align-items: center; justify-content: center; font-size: 2rem; opacity: 0.8; }
.leads-empty-title { font-size: 1.25rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.5rem; }
.leads-empty-desc { font-size: 0.95rem; color: var(--text-medium); margin: 0; line-height: 1.5; }

.leads-page .leads-table-wrap { padding: 0; border-radius: var(--radius-lg); }
.leads-page .leads-table { font-size: 0.9rem; }
.leads-page .leads-table .leads-thead { background: rgba(99, 102, 241, 0.08); border-bottom: 2px solid rgba(99, 102, 241, 0.15); position: sticky; top: 0; z-index: 1; }
.leads-page .leads-table th { font-weight: 600; color: var(--text-dark); padding: 14px 18px; white-space: nowrap; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }
.leads-page .leads-table .leads-th-date { width: 1px; }
.leads-page .leads-table .leads-th-action { width: 100px; }
.leads-page .leads-table td { padding: 14px 18px; vertical-align: middle; border-bottom: 1px solid var(--gray-200); }
.leads-page .leads-table tbody tr { transition: background 0.15s ease; }
.leads-page .leads-table tbody tr:hover { background: rgba(99, 102, 241, 0.05); }
.leads-page .leads-table .leads-row-unread { background: rgba(245, 158, 11, 0.06); }
.leads-page .leads-table .leads-row-unread:hover { background: rgba(245, 158, 11, 0.1); }
.leads-page .leads-table .leads-cell-date { white-space: nowrap; color: var(--text-medium); font-size: 0.85rem; }
.leads-page .leads-table .leads-cell-comentario { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leads-page .leads-table a { color: var(--primary); }
.leads-page .leads-table a:hover { color: var(--primary); text-decoration: underline; }
.leads-page .leads-table .btn-pill-outline { padding: 0.4rem 0.85rem; font-size: 0.8rem; }

.leads-page .leads-cards { display: flex; flex-direction: column; gap: 1rem; }
.leads-page .lead-card { padding: 1.25rem 1.5rem; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.leads-page .lead-card:hover { box-shadow: 0 8px 28px rgba(99, 102, 241, 0.12); }
.leads-page .lead-card-unread { border-left: 4px solid rgb(245, 158, 11); }
.leads-page .lead-card-vehicle-icon { width: 44px; height: 44px; border-radius: var(--radius-md); background: rgba(99, 102, 241, 0.1); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1rem; }
.leads-page .lead-card-unread-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: rgb(245, 158, 11); margin-right: 6px; vertical-align: middle; }
.leads-page .lead-card-title { color: var(--text-dark); }
.leads-page .lead-card-title:hover { color: var(--primary); }
.leads-page .lead-card-meta { margin-bottom: 0; }
.leads-page .lead-card-meta span.text-muted { margin-right: 0.35rem; }
.leads-page .lead-card-meta a { color: var(--primary); }

/* Leads ver (detalle solicitud) */
.leads-ver-page .lead-ver-back { text-decoration: none !important; }
.leads-ver-page .lead-ver-header { padding: 1.5rem 1.5rem !important; }
.leads-ver-page .lead-ver-badge { font-size: 0.75rem; letter-spacing: 0.05em; }
.leads-ver-page .lead-ver-title { font-weight: 700; color: var(--text-dark); margin-bottom: 0.25rem; }
.leads-ver-page .lead-ver-meta .badge { font-weight: 600; }
.leads-ver-page .lead-ver-contact h2,
.leads-ver-page .lead-ver-comment h2 { font-size: 0.7rem; letter-spacing: 0.08em; font-weight: 600; }
.leads-ver-page .letter-spacing { letter-spacing: 0.06em; }
.leads-ver-page .lead-ver-contact-icon { width: 40px; height: 40px; border-radius: var(--radius-md); background: rgba(99, 102, 241, 0.1); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.leads-ver-page .lead-ver-contact-item a { color: var(--primary); }
.leads-ver-page .lead-ver-contact-item a:hover { text-decoration: underline !important; }
.leads-ver-page .lead-ver-comment-body { color: var(--text-dark); line-height: 1.6; white-space: pre-wrap; }

/* ---------- Vehicle list / grid (listado, favoritos, perfil/anuncios, landing) ---------- */
.page-header { margin-bottom: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.page-title { font-size: 2rem; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.page-subtitle { color: var(--text-medium); font-size: 1rem; }
/* Barra resultados + orden: Opción B – Ultra compacto (mockup resultados_orden_barra_opciones.html) */
.results-count { font-size: 0.8125rem; color: var(--text-medium); margin-bottom: 0; display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--text-dark); }
.results-count strong { color: var(--primary); font-weight: 700; }
.results-count-icon { color: var(--primary); font-size: 0.8rem; }
.results-sort-bar { background: var(--background-light); border: 1px solid var(--gray-200); border-left: 3px solid var(--primary); border-radius: var(--radius-sm); padding: 8px 12px; box-shadow: none; }
.btn-pill-sort { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 9999px; border: 1px solid var(--gray-200); background: #fff; font-weight: 600; color: var(--text-medium); transition: all 0.2s ease; font-size: 0.8125rem; }
.btn-pill-sort:hover { border-color: var(--primary); color: var(--primary); background: rgba(59, 130, 246, 0.08); }
.btn-pill-sort .sort-chevron { font-size: 0.6rem; color: var(--primary); opacity: 0.9; transition: transform 0.2s; }
.btn-pill-sort[aria-expanded="true"] .sort-chevron { transform: rotate(180deg); }
.btn-pill-sort .fa-sort-amount-down-alt { color: var(--primary); }
/* Versión C: mobile = botón ancho "Ordenar"; desktop = pill con opción actual */
.sort-dropdown-mobile-full { width: 100%; }
.sort-dropdown-mobile-full .btn-pill-sort { justify-content: center; }
@media (min-width: 768px) {
    .sort-dropdown-mobile-full { width: auto; }
    .sort-dropdown-mobile-full .btn-pill-sort { width: auto; }
}
.dropdown-menu-sort { min-width: 220px; padding: 4px; border-radius: 6px; box-shadow: 0 10px 40px rgba(59, 130, 246, 0.15); border: 1px solid var(--gray-200); }
.dropdown-menu-sort .dropdown-item { border-radius: var(--radius-sm); padding: 6px 10px; display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text-medium); transition: background 0.15s; font-size: 0.8125rem; }
.dropdown-menu-sort .dropdown-item .sort-icon { width: 22px; height: 22px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.7rem; flex-shrink: 0; }
.dropdown-menu-sort .dropdown-item .sort-icon.relevancia { background: rgba(59, 130, 246, 0.12); color: var(--primary); }
.dropdown-menu-sort .dropdown-item .sort-icon.fecha { background: rgba(99, 102, 241, 0.12); color: var(--accent, #6366F1); }
.dropdown-menu-sort .dropdown-item .sort-icon.precio { background: rgba(16, 185, 129, 0.12); color: var(--success, #10B981); }
.dropdown-menu-sort .dropdown-item .sort-icon.km { background: rgba(245, 158, 11, 0.12); color: #D97706; }
.dropdown-menu-sort .dropdown-item:hover { background: var(--gray-100); }
.dropdown-menu-sort .dropdown-item.active { background: rgba(59, 130, 246, 0.12); color: var(--primary); font-weight: 600; }
.dropdown-menu-sort .dropdown-item.active .sort-icon { background: rgba(59, 130, 246, 0.2); color: var(--primary); }
.vehicles-grid, .vehicle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.vehicle-card {
    background: var(--background-light);
    border: 1px solid rgba(59,130,246,0.12);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.35s ease;
    box-shadow: 0 4px 20px rgba(59,130,246,0.06);
    position: relative;
}
.vehicle-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--coral) 100%);
    transform: scaleX(0);
    transition: transform 0.35s ease;
}
.vehicle-card:hover::before { transform: scaleX(1); }
.vehicle-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(59,130,246,0.18); border-color: rgba(59,130,246,0.25); }
.vehicle-image { height: 200px; overflow: hidden; position: relative; }
.vehicle-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.vehicle-card:hover .vehicle-image img { transform: scale(1.08); }
.vehicle-content { padding: 20px; }
.vehicle-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; color: var(--text-dark); }
.vehicle-version { color: var(--text-medium); font-size: 0.9rem; margin-bottom: 14px; }
.vehicle-specs { display: flex; gap: 18px; margin-bottom: 16px; font-size: 0.85rem; color: var(--text-medium); }
.vehicle-specs span { display: flex; align-items: center; gap: 6px; }
.vehicle-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid rgba(99,102,241,0.08); }
.vehicle-footer-inner { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid rgba(99,102,241,0.08); flex-wrap: wrap; gap: 12px; }
.vehicle-price {
    font-size: 1.15rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--coral) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.vehicle-location { color: var(--text-medium); font-size: 0.85rem; display: flex; align-items: center; gap: 6px; }
.vehicle-badge { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: var(--radius-full); }
.vehicle-stats { display: flex; gap: 14px; margin-top: 12px; font-size: 0.8rem; color: var(--text-light); flex-wrap: wrap; }
.vehicle-stats span { display: inline-flex; align-items: center; gap: 4px; }
.vehicle-stats i { color: var(--primary); font-size: 0.75rem; }
.favorito-btn-remove { position: absolute; top: 12px; right: 12px; z-index: 2; }
.favorito-btn-remove button { background: rgba(255,255,255,0.95); border: none; padding: 8px 10px; border-radius: 50%; color: #ef4444; cursor: pointer; box-shadow: var(--shadow-sm); }
.favorito-btn-remove button:hover { background: #fee2e2; }

/* ---------- Vehicle card (Variante K) – componente unificado ---------- */
.vcard {
    background: var(--background-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(99,102,241,0.12);
    box-shadow: 0 4px 20px rgba(99,102,241,0.06);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}
.vcard:hover { box-shadow: 0 12px 36px rgba(99,102,241,0.15); border-color: rgba(99,102,241,0.25); transform: translateY(-4px); }
.vcard-gallery { position: relative; background: var(--gray-200); aspect-ratio: 4/3; overflow: hidden; }
.vcard-gallery .carousel { position: absolute; inset: 0; height: auto; }
.vcard-gallery .carousel-inner { height: 100%; }
.vcard-gallery .carousel-item { position: relative; height: 100%; min-height: 0; }
.vcard-carousel-item-wrap {
    position: absolute;
    inset: 0;
}
.vcard-gallery > .vcard-carousel-item-wrap { position: absolute; inset: 0; }
.vcard-carousel-item-wrap img,
.vcard-gallery img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.vcard-lazy-img { background: var(--gray-200); opacity: 0.85; transition: opacity 0.25s ease; }
.vcard-lazy-img.vcard-img-loaded { opacity: 1; }
.vcard-gallery .carousel-control-prev, .vcard-gallery .carousel-control-next { width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,0.5); opacity: 1; top: 50%; transform: translateY(-50%); z-index: 1; }
.vcard-gallery .carousel-control-prev { left: 8px; }
.vcard-gallery .carousel-control-next { right: 8px; }
.vcard-counter { position: absolute; bottom: 10px; left: 10px; background: rgba(0,0,0,0.6); color: #fff; font-size: 0.75rem; font-weight: 600; padding: 4px 8px; border-radius: 6px; z-index: 2; }
.vcard-title { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; line-height: 1.3; }
.vcard-title a { color: inherit; text-decoration: none; }
.vcard-title a:hover { color: var(--primary); }
.vcard-price { font-size: 1.2rem; font-weight: 700; color: var(--text-dark); }
.vcard-price-info { font-size: 0.75rem; color: var(--text-medium); margin-top: 2px; }
.price-dots { display: inline-flex; gap: 3px; margin-right: 6px; vertical-align: middle; }
.price-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.vcard-attrs-icons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 12px; font-size: 0.8rem; color: var(--text-medium); margin-top: 8px; }
.vcard-attrs-icons span i { color: var(--primary); margin-right: 6px; }
.vcard-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.vcard-tag { font-size: 0.75rem; font-weight: 600; padding: 4px 8px; border-radius: 6px; }
.vcard-tag--reservable { background: rgba(34, 211, 238, 0.15); color: #0e7490; }
.vcard-tag--pro { background: rgba(99, 102, 241, 0.08); color: var(--primary); }
.vcard-tag-star { color: #eab308; font-size: 0.7em; vertical-align: middle; }
.vcard-actions { display: flex; align-items: center; gap: 8px; position: absolute; top: 10px; right: 10px; z-index: 3; }
.vcard-actions .btn-icon {
    width: 36px; height: 36px; border-radius: 50%; border: none;
    background: rgba(255,255,255,0.92); color: var(--text-medium);
    display: inline-flex; align-items: center; justify-content: center; font-size: 0.9rem;
    transition: all 0.2s; text-decoration: none; cursor: pointer;
}
.vcard-actions .btn-icon:hover { background: rgba(99,102,241,0.12); color: var(--primary); }
.vcard-actions .btn-fav { color: #e11d48; }
.vcard-actions .btn-fav:hover { background: rgba(225, 29, 72, 0.1); color: #be123c; }
.vcard-k .vcard-info { padding: 16px; }
.vcard-k .vcard-title { font-size: 1.05rem; }
.vcard-k .vcard-attrs-icons { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 12px; font-size: 0.8rem; color: var(--text-medium); }
.vcard-k .vcard-attrs-icons span i { color: var(--primary); margin-right: 6px; }
.vcard-k .vcard-price { font-size: 1.35rem; }
.vcard-state-badge { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 9999px; }
.vcard-stats { display: flex; gap: 14px; font-size: 0.8rem; color: var(--text-light); flex-wrap: wrap; }
.vcard-stats span { display: inline-flex; align-items: center; gap: 4px; }
.vcard-stats i { color: var(--primary); font-size: 0.75rem; }
.vcard-footer-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-top: 1px solid rgba(99,102,241,0.08); background: var(--gray-50); }
.similar-grid .vcard-k .vcard-info { padding: 12px; }
.similar-grid .vcard-k .vcard-title { font-size: 0.95rem; }
.similar-grid .vcard-k .vcard-price { font-size: 1.1rem; }

/* ---------- Vehicle card Ultimate v2: compacta y elegante ---------- */
.v-ultimate-v2 {
    overflow: hidden;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: var(--radius-lg);
}
.v-ultimate-v2:hover { box-shadow: none; transform: none; border: none; }

.v-ultimate-v2 .badge-ribbon {
    position: absolute; top: 12px; left: -6px; z-index: 5;
    padding: 5px 14px 5px 10px;
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.04em; color: #fff;
    clip-path: polygon(0 0, 100% 0, 93% 50%, 100% 100%, 0 100%);
    display: flex; align-items: center; gap: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.18);
}
.v-ultimate-v2 .badge-ribbon i { font-size: 0.6rem; }
.v-ultimate-v2 .badge-ribbon.verified { background: linear-gradient(135deg, #10B981 0%, #059669 100%); }
.v-ultimate-v2 .badge-ribbon.premium { background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%); }
.v-ultimate-v2 .badge-ribbon.basico { background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%); }
.v-ultimate-v2 .badge-ribbon.reservado { background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%); }
.v-ultimate-v2 .badge-ribbon.vendido { background: linear-gradient(135deg, #64748B 0%, #475569 100%); }
.v-ultimate-v2 .badge-ribbon.fsh { background: linear-gradient(135deg, rgb(245, 158, 11) 0%, rgb(217, 119, 6) 100%); }
.v-ultimate-v2 .vcard-gallery .badge-ribbon:nth-of-type(2) { top: 44px; }

.v-ultimate-v2 .vcard-actions {
    position: absolute; top: 10px; right: 10px; z-index: 10;
    display: flex; gap: 6px;
}
.v-ultimate-v2 .btn-icon {
    width: 34px; height: 34px; border-radius: 50%; border: none;
    background: rgba(0,0,0,0.4); backdrop-filter: blur(6px);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; cursor: pointer;
    transition: all 0.2s ease;
}
.v-ultimate-v2 .btn-icon:hover { background: rgba(0,0,0,0.6); transform: scale(1.08); }
.v-ultimate-v2 .btn-icon.active { background: #e11d48; }

.v-ultimate-v2 .vcard-counter {
    position: absolute; bottom: 10px; right: 10px; left: auto; z-index: 4;
    background: rgba(0,0,0,0.55); backdrop-filter: blur(6px);
    color: #fff; font-size: 0.7rem; font-weight: 600;
    padding: 4px 10px; border-radius: var(--radius-sm);
}

.v-ultimate-v2 .carousel { position: absolute; inset: 0; }
.v-ultimate-v2 .carousel-inner { height: 100%; }
.v-ultimate-v2 .carousel-item { height: 100%; }
.v-ultimate-v2 .carousel-item img { width: 100%; height: 100%; object-fit: cover; }
.v-ultimate-v2 .carousel-control-prev,
.v-ultimate-v2 .carousel-control-next {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(0,0,0,0.45); backdrop-filter: blur(4px);
    opacity: 1; top: 50%; transform: translateY(-50%);
    z-index: 6;
    display: flex; align-items: center; justify-content: center;
    padding: 0; cursor: pointer;
}
.v-ultimate-v2 .carousel-control-prev:focus,
.v-ultimate-v2 .carousel-control-next:focus { outline: none; }
.v-ultimate-v2 .carousel-control-prev { left: 8px; }
.v-ultimate-v2 .carousel-control-next { right: 8px; }
.v-ultimate-v2 .carousel-control-prev:hover,
.v-ultimate-v2 .carousel-control-next:hover { background: rgba(0,0,0,0.65); }
.v-ultimate-v2 .carousel-control-prev-icon,
.v-ultimate-v2 .carousel-control-next-icon { width: 14px; height: 14px; pointer-events: none; }

.v-ultimate-v2 .vcard-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 48px 14px 5px; z-index: 3;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.5) 45%, transparent 100%);
}
.v-ultimate-v2 .vcard-overlay .vcard-title {
    color: #fff; font-size: 1.08rem; font-weight: 800; margin-bottom: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5), 0 0 24px rgba(0,0,0,0.35);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    letter-spacing: 0.01em;
}
.v-ultimate-v2 .vcard-overlay .vcard-price {
    color: #fff; font-size: 1.5rem; font-weight: 800; margin: 0;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    text-shadow: 0 2px 12px rgba(0,0,0,0.55), 0 0 28px rgba(0,0,0,0.4);
    letter-spacing: 0.02em;
}
.v-ultimate-v2 .vcard-overlay .vcard-price-info {
    font-size: 0.7rem; font-weight: 500; color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.2); padding: 3px 10px; border-radius: var(--radius-full);
}

.v-ultimate-v2 .vcard-heading {
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px;
    padding: 10px 14px 0;
    background: #fff;
}
.v-ultimate-v2 .vcard-heading .vcard-title {
    color: var(--text-dark); font-size: 1rem; font-weight: 800; margin: 0;
    line-height: 1.25; letter-spacing: 0.02em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    flex: 1; min-width: 0;
}
.v-ultimate-v2 .vcard-heading .vcard-price {
    color: var(--primary); font-size: 1.25rem; font-weight: 800; margin: 0;
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap; letter-spacing: 0.02em;
    flex-shrink: 0;
}
.v-ultimate-v2 .vcard-heading .vcard-price-info {
    font-size: 0.65rem; font-weight: 600; color: var(--primary);
    background: rgba(99, 102, 241, 0.12); padding: 2px 8px; border-radius: var(--radius-full);
}

.v-ultimate-v2 .specs-inline {
    display: flex; flex-wrap: wrap; gap: 6px 12px;
    padding: 12px 14px;
    background: #fff;
    border-bottom: 1px solid var(--gray-100);
}
.v-ultimate-v2 .spec-inline {
    display: flex; align-items: center; gap: 5px;
    font-size: 0.78rem; color: var(--gray-600);
}
.v-ultimate-v2 .spec-inline i {
    color: var(--primary); font-size: 0.7rem; width: 14px; text-align: center;
}
.v-ultimate-v2 .spec-inline strong { font-weight: 600; color: var(--gray-800); }

.v-ultimate-v2 .dealer-strip {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    background: var(--gray-200);
    border-top: 1px solid var(--gray-300);
}
.v-ultimate-v2 .dealer-logo {
    width: 36px; height: 36px; border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700; flex-shrink: 0;
}
.v-ultimate-v2 .dealer-logo.particular { background: var(--gray-300); }
.v-ultimate-v2 .dealer-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.v-ultimate-v2 .dealer-info { flex: 1; min-width: 0; }
.v-ultimate-v2 .dealer-name {
    font-size: 0.8rem; font-weight: 600; color: var(--gray-700);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.v-ultimate-v2 .dealer-meta {
    display: flex; align-items: center; gap: 6px; margin-top: 1px;
    font-size: 0.7rem; color: var(--gray-500);
}
.v-ultimate-v2 .dealer-meta .stars { display: flex; gap: 1px; }
.v-ultimate-v2 .dealer-meta .star { font-size: 0.6rem; color: var(--star-gold); }
.v-ultimate-v2 .dealer-badge {
    padding: 4px 10px; border-radius: var(--radius-sm);
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.02em; flex-shrink: 0;
}
.v-ultimate-v2 .dealer-badge.pro {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
}
.v-ultimate-v2 .dealer-badge.particular {
    background: var(--gray-100); color: var(--gray-500);
}

.v-ultimate-v2 .vcard-stats { padding: 10px 14px; border-top: 1px solid var(--gray-100); background: #fff; }
.v-ultimate-v2 .vcard-footer-actions { border-top: 1px solid var(--gray-100); }

@media (max-width: 991px) { .vehicles-grid, .vehicle-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .vehicles-grid, .vehicle-grid { grid-template-columns: 1fr; } .page-header { flex-direction: column; align-items: flex-start; } }

/* ---------- Dealer card compact ---------- */
.dealer-card-compact {
    background: var(--gray-50, #f8fafc);
    border: 1px solid var(--gray-200, #e2e8f0);
    border-radius: var(--radius-md, 8px);
    padding: 16px;
}
.dealer-logo-sm {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm, 6px);
    background: var(--gray-100, #f1f5f9);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.dealer-logo-sm img { width: 100%; height: 100%; object-fit: contain; }
.dealer-logo-sm i { font-size: 20px; color: var(--gray-400, #94a3b8); }
.dealer-name-sm { font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; gap: 6px; }
.badge-sm { font-size: 0.65rem; padding: 2px 6px; border-radius: 4px; }

/* ---------- Listado: pagination, empty-state, filters ---------- */
.pagination-wrap { display: flex; justify-content: center; margin-top: 48px; }
.pagination { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; justify-content: center; }
.pagination .page-link {
    padding: 12px 18px;
    border-radius: 10px;
    color: var(--text-medium);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid var(--gray-200);
    background: var(--background-light);
}
.pagination .page-link:hover { background: var(--gray-200); color: var(--primary); }
.pagination .page-item.active .page-link { background: var(--gradient-primary); color: white; border-color: transparent; }
.pagination .page-item.disabled .page-link { opacity: 0.5; pointer-events: none; }
.empty-state { text-align: center; padding: 80px 24px; }
.empty-state h3 { font-size: 1.5rem; margin-bottom: 12px; color: var(--text-dark); }
.empty-state p { color: var(--text-medium); margin-bottom: 24px; }
/* Filtros sidebar – Opción A compacta (borde izquierdo, estilo leads/cards) */
.filters-sidebar {
    background: var(--background-light);
    border: 1px solid rgba(99,102,241,0.08);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 12px 14px;
    box-shadow: 0 2px 4px rgba(99,102,241,0.08);
}
.filters-sidebar .form-label { font-size: 0.8125rem; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.filters-sidebar .form-control, .filters-sidebar .form-select { font-size: 0.9rem; }
/* Tom Select marcas: icono + count en pill (opción B) + separador top 10 / otras marcas */
.hero-search-card .ts-wrapper .ts-dropdown .ts-dropdown-content,
.filters-sidebar .ts-wrapper .ts-dropdown .ts-dropdown-content,
.card .ts-wrapper .ts-dropdown .ts-dropdown-content { max-height: 320px; }
.filters-sidebar .ts-wrapper .ts-dropdown .ts-optgroup-header-empty { padding: 0; height: 0; margin: 0; border: none; overflow: hidden; min-height: 0; }
.filters-sidebar .ts-wrapper .ts-dropdown .ts-optgroup-header-label {
    padding: 8px 14px 6px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em;
    color: var(--text-medium, #475569); border-top: 1px solid var(--gray-200, #E2E8F0); margin-top: 4px;
}
.filters-sidebar .ts-wrapper .ts-dropdown .option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}
.filters-sidebar .ts-wrapper .ts-dropdown .option .option-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.filters-sidebar .ts-wrapper .ts-dropdown .option .marca-icon {
    width: 28px; height: 28px; min-width: 28px; min-height: 28px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; overflow: hidden;
}
.filters-sidebar .ts-wrapper .ts-dropdown .option .marca-icon img,
.filters-sidebar .ts-wrapper .ts-dropdown .option .marca-icon svg { width: 28px; height: 28px; min-width: 28px; min-height: 28px; object-fit: contain; display: block; }
.filters-sidebar .ts-wrapper .ts-dropdown .option .marca-icon-empty { width: 28px; height: 28px; min-width: 28px; min-height: 28px; flex-shrink: 0; display: inline-flex; }
.filters-sidebar .ts-wrapper .ts-control .item .marca-icon-empty { width: 22px; height: 22px; min-width: 22px; min-height: 22px; flex-shrink: 0; display: inline-flex; }
.filters-sidebar .ts-wrapper .ts-dropdown .option .marca-icon .marca-initial-wrap,
.filters-sidebar .ts-wrapper .ts-dropdown .option .marca-icon.marca-initial-wrap {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; min-width: 28px; min-height: 28px; flex-shrink: 0;
}
.filters-sidebar .ts-wrapper .ts-dropdown .option .marca-icon .marca-initial,
.filters-sidebar .ts-wrapper .ts-dropdown .option .marca-icon span.marca-initial {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; min-width: 28px; min-height: 28px; flex-shrink: 0;
    border-radius: 50%; background: var(--gray-200, #E2E8F0); color: var(--text-medium, #475569);
    font-size: 0.75em; font-weight: 700; line-height: 1;
}
.filters-sidebar .ts-wrapper .ts-dropdown .option .marca-count,
.filters-sidebar .ts-wrapper .ts-dropdown .option .modelo-count {
    font-size: 0.75rem; font-weight: 600; color: var(--text-medium);
    background: var(--gray-100, #F1F5F9); padding: 4px 10px; border-radius: 9999px;
    flex-shrink: 0;
}
.filters-sidebar .ts-wrapper .ts-control .item {
    display: inline-flex !important;
    align-items: center !important;
}
.filters-sidebar .ts-wrapper .ts-control .item .marca-icon {
    width: 22px; height: 22px; min-width: 22px; min-height: 22px; margin-right: 6px;
    display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; overflow: hidden;
}
.filters-sidebar .ts-wrapper .ts-control .item .marca-icon img,
.filters-sidebar .ts-wrapper .ts-control .item .marca-icon svg { width: 22px; height: 22px; min-width: 22px; min-height: 22px; object-fit: contain; display: block; }
.filters-sidebar .ts-wrapper .ts-control .item .marca-icon .marca-initial,
.filters-sidebar .ts-wrapper .ts-control .item .marca-icon span.marca-initial {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; min-width: 22px; min-height: 22px; flex-shrink: 0;
    border-radius: 50%; background: var(--gray-200, #E2E8F0); color: var(--text-medium, #475569);
    font-size: 0.7em; font-weight: 700;
}
/* Botones Buscar / Limpiar filtros – coherentes con filtros-mobile-toggle y filtro-tags */
.filters-sidebar .btn-filtros-buscar,
.filters-sidebar .btn-filtros-limpiar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}
.filters-sidebar .btn-filtros-buscar {
    background: var(--gradient-primary);
    color: #fff;
    margin-top: 12px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}
.filters-sidebar .btn-filtros-buscar:hover {
    color: #fff;
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}
.filters-sidebar .btn-filtros-buscar:active { transform: translateY(0); }
.filters-sidebar .btn-filtros-buscar i { color: inherit; font-size: 0.9rem; }
.filters-sidebar .btn-filtros-limpiar {
    margin-top: 8px;
    background: transparent;
    color: var(--text-light);
    font-size: 0.75rem;
}
.filters-sidebar .btn-filtros-limpiar:hover {
    background: rgba(99, 102, 241, 0.06);
    color: var(--primary);
}
.filters-sidebar [data-bs-toggle="collapse"][aria-expanded="true"] .collapse-icon { transform: rotate(180deg); }
/* Botón "Filtros" mobile: pill/card con icono destacado */
.filtros-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(99, 102, 241, 0.06) 100%);
    border-left: 4px solid var(--primary);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08);
    transition: all 0.25s ease;
    cursor: pointer;
    text-align: center;
}
.filtros-mobile-toggle:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(99, 102, 241, 0.1) 100%);
    color: var(--primary);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}
.filtros-mobile-toggle:active { transform: translateY(0); }
.filtros-mobile-toggle-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.filtros-mobile-toggle-chevron {
    font-size: 0.7rem;
    color: var(--primary);
    opacity: 0.9;
    transition: transform 0.25s ease;
    margin-left: auto;
}
.filtros-mobile-toggle[aria-expanded="true"] .collapse-icon,
.filtros-mobile-toggle[aria-expanded="true"] .filtros-mobile-toggle-chevron { transform: rotate(180deg); }

/* ---------- Búsqueda móvil: Opción D (título + una fila [Filtros | count | Ordenar]) ---------- */
@media (max-width: 767px) {
    /* Ocultar botón grande Filtros del sidebar; se usa el de la fila compacta */
    .filtros-mobile-toggle { display: none !important; }
    /* Ocultar cabecera y barra clásicas; se usa .mobile-search-header-d */
    #filtrosContentCol > .page-header,
    #filtrosContentCol > .results-sort-bar { display: none !important; }
    /* Sidebar no visible hasta que se abran los filtros; evita capa blanca vacía */
    .filters-sidebar { display: none !important; }
    .filters-sidebar:has(#filtrosMobileCollapse.show) { display: block !important; }
}

/* Estilos del bloque Option D (solo visible en mobile vía d-block d-lg-none) */
.mobile-search-header-d {
    padding: 0;
}
.mobile-search-title-d {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: var(--text-dark);
    margin-bottom: 6px !important;
    line-height: 1.3;
}
.mobile-search-bar-d {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: var(--background-light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    font-size: 0.75rem;
}
.mobile-search-btn-filtros-d {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary);
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.mobile-search-btn-filtros-d:hover {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-dark);
}
.mobile-search-count-d {
    flex: 1;
    text-align: center;
    color: var(--text-medium);
}
.mobile-search-count-d strong {
    color: var(--primary);
}
.mobile-search-btn-ord-d {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px 8px !important;
    border: 1px solid var(--gray-200) !important;
    border-radius: var(--radius-full) !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    color: var(--text-medium) !important;
    background: var(--background-light) !important;
}
.mobile-search-btn-ord-d:hover {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    background: rgba(99, 102, 241, 0.08) !important;
}

/* En tablet/desktop (768px+) mantener cabecera compacta si no usan Option D */
@media (min-width: 768px) {
    #filtrosContentCol .mobile-search-header-d { display: none !important; }
}

/* En desktop (lg) el panel de filtros siempre visible; en mobile es colapsable */
@media (min-width: 992px) {
    .filtros-mobile-collapse.collapse { display: block !important; height: auto; overflow: visible; }
}

/* Filtros búsqueda – Opción A: bloque único, cabecera compacta */
.filters-sidebar .filters-premium-wrap {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    margin-bottom: 0;
}
.filters-sidebar .filters-premium-header {
    padding: 8px 6px 12px;
    background: transparent;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.filters-sidebar .filters-premium-header .header-left { display: flex; align-items: center; gap: 8px; }
.filters-sidebar .filters-premium-header .header-left i.fa-sliders-h { color: var(--primary); font-size: 0.85rem; }
.filters-sidebar .filters-premium-header .btn-minimize-filtros {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    background: #fff;
    color: var(--text-medium);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filters-sidebar .filters-premium-header .btn-minimize-filtros:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary);
    border-color: rgba(99, 102, 241, 0.25);
}
.filters-sidebar .filters-premium-header .btn-minimize-filtros i { font-size: 0.75rem; }
@media (min-width: 992px) {
    .filters-sidebar .filters-premium-header .btn-minimize-filtros { display: inline-flex; }
}
/* Botón colapsar filtros (solo mobile, dentro del panel) */
.filters-sidebar .filters-premium-header .btn-collapse-filtros-mobile {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-medium);
    background: var(--background-light);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.filters-sidebar .filters-premium-header .btn-collapse-filtros-mobile:hover {
    background: var(--gray-100);
    border-color: var(--primary);
    color: var(--primary);
}
/* Botón "Mostrar filtros" cuando el sidebar está colapsado (solo desktop) */
.show-filters-btn {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid var(--gray-200, #E2E8F0);
    background: #fff;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 16px;
    transition: background 0.2s, box-shadow 0.2s;
}
.show-filters-btn:hover { background: rgba(79, 70, 229, 0.08); color: var(--primary); box-shadow: 0 2px 8px rgba(79, 70, 229, 0.12); text-decoration: none; }
.show-filters-btn i { font-size: 0.9rem; }
.filtros-sidebar-collapsed .show-filters-btn { display: inline-flex; }
@media (max-width: 991.98px) {
    .show-filters-btn { display: none !important; }
}
.filters-sidebar .accordion-filtros-c .accordion-item {
    border: none;
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    overflow: hidden;
    background: transparent;
}
.filters-sidebar .accordion-filtros-c .accordion-item:last-child { margin-bottom: 0; }
.filters-sidebar .accordion-filtros-c .accordion-button {
    background: #fff !important;
    color: var(--text-dark) !important;
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 10px 12px;
    border: 1px solid var(--gray-200);
    box-shadow: none !important;
    border-radius: var(--radius-sm) !important;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.filters-sidebar .accordion-filtros-c .accordion-button::after { margin-left: auto; }
.filters-sidebar .accordion-filtros-c .accordion-button:hover {
    background: var(--gray-100) !important;
    border-color: rgba(99, 102, 241, 0.2) !important;
}
.filters-sidebar .accordion-filtros-c .accordion-button:not(.collapsed) {
    background: rgba(99, 102, 241, 0.06) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}
.filters-sidebar .accordion-filtros-c .accordion-body {
    padding: 10px 12px 12px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.filters-sidebar .accordion-filtros-c .filter-icon-c {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 0.7rem;
    color: #fff;
    flex-shrink: 0;
    transition: box-shadow 0.2s ease;
}
.filters-sidebar .accordion-filtros-c .accordion-button:not(.collapsed) .filter-icon-c {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.filters-sidebar .filter-icon-c.busqueda { background: linear-gradient(135deg, #6366F1, #4F46E5); }
.filters-sidebar .filter-icon-c.tipo { background: linear-gradient(135deg, #6366F1, #4F46E5); }
.filters-sidebar .filter-icon-c.marca { background: linear-gradient(135deg, #10B981, #059669); }
.filters-sidebar .filter-icon-c.precio { background: linear-gradient(135deg, #F59E0B, #D97706); }
.filters-sidebar .filter-icon-c.ubicacion { background: linear-gradient(135deg, #EC4899, #DB2777); }
.filters-sidebar .filter-icon-c.vendedor { background: linear-gradient(135deg, #8B5CF6, #7C3AED); }
.filters-sidebar .filter-icon-c.ano { background: linear-gradient(135deg, #06B6D4, #0891B2); }
.filters-sidebar .filter-icon-c.km { background: linear-gradient(135deg, #64748B, #475569); }
.filters-sidebar .filter-icon-c.carroceria { background: linear-gradient(135deg, #14B8A6, #0D9488); }
.filters-sidebar .filter-icon-c.motor { background: linear-gradient(135deg, #F97316, #EA580C); }
.filters-sidebar .filter-icon-c.eco { background: linear-gradient(135deg, #22C55E, #16A34A); }
.filters-sidebar .filter-icon-c.color { background: linear-gradient(135deg, #A855F7, #9333EA); }
.filters-sidebar .filters-premium-wrap .form-label { font-size: 0.7rem; font-weight: 600; color: var(--text-medium); margin-bottom: 4px; }
.filters-sidebar .filters-premium-wrap .form-control-sm,
.filters-sidebar .filters-premium-wrap .form-select-sm {
    font-size: 0.8125rem;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--gray-200);
}
.filters-sidebar .filters-premium-wrap .form-control-sm:focus,
.filters-sidebar .filters-premium-wrap .form-select-sm:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.filters-sidebar .filters-premium-wrap .mb-3 { margin-bottom: 0.75rem !important; }
.filters-sidebar .filters-premium-wrap .mb-0 { margin-bottom: 0 !important; }
/* Chip groups en filtros – compactos (Opción A) */
.filters-sidebar .chip-group { display: flex; flex-wrap: wrap; gap: 6px; }
.filters-sidebar .chip-group .chip {
    padding: 5px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--gray-200);
    background: #fff;
    color: var(--text-medium);
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
}
.filters-sidebar .chip-group .chip:hover,
.filters-sidebar .chip-group .chip.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
}
/* Etiquetas de filtros aplicados (mobile y sidebar) – Variante C: pills outline + Limpiar como pill secundario */
.filtros-etiquetas-wrap { margin-bottom: 1rem; }
.filtros-etiquetas { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filtro-tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px;
    border-radius: 9999px;
    background: var(--background-light, #fff);
    border: 2px solid rgba(59, 130, 246, 0.3);
    color: var(--text-dark);
    font-size: 0.875rem; font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.filtro-tag:hover { border-color: var(--primary); color: var(--primary); background: rgba(59, 130, 246, 0.08); }
.filtro-tag .filtro-tag-x { color: var(--primary); font-size: 0.7rem; opacity: 0.85; }
.filtro-tag-limpiar {
    font-size: 0.85rem; font-weight: 600;
    color: var(--text-medium);
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 12px;
    border-radius: 9999px;
    background: var(--gray-100);
    transition: all 0.2s ease;
}
.filtro-tag-limpiar:hover { color: var(--primary); background: rgba(59, 130, 246, 0.08); }
.filtro-tag-limpiar i { font-size: 0.75rem; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card {
    background: var(--background-light);
    border: 1px solid rgba(59,130,246,0.12);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.35s ease;
    box-shadow: 0 4px 20px rgba(59,130,246,0.06);
    display: flex;
    flex-direction: column;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(59,130,246,0.18); border-color: rgba(59,130,246,0.25); }
.blog-card-image {
    height: 180px;
    background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, rgba(99,102,241,0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
}
.blog-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; color: var(--text-dark); line-height: 1.35; }
.blog-card-title a { color: inherit; }
.blog-card-title a:hover { color: var(--primary); }
.blog-card-meta { font-size: 0.85rem; color: var(--text-light); margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.blog-card-extracto { color: var(--text-medium); font-size: 0.95rem; line-height: 1.55; margin-bottom: 16px; flex: 1; }
.blog-card-link { font-weight: 600; color: var(--primary); font-size: 0.95rem; display: inline-flex; align-items: center; gap: 6px; }
.blog-card-link:hover { color: var(--primary-dark); }
@media (max-width: 991px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---------- Dashboard ---------- */
.dashboard-page { padding-top: 100px; }
.dashboard-header { margin-bottom: 2rem; }
.dashboard-title { font-size: 1.75rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.5rem; }
.dashboard-subtitle { font-size: 1.05rem; color: var(--text-medium); margin-bottom: 0; }
.dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}
.dashboard-kpi-card {
    background: var(--background-light);
    border-radius: 24px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.08);
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.06);
    transition: all 0.3s ease;
}
.dashboard-kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.12);
}
.dashboard-kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    transform: translate(30%, -30%);
    opacity: 0.1;
}
.dashboard-kpi-card.kpi-purple::before { background: linear-gradient(135deg, #6366F1 0%, #22D3EE 100%); }
.dashboard-kpi-card.kpi-cyan::before { background: linear-gradient(135deg, #22D3EE 0%, #06B6D4 100%); }
.dashboard-kpi-card.kpi-lime::before { background: linear-gradient(135deg, #A3E635 0%, #84CC16 100%); }
.dashboard-kpi-card.kpi-orange::before { background: linear-gradient(135deg, #F97316 0%, #EC4899 100%); }
.dashboard-kpi-card.kpi-pink::before { background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%); }
.dashboard-kpi-card.kpi-teal::before { background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%); }
.dashboard-kpi-card.kpi-blue::before { background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%); }
.dashboard-kpi-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: white;
}
.dashboard-kpi-card.kpi-purple .dashboard-kpi-icon { background: linear-gradient(135deg, #6366F1 0%, #22D3EE 100%); box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3); }
.dashboard-kpi-card.kpi-cyan .dashboard-kpi-icon { background: linear-gradient(135deg, #22D3EE 0%, #06B6D4 100%); box-shadow: 0 8px 32px rgba(34, 211, 238, 0.25); }
.dashboard-kpi-card.kpi-lime .dashboard-kpi-icon { background: linear-gradient(135deg, #A3E635 0%, #84CC16 100%); box-shadow: 0 8px 24px rgba(163, 230, 53, 0.3); }
.dashboard-kpi-card.kpi-orange .dashboard-kpi-icon { background: linear-gradient(135deg, #F97316 0%, #EC4899 100%); box-shadow: 0 8px 24px rgba(249, 115, 22, 0.3); }
.dashboard-kpi-card.kpi-pink .dashboard-kpi-icon { background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%); box-shadow: 0 8px 24px rgba(236, 72, 153, 0.3); }
.dashboard-kpi-card.kpi-teal .dashboard-kpi-icon { background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%); box-shadow: 0 8px 24px rgba(20, 184, 166, 0.3); }
.dashboard-kpi-card.kpi-blue .dashboard-kpi-icon { background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%); box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3); }
.dashboard-kpi-value { font-size: 2.25rem; font-weight: 800; color: var(--text-dark); line-height: 1; margin-bottom: 0.25rem; }
.dashboard-kpi-label { font-size: 0.9rem; color: var(--text-medium); margin-bottom: 0.5rem; }
.dashboard-kpi-breakdown { font-size: 0.8rem; color: var(--text-light); line-height: 1.5; }
.dashboard-kpi-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
    text-decoration: none;
    transition: gap 0.2s ease;
}
.dashboard-kpi-link:hover { gap: 0.6rem; color: var(--primary); text-decoration: underline; }
.dashboard-actions-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: 24px;
    border: 1px solid rgba(99, 102, 241, 0.08);
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.06);
}
.dashboard-btn-action {
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none !important;
    transition: all 0.2s ease;
}
.dashboard-btn-action-outline {
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.15);
}
.dashboard-btn-action-outline:hover {
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary);
    transform: translateY(-1px);
}
.dashboard-btn-action-primary {
    background: linear-gradient(135deg, #6366F1 0%, #22D3EE 100%);
    color: white !important;
    border: none;
}
.dashboard-btn-action-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.3);
    color: white !important;
}
@media (max-width: 768px) {
    .dashboard-kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-title { font-size: 1.5rem; }
}
@media (max-width: 480px) {
    .dashboard-kpi-grid { grid-template-columns: 1fr; }
}
.dashboard-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
@media (max-width: 991px) { .dashboard-blocks { grid-template-columns: 1fr; } }
.dashboard-block {
    background: var(--background-light);
    border: 1px solid rgba(59, 130, 246, 0.12);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.06);
}
.dashboard-block-title { font-size: 1.1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.dashboard-block-title i { color: var(--primary); }
.dashboard-block-footer { margin-top: 16px; }
.dashboard-block-footer a { font-size: 0.88rem; font-weight: 600; color: var(--primary); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.dashboard-block-footer a:hover { text-decoration: underline; }
.msg-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(59, 130, 246, 0.08); align-items: flex-start; }
.msg-item:last-child { border-bottom: none; }
.msg-avatar {
    width: 40px; height: 40px; border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.msg-item.unread .msg-avatar { background: var(--gradient-primary, linear-gradient(135deg, #3B82F6, #6366F1)); color: white; }
.msg-body { flex: 1; min-width: 0; }
.msg-from { font-weight: 600; font-size: 0.9rem; color: var(--text-dark); }
.msg-item.unread .msg-from { color: var(--primary); }
.msg-about { font-size: 0.8rem; color: var(--text-light); margin-top: 2px; }
.msg-preview { font-size: 0.85rem; color: var(--text-medium); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-time { font-size: 0.75rem; color: var(--text-light); flex-shrink: 0; }
.dashboard-empty { padding: 24px; text-align: center; color: var(--text-light); font-size: 0.9rem; }
.ad-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(59, 130, 246, 0.08); }
.ad-row:last-child { border-bottom: none; }
.ad-thumb { width: 56px; height: 42px; border-radius: 10px; background: var(--gray-200, #E2E8F0); flex-shrink: 0; overflow: hidden; }
.ad-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ad-info h4 { font-size: 0.9rem; font-weight: 600; margin: 0 0 2px; color: var(--text-dark); }
.ad-info p { font-size: 0.8rem; color: var(--text-light); margin: 0; }
.ad-vistas { margin-left: auto; font-size: 0.85rem; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 4px; }

/* ---------- Admin ---------- */
.admin-page { padding-top: 100px; }
.admin-title { font-size: 1.75rem; font-weight: 700; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.stat-card { background: #fff; border: 1px solid rgba(59,130,246,0.12); border-radius: 24px; padding: 24px; }
.stat-card h3 { font-size: 2rem; font-weight: 800; margin-bottom: 4px; }
.stat-card p { font-size: 0.9rem; color: #475569; margin: 0; }
.stat-card a { font-size: 0.85rem; font-weight: 600; color: #3B82F6; margin-top: 8px; display: inline-block; }
.stat-card-wide { grid-column: 1/-1; }
.stat-card-subtitle { font-size: 1rem; font-weight: 700; margin-bottom: 12px; color: #1e293b; }
.stat-card-inner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card-inner-grid span { font-size: 1rem; color: #475569; display: flex; align-items: center; gap: 8px; }
.stat-card-inner-grid span i { color: #3B82F6; }
.stat-card-inner-grid span small { font-size: 0.8rem; color: #64748b; }
@media (max-width: 768px) { .stat-card-inner-grid { grid-template-columns: repeat(2, 1fr); } }
.filtro-wrap { margin-bottom: 20px; }
.filtro-wrap form { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.filtro-wrap select { max-width: 200px; }
.table-admin { background: var(--background-light); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(99,102,241,0.08); box-shadow: 0 4px 24px rgba(99,102,241,0.06); }
.table-admin th { background: rgba(99,102,241,0.08); font-weight: 600; padding: 14px 16px; font-size: 0.9rem; }
.table-admin td { padding: 14px 16px; vertical-align: middle; }
.table-admin tr:not(:last-child) { border-bottom: 1px solid rgba(99,102,241,0.08); }
.badge-est, .badge-tipo { font-size: 0.75rem; padding: 4px 10px; border-radius: var(--radius-full); }
.badge-pendiente { background: #fef3c7; color: #92400e; }
.badge-publicado { background: #d1fae5; color: #065f46; }
.badge-rechazado { background: #fee2e2; color: #991b1b; }
.badge-borrador { background: #e5e7eb; color: #374151; }
.badge-vendido { background: #dbeafe; color: #1e40af; }
.badge-desactivado { background: #e5e7eb; color: #4b5563; }
.badge-particular { background: #dbeafe; color: #1e40af; }
.badge-profesional { background: #d1fae5; color: #065f46; }
.badge-admin { background: #fef3c7; color: #92400e; }
.thumb-mini { width: 70px; height: 52px; object-fit: cover; border-radius: 8px; }
.btn-act { padding: 6px 14px; font-size: 0.8rem; border-radius: 8px; font-weight: 600; }
.reporte-comentario { max-width: 200px; font-size: 0.875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge-revisado { background: #d1fae5; color: #065f46; }
.badge-descartado { background: #e2e8f0; color: #475569; }
.badge-pendiente_ia { background: #fef3c7; color: #92400e; }
.badge-aprobado { background: #d1fae5; color: #065f46; }
.badge-revision_manual { background: #fef3c7; color: #92400e; }
.form-card { background: var(--background-light); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 24px; border: 1px solid rgba(99,102,241,0.08); }
.form-card label { font-weight: 600; color: var(--text-dark); }
#contenido { min-height: 280px; font-family: inherit; }
.portada-actual { max-width: 280px; max-height: 160px; object-fit: cover; border-radius: 8px; margin-top: 8px; }
.resena-desc-cell { max-width: 280px; font-size: 0.875rem; color: var(--text-medium); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Detalle anuncio ---------- */
.detail-back { margin-bottom: 20px; }
.detail-back a { color: var(--text-medium); font-size: 0.95rem; text-decoration: none; }
.detail-back a:hover { color: var(--primary); }
.detail-gallery { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--gray-100); margin-bottom: 28px; box-shadow: var(--shadow-md); }
.detail-gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    max-height: 480px;
    cursor: pointer;
    overflow: hidden;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}
.detail-gallery-main-link {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.detail-gallery-main-link img,
.detail-gallery-main > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: var(--gray-100);
}
.detail-gallery-thumbs { display: flex; gap: 10px; flex-wrap: wrap; padding: 14px; background: var(--background-light); border-top: 1px solid var(--gray-200); }
.detail-gallery-thumb { display: block; width: 84px; height: 56px; flex-shrink: 0; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; transition: all 0.2s; cursor: pointer; text-decoration: none; }
.detail-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-gallery-thumb:hover, .detail-gallery-thumb.active { border-color: var(--primary); }
.detail-badge { position: absolute; top: 16px; left: 16px; background: var(--gradient-primary); color: white; padding: 8px 16px; border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 700; z-index: 2; box-shadow: 0 2px 8px rgba(99,102,241,0.4); }
.detail-content h1 { font-size: 1.85rem; font-weight: 700; margin-bottom: 6px; color: var(--text-dark); }
.detail-subtitle { color: var(--text-medium); font-size: 1.05rem; margin-bottom: 20px; }
.detail-price { font-size: 2rem; font-weight: 700; background: var(--gradient-primary); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.detail-specs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.detail-block { background: var(--background-light); border: 1px solid rgba(99,102,241,0.12); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; box-shadow: var(--shadow-md); }
.detail-block .section-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; color: var(--text-dark); }
.detail-specs .item { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--gray-100); border-radius: var(--radius-full); color: var(--text-medium); font-size: 0.9rem; font-weight: 500; }
.detail-specs .item i { color: var(--primary); font-size: 0.9rem; }
.detail-desc { color: var(--text-medium); line-height: 1.75; white-space: pre-line; margin-bottom: 28px; }
.detail-side { background: var(--background-light); border: 1px solid rgba(99,102,241,0.2); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-md); position: sticky; top: 88px; }
.detail-side .detail-price { margin-bottom: 16px; font-size: 1.75rem; }
.detail-side .location { color: var(--text-medium); font-size: 0.95rem; }
.detail-side .location i { color: var(--primary); margin-right: 8px; }
.detail-side .detail-location {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    background: var(--gray-100, #f1f5f9);
    border-radius: var(--radius-md, 8px);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-medium, #475569);
    margin-top: 20px;
    margin-bottom: 16px;
    border: 1px solid transparent;
    transition: border-color 0.2s, background 0.2s;
}
.detail-side .detail-location i { color: var(--primary); font-size: 0.85rem; width: 18px; text-align: center; }
.detail-side .detail-location:hover { background: var(--gray-50, #f8fafc); border-color: rgba(99, 102, 241, 0.2); }
.detail-stats-owner {
    background: var(--gray-50, #f8fafc);
    border: 1px solid var(--gray-200, #e2e8f0);
    border-radius: var(--radius-md, 8px);
    padding: 14px 16px;
}
.detail-stats-owner-title { font-size: 0.95rem; font-weight: 700; color: var(--text-dark); margin-bottom: 12px; display: flex; align-items: center; }
.detail-stats-owner-title i { color: var(--primary); }
.detail-stats-owner-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; }
.detail-stats-owner-grid span { font-size: 0.9rem; color: var(--text-medium); display: flex; align-items: center; gap: 6px; }
.detail-stats-owner-grid span i { color: var(--primary); width: 18px; text-align: center; }
.detail-stats-owner-grid span small { font-size: 0.75rem; color: var(--text-light); margin-left: 2px; }
.detail-side .stats-mini { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 14px; font-size: 0.85rem; color: var(--text-medium); margin-bottom: 1rem; }
.detail-side .stats-mini span { display: inline-flex; align-items: center; gap: 6px; }
.detail-side .stats-mini i { color: var(--primary); }
.tech-specs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-bottom: 28px; border: 1px solid var(--gray-200); border-radius: var(--radius-md); overflow: hidden; background: var(--background-light); }
.tech-spec-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--gray-200); font-size: 0.9rem; }
.tech-spec-item:nth-child(odd) { border-right: 1px solid var(--gray-200); }
.tech-spec-item:nth-last-child(-n+2) { border-bottom: none; }
.tech-spec-label { color: var(--text-medium); display: flex; align-items: center; gap: 8px; }
.tech-spec-label i { color: var(--primary); font-size: 0.85rem; width: 18px; text-align: center; }
.tech-spec-value { font-weight: 600; color: var(--text-dark); text-align: right; }
.tech-spec-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 600; }
.tech-spec-badge.yes { background: rgba(34,197,94,0.15); color: #16a34a; }
.tech-spec-badge.no { background: rgba(239,68,68,0.15); color: #dc2626; }
.tech-spec-badge.warning { background: rgba(245,158,11,0.15); color: #d97706; }
.tech-specs-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; color: var(--text-dark); }
@media (max-width: 575px) { .tech-specs-grid { grid-template-columns: 1fr; } .tech-spec-item:nth-child(odd) { border-right: none; } .tech-spec-item:not(:last-child) { border-bottom: 1px solid var(--gray-200); } }
@media (max-width: 767px) { .detail-gallery-main { max-height: 280px; } }
@media (max-width: 991px) { .detail-side { position: static; } }
.detail-gallery-thumb-video { position: relative; }
.detail-gallery-thumb-video .video-play-icon {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 1.5rem; color: rgba(255,255,255,0.95); text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    pointer-events: none;
}
.detail-gallery-main-video { position: absolute; inset: 0; display: none; background: #000; overflow: hidden; }
.detail-gallery-main-video.is-active { display: block; }
.detail-gallery-main-video .detail-video-area { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.detail-gallery-main-video .detail-video-area video { width: 100%; height: 100%; object-fit: cover; }
.detail-gallery-main-video .detail-video-controls {
    position: absolute; left: 12px; right: 12px; bottom: 0;
    display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.5));
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    color: #fff; font-size: 0.8rem; font-weight: 500;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}
.detail-gallery-main-video:hover .detail-video-controls,
.detail-gallery-main-video.controls-visible .detail-video-controls {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.detail-gallery-main-video .detail-video-btn {
    width: 40px; height: 40px; border: none; border-radius: 10px;
    background: rgba(255,255,255,0.18); color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background 0.2s, transform 0.15s;
    flex-shrink: 0;
}
.detail-gallery-main-video .detail-video-btn:hover { background: rgba(255,255,255,0.35); transform: scale(1.05); }
.detail-gallery-main-video .detail-video-btn i { font-size: 0.95rem; }
.detail-gallery-main-video .detail-video-time { flex: 0 0 auto; min-width: 72px; font-variant-numeric: tabular-nums; color: rgba(255,255,255,0.95); }
.detail-gallery-main-video .detail-video-progress-wrap { flex: 1; min-width: 0; }
.detail-gallery-main-video .detail-video-seek {
    width: 100%; height: 6px; cursor: pointer;
    -webkit-appearance: none; appearance: none;
    background: rgba(255,255,255,0.25); border-radius: 3px;
}
.detail-gallery-main-video .detail-video-seek::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 14px; height: 14px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    cursor: pointer; transition: transform 0.15s;
}
.detail-gallery-main-video .detail-video-seek::-webkit-slider-thumb:hover { transform: scale(1.15); }
.detail-gallery-main-video .detail-video-seek::-moz-range-thumb {
    width: 14px; height: 14px; border-radius: 50%;
    background: #fff; border: none; box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    cursor: pointer;
}
.detail-gallery-main-video .video-ampliar-btn {
    flex: 0 0 auto;
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(255,255,255,0.18); color: #fff;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; transition: background 0.2s, transform 0.15s;
}
.detail-gallery-main-video .video-ampliar-btn:hover { background: rgba(255,255,255,0.35); color: #fff; transform: scale(1.05); }
.detail-gallery-main-video .detail-video-area { cursor: pointer; }
.detail-gallery-main-video .detail-video-ended {
    position: absolute; inset: 0;
    display: none; align-items: center; justify-content: center;
    background-size: cover; background-position: center;
    z-index: 2;
}
.detail-gallery-main-video.video-ended .detail-video-ended { display: flex; }
.detail-gallery-main-video .detail-video-ended::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
.detail-gallery-main-video .detail-video-replay-btn {
    position: relative; z-index: 1;
    display: inline-flex; align-items: center; gap: 12px;
    padding: 16px 28px;
    background: rgba(255,255,255,0.95);
    color: var(--primary, #6366f1);
    border: none; border-radius: 50px;
    font-size: 1rem; font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
.detail-gallery-main-video .detail-video-replay-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
    color: var(--primary, #6366f1);
}
.detail-gallery-main-video .detail-video-replay-btn i { font-size: 1.4rem; }
.similar-section { margin-top: 3rem; padding-top: 1.5rem; }
.similar-section .section-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0; color: var(--text-dark); }
.similar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.similar-card { background: var(--background-light); border: 1px solid rgba(99,102,241,0.12); border-radius: var(--radius-lg); padding: 0.75rem; box-shadow: var(--shadow-md); transition: all var(--transition-base); text-decoration: none !important; color: inherit; display: block; }
.similar-card:hover { box-shadow: var(--shadow-lg); }
.similar-card img { width: 100%; height: 160px; object-fit: cover; border-radius: var(--radius-md); display: block; }
.similar-card .similar-title { font-weight: 600; font-size: 0.95rem; margin-top: 0.5rem; color: var(--text-dark); }
.similar-card .similar-meta { font-size: 0.875rem; color: var(--text-medium); margin-top: 0.25rem; }
@media (max-width: 991px) { .similar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .similar-grid { grid-template-columns: 1fr; } }
.gslide-description, .description-bottom { display: none !important; }
.glightbox-container .gslider { display: flex !important; justify-content: center !important; align-items: center !important; }
.glightbox-container .gslide.current,
.glightbox-container .gslide.prev { display: flex !important; justify-content: center !important; align-items: center !important; width: 100% !important; }
.glightbox-container .gslide-media { display: flex !important; justify-content: center !important; align-items: center !important; margin: 0 auto !important; }
.glightbox-container .gslide-image { display: flex !important; justify-content: center !important; align-items: center !important; }
.glightbox-container .gslide-image img { margin: 0 auto !important; object-position: center center !important; }
.glightbox-container .ginner-container.gvideo-container {
    height: 100vh !important; max-height: 100vh !important;
    display: flex !important; align-items: center !important; justify-content: center !important; margin: 0 !important;
}
@media (max-width: 768px) { .glightbox-container .ginner-container.gvideo-container { width: 100% !important; } }
.glightbox-container .gslide-video,
.glightbox-container .gslide-video.gslide-video {
    width: auto !important; max-width: 100% !important;
    height: 100% !important; max-height: 100vh !important;
    display: flex !important; align-items: center !important; justify-content: center !important; margin: 0 auto !important;
}
@media (min-width: 769px) {
    .glightbox-container .gslide-video,
    .glightbox-container .gslide-video.gslide-video { max-width: 100vh !important; }
}
.glightbox-container .gslide-video > *,
.glightbox-container .gslide-video .gvideo-wrapper > *,
.glightbox-container .gslide-video .plyr > * { margin-left: auto !important; margin-right: auto !important; }
.glightbox-container .gslide-video .gvideo-wrapper,
.glightbox-container .gslide-video .plyr {
    display: flex !important; align-items: center !important; justify-content: center !important;
    width: auto !important; max-width: 100% !important;
    height: 100% !important; max-height: 100vh !important;
    margin-left: auto !important; margin-right: auto !important;
}
.glightbox-container .gslide-video .plyr__video-wrapper,
.glightbox-container .gslide-video .plyr__video-embed {
    display: flex !important; align-items: center !important; justify-content: center !important;
    width: 100% !important; height: 100% !important; max-height: 100vh !important;
}
.glightbox-container .gslide-video video,
.glightbox-container .gslide-video .plyr__video {
    width: 100% !important; height: 100% !important; max-height: 100vh !important;
    object-fit: contain !important; object-position: center center !important; display: block !important;
}
.glightbox-container .gslide-video .video-centered { margin-left: auto !important; margin-right: auto !important; }

/* ---------- Mensajes ---------- */
.msg-split-page { padding-top: 100px; min-height: calc(100vh - 120px); }
.msg-split-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    max-width: 960px;
    min-height: 560px;
    margin: 0 auto;
    background: var(--background-light);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(99,102,241,0.12);
    box-shadow: 0 4px 24px rgba(99,102,241,0.08);
    overflow: hidden;
}
@media (max-width: 768px) {
    .msg-split-container { grid-template-columns: 1fr; min-height: 400px; }
    .msg-split-list .msg-conv-item span.msg-last-desk { display: none; }
}
.msg-split-list { border-right: 1px solid var(--gray-200, #e2e8f0); display: flex; flex-direction: column; }
@media (max-width: 768px) { .msg-split-list { border-right: none; border-bottom: 1px solid var(--gray-200); } }
.msg-split-list .msg-search-wrap { padding: 12px; border-bottom: 1px solid var(--gray-100); position: relative; }
.msg-split-list .msg-search-wrap input {
    width: 100%; padding: 8px 12px 8px 36px; border-radius: 9999px;
    border: 1px solid var(--gray-200); font-size: 0.9rem; background: var(--gray-50, #f8fafc);
}
.msg-split-list .msg-search-wrap .msg-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-light); font-size: 0.85rem; pointer-events: none; }
.msg-conv-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    text-decoration: none; color: inherit;
    transition: background 0.2s;
}
.msg-conv-item:last-child { border-bottom: none; }
.msg-conv-item:hover { background: var(--gray-100); }
.msg-conv-item.active { background: rgba(99,102,241,0.1); border-left: 3px solid var(--primary); }
.msg-conv-item .msg-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--gradient-primary); color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.msg-conv-item .msg-body { flex: 1; min-width: 0; }
.msg-conv-item .msg-name { font-weight: 600; font-size: 0.95rem; color: var(--text-dark); margin-bottom: 2px; }
.msg-conv-item .msg-last { font-size: 0.8rem; color: var(--text-medium); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-conv-item .msg-right { text-align: right; flex-shrink: 0; }
.msg-conv-item .msg-time { font-size: 0.75rem; color: var(--text-light); display: block; }
.msg-conv-item .msg-dot { width: 10px; height: 10px; background: var(--primary); border-radius: 50%; margin: 4px auto 0; }
.msg-split-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 48px 24px; color: var(--text-light); text-align: center;
}
.msg-split-placeholder i { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }
.msg-split-placeholder p { font-size: 1rem; font-weight: 500; color: var(--text-medium); margin: 0; }
.msg-list-empty { padding: 24px 16px; text-align: center; color: var(--text-medium); }
.msg-list-empty h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--text-dark); }
.msg-list-empty .btn { margin-top: 12px; }
.msg-split-chat { display: flex; flex-direction: column; min-height: 0; }
.msg-split-chat .conv-header {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 20px; border-bottom: 1px solid var(--gray-200);
    background: var(--gray-100); flex-shrink: 0;
}
.msg-split-chat .conv-header img { width: 44px; height: 33px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.msg-split-chat .conv-header .info { flex: 1; min-width: 0; }
.msg-split-chat .conv-header .tit { font-weight: 700; font-size: 0.95rem; color: var(--text-dark); display: block; }
.msg-split-chat .conv-header .sub { font-size: 0.8rem; color: var(--text-medium); }
.msg-split-chat .conv-header a { text-decoration: none; color: inherit; }
.msg-split-chat .conv-header a:hover { color: var(--primary); }
.msg-split-chat .conv-thread {
    flex: 1; overflow-y: auto; padding: 16px;
    display: flex; flex-direction: column; gap: 8px;
    min-height: 200px; max-height: 50vh;
}
.msg-split-chat .conv-thread::-webkit-scrollbar { width: 6px; }
.msg-split-chat .conv-thread::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.2); border-radius: 3px; }
.msg-split-chat .conv-msg { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 4px; }
.msg-split-chat .conv-msg.mine { flex-direction: row-reverse; }
.msg-split-chat .conv-msg .avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--gray-200); color: var(--text-medium);
    font-size: 0.75rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.msg-split-chat .conv-msg.mine .avatar { background: var(--gradient-primary); color: white; }
.msg-split-chat .conv-msg > div:last-child { flex: 1; min-width: 0; }
.msg-split-chat .conv-msg.mine > div:last-child { display: flex; flex-direction: column; align-items: flex-end; }
.msg-split-chat .conv-msg .bubble {
    display: inline-block;
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: left;
}
.msg-split-chat .conv-msg.mine .bubble { background: var(--gradient-primary); color: white; border-bottom-right-radius: 4px; }
.msg-split-chat .conv-msg.other .bubble { background: var(--gray-200); color: var(--text-dark); border-bottom-left-radius: 4px; }
.msg-split-chat .conv-msg .meta { font-size: 0.7rem; color: var(--text-light); margin-top: 2px; }
.msg-split-chat .conv-form-wrap {
    padding: 12px 16px; border-top: 1px solid var(--gray-200);
    background: var(--background-light); flex-shrink: 0;
}
.msg-split-chat .conv-form { display: flex; gap: 10px; align-items: flex-end; }
.msg-split-chat .conv-form textarea {
    flex: 1; resize: none; min-height: 44px; max-height: 120px;
    border-radius: 9999px; padding: 10px 18px; border: 1px solid var(--gray-200);
    font-size: 0.9rem;
}
.msg-split-chat .conv-form .btn-send {
    flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
    background: var(--gradient-primary); color: white; border: none;
    font-size: 1rem; display: flex; align-items: center; justify-content: center;
}
.msg-split-chat .conv-form .btn-send:disabled { opacity: 0.7; cursor: not-allowed; }
@media (max-width: 768px) {
    .msg-split-chat .conv-back { padding: 8px 16px; border-bottom: 1px solid var(--gray-100); }
    .msg-split-chat .conv-back a { font-size: 0.9rem; }
}
.conv-back { padding: 8px 16px; }
.conv-back a { color: var(--text-medium); font-size: 0.9rem; }
.conv-back a:hover { color: var(--primary); }

/* ---------- Landing (sin background-image; hero bg en vista) ---------- */
.hero-minimal-section {
    padding: 48px 0 56px;
    position: relative;
    z-index: 2;
}
.hero-minimal-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 0;
}
.hero-minimal-section .container { position: relative; z-index: 1; }
.hero-headline { text-align: center; margin-bottom: 32px; }
.hero-headline .hero-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 8px;
    color: #fff;
}
.hero-headline .hero-title .gradient-text {
    background: linear-gradient(135deg, #93C5FD 0%, #C7D2FE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-headline .hero-subtitle { font-size: 1rem; color: rgba(255,255,255,0.9); }
.hero-search-card {
    background: var(--background-light);
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: 32px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(59,130,246,0.08);
    max-width: 1100px;
    margin: 0 auto;
}
.hero-search-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}
.hero-search-title i { color: var(--primary); }
.hero-search-grid { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 16px; align-items: end; }
.hero-search-grid .form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}
.hero-search-card .ts-wrapper { width: 100%; margin-bottom: 0 !important; }
.hero-search-card .ts-wrapper .ts-control {
    font-family: var(--font-body) !important;
    background: var(--background-light) !important;
    border: 1px solid rgba(59,130,246,0.25) !important;
    border-radius: var(--radius-full) !important;
    min-height: 48px !important;
    padding: 12px 40px 12px 18px !important;
    font-size: 0.95rem !important;
    color: var(--text-dark) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%233B82F6' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 10px !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.hero-search-card .ts-wrapper .ts-control .ts-control-input { color: var(--text-dark) !important; font-size: 0.95rem !important; }
.hero-search-card .ts-wrapper.focus .ts-control {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.2) !important;
}
.hero-search-card .ts-wrapper .ts-dropdown { border-radius: var(--radius-md) !important; border: 1px solid rgba(59,130,246,0.25) !important; z-index: 9999 !important; }
/* Tom Select dropdown del hero: se renderiza en body (dropdownParent) para no quedar detrás del share */
#hero_modelo_id-ts-dropdown,
#hero_marca_id-ts-dropdown { z-index: 9999 !important; }
.hero-search-card .ts-wrapper .ts-dropdown .option,
.hero-search-card .ts-wrapper .ts-dropdown .option.active {
    padding: 10px 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
}
.hero-search-card .ts-wrapper .ts-dropdown .ts-optgroup-header-empty { padding: 0; height: 0; margin: 0; border: none; overflow: hidden; min-height: 0; }
.hero-search-card .ts-wrapper .ts-dropdown .ts-optgroup-header-label { padding: 8px 14px 6px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-medium, #475569); border-top: 1px solid var(--gray-200, #E2E8F0); margin-top: 4px; }
.hero-search-card .ts-wrapper .ts-dropdown .option .option-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hero-search-card .ts-wrapper .ts-dropdown .option .marca-icon {
    width: 28px; height: 28px; min-width: 28px; min-height: 28px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; overflow: hidden;
}
.hero-search-card .ts-wrapper .ts-dropdown .option .marca-icon img,
.hero-search-card .ts-wrapper .ts-dropdown .option .marca-icon svg { width: 28px; height: 28px; min-width: 28px; min-height: 28px; object-fit: contain; display: block; }
.hero-search-card .ts-wrapper .ts-dropdown .option .marca-icon-empty { width: 28px; height: 28px; min-width: 28px; min-height: 28px; flex-shrink: 0; display: inline-flex; }
.hero-search-card .ts-wrapper .ts-control .item .marca-icon-empty { width: 22px; height: 22px; min-width: 22px; min-height: 22px; flex-shrink: 0; display: inline-flex; }
.hero-search-card .ts-wrapper .ts-dropdown .option .marca-icon .marca-initial-wrap,
.hero-search-card .ts-wrapper .ts-dropdown .option .marca-icon.marca-initial-wrap {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; min-width: 28px; min-height: 28px; flex-shrink: 0;
}
.hero-search-card .ts-wrapper .ts-dropdown .option .marca-icon .marca-initial,
.hero-search-card .ts-wrapper .ts-dropdown .option .marca-icon span.marca-initial {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; min-width: 28px; min-height: 28px; flex-shrink: 0;
    border-radius: 50%; background: var(--gray-200, #E2E8F0); color: var(--text-medium, #475569);
    font-size: 0.75em; font-weight: 700; line-height: 1;
}
.hero-search-card .ts-wrapper .ts-dropdown .option .marca-count,
.hero-search-card .ts-wrapper .ts-dropdown .option .modelo-count {
    font-size: 0.75rem; font-weight: 600; color: var(--text-medium);
    background: var(--gray-100, #F1F5F9); padding: 4px 10px; border-radius: 9999px;
    flex-shrink: 0;
}
.hero-search-card .ts-wrapper .ts-control .item {
    display: inline-flex !important;
    align-items: center !important;
}
.hero-search-card .ts-wrapper .ts-control .item .marca-icon {
    width: 22px; height: 22px; min-width: 22px; min-height: 22px; margin-right: 6px;
    display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; overflow: hidden;
}
.hero-search-card .ts-wrapper .ts-control .item .marca-icon img,
.hero-search-card .ts-wrapper .ts-control .item .marca-icon svg { width: 22px; height: 22px; min-width: 22px; min-height: 22px; object-fit: contain; display: block; }
.hero-search-card .ts-wrapper .ts-control .item .marca-icon .marca-initial,
.hero-search-card .ts-wrapper .ts-control .item .marca-icon span.marca-initial {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; min-width: 22px; min-height: 22px; flex-shrink: 0;
    border-radius: 50%; background: var(--gray-200, #E2E8F0); color: var(--text-medium, #475569);
    font-size: 0.7em; font-weight: 700;
}
.hero-search-card .ts-wrapper .ts-dropdown [data-selectable].option:hover { background: #F8FAFC !important; }
.hero-search-card .ts-wrapper .ts-dropdown .option.active,
.hero-search-card .ts-wrapper .ts-dropdown .active { background: rgba(59,130,246,0.08) !important; }
.hero-search-card .ts-wrapper .ts-dropdown .dropdown-input { font-family: var(--font-body) !important; }
.hero-search-card .ts-wrapper.single .ts-control .item { max-width: 100%; }
.hero-search-grid select.pill-select {
    width: 100%;
    min-height: 48px;
    padding: 12px 40px 12px 18px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    background: var(--background-light);
    border: 1px solid rgba(59,130,246,0.25);
    border-radius: var(--radius-full);
    color: var(--text-dark);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%233B82F6' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hero-search-grid select.pill-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}
.btn-search-main {
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(59,130,246,0.3);
}
.btn-search-main:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(59,130,246,0.4); color: white; }
.hero-search-card .ts-wrapper .ts-dropdown.ts-dropdown-above {
    top: auto; bottom: 100%; margin-top: 0; margin-bottom: 4px;
}
.trust-section { padding: 60px 0; background: var(--background-light); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-title { font-size: 2.2rem; font-weight: 700; margin-bottom: 12px; color: var(--text-dark); }
.section-subtitle { font-size: 1.05rem; color: var(--text-medium); max-width: 560px; margin: 0 auto; }
.trust-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trust-card {
    background: var(--background-light);
    border: 1px solid rgba(59,130,246,0.12);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.35s ease;
    box-shadow: 0 4px 20px rgba(59,130,246,0.06);
}
.trust-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(59,130,246,0.18); border-color: rgba(59,130,246,0.25); }
.trust-icon {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, rgba(59,130,246,0.1) 0%, rgba(147,197,253,0.1) 100%);
    border: 2px solid rgba(59,130,246,0.2);
    border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem; margin: 0 auto 20px; color: var(--primary);
    transition: all 0.35s ease;
}
.trust-card:hover .trust-icon {
    background: var(--gradient-primary);
    color: white; border-color: var(--primary);
    transform: scale(1.08) rotate(4deg);
}
.trust-card h5 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; color: var(--text-dark); }
.trust-card p { color: var(--text-medium); font-size: 0.9rem; line-height: 1.55; margin: 0; }
.featured-section { padding: 60px 0; background: var(--background); position: relative; z-index: 1; }
.section-header-featured { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 36px; }
.section-link { color: var(--primary); font-weight: 600; font-size: 1rem; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 8px; }
.section-link:hover { color: var(--primary-dark); gap: 12px; }
@media (max-width: 991px) {
    .hero-search-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .hero-search-card .btn-search-main { grid-column: 1 / -1; }
    .trust-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .hero-minimal-section { padding: 32px 0 40px; }
    .hero-search-card { padding: 24px 20px; border-radius: 24px; }
    .hero-search-grid { grid-template-columns: 1fr; gap: 16px; }
    .trust-cards { grid-template-columns: 1fr; }
    .section-header-featured { flex-direction: column; align-items: flex-start; }
    .section-title { font-size: 1.75rem; }
}

/* ---------- Concesionarios (página listado) ---------- */
.conc-hero { padding: 60px 0 64px; background: var(--background); }
.conc-hero .hero-title { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; line-height: 1.25; margin-bottom: 12px; color: var(--text-dark); }
.conc-hero .hero-title .gradient-text { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.conc-hero .hero-subtitle { font-size: 1.1rem; color: var(--text-medium); max-width: 560px; margin: 0 auto 32px; }
.conc-cta { display: inline-flex; align-items: center; gap: 10px; background: var(--gradient-primary); color: white !important; font-weight: 700; padding: 16px 32px; border-radius: var(--radius-full); border: none; font-size: 1.1rem; transition: all 0.3s ease; box-shadow: 0 4px 20px rgba(59,130,246,0.35); text-decoration: none !important; }
.conc-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(59,130,246,0.45); color: white !important; }
.conc-benefits { padding: 64px 0; background: var(--background-light); }
.conc-benefits .section-header { text-align: center; margin-bottom: 48px; }
.conc-benefits .section-title { font-size: 2rem; font-weight: 700; margin-bottom: 12px; color: var(--text-dark); }
.conc-benefits .section-subtitle { font-size: 1.05rem; color: var(--text-medium); max-width: 560px; margin: 0 auto; }
.conc-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.conc-card {
    background: var(--background-light);
    border: 1px solid rgba(59,130,246,0.12);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.35s ease;
    box-shadow: 0 4px 20px rgba(59,130,246,0.06);
}
.conc-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(59,130,246,0.18); border-color: rgba(59,130,246,0.25); }
.conc-icon { width: 72px; height: 72px; background: linear-gradient(135deg, rgba(59,130,246,0.1) 0%, rgba(147,197,253,0.1) 100%); border: 2px solid rgba(59,130,246,0.2); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: 1.75rem; margin: 0 auto 20px; color: var(--primary); transition: all 0.35s ease; }
.conc-card:hover .conc-icon { background: var(--gradient-primary); color: white; border-color: var(--primary); transform: scale(1.08); }
.conc-card h5 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; color: var(--text-dark); }
.conc-card p { color: var(--text-medium); font-size: 0.9rem; line-height: 1.55; margin: 0; }
.conc-cta-section { padding: 48px 0 64px; background: var(--background); text-align: center; }
.conc-cta-section h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 16px; color: var(--text-dark); }
.conc-cta-section p { color: var(--text-medium); margin-bottom: 24px; }
@media (max-width: 991px) { .conc-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .conc-cards { grid-template-columns: 1fr; } }

/* ---------- Concesionario perfil ---------- */
.dealer-bar {
    background: var(--background-light);
    border-bottom: 1px solid rgba(99,102,241,0.08);
    padding: 20px 0;
    box-shadow: 0 4px 24px rgba(99,102,241,0.04);
}
.dealer-bar-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.dealer-bar-logo {
    width: 72px; height: 72px;
    border-radius: 8px;
    background: var(--gray-200);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.dealer-bar-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.dealer-bar-logo .ph { font-size: 28px; color: var(--text-light); }
.dealer-bar-info { flex: 1; min-width: 200px; }
.dealer-bar-name { font-size: 1.35rem; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.dealer-bar-meta { font-size: 0.875rem; color: var(--text-medium); margin-bottom: 6px; }
.dealer-bar-meta i { margin-right: 6px; width: 16px; text-align: center; color: var(--gray-400); }
.dealer-bar-badge { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 6px; margin-top: 4px; }
.dealer-bar-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dealer-bar-actions .btn { font-size: 0.8125rem; font-weight: 600; padding: 10px 18px; border-radius: 6px; }
.main-wrap { margin-bottom: 48px; }
.main-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
@media (max-width: 991px) { .main-layout { grid-template-columns: 1fr; } }
.listing-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.listing-title { font-size: 1.1rem; font-weight: 700; color: var(--text-dark); }
.listing-count { font-size: 0.8125rem; color: var(--text-medium); }
.vehicle-list { display: flex; flex-direction: column; gap: 0; background: var(--background-light); border: 1px solid rgba(99,102,241,0.08); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 4px 24px rgba(99,102,241,0.06); }
.vehicle-row {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(99,102,241,0.08);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.vehicle-row:last-child { border-bottom: none; }
.vehicle-row:hover { background: var(--background); }
@media (max-width: 767px) {
    .vehicle-row { grid-template-columns: 120px 1fr; grid-template-rows: auto auto; }
    .vehicle-row .price-block { grid-column: 2; text-align: left; }
}
.vehicle-row-img { width: 200px; height: 130px; border-radius: 6px; overflow: hidden; background: var(--gray-200); flex-shrink: 0; }
@media (max-width: 767px) { .vehicle-row-img { width: 120px; height: 90px; } }
.vehicle-row-img img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-row-info { min-width: 0; }
.vehicle-row-title { font-weight: 600; font-size: 1rem; margin-bottom: 4px; color: var(--text-dark); }
.vehicle-row-specs { font-size: 0.8125rem; color: var(--text-medium); }
.vehicle-row-price { font-size: 1.15rem; font-weight: 700; background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-align: right; white-space: nowrap; }
.sidebar { position: sticky; top: 16px; }
.sidebar-box {
    background: var(--background-light);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}
.sidebar-box h3 { font-size: 0.875rem; font-weight: 700; color: var(--text-dark); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--gray-200); }
.sidebar-box h3 i { margin-right: 8px; color: var(--primary); width: 18px; text-align: center; }
.contact-line { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: 0.8125rem; }
.contact-line i { color: var(--primary); width: 18px; text-align: center; margin-top: 2px; }
.contact-line a { color: var(--text-dark); }
.contact-line a:hover { color: var(--primary); }
.sidebar-box .btn { width: 100%; margin-top: 10px; font-size: 0.8125rem; font-weight: 600; padding: 10px; border-radius: 6px; }
.schedule-line { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.8125rem; border-bottom: 1px solid var(--gray-100); }
.schedule-line:last-child { border-bottom: none; }
.schedule-closed { color: #ef4444; font-style: italic; }
.about-block { background: var(--background-light); border: 1px solid rgba(99,102,241,0.08); border-radius: var(--radius-lg); padding: 18px 20px; margin-bottom: 16px; box-shadow: 0 4px 24px rgba(99,102,241,0.06); }
.about-block h3 { font-size: 0.875rem; font-weight: 700; margin-bottom: 10px; color: var(--text-dark); }
.about-block p { font-size: 0.8125rem; color: var(--text-medium); margin: 0; white-space: pre-line; }
.dealer-gallery { margin-top: 16px; margin-bottom: 16px; max-height: 300px; display: flex; flex-direction: column; overflow: hidden; }
.dealer-gallery__title { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.dealer-gallery__title i { color: var(--primary); font-size: 0.9rem; }
.gallery-box {
    display: grid;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    background: var(--gray-200);
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
}
.gallery-box__item { position: relative; overflow: hidden; background: var(--gray-200); }
.gallery-box__item a { display: block; width: 100%; height: 100%; cursor: pointer; min-height: 0; }
.gallery-box__item img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s; display: block; }
.gallery-box__item a:hover img { opacity: 0.9; }
.gallery-box__badge { position: absolute; top: 6px; left: 6px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; background: rgba(0,0,0,0.5); color: #fff; font-size: 0.7rem; font-weight: 600; border-radius: 4px; z-index: 1; }
/* Lightbox: solo modales que contienen carrusel de galería */
.modal:has(.lightbox-carousel) .modal-dialog { max-width: min(calc(100vw - 1rem), 1200px); max-height: calc(100vh - 1rem); margin: 0.5rem auto; }
.modal:has(.lightbox-carousel) .modal-content { max-height: calc(100vh - 1rem); background: #000; }
.modal:has(.lightbox-carousel) .modal-body { overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 0; max-height: calc(100vh - 7rem); }
.modal .lightbox-carousel.carousel, .modal .carousel-inner, .modal .carousel-item { width: 100%; max-height: calc(100vh - 7rem); overflow: hidden; }
.modal .carousel-inner { display: flex; align-items: center; }
.modal .carousel-item img { max-width: 100%; max-height: calc(100vh - 7rem); width: auto; height: auto; object-fit: contain; margin: 0 auto; display: block; }
.modal .lightbox-caption { display: none !important; }

/* ---------- Modales de diálogo (formularios / confirmación) .modal-cg ---------- */
.modal-cg .modal-dialog {
    max-width: 400px;
    margin: 1.75rem auto;
}
.modal-cg .modal-content {
    background: var(--background-light);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}
.modal-cg .modal-header {
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    padding: 1.25rem 1.5rem 1rem;
    background: #fff;
}
.modal-cg .modal-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-dark);
    margin: 0;
}
.modal-cg .modal-body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.modal-cg .modal-body .form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
}
.modal-cg .modal-body .form-control,
.modal-cg .modal-body textarea.form-control {
    width: 100%;
    min-height: 44px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    color: var(--text-dark);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.modal-cg .modal-body textarea.form-control {
    min-height: 88px;
    resize: vertical;
}
.modal-cg .modal-body .form-control:focus,
.modal-cg .modal-body textarea.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}
.modal-cg .modal-body .text-muted.small {
    font-size: 0.875rem;
    color: var(--text-light, #64748b);
    line-height: 1.5;
    margin: 0 0 0.5rem 0;
}
.modal-cg .modal-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    padding: 1.25rem 1.5rem 1.5rem;
    background: var(--gray-50);
    justify-content: flex-end;
}
.modal-cg .modal-footer .btn {
    min-height: 44px;
    padding: 0.6rem 1.25rem;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius-md);
}
.modal-cg .modal-footer .btn-secondary {
    background: #fff;
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--text-medium);
}
.modal-cg .modal-footer .btn-secondary:hover {
    background: rgba(99, 102, 241, 0.06);
    border-color: rgba(99, 102, 241, 0.35);
    color: var(--primary);
}
.modal-cg .modal-footer .btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    color: #fff;
}
.modal-cg .modal-footer .btn-warning:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #fff;
}
.modal-cg .modal-footer .btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border: none;
    color: #fff;
}
.modal-cg .modal-footer .btn-danger:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
}
.modal-cg .modal-footer .btn-dark {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    border: none;
    color: #fff;
}
.modal-cg .modal-footer .btn-dark:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    color: #fff;
}
.modal-cg .btn-close {
    filter: none;
    opacity: 0.7;
}
.modal-cg .btn-close:hover {
    opacity: 1;
}
.dealer-mapa-wrap { border-radius: 8px; overflow: hidden; border: 1px solid var(--gray-200); height: 180px; background: var(--gray-200); }
.dealer-mapa-wrap #mapa-concesionario { width: 100%; height: 100%; }
.no-anuncios { text-align: center; padding: 48px 24px; color: var(--text-medium); }
.no-anuncios i { font-size: 3rem; color: var(--text-light); margin-bottom: 16px; }
.resenas-block { background: var(--background-light); border: 1px solid rgba(99,102,241,0.08); border-radius: var(--radius-lg); padding: 18px 20px; margin-bottom: 16px; box-shadow: 0 4px 24px rgba(99,102,241,0.06); }
.resenas-block h3 { font-size: 0.875rem; font-weight: 700; margin-bottom: 14px; color: var(--text-dark); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.resenas-block h3 i { color: var(--primary); margin-right: 6px; }
.resenas-media { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 600; color: var(--text-dark); }
.resenas-media .stars { color: #f59e0b; }
.resena-item { padding: 14px 0; border-bottom: 1px solid var(--gray-100); }
.resena-item:last-child { border-bottom: none; }
.resena-item-titulo { font-weight: 600; font-size: 0.9375rem; color: var(--text-dark); margin-bottom: 4px; }
.resena-item-meta { font-size: 0.8125rem; color: var(--text-medium); margin-bottom: 6px; }
.resena-item-desc { font-size: 0.875rem; color: var(--text-medium); margin: 0; white-space: pre-line; }

/* ---------- Formularios crear/editar anuncio ---------- */
.card .ts-wrapper { width: 100%; margin-bottom: 0 !important; }
.card .ts-wrapper .ts-control {
    font-family: var(--font-body) !important;
    background: var(--background-light, #fff) !important;
    border: 1px solid rgba(99,102,241,0.25) !important;
    border-radius: var(--radius-full, 9999px) !important;
    min-height: 42px !important;
    padding: 10px 40px 10px 16px !important;
    font-size: 0.95rem !important;
    color: var(--text-dark) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%233B82F6' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 10px !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.card .ts-wrapper .ts-control .ts-control-input { color: var(--text-dark) !important; font-size: 0.95rem !important; }
.card .ts-wrapper.focus .ts-control { border-color: var(--primary) !important; box-shadow: 0 0 0 3px rgba(99,102,241,0.2) !important; }
.card .ts-wrapper .ts-dropdown { border-radius: var(--radius-md) !important; border: 1px solid rgba(99,102,241,0.25) !important; }
.card .ts-wrapper .ts-dropdown .ts-optgroup-header-empty { padding: 0; height: 0; margin: 0; border: none; overflow: hidden; min-height: 0; }
.card .ts-wrapper .ts-dropdown .ts-optgroup-header-label { padding: 8px 14px 6px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-medium, #475569); border-top: 1px solid var(--gray-200, #E2E8F0); margin-top: 4px; }
.card .ts-wrapper .ts-dropdown .option, .card .ts-wrapper .ts-dropdown .option.active { padding: 10px 18px !important; }
.card .ts-wrapper .ts-dropdown .option .option-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.card .ts-wrapper .ts-dropdown .option .marca-icon {
    width: 28px; height: 28px; min-width: 28px; min-height: 28px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; overflow: hidden;
}
.card .ts-wrapper .ts-dropdown .option .marca-icon img,
.card .ts-wrapper .ts-dropdown .option .marca-icon svg { width: 28px; height: 28px; min-width: 28px; min-height: 28px; object-fit: contain; display: block; }
.card .ts-wrapper .ts-dropdown .option .marca-icon-empty { width: 28px; height: 28px; min-width: 28px; min-height: 28px; flex-shrink: 0; display: inline-flex; }
.card .ts-wrapper .ts-control .item .marca-icon-empty { width: 22px; height: 22px; min-width: 22px; min-height: 22px; flex-shrink: 0; display: inline-flex; }
.card .ts-wrapper .ts-dropdown .option .marca-icon .marca-initial-wrap,
.card .ts-wrapper .ts-dropdown .option .marca-icon.marca-initial-wrap {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; min-width: 28px; min-height: 28px; flex-shrink: 0;
}
.card .ts-wrapper .ts-dropdown .option .marca-icon .marca-initial,
.card .ts-wrapper .ts-dropdown .option .marca-icon span.marca-initial {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; min-width: 28px; min-height: 28px; flex-shrink: 0;
    border-radius: 50%; background: var(--gray-200, #E2E8F0); color: var(--text-medium, #475569);
    font-size: 0.75em; font-weight: 700; line-height: 1;
}
.card .ts-wrapper .ts-dropdown .option .marca-count,
.card .ts-wrapper .ts-dropdown .option .modelo-count {
    font-size: 0.75rem; font-weight: 600; color: var(--text-medium);
    background: var(--gray-100, #F1F5F9); padding: 4px 10px; border-radius: 9999px;
    flex-shrink: 0;
}
.card .ts-wrapper .ts-control .item {
    display: inline-flex !important;
    align-items: center !important;
}
.card .ts-wrapper .ts-control .item .marca-icon {
    width: 22px; height: 22px; min-width: 22px; min-height: 22px; margin-right: 6px;
    display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; overflow: hidden;
}
.card .ts-wrapper .ts-control .item .marca-icon img,
.card .ts-wrapper .ts-control .item .marca-icon svg { width: 22px; height: 22px; min-width: 22px; min-height: 22px; object-fit: contain; display: block; }
.card .ts-wrapper .ts-control .item .marca-icon .marca-initial,
.card .ts-wrapper .ts-control .item .marca-icon span.marca-initial {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; min-width: 22px; min-height: 22px; flex-shrink: 0;
    border-radius: 50%; background: var(--gray-200, #E2E8F0); color: var(--text-medium, #475569);
    font-size: 0.7em; font-weight: 700;
}
.card .ts-wrapper .ts-dropdown [data-selectable].option:hover { background: var(--background) !important; }
.card .ts-wrapper .ts-dropdown .option.active, .card .ts-wrapper .ts-dropdown .active { background: rgba(99,102,241,0.08) !important; }
.card .ts-wrapper.single .ts-control .item { max-width: 100%; }
.form-section-card select.form-select {
    min-height: 42px;
    padding: 10px 40px 10px 16px;
    font-size: 0.95rem;
    border-radius: var(--radius-full, 9999px);
    border: 1px solid rgba(99,102,241,0.25);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%233B82F6' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 10px;
}
.fotos-drop-wrap { position: relative; }
.fotos-drop-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 160px;
    padding: 24px;
    border: 2px dashed var(--gray-200);
    border-radius: var(--radius-md);
    background: rgba(99,102,241,0.04);
    color: var(--text-medium);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.fotos-drop-zone:hover, .fotos-drop-zone.drag-over {
    border-color: var(--primary);
    background: rgba(99,102,241,0.08);
    color: var(--primary);
}
.fotos-drop-zone i { font-size: 2rem; }
.fotos-drop-zone span { font-size: 0.95rem; font-weight: 500; text-align: center; }
.fotos-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 10px; margin-top: 12px; }
.fotos-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--gray-200);
}
.fotos-preview-ghost { opacity: 0.5; cursor: grabbing; }
.fotos-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.fotos-preview-item-remove {
    position: absolute;
    top: 4px; right: 4px;
    width: 28px; height: 28px;
    border: none; border-radius: 50%;
    background: rgba(255,255,255,0.95);
    color: #dc2626;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    transition: background 0.2s;
}
.fotos-preview-item-remove:hover { background: #fee2e2; }
.fotos-preview-item-remove:disabled { opacity: 0.6; cursor: not-allowed; }
.fotos-count-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.video-drop-wrap { position: relative; }
.video-drop-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 140px;
    padding: 24px;
    border: 2px dashed var(--gray-200);
    border-radius: var(--radius-md);
    background: rgba(99,102,241,0.04);
    color: var(--text-medium);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.video-drop-zone:hover, .video-drop-zone.drag-over {
    border-color: var(--primary);
    background: rgba(99,102,241,0.08);
    color: var(--primary);
}
.video-drop-zone i { font-size: 2rem; }
.video-drop-zone span { font-size: 0.95rem; font-weight: 500; text-align: center; }
.video-drop-zone .video-drop-hint { font-size: 0.8rem; font-weight: 400; color: var(--text-light); }
.video-preview-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px; background: rgba(99,102,241,0.06); border: 1px solid rgba(99,102,241,0.2); border-radius: var(--radius-md); }
.video-preview-line .video-filename { font-size: 0.9rem; color: var(--text-dark); font-weight: 500; }
.video-preview-line .btn { flex-shrink: 0; }
.video-actual-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; margin-bottom: 16px; }
.video-actual-card {
    flex: 0 0 auto; width: 220px; border-radius: var(--radius-lg); overflow: hidden;
    background: var(--gray-100); border: 1px solid var(--gray-200); box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s, border-color 0.2s;
}
.video-actual-card:hover { border-color: rgba(99,102,241,0.3); box-shadow: 0 4px 16px rgba(99,102,241,0.12); }
.video-actual-thumb {
    position: relative; aspect-ratio: 16/10; background: #000;
    display: flex; align-items: center; justify-content: center;
}
.video-actual-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-actual-thumb .video-play-overlay {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.35); color: #fff; font-size: 2.5rem; pointer-events: none;
}
.video-actual-info { padding: 12px 14px; border-top: 1px solid var(--gray-200); }
.video-actual-info .video-filename-text {
    font-size: 0.85rem; font-weight: 500; color: var(--text-dark); display: block;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.video-actual-info .form-check { margin-top: 10px; margin-bottom: 0; }
.video-actual-actions { flex: 1; min-width: 200px; }
.foto-actual-wrap {
    position: relative; width: 100px; height: 80px; border-radius: var(--radius-md); overflow: hidden;
    cursor: pointer; border: 2px solid transparent; transition: opacity 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.foto-actual-wrap:hover { border-color: rgba(99,102,241,0.3); box-shadow: 0 2px 8px rgba(99,102,241,0.15); }
.foto-actual-wrap.foto-marcada-eliminar { opacity: 0.6; border-color: #ef4444; box-shadow: 0 0 0 2px rgba(239,68,68,0.3); }
.foto-actual-wrap.foto-marcada-eliminar .foto-actual-overlay { opacity: 1; }
.foto-actual-wrap .foto-actual-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-actual-wrap .foto-actual-btn-eliminar {
    position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border: none; border-radius: 50%;
    background: rgba(0,0,0,0.65); color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 0.75rem; z-index: 2;
    transition: background 0.2s, transform 0.2s;
}
.foto-actual-wrap .foto-actual-btn-eliminar:hover { background: #ef4444; transform: scale(1.1); }
.foto-actual-wrap.foto-marcada-eliminar .foto-actual-btn-eliminar { background: #ef4444; }
.foto-actual-wrap .foto-actual-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.6); color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    opacity: 0; transition: opacity 0.2s; font-size: 0.7rem; font-weight: 600;
}
.foto-actual-wrap .foto-actual-checkbox, .foto-actual-wrap .foto-orden-input { position: absolute; left: -9999px; }
.foto-actual-ghost { opacity: 0.5; cursor: grabbing; }
.layout-sidebar-form { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
@media (max-width: 991px) {
    .layout-sidebar-form { grid-template-columns: 1fr; }
    .layout-sidebar-form .sidebar-tips { order: 1; position: static; }
    .layout-sidebar-form .flex-grow-1 { order: 2; }
}
@media (min-width: 992px) { .sidebar-tips { position: sticky; top: 100px; } }
.sidebar-tips {
    background: var(--background-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid rgba(99,102,241,0.08);
    box-shadow: 0 4px 24px rgba(99,102,241,0.06);
}
.sidebar-tips h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-tips h5 i { color: var(--primary); }
.sidebar-tips ul { list-style: none; padding: 0; margin: 0; }
.sidebar-tips li {
    font-size: 0.875rem;
    color: var(--text-medium);
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.sidebar-tips li:last-child { border-bottom: none; }
.sidebar-tips li i { color: var(--success); margin-top: 2px; }
.progress-mini {
    height: 6px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: 16px;
}
.progress-mini .fill {
    height: 100%;
    width: 25%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}
.form-section-card {
    background: var(--background-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
    border: 1px solid rgba(99,102,241,0.08);
    box-shadow: 0 4px 24px rgba(99,102,241,0.06);
    transition: box-shadow 0.2s ease;
}
.form-section-card:hover { box-shadow: 0 8px 32px rgba(99,102,241,0.1); }
.form-section-card .section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--gray-100);
}
.form-section-card .section-head .icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(99,102,241,0.12) 0%, rgba(79,70,229,0.12) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
}
.form-section-card .section-head h4 { font-size: 1.1rem; font-weight: 700; color: var(--text-dark); margin: 0; }
.form-section-card .section-head .badge-optional {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-light);
    background: var(--gray-100);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    margin-left: auto;
}
.cta-bar {
    background: var(--background-light);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(99,102,241,0.08);
    box-shadow: 0 4px 24px rgba(99,102,241,0.06);
}
.btn-submit-main {
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(99,102,241,0.35);
}
.btn-submit-main:hover { color: white; transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.card-soft {
    background: var(--background-light);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(99,102,241,0.08);
    box-shadow: 0 4px 24px rgba(99,102,241,0.06);
}
.step-card {
    background: var(--background-light);
    border-radius: var(--radius-md);
    border: 1px solid rgba(99,102,241,0.08);
    padding: 20px 22px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(99,102,241,0.06);
}
.step-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
}
.step-title i { color: var(--primary); }

/* Tom Select dentro de step-card (form crear anuncio): anclar ancho y evitar distorsión */
.step-card .ts-wrapper { width: 100%; max-width: 100%; margin-bottom: 0 !important; box-sizing: border-box; }
.step-card .ts-wrapper .ts-control {
    font-family: var(--font-body) !important;
    background: var(--background-light, #fff) !important;
    border-radius: var(--radius-md, 8px) !important;
    min-height: 42px !important;
    padding: 10px 40px 10px 16px !important;
    font-size: 0.95rem !important;
    color: var(--text-dark) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%233B82F6' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 10px !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
.step-card .ts-wrapper .ts-control .ts-control-input { color: var(--text-dark) !important; font-size: 0.95rem !important; }
.step-card .ts-wrapper.focus .ts-control { border-color: var(--primary) !important; box-shadow: 0 0 0 3px rgba(99,102,241,0.2) !important; }
.step-card .ts-wrapper .ts-dropdown { border-radius: var(--radius-md) !important; border: 1px solid rgba(99,102,241,0.25) !important; }
.step-card .ts-wrapper .ts-dropdown .ts-optgroup-header-empty { padding: 0; height: 0; margin: 0; border: none; overflow: hidden; min-height: 0; }
.step-card .ts-wrapper .ts-dropdown .ts-optgroup-header-label { padding: 8px 14px 6px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-medium, #475569); border-top: 1px solid var(--gray-200, #E2E8F0); margin-top: 4px; }
.step-card .ts-wrapper .ts-dropdown .option,
.step-card .ts-wrapper .ts-dropdown .option.active {
    padding: 10px 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
}
.step-card .ts-wrapper .ts-dropdown .option .option-left { display: flex; align-items: center; gap: 12px; min-width: 0; flex-shrink: 1; }
.step-card .ts-wrapper .ts-dropdown .option .marca-icon {
    width: 28px; height: 28px; min-width: 28px; min-height: 28px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; overflow: hidden;
}
.step-card .ts-wrapper .ts-dropdown .option .marca-icon img,
.step-card .ts-wrapper .ts-dropdown .option .marca-icon svg { width: 28px; height: 28px; min-width: 28px; min-height: 28px; object-fit: contain; display: block; }
.step-card .ts-wrapper .ts-dropdown .option .marca-icon-empty { width: 28px; height: 28px; min-width: 28px; min-height: 28px; flex-shrink: 0; display: inline-flex; }
.step-card .ts-wrapper .ts-control .item .marca-icon-empty { width: 22px; height: 22px; min-width: 22px; min-height: 22px; flex-shrink: 0; display: inline-flex; }
.step-card .ts-wrapper .ts-dropdown .option .marca-icon .marca-initial-wrap,
.step-card .ts-wrapper .ts-dropdown .option .marca-icon.marca-initial-wrap {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; min-width: 28px; min-height: 28px; flex-shrink: 0;
}
.step-card .ts-wrapper .ts-dropdown .option .marca-icon .marca-initial,
.step-card .ts-wrapper .ts-dropdown .option .marca-icon span.marca-initial {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; min-width: 28px; min-height: 28px; flex-shrink: 0;
    border-radius: 50%; background: var(--gray-200, #E2E8F0); color: var(--text-medium, #475569);
    font-size: 0.75em; font-weight: 700; line-height: 1;
}
.step-card .ts-wrapper .ts-dropdown .option .marca-count,
.step-card .ts-wrapper .ts-dropdown .option .modelo-count {
    font-size: 0.75rem; font-weight: 600; color: var(--text-medium);
    background: var(--gray-100, #F1F5F9); padding: 4px 10px; border-radius: 9999px;
    flex-shrink: 0;
}
.step-card .ts-wrapper .ts-control .item {
    display: inline-flex !important;
    align-items: center !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
}
.step-card .ts-wrapper .ts-control .item .marca-count {
    flex-shrink: 0;
    font-size: 0.75rem; font-weight: 600; color: var(--text-medium);
    background: var(--gray-100, #F1F5F9); padding: 2px 8px; border-radius: 9999px;
}
.step-card .ts-wrapper .ts-control .item > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.step-card .ts-wrapper .ts-control .item .marca-icon {
    width: 22px; height: 22px; min-width: 22px; min-height: 22px; margin-right: 6px;
    display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; overflow: hidden;
}
.step-card .ts-wrapper .ts-control .item .marca-icon img,
.step-card .ts-wrapper .ts-control .item .marca-icon svg { width: 22px; height: 22px; min-width: 22px; min-height: 22px; object-fit: contain; display: block; }
.step-card .ts-wrapper .ts-control .item .marca-icon .marca-initial,
.step-card .ts-wrapper .ts-control .item .marca-icon span.marca-initial {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; min-width: 22px; min-height: 22px; flex-shrink: 0;
    border-radius: 50%; background: var(--gray-200, #E2E8F0); color: var(--text-medium, #475569);
    font-size: 0.7em; font-weight: 700;
}
.step-card .ts-wrapper .ts-dropdown [data-selectable].option:hover { background: var(--background) !important; }
.step-card .ts-wrapper .ts-dropdown .option.active,
.step-card .ts-wrapper .ts-dropdown .active { background: rgba(99,102,241,0.08) !important; }
.step-card .ts-wrapper.single .ts-control .item { max-width: 100%; }
.step-card .ts-wrapper .ts-dropdown .ts-dropdown-content { max-height: 320px; }
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-medium);
}
.pill i { color: var(--primary); }
.sticky-side { position: sticky; top: 100px; }
@media (max-width: 991px) { .sticky-side { position: static; } }
.form-label-icon { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.form-label-icon i { color: var(--primary); width: 18px; text-align: center; }
.form-label { font-weight: 600; color: var(--text-dark); margin-bottom: 8px; }

/* ---------- Reseña crear ---------- */
.resena-form-wrap { max-width: 560px; margin: 0 auto; padding: 24px 0 48px; }
.resena-form-card { background: var(--background-light); border: 1px solid rgba(99,102,241,0.08); border-radius: var(--radius-lg); padding: 28px; box-shadow: 0 4px 24px rgba(99,102,241,0.06); }
.resena-form-card label { font-weight: 600; color: var(--text-dark); }
.resena-form-card .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 0.2rem rgba(99,102,241,0.2); }
.resena-empresa-ref { font-size: 0.9375rem; color: var(--text-medium); margin-bottom: 20px; }
.resena-empresa-ref a { color: var(--primary); }

/* ---------- Blog artículo ---------- */
.article-wrap { max-width: 720px; margin: 0 auto; padding-bottom: 48px; }
.article-back { margin-bottom: 24px; }
.article-back a { color: var(--text-medium); font-size: 0.95rem; display: inline-flex; align-items: center; gap: 8px; }
.article-back a:hover { color: var(--primary); }
.article-header { margin-bottom: 32px; }
.article-title { font-size: 2.25rem; font-weight: 700; color: var(--text-dark); line-height: 1.25; margin-bottom: 16px; }
.article-meta { font-size: 0.95rem; color: var(--text-light); display: flex; flex-wrap: wrap; gap: 16px; }
.article-meta span { display: flex; align-items: center; gap: 6px; }
.article-body { font-size: 1.05rem; line-height: 1.75; color: var(--text-dark); }
.article-body h2 { font-size: 1.5rem; margin-top: 2em; margin-bottom: 0.5em; }
.article-body h3 { font-size: 1.25rem; margin-top: 1.5em; margin-bottom: 0.5em; }
.article-body p { margin-bottom: 1.25em; }
.article-body ul, .article-body ol { margin-bottom: 1.25em; padding-left: 1.5em; }
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius-md); margin: 1em 0; }
.recientes-section { margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(59,130,246,0.15); }
.recientes-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 20px; color: var(--text-dark); }
.recientes-list { list-style: none; padding: 0; margin: 0; }
.recientes-list li { margin-bottom: 12px; }
.recientes-list a { color: var(--text-medium); font-size: 1rem; }
.recientes-list a:hover { color: var(--primary); }

/* ---------- Registro ---------- */
.registro-card { background: var(--background-light); border: 1px solid rgba(59,130,246,0.12); border-radius: var(--radius-lg); box-shadow: 0 4px 20px rgba(59,130,246,0.06); padding: 32px; max-width: 560px; margin: 0 auto; }
.registro-title { font-size: 1.5rem; font-weight: 700; color: var(--text-dark); margin-bottom: 24px; }
.tipo-toggle { display: flex; gap: 12px; margin-bottom: 24px; }
.tipo-btn { flex: 1; padding: 12px; border: 2px solid var(--gray-200); border-radius: var(--radius-md); background: white; font-weight: 600; color: var(--text-medium); cursor: pointer; transition: all 0.2s; }
.tipo-btn:hover { border-color: var(--primary); color: var(--primary); }
.tipo-btn.active { border-color: var(--primary); background: rgba(59,130,246,0.08); color: var(--primary); }
.bloque-prof { display: none; }
.bloque-prof.visible { display: block; }
.btn-registro { background: var(--gradient-primary); color: white !important; font-weight: 600; padding: 12px 28px; border-radius: var(--radius-full); border: none; width: 100%; }
.btn-registro:hover { color: white !important; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(59,130,246,0.4); }
.requisitos { font-size: 0.85rem; color: var(--text-medium); margin-top: 8px; }
.requisitos-list { margin-top: 8px; }
.requisitos-list small { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; transition: color 0.2s; }
.requisitos-list small .req-icon { width: 1rem; text-align: center; }
.requisitos-list small.req-ok { color: var(--success, #198754); }
.requisitos-list small.req-pendiente { color: var(--text-medium); }
.password-wrap { position: relative; }
.password-wrap .btn-toggle-pwd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); z-index: 5; border: none; background: none; color: var(--text-medium); padding: 4px; cursor: pointer; }
.password-wrap .btn-toggle-pwd:hover { color: var(--primary); }
.password-wrap .form-control { padding-right: 44px; }
.registro-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center;
    z-index: 9999;
}
.registro-overlay.visible { display: flex; }
.registro-overlay-box {
    background: var(--background-light, #fff); border-radius: var(--radius-lg, 12px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2); padding: 28px 36px;
    display: flex; flex-direction: column; align-items: center; gap: 20px; min-width: 280px;
}
.registro-overlay .spinner-border { width: 3rem; height: 3rem; color: var(--primary, #3b82f6); }
.registro-overlay .overlay-msg { color: var(--text-dark, #1e293b); font-size: 1.05rem; font-weight: 500; text-align: center; margin: 0; line-height: 1.4; }

/* ---------- Perfil concesionario (formulario) ---------- */
.profile-header {
    background: var(--gradient-primary);
    padding: 32px 0;
    margin-bottom: 32px;
    box-shadow: 0 4px 24px rgba(99,102,241,0.2);
}
.profile-header h1 { color: white; font-size: 1.6rem; margin: 0; }
.form-section {
    background: var(--background-light);
    border: 1px solid rgba(99,102,241,0.08);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 24px rgba(99,102,241,0.06);
}
.form-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(99,102,241,0.08);
}
.form-section-title i { color: var(--primary); }
.logo-preview {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 12px;
}
.logo-preview img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.logo-preview .placeholder-icon { font-size: 40px; color: var(--gray-300); }
.horario-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.horario-row label { width: 100px; font-weight: 500; }
.horario-row input { flex: 1; }
.profile-actions { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid rgba(99,102,241,0.08); }
#map-ubicacion { height: 280px; border-radius: var(--radius-md); border: 1px solid var(--gray-200); }

/* ---------- Login (landing layout) ---------- */
.login-section { padding: 48px 0 64px; min-height: calc(100vh - 80px - 200px); display: flex; align-items: center; justify-content: center; }
.login-card {
    background: var(--background-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.15);
    padding: 40px;
    max-width: 420px;
    width: 100%;
}
.login-card .logo-link {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--text-dark);
    text-align: center;
    display: block;
    margin-bottom: 32px;
}
.login-card .logo-link span { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.login-card .form-control { border-radius: var(--radius-md); padding: 12px 16px; }
.login-card .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2); }
.login-card .btn-submit {
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    width: 100%;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
    transition: all 0.2s ease;
}
.login-card .btn-submit:hover { color: white; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(59, 130, 246, 0.4); }
.login-card .form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }

/* ---------- Componentes Blade (compartir, perfil dropdown, notificaciones) ---------- */
.share-component { position: relative; display: inline-block; }
.vcard-share { position: relative; z-index: 20; }
.vcard-share .share-dropdown,
.share-dropdown.vcard-share-dropdown { left: auto; right: 0; z-index: 200; }
.share-dropdown {
    position: absolute; top: 100%; left: 0; z-index: 100;
    background: var(--background-light);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 8px; margin-top: 8px; min-width: 180px;
}
.share-dropdown .btn-share {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 10px 12px; border: none; background: none; cursor: pointer;
    border-radius: var(--radius-sm); font-size: 0.9rem; color: var(--text-medium);
    transition: all 0.2s; text-align: left;
}
.share-dropdown .btn-share:hover { background: var(--gray-100); color: var(--text-dark); }
.share-dropdown .btn-share i { width: 20px; text-align: center; font-size: 1rem; }
.share-dropdown .btn-share[data-share="whatsapp"] i { color: #25D366; }
.share-dropdown .btn-share[data-share="facebook"] i { color: #1877F2; }
.share-dropdown .btn-share[data-share="twitter"] i { color: #1DA1F2; }
.share-dropdown .btn-share[data-share="email"] i { color: #EA4335; }
.share-dropdown .btn-share[data-share="copy"] i { color: var(--primary); }
.share-dropdown .btn-share.copied { background: rgba(34,197,94,0.1); }
.share-dropdown .btn-share.copied i { color: #16a34a; }
.profile-dropdown { max-height: calc(100vh - 120px); overflow-y: auto; }
#drop1 + .dropdown-menu { max-height: calc(100vh - 100px); overflow: hidden; }
.profile-dropdown[data-simplebar] { max-height: calc(100vh - 120px); }
.notificacion-dropdown-item { transition: none; cursor: pointer; }
.notificacion-no-leida-badge {
    width: 8px; height: 8px; border-radius: 50%; background-color: #5d87ff;
    position: absolute; top: 12px; right: 12px;
}
.notificacion-dropdown-item.no-leida { background-color: #f0f8ff !important; border-left: 3px solid #5d87ff; }
.notificacion-dropdown-item.no-leida:hover { background-color: #e6f2ff !important; }
.notificacion-dropdown-item.leida { opacity: 0.7; }
.notificacion-dropdown-item.leida:hover { opacity: 1; }
#badgeNotificaciones {
    position: absolute; top: 2px; right: 2px; width: 8px; height: 8px;
    background-color: #ff4757; border: 2px solid #fff; border-radius: 50%;
    display: none; z-index: 1000; box-shadow: 0 0 0 2px rgba(255, 71, 87, 0.3);
}
#badgeNotificaciones.visible { display: block !important; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(255, 71, 87, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}

#anuncioSubmitOverlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center; justify-content: center;
}
#anuncioSubmitOverlay .overlay-box {
    background: #fff; padding: 2rem; border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg); text-align: center; max-width: 360px;
}

#leadSubmitOverlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center; justify-content: center;
}
#leadSubmitOverlay .overlay-box {
    background: #fff; padding: 2rem; border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg); text-align: center; max-width: 360px;
}

.ts-control {
    border: none !important;
}