/**
 * ============================================================
 * MAZZA BUREAU INMOBILIARIO v2.5 - BUILD 20251215
 * CSS Completo - Sidebar Colapsable + Layout Unificado
 * ============================================================
 */

:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-gold: #C9A43B;
    --color-gold-light: #E2C66B;
    --color-gold-dark: #A88A2F;
    --color-white: #ffffff;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-info: #06b6d4;
    --color-dorado: #C9A43B;
    --bg-card: #ffffff;
    --bg-secondary: #f9fafb;
    --border-color: #e5e7eb;
    --text-primary: #1f2937;
    --text-muted: #6b7280;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --header-height: 60px;
    --sidebar-bg: #0f0f0f;
}

/* RESET COMPLETO */
*, *::before, *::after { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

html { 
    font-size: 14px; 
    -webkit-font-smoothing: antialiased; 
}

body { 
    font-family: var(--font-family); 
    background: var(--color-gray-50); 
    color: var(--color-gray-800); 
    line-height: 1.6; 
}

a { 
    color: inherit; 
    text-decoration: none; 
}

/* APP CONTAINER */
.app-container { 
    display: flex; 
    min-height: 100vh; 
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    background: var(--sidebar-bg);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    transition: width 0.3s ease;
}

.sidebar.collapsed { 
    width: var(--sidebar-collapsed-width); 
}

/* SIDEBAR HEADER */
.sidebar-header {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    min-height: 65px;
}

.sidebar-brand { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    overflow: hidden; 
    text-decoration: none;
}

.sidebar-logo { 
    width: 38px; 
    height: 38px; 
    min-width: 38px; 
    object-fit: contain; 
}

.sidebar-brand-text { 
    font-size: 16px; 
    font-weight: 700; 
    color: #ffffff; 
    white-space: nowrap; 
    opacity: 1; 
    transition: opacity 0.2s ease; 
}

.sidebar.collapsed .sidebar-brand-text { 
    opacity: 0; 
    width: 0; 
}

/* TOGGLE BUTTON */
.sidebar-toggle-btn {
    width: 28px; 
    height: 28px; 
    min-width: 28px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px; 
    color: #9ca3af; 
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-toggle-btn:hover { 
    background: rgba(255, 255, 255, 0.1); 
    color: #ffffff; 
}

.sidebar-toggle-btn i { 
    font-size: 12px; 
    transition: transform 0.3s ease; 
}

.sidebar.collapsed .sidebar-toggle-btn i { 
    transform: rotate(180deg); 
}

/* SIDEBAR NAV */
.sidebar-nav { 
    flex: 1; 
    padding: 12px 8px; 
    overflow-y: auto; 
    overflow-x: hidden; 
}

.sidebar-nav::-webkit-scrollbar { 
    width: 4px; 
}

.sidebar-nav::-webkit-scrollbar-thumb { 
    background: rgba(255, 255, 255, 0.1); 
    border-radius: 4px; 
}

/* NAV SECTIONS */
.nav-section { 
    margin-bottom: 8px; 
}

.nav-section-title {
    padding: 10px 12px 6px; 
    font-size: 10px; 
    font-weight: 600;
    text-transform: uppercase; 
    letter-spacing: 0.08em; 
    color: #6b7280;
    white-space: nowrap; 
    overflow: hidden; 
    transition: opacity 0.2s ease;
}

.sidebar.collapsed .nav-section-title { 
    opacity: 0; 
    height: 0; 
    padding: 0; 
    margin: 0; 
}

/* NAV ITEMS */
.nav-item {
    display: flex; 
    align-items: center; 
    gap: 12px;
    padding: 10px 12px; 
    margin: 2px 0; 
    border-radius: var(--radius);
    color: #9ca3af; 
    font-size: 13px; 
    font-weight: 500;
    transition: all 0.2s ease; 
    position: relative;
    white-space: nowrap; 
    overflow: hidden;
    text-decoration: none;
}

.nav-item:hover { 
    background: rgba(255, 255, 255, 0.05); 
    color: #ffffff; 
}

.nav-item.active { 
    background: rgba(201, 164, 59, 0.15); 
    color: var(--color-gold); 
}

.nav-item.active::before {
    content: ''; 
    position: absolute; 
    left: 0; 
    top: 50%; 
    transform: translateY(-50%);
    width: 3px; 
    height: 24px; 
    background: var(--color-gold); 
    border-radius: 0 3px 3px 0;
}

.nav-item i {
    width: 20px; 
    min-width: 20px; 
    font-size: 16px; 
    text-align: center;
    opacity: 0.85; 
    transition: all 0.12s ease;
}

.nav-item.active i { 
    opacity: 1; 
}

.nav-item span { 
    flex: 1; 
    opacity: 1; 
    transition: opacity 0.2s ease; 
}

.sidebar.collapsed .nav-item span { 
    opacity: 0; 
    width: 0; 
}

/* NAV BADGE */
.nav-badge {
    padding: 2px 8px; 
    font-size: 10px; 
    font-weight: 600;
    background: var(--color-danger); 
    color: white; 
    border-radius: 10px;
    min-width: 20px; 
    text-align: center; 
    transition: opacity 0.2s ease;
}

.sidebar.collapsed .nav-badge {
    position: absolute; 
    top: 4px; 
    right: 4px;
    padding: 2px 5px; 
    min-width: 16px; 
    font-size: 9px;
}

/* SIDEBAR COLLAPSED - ICONOS QUE SALTAN */
.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 14px 12px;
}

.sidebar.collapsed .nav-item:hover i {
    transform: translateY(-4px) scale(1.2);
    opacity: 1;
}

.sidebar.collapsed .nav-item.active:hover i {
    transform: translateY(-4px) scale(1.25);
    filter: drop-shadow(0 2px 6px rgba(201, 164, 59, 0.6));
}

/* TOOLTIP EN SIDEBAR COLAPSADO */
.sidebar.collapsed .nav-item[data-title]::after {
    content: attr(data-title);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) scale(0.95);
    padding: 8px 14px;
    background: #1f2937;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.12s ease;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.sidebar.collapsed .nav-item[data-title]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
}

/* SIDEBAR FOOTER */
.sidebar-footer {
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-user {
    display: flex; 
    align-items: center; 
    gap: 10px; 
    padding: 8px;
    border-radius: var(--radius); 
    transition: all 0.2s ease; 
    overflow: hidden;
    text-decoration: none;
}

.sidebar-user:hover { 
    background: rgba(255, 255, 255, 0.05); 
}

.sidebar-user-avatar {
    width: 36px; 
    height: 36px; 
    min-width: 36px;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: #0a0a0a; 
    font-weight: 600; 
    font-size: 14px;
    transition: transform 0.12s ease;
}

.sidebar.collapsed .sidebar-user-avatar:hover {
    transform: scale(1.15);
}

.sidebar-user-info { 
    flex: 1; 
    min-width: 0; 
    opacity: 1; 
    transition: opacity 0.2s ease; 
}

.sidebar.collapsed .sidebar-user-info { 
    opacity: 0; 
    width: 0; 
}

.sidebar-user-name { 
    display: block; 
    font-size: 13px; 
    font-weight: 500; 
    color: #ffffff; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

.sidebar-user-role { 
    display: block; 
    font-size: 11px; 
    color: #6b7280; 
    margin-top: 1px; 
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
    flex: 1; 
    margin-left: var(--sidebar-width);
    display: flex; 
    flex-direction: column; 
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.sidebar.collapsed ~ .main-content { 
    margin-left: var(--sidebar-collapsed-width); 
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
    height: var(--header-height); 
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-200); 
    padding: 0 24px;
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    position: sticky; 
    top: 0; 
    z-index: 50;
}

.header-left { 
    display: flex; 
    align-items: center; 
    gap: 16px; 
}

.sidebar-toggle { 
    display: none; 
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--color-gray-600);
}

.sidebar-toggle:hover {
    background: var(--color-gray-100);
}

.header-title { 
    font-size: 18px; 
    font-weight: 600; 
    color: var(--color-gray-900); 
    margin: 0;
}

.header-actions { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}

/* ICON BUTTON */
.btn-icon {
    width: 40px; 
    height: 40px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    background: transparent; 
    border: none; 
    border-radius: var(--radius);
    cursor: pointer; 
    color: var(--color-gray-600); 
    position: relative; 
    transition: all 0.2s;
}

.btn-icon:hover { 
    background: var(--color-gray-100); 
    color: var(--color-gray-900); 
}

.btn-icon i { 
    font-size: 18px; 
}

.btn-icon-badge {
    position: absolute; 
    top: 6px; 
    right: 6px; 
    min-width: 16px; 
    height: 16px;
    padding: 0 4px; 
    font-size: 10px; 
    font-weight: 600;
    background: var(--color-danger); 
    color: white; 
    border-radius: 10px;
    display: flex; 
    align-items: center; 
    justify-content: center;
}

/* HEADER USER */
.header-user {
    display: flex; 
    align-items: center; 
    gap: 10px; 
    padding: 6px 12px;
    background: transparent; 
    border: none; 
    border-radius: var(--radius-lg);
    cursor: pointer; 
    transition: all 0.2s;
}

.header-user:hover { 
    background: var(--color-gray-100); 
}

.header-user-avatar {
    width: 34px; 
    height: 34px;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: #0a0a0a; 
    font-weight: 600; 
    font-size: 13px; 
    flex-shrink: 0;
}

.header-user-info { 
    text-align: left; 
}

.header-user-name { 
    display: block; 
    font-size: 13px; 
    font-weight: 500; 
    color: var(--color-gray-800); 
}

.header-user-role { 
    display: block; 
    font-size: 11px; 
    color: var(--color-gray-500); 
}

/* ============================================================
   DROPDOWNS
   ============================================================ */
.dropdown { 
    position: relative; 
    display: inline-block; 
}

.dropdown-menu {
    position: absolute; 
    top: calc(100% + 8px); 
    right: 0;
    min-width: 240px; 
    max-width: 320px; 
    background: var(--color-white);
    border: 1px solid var(--color-gray-200); 
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15); 
    z-index: 9999;
    display: none;
    opacity: 0; 
    visibility: hidden;
    transform: translateY(-10px); 
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown-menu.show { 
    display: block; 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0); 
}

.dropdown-header {
    padding: 12px 16px; 
    font-size: 12px; 
    font-weight: 600; 
    color: var(--color-gray-500);
    text-transform: uppercase; 
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--color-gray-100); 
    background: var(--color-gray-50);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.dropdown-body { 
    padding: 8px; 
    max-height: 300px; 
    overflow-y: auto; 
}

.dropdown-item {
    display: flex; 
    align-items: center; 
    gap: 10px; 
    padding: 10px 12px;
    border-radius: var(--radius); 
    color: var(--color-gray-700); 
    font-size: 13px;
    transition: background 0.15s; 
    cursor: pointer; 
    text-decoration: none;
}

.dropdown-item:hover { 
    background: var(--color-gray-100); 
    color: var(--color-gray-900); 
}

.dropdown-item i { 
    width: 18px; 
    color: var(--color-gray-400); 
    text-align: center; 
}

.dropdown-divider { 
    height: 1px; 
    background: var(--color-gray-100); 
    margin: 8px 0; 
}

.dropdown-empty { 
    padding: 24px 16px; 
    text-align: center; 
    color: var(--color-gray-400); 
}

.dropdown-empty i { 
    font-size: 28px; 
    margin-bottom: 8px; 
    display: block; 
    opacity: 0.5; 
}

.dropdown-empty p { 
    font-size: 13px; 
    margin: 0; 
}

.text-danger { 
    color: var(--color-danger) !important; 
}

/* ============================================================
   CONTENT
   ============================================================ */
.content { 
    flex: 1; 
    padding: 24px; 
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    padding: 16px 24px; 
    background: var(--color-white);
    border-top: 1px solid var(--color-gray-200); 
    font-size: 12px;
    color: var(--color-gray-500); 
    display: flex;
    justify-content: space-between; 
    align-items: center;
}

/* ============================================================
   CARDS
   ============================================================ */
.card { 
    background: var(--color-white); 
    border-radius: var(--radius-lg); 
    border: 1px solid var(--color-gray-200); 
    overflow: hidden; 
}

.card-header { 
    padding: 16px 20px; 
    border-bottom: 1px solid var(--color-gray-100); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: var(--color-gray-50); 
}

.card-title { 
    font-size: 15px; 
    font-weight: 600; 
    color: var(--color-gray-800); 
    margin: 0; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.card-title i { 
    font-size: 16px; 
    opacity: 0.7; 
}

.card-body { 
    padding: 20px; 
}

.card-footer { 
    padding: 12px 20px; 
    border-top: 1px solid var(--color-gray-100); 
    background: var(--color-gray-50); 
}

/* ============================================================
   TABLES
   ============================================================ */
.table-responsive { 
    overflow-x: auto; 
}

.table { 
    width: 100%; 
    border-collapse: collapse; 
}

.table th, .table td { 
    padding: 12px 16px; 
    text-align: left; 
    border-bottom: 1px solid var(--color-gray-100); 
}

.table th { 
    font-size: 11px; 
    font-weight: 600; 
    color: var(--color-gray-500); 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
    background: var(--color-gray-50); 
}

.table tbody tr:hover { 
    background: var(--color-gray-50); 
}

.table tbody tr:last-child td { 
    border-bottom: none; 
}

.text-small { 
    font-size: 12px; 
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    padding: 10px 18px; 
    font-size: 13px; 
    font-weight: 500; 
    border-radius: var(--radius); 
    border: none; 
    cursor: pointer; 
    transition: all 0.2s; 
    text-decoration: none; 
    line-height: 1; 
}

.btn:disabled { 
    opacity: 0.5; 
    cursor: not-allowed; 
}

.btn-primary { 
    background: var(--color-gold); 
    color: #0a0a0a; 
}

.btn-primary:hover { 
    background: var(--color-gold-light); 
}

.btn-secondary { 
    background: var(--color-gray-100); 
    color: var(--color-gray-700); 
}

.btn-secondary:hover { 
    background: var(--color-gray-200); 
}

.btn-success { 
    background: var(--color-success); 
    color: white; 
}

.btn-success:hover { 
    background: #059669; 
}

.btn-danger { 
    background: var(--color-danger); 
    color: white; 
}

.btn-danger:hover { 
    background: #dc2626; 
}

.btn-outline { 
    background: transparent; 
    border: 1px solid var(--color-gray-300); 
    color: var(--color-gray-700); 
}

.btn-outline:hover { 
    background: var(--color-gray-100); 
    border-color: var(--color-gray-400); 
}

.btn-sm { 
    padding: 6px 12px; 
    font-size: 12px; 
}

.btn-lg { 
    padding: 14px 24px; 
    font-size: 15px; 
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group { 
    margin-bottom: 16px; 
}

.form-label { 
    display: block; 
    margin-bottom: 6px; 
    font-size: 13px; 
    font-weight: 500; 
    color: var(--color-gray-700); 
}

.form-control { 
    width: 100%; 
    padding: 10px 14px; 
    font-size: 14px; 
    border: 1px solid var(--color-gray-300); 
    border-radius: var(--radius); 
    background: var(--color-white); 
    transition: border-color 0.2s, box-shadow 0.2s; 
}

.form-control:focus { 
    outline: none; 
    border-color: var(--color-gold); 
    box-shadow: 0 0 0 3px rgba(201, 164, 59, 0.15); 
}

.form-control::placeholder { 
    color: var(--color-gray-400); 
}

textarea.form-control { 
    min-height: 100px; 
    resize: vertical; 
}

select.form-control { 
    cursor: pointer; 
}

.form-text { 
    font-size: 12px; 
    color: var(--color-gray-500); 
    margin-top: 4px; 
}

.form-error { 
    font-size: 12px; 
    color: var(--color-danger); 
    margin-top: 4px; 
}

/* ============================================================
   BADGES
   ============================================================ */
.badge { 
    display: inline-flex; 
    align-items: center; 
    padding: 4px 10px; 
    font-size: 11px; 
    font-weight: 600; 
    border-radius: 20px; 
    text-transform: uppercase; 
    letter-spacing: 0.02em; 
}

.badge-primary { background: rgba(37, 99, 235, 0.1); color: var(--color-primary); }
.badge-success { background: rgba(16, 185, 129, 0.1); color: var(--color-success); }
.badge-warning { background: rgba(245, 158, 11, 0.1); color: var(--color-warning); }
.badge-danger { background: rgba(239, 68, 68, 0.1); color: var(--color-danger); }
.badge-info { background: rgba(6, 182, 212, 0.1); color: var(--color-info); }
.badge-secondary { background: var(--color-gray-100); color: var(--color-gray-600); }

/* ============================================================
   ALERTS
   ============================================================ */
.alert { 
    padding: 14px 18px; 
    border-radius: var(--radius); 
    margin-bottom: 16px; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    font-size: 13px; 
    position: relative; 
}

.alert i { 
    font-size: 18px; 
}

.alert-close { 
    position: absolute; 
    right: 12px; 
    top: 50%; 
    transform: translateY(-50%); 
    background: none; 
    border: none; 
    font-size: 20px; 
    cursor: pointer; 
    opacity: 0.5; 
    color: inherit; 
}

.alert-close:hover { 
    opacity: 1; 
}

.alert-success { background: rgba(16, 185, 129, 0.1); color: #065f46; border: 1px solid rgba(16, 185, 129, 0.2); }
.alert-danger { background: rgba(239, 68, 68, 0.1); color: #991b1b; border: 1px solid rgba(239, 68, 68, 0.2); }
.alert-warning { background: rgba(245, 158, 11, 0.1); color: #92400e; border: 1px solid rgba(245, 158, 11, 0.2); }
.alert-info { background: rgba(6, 182, 212, 0.1); color: #0e7490; border: 1px solid rgba(6, 182, 212, 0.2); }

/* ============================================================
   STATS GRID
   ============================================================ */
.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
    margin-bottom: 24px; 
}

.stat-card { 
    background: var(--color-white); 
    border-radius: var(--radius-lg); 
    padding: 20px; 
    display: flex; 
    align-items: center; 
    gap: 16px; 
    border: 1px solid var(--color-gray-200); 
    transition: all 0.2s; 
}

.stat-card:hover { 
    box-shadow: var(--shadow-md); 
}

.stat-icon { 
    width: 48px; 
    height: 48px; 
    border-radius: var(--radius-lg); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 20px; 
}

.stat-icon.primary { background: rgba(37, 99, 235, 0.1); color: var(--color-primary); }
.stat-icon.success { background: rgba(16, 185, 129, 0.1); color: var(--color-success); }
.stat-icon.warning { background: rgba(245, 158, 11, 0.1); color: var(--color-warning); }
.stat-icon.danger { background: rgba(239, 68, 68, 0.1); color: var(--color-danger); }
.stat-icon.info { background: rgba(6, 182, 212, 0.1); color: var(--color-info); }

.stat-info h3 { 
    font-size: 24px; 
    font-weight: 700; 
    color: var(--color-gray-900); 
    margin: 0; 
    line-height: 1.2; 
}

.stat-info p { 
    font-size: 13px; 
    color: var(--color-gray-500); 
    margin: 2px 0 0 0; 
}

/* ============================================================
   TABS
   ============================================================ */
.tabs-container { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 5px; 
    border-bottom: 2px solid var(--border-color); 
    padding-bottom: 0; 
    margin-bottom: 24px; 
}

.tab-item { 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    padding: 12px 20px; 
    color: var(--text-muted); 
    text-decoration: none; 
    border-bottom: 3px solid transparent; 
    margin-bottom: -2px; 
    transition: all 0.2s ease; 
    font-weight: 500; 
}

.tab-item:hover { 
    color: var(--text-primary); 
    background: var(--bg-secondary); 
}

.tab-item.active { 
    color: var(--color-dorado); 
    border-bottom-color: var(--color-dorado); 
}

.tab-badge { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    min-width: 20px; 
    height: 20px; 
    padding: 0 6px; 
    background: var(--color-danger); 
    color: white; 
    border-radius: 10px; 
    font-size: 11px; 
    font-weight: 600; 
}

/* ============================================================
   FORM CONTROLS ADICIONALES
   ============================================================ */
.form-switch { display: flex; align-items: center; cursor: pointer; gap: 10px; }
.switch-slider { width: 50px; height: 26px; background: #ccc; border-radius: 26px; position: relative; transition: 0.3s; }
.switch-slider::after { content: ''; position: absolute; width: 22px; height: 22px; background: white; border-radius: 50%; top: 2px; left: 2px; transition: 0.3s; }
.form-switch input { display: none; }
.form-switch input:checked + .switch-slider { background: var(--color-dorado); }
.form-switch input:checked + .switch-slider::after { left: 26px; }
.switch-label { font-weight: 500; }

.form-check { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.form-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--color-dorado); }

.input-group { display: flex; gap: 0; }
.input-group .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--color-gray-500); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-primary { color: var(--color-primary); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.d-flex { display: flex; }
.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-flex { display: inline-flex; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }

.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

.m-0 { margin: 0; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.me-2 { margin-right: 8px; }
.my-4 { margin-top: 24px !important; margin-bottom: 24px !important; }

.p-0 { padding: 0 !important; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }

.w-100 { width: 100%; }

.row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.col-md-3, .col-md-4, .col-md-6, .col-md-8, .col-md-9, .col-md-12 { padding: 0 12px; }
.col-md-3 { width: 25%; }
.col-md-4 { width: 33.333%; }
.col-md-6 { width: 50%; }
.col-md-8 { width: 66.666%; }
.col-md-9 { width: 75%; }
.col-md-12 { width: 100%; }

code { background: var(--bg-secondary); padding: 2px 6px; border-radius: 4px; font-size: 12px; font-family: 'Consolas', 'Monaco', monospace; }

hr { border: none; border-top: 1px solid #e5e7eb; margin: 20px 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
.sidebar-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.5); 
    z-index: 99; 
    opacity: 0; 
    visibility: hidden; 
    transition: all 0.3s; 
}

.sidebar-overlay.show { 
    opacity: 1; 
    visibility: visible; 
}

@media (max-width: 1024px) {
    .sidebar { 
        transform: translateX(-100%); 
        width: var(--sidebar-width); 
    }
    
    .sidebar.open { 
        transform: translateX(0); 
    }
    
    .sidebar.collapsed { 
        width: var(--sidebar-width); 
    }
    
    .main-content, 
    .sidebar.collapsed ~ .main-content { 
        margin-left: 0; 
    }
    
    .sidebar-toggle { 
        display: flex; 
    }
    
    .sidebar-toggle-btn { 
        display: none; 
    }
}

@media (max-width: 768px) {
    .header-user-info { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .content { padding: 16px; }
    .footer { flex-direction: column; gap: 4px; text-align: center; }
    .row { flex-direction: column; }
    .col-md-3, .col-md-4, .col-md-6, .col-md-8, .col-md-9 { width: 100%; }
    .tabs-container { overflow-x: auto; flex-wrap: nowrap; }
    .tab-item { white-space: nowrap; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page { 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%); 
    padding: 20px; 
}

.login-container { 
    width: 100%; 
    max-width: 400px; 
}

.login-card { 
    background: white; 
    border-radius: var(--radius-xl); 
    padding: 40px; 
    box-shadow: var(--shadow-lg); 
}

.login-logo { 
    text-align: center; 
    margin-bottom: 32px; 
}

.login-logo img { 
    max-width: 160px; 
}

.login-title { 
    text-align: center; 
    font-size: 18px; 
    font-weight: 600; 
    margin-bottom: 24px; 
    color: var(--color-gray-900); 
}

.login-footer { 
    text-align: center; 
    margin-top: 20px; 
    padding-top: 20px; 
    border-top: 1px solid var(--color-gray-100); 
}

.login-footer a { 
    font-size: 13px; 
    color: var(--color-gray-500); 
}

.login-version { 
    font-size: 11px; 
    color: var(--color-gray-400); 
    margin-top: 12px; 
}

/* ============================================================
   TABS CON COLORES POR MODULO
   ============================================================ */
.tabs-green .tab-item.active { color: #10b981; border-bottom-color: #10b981; }
.tabs-green .tab-item:hover { color: #10b981; }

.tabs-gold .tab-item.active { color: #C9A43B; border-bottom-color: #C9A43B; }
.tabs-gold .tab-item:hover { color: #C9A43B; }

.tabs-blue .tab-item.active { color: #2563eb; border-bottom-color: #2563eb; }
.tabs-blue .tab-item:hover { color: #2563eb; }

.tabs-orange .tab-item.active { color: #f59e0b; border-bottom-color: #f59e0b; }
.tabs-orange .tab-item:hover { color: #f59e0b; }

.tabs-purple .tab-item.active { color: #8b5cf6; border-bottom-color: #8b5cf6; }
.tabs-purple .tab-item:hover { color: #8b5cf6; }

.tabs-cyan .tab-item.active { color: #06b6d4; border-bottom-color: #06b6d4; }
.tabs-cyan .tab-item:hover { color: #06b6d4; }

/* STATS MINI */
.stats-mini .stat-card { padding: 14px 16px; }
.stats-mini .stat-icon { width: 40px; height: 40px; font-size: 16px; }
.stats-mini .stat-info h3 { font-size: 20px; }
.stats-mini .stat-info p { font-size: 12px; }

/* AVATARES */
.avatar-sm {
    width: 32px; height: 32px; min-width: 32px;
    background: linear-gradient(135deg, #C9A43B, #A88A2F);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #0a0a0a; font-weight: 600; font-size: 11px;
}

/* FILAS INACTIVAS */
.row-inactive { opacity: 0.6; background: #fafafa; }
.row-inactive:hover { opacity: 0.8; }

/* FORM VALIDATION */
.form-control.is-invalid { border-color: #ef4444; }
.form-control.is-invalid:focus { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15); }

/* BADGE DARK */
.badge-dark { background: #374151; color: white; }

/* ============================================================
   TABS SISTEMA
   ============================================================ */
.tabs-container {
    border-bottom: 1px solid var(--color-gray-200);
    background: var(--color-gray-50);
}

.tabs {
    display: flex;
    gap: 0;
    padding: 0 20px;
}

.tab-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-gray-500);
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    margin-bottom: -1px;
}

.tab-item:hover {
    color: var(--color-gray-700);
    background: var(--color-gray-100);
}

.tab-item.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    background: white;
}

.tab-item i {
    font-size: 14px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ============================================================
   FORM ROWS Y COLUMNAS
   ============================================================ */
.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.form-row .form-group {
    flex: 1;
    min-width: 200px;
}

.form-row .col-md-2 { flex: 0 0 calc(16.66% - 17px); min-width: 100px; }
.form-row .col-md-3 { flex: 0 0 calc(25% - 15px); min-width: 150px; }
.form-row .col-md-4 { flex: 0 0 calc(33.33% - 14px); min-width: 180px; }
.form-row .col-md-5 { flex: 0 0 calc(41.66% - 12px); min-width: 200px; }
.form-row .col-md-6 { flex: 0 0 calc(50% - 10px); min-width: 220px; }

/* ============================================================
   CHECKBOX GROUP
   ============================================================ */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-inline input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ============================================================
   LABELS
   ============================================================ */
label.required::after {
    content: ' *';
    color: var(--color-danger);
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert-info {
    background: #e0f2fe;
    border: 1px solid #7dd3fc;
    color: #0369a1;
}

.alert-warning {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    color: #92400e;
}

/* ============================================================
   FILTROS - BARRA DE FILTROS
   ============================================================ */
.filtros-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.filtros-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filtros-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filtros-group label {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-gray-500);
    text-transform: uppercase;
}

.filtros-group input,
.filtros-group select {
    min-width: 140px;
    height: 38px;
}

.filtros-group input[type="date"] {
    min-width: 130px;
}

.filtros-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

/* ============================================================
   PROGRESS BARS
   ============================================================ */
.progress-item { 
    margin-bottom: 12px; 
}

.progress-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    margin-bottom: 6px;
    font-size: 13px;
}

.progress-bar-container {
    height: 8px;
    background: var(--color-gray-100);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.bg-primary { background: var(--color-primary); }
.bg-danger { background: var(--color-danger); }
.bg-success { background: var(--color-success); }
.bg-warning { background: var(--color-warning); }
.bg-info { background: var(--color-info); }
.bg-secondary { background: var(--color-gray-400); }
.bg-dark { background: var(--color-gray-700); }

/* ============================================================
   MODAL GENÉRICO
   ============================================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-card {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-gray-100);
}

.modal-header h3 { 
    margin: 0; 
    font-size: 16px; 
}

.modal-body { 
    padding: 20px; 
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--color-gray-100);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ============================================================
   DETALLE GRID (para modales de detalle)
   ============================================================ */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.detail-item.full { 
    grid-column: 1 / -1; 
}

.detail-item label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--color-gray-500);
    margin-bottom: 4px;
    font-weight: 500;
}

.detail-item span { 
    font-size: 14px; 
}

.json-preview {
    background: var(--color-gray-50);
    padding: 12px;
    border-radius: 6px;
    font-size: 12px;
    font-family: monospace;
    overflow-x: auto;
    max-height: 200px;
    white-space: pre-wrap;
    word-break: break-all;
}

/* ============================================================
   CONFIGURACIÓN - TABS
   ============================================================ */
.config-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.config-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-gray-600);
    background: var(--color-gray-50);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.config-tab:hover {
    background: var(--color-gray-100);
    color: var(--color-gray-800);
}

.config-tab.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.config-tab i { 
    font-size: 14px; 
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* ============================================================
   ROW GRID (2 columnas)
   ============================================================ */
.row { 
    display: flex; 
    gap: 20px; 
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.col-md-6 { 
    flex: 1; 
    min-width: 300px; 
}

/* ============================================================
   SEPARADORES Y UTILIDADES
   ============================================================ */
hr {
    border: none;
    border-top: 1px solid var(--color-gray-200);
    margin: 20px 0;
}

.card-footer {
    padding: 12px 20px;
    background: var(--color-gray-50);
    border-top: 1px solid var(--color-gray-100);
}

code {
    background: var(--color-gray-100);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'SF Mono', Monaco, monospace;
}

/* ============================================================
   RESPONSIVE - MÓDULOS
   ============================================================ */
@media (max-width: 768px) {
    .filtros-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filtros-group {
        width: 100%;
    }
    
    .filtros-group input,
    .filtros-group select {
        width: 100%;
    }
    
    .filtros-actions {
        margin-left: 0;
        margin-top: 8px;
    }
    
    .detail-grid { 
        grid-template-columns: 1fr; 
    }
    
    .config-grid { 
        grid-template-columns: 1fr; 
    }
    
    .config-tabs { 
        flex-direction: column; 
    }
    
    .config-tab { 
        justify-content: flex-start; 
    }
    
    .col-md-6 {
        min-width: 100%;
    }
}
/**
 * MAZZA BUREAU - CSS Tasaciones v3
 * Estilos para comparables con pestañas
 * AGREGAR AL FINAL DE main.css
 */

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }

@media (max-width: 992px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Info Items */
.info-item {
    background: var(--bg-light);
    padding: 12px 15px;
    border-radius: 6px;
}
.info-item label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.info-item strong {
    font-size: 16px;
    color: var(--text-color);
}

/* Tabs */
.tabs-container { border-top: 1px solid var(--border-color); }
.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 10px 15px 0;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}
.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-muted);
    transition: all 0.2s;
    white-space: nowrap;
}
.tab-btn:hover {
    background: rgba(201, 164, 59, 0.1);
    color: var(--text-color);
}
.tab-btn.active {
    background: white;
    border-color: var(--border-color);
    color: var(--primary-color);
    margin-bottom: -1px;
}
.tab-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--text-muted);
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
}
.tab-btn.active .tab-num { background: var(--primary-color); }
.tab-label {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tab-add {
    color: var(--primary-color);
    border: 1px dashed var(--primary-color) !important;
}
.tab-add:hover { background: rgba(201, 164, 59, 0.1); }

/* Tab Content */
.tabs-content { padding: 20px; background: white; }
.tab-panel { display: none; animation: fadeIn 0.2s ease; }
.tab-panel.active { display: block; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Comparable Form */
.comp-section {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}
.comp-section-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.comp-section-title i { color: var(--primary-color); }

.comp-form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}
.comp-form-grid .span-2 { grid-column: span 2; }
.comp-form-grid .span-3 { grid-column: span 3; }
.comp-form-grid .span-4 { grid-column: span 4; }

@media (max-width: 768px) {
    .comp-form-grid { grid-template-columns: 1fr 1fr; }
    .comp-form-grid .span-2,
    .comp-form-grid .span-3,
    .comp-form-grid .span-4 { grid-column: span 2; }
}

/* Form Compact */
.form-group-compact { margin-bottom: 0; }
.form-group-compact label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
    display: block;
    font-weight: 500;
}
.form-group-compact input,
.form-group-compact select,
.form-group-compact textarea {
    font-size: 14px;
    padding: 8px 10px;
}
.form-group-compact small {
    display: block;
    margin-top: 3px;
    font-size: 10px;
}

/* Checkbox */
.checkbox-group { display: flex; flex-wrap: wrap; gap: 15px; }
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
}
.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Empty State */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: block;
}
.empty-state h4 { margin-bottom: 10px; }

/* Btn Eliminar */
.btn-eliminar-comp {
    color: var(--danger-color);
    background: transparent;
    border: 1px solid var(--danger-color);
}
.btn-eliminar-comp:hover {
    background: var(--danger-color);
    color: white;
}

/* Info Box */
.info-box {
    background: var(--bg-light);
    border-left: 3px solid var(--primary-color);
    padding: 15px;
    border-radius: 4px;
    font-size: 13px;
}

/* ============================================ */
/* TASACIONES v4.0 - Estilos adicionales       */
/* ============================================ */
/* ================================================================== */
/* CSS ADICIONAL PARA CONSISTENCIA TASACIONES v4.0                    */
/* Agregar al final de main.css                                       */
/* ================================================================== */

/* === GRID DE 6 COLUMNAS === */
.grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

@media (max-width: 1200px) {
    .grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === FICHA DEL SUJETO === */
.ficha-seccion {
    margin-bottom: 20px;
}

.ficha-seccion:last-child {
    margin-bottom: 0;
}

.ficha-seccion-titulo {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}

.ficha-seccion-titulo i {
    color: #C9A43B;
    margin-right: 6px;
}

.info-item-destacado {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 2px solid #C9A43B;
    border-radius: 8px;
    padding: 10px !important;
}

.info-item-destacado label {
    color: #92400e !important;
    font-weight: 600;
}

.info-item-destacado strong {
    color: #1a1a1a;
    font-size: 14px;
}

/* === AMENITIES GRID (para nueva.php) === */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 992px) {
    .amenities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.amenity-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.amenity-checkbox:hover {
    background: #fffbeb;
    border-color: #C9A43B;
}

.amenity-checkbox input[type="checkbox"] {
    display: none;
}

.amenity-checkbox input[type="checkbox"]:checked + .amenity-label {
    color: #92400e;
}

.amenity-checkbox:has(input:checked) {
    background: #fffbeb;
    border-color: #C9A43B;
}

.amenity-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
    transition: color 0.2s;
}

.amenity-label i {
    font-size: 16px;
    color: #C9A43B;
    width: 20px;
    text-align: center;
}

/* === AMENITIES TAGS (para comparables.php) === */
.amenities-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.badge-gold {
    background: linear-gradient(135deg, #C9A43B, #E8D48A);
    color: #1a1a1a;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

/* === METODOLOGÍA PDF === */
.methodology-list {
    margin: 12px 0;
    padding-left: 20px;
    font-size: 9pt;
    color: #555;
    list-style-type: disc;
}

.methodology-list li {
    margin-bottom: 4px;
    line-height: 1.4;
}

.methodology-note {
    font-size: 8pt;
    color: #888;
    font-style: italic;
    margin-top: 10px;
    border-top: 1px solid #e9ecef;
    padding-top: 10px;
}

/* === INFO ITEMS MEJORADOS === */
.info-item {
    background: #f8f9fa;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.info-item label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #888;
    margin-bottom: 4px;
}

.info-item strong {
    display: block;
    font-size: 13px;
    color: #1a1a1a;
}

/* === CHECKBOX GROUP MEJORADO === */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.checkbox-item:hover {
    background: #fffbeb;
    border-color: #C9A43B;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #C9A43B;
}

/* ================================================================== */
/* FIN CSS ADICIONAL                                                  */
/* ================================================================== */
