/* 
 * Argenpesos Backoffice 2026
 * Tema claro con colores corporativos
 */

/* ===========================
   CSS Variables
   =========================== */
:root {
    /* Colores principales Argenpesos - Celeste */
    --argenpesos-primary: #0099CC;
    --argenpesos-primary-light: #00BFFF;
    --argenpesos-primary-dark: #006699;
    --argenpesos-secondary: #5BC0DE;
    --argenpesos-accent: #00D4FF;
    
    /* Colores de fondo */
    --bg-primary: #f8faf9;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0f4f2;
    
    /* Colores de texto */
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    
    /* Colores de estado */
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    
    /* Sombras */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    
    /* Transiciones */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Bordes */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    
    /* Sidebar */
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
}

/* Dark theme */
[data-bs-theme="dark"] {
    --bg-primary: #0f1419;
    --bg-secondary: #192734;
    --bg-tertiary: #22303c;
    --text-primary: #ffffff;
    --text-secondary: #8899a6;
    --text-muted: #657786;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* ===========================
   Base Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ===========================
   Login Page
   =========================== */
.login-page {
    min-height: 100vh;
    background: #0a0a1a;
    overflow: hidden;
}

.login-container {
    position: relative;
    overflow: hidden;
}

.login-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

#cosmicCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.login-card {
    background: rgba(10, 15, 30, 0.85);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-xl);
    padding: 3rem;
    box-shadow: 
        0 0 40px rgba(0, 191, 255, 0.15),
        0 0 80px rgba(0, 191, 255, 0.1);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(0, 191, 255, 0.2);
}

[data-bs-theme="dark"] .login-card {
    background: rgba(10, 15, 30, 0.9);
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--argenpesos-primary), var(--argenpesos-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 0 30px rgba(0, 191, 255, 0.5);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--argenpesos-accent);
    margin: 0;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.logo-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.login-form .form-floating {
    position: relative;
}

.login-form .form-control {
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: var(--border-radius-md);
    padding: 1rem 1rem;
    height: auto;
    transition: var(--transition-normal);
    background: rgba(0, 20, 40, 0.6);
    color: #ffffff;
}

.login-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.login-form .form-control:focus {
    border-color: var(--argenpesos-accent);
    box-shadow: 
        0 0 0 3px rgba(0, 191, 255, 0.2),
        0 0 20px rgba(0, 191, 255, 0.3);
    background: rgba(0, 30, 60, 0.8);
}

.login-form .form-floating label {
    color: rgba(255, 255, 255, 0.6);
}

.login-form .form-floating > .form-control:focus ~ label,
.login-form .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--argenpesos-accent);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 5;
}

.forgot-link {
    color: var(--argenpesos-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.forgot-link:hover {
    color: var(--argenpesos-primary-dark);
}

.btn-login {
    background: linear-gradient(135deg, var(--argenpesos-primary), var(--argenpesos-accent));
    border: none;
    border-radius: var(--border-radius-md);
    padding: 0.9rem 2rem;
    font-weight: 600;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.4);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 0 30px rgba(0, 191, 255, 0.6),
        0 0 60px rgba(0, 191, 255, 0.3);
}

.btn-login::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: rotate(45deg);
    animation: btnShine 3s infinite;
}

@keyframes btnShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.demo-info {
    background: rgba(0, 191, 255, 0.05);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid rgba(0, 191, 255, 0.15);
}

[data-bs-theme="dark"] .demo-info {
    background: rgba(0, 191, 255, 0.05);
}

.demo-toggle {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
}

.demo-toggle:hover {
    background: rgba(0, 191, 255, 0.1);
    color: var(--argenpesos-accent);
}

.demo-toggle i:last-child {
    transition: var(--transition-normal);
}

.demo-toggle i:last-child.rotated {
    transform: rotate(180deg);
}

.demo-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.demo-content.show {
    max-height: 200px;
}

.demo-users {
    padding: 0.5rem 1rem 1rem;
}

.demo-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 191, 255, 0.1);
    cursor: pointer;
    transition: var(--transition-fast);
}

.demo-user:hover {
    background: rgba(0, 191, 255, 0.15);
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.demo-user code {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.login-footer {
    color: rgba(0, 191, 255, 0.5);
    font-size: 0.85rem;
}

/* Form check en login */
.login-form .form-check-label {
    color: rgba(255, 255, 255, 0.6);
}

.login-form .form-check-input {
    background-color: rgba(0, 20, 40, 0.6);
    border-color: rgba(0, 191, 255, 0.3);
}

.login-form .form-check-input:checked {
    background-color: var(--argenpesos-primary);
    border-color: var(--argenpesos-primary);
}

/* ===========================
   Dashboard Layout
   =========================== */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: var(--transition-normal);
}

[data-bs-theme="dark"] .sidebar {
    border-right-color: rgba(255, 255, 255, 0.08);
}

.sidebar-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.logo-sm {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--argenpesos-primary), var(--argenpesos-accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.sidebar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--argenpesos-primary);
}

.sidebar-user {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.user-avatar {
    width: 45px;
    height: 45px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.user-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
    list-style: none;
}

.nav-section {
    padding: 0.75rem 1.5rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.nav-item .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
}

.nav-item .nav-link:hover {
    background: rgba(46, 125, 50, 0.08);
    color: var(--argenpesos-primary);
}

.nav-item .nav-link.active {
    background: linear-gradient(90deg, rgba(46, 125, 50, 0.15), transparent);
    color: var(--argenpesos-primary);
    font-weight: 600;
}

.nav-item .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--argenpesos-primary);
    border-radius: 0 3px 3px 0;
}

.nav-item .nav-link i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.nav-item .badge {
    margin-left: auto;
    font-size: 0.7rem;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-header {
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-tertiary);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-md);
    min-width: 300px;
}

.header-search i {
    color: var(--text-muted);
}

.header-search input {
    background: none;
    border: none;
    outline: none;
    width: 100%;
    color: var(--text-primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.header-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
}

.header-btn:hover {
    background: var(--argenpesos-primary);
    color: white;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-tertiary);
    padding: 0.4rem 1rem 0.4rem 0.5rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--text-primary);
}

.header-user:hover {
    background: rgba(46, 125, 50, 0.1);
}

.user-avatar-sm {
    width: 32px;
    height: 32px;
    background: var(--argenpesos-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Notifications Dropdown */
.notifications-dropdown {
    width: 350px;
    padding: 0;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon.warning {
    background: rgba(255, 193, 7, 0.15);
    color: var(--warning);
}

.notification-icon.success {
    background: rgba(40, 167, 69, 0.15);
    color: var(--success);
}

.notification-icon.danger {
    background: rgba(220, 53, 69, 0.15);
    color: var(--danger);
}

.notification-icon.info {
    background: rgba(23, 162, 184, 0.15);
    color: var(--info);
}

.notification-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.notification-content small {
    color: var(--text-muted);
}

/* Dashboard Content */
.dashboard-content {
    padding: 1.5rem;
    flex: 1;
}

/* Welcome Section */
.welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--argenpesos-primary), var(--argenpesos-primary-light));
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    margin-bottom: 1.5rem;
    color: white;
}

.welcome-text h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.welcome-text p {
    opacity: 0.9;
    margin: 0;
}

.welcome-stats {
    display: flex;
    gap: 2rem;
}

.quick-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-md);
}

.quick-stat i {
    font-size: 1.75rem;
}

.quick-stat .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.quick-stat .stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.section-link {
    color: var(--argenpesos-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition-fast);
}

.section-link:hover {
    color: var(--argenpesos-primary-dark);
}

/* KPI Cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.kpi-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    animation-delay: calc(var(--animation-order) * 0.1s);
}

.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.kpi-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.kpi-content {
    display: flex;
    flex-direction: column;
}

.kpi-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.kpi-trend {
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.kpi-trend.positive {
    color: var(--success);
}

.kpi-trend.negative {
    color: var(--danger);
}

/* Area KPIs (with mini chart) */
.area-kpis .kpi-card {
    display: flex;
    justify-content: space-between;
}

.kpi-chart {
    width: 80px;
    height: 40px;
}

/* Areas Grid */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.area-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    animation-delay: calc(var(--animation-order) * 0.1s);
    display: flex;
    flex-direction: column;
}

.area-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.area-card-header {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid;
}

.area-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.area-title h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.area-title p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.area-card-body {
    padding: 0 1.25rem 1rem;
    flex: 1;
}

.area-kpis {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.area-kpi {
    text-align: center;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
}

.area-kpi-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.area-kpi-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

.area-kpi-trend {
    font-size: 0.7rem;
    font-weight: 600;
}

.area-kpi-trend.positive {
    color: var(--success);
}

.area-kpi-trend.negative {
    color: var(--danger);
}

.area-card-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Chart Card */
.chart-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.chart-header {
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.chart-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    color: var(--text-primary);
}

.chart-period {
    display: flex;
    gap: 0.25rem;
}

.chart-period .btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 50px;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border: none;
}

.chart-period .btn.active {
    background: var(--argenpesos-primary);
    color: white;
}

.chart-body {
    padding: 1.25rem;
    height: 300px;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.project-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: var(--transition-normal);
    animation-delay: calc(var(--animation-order) * 0.1s);
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-area {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
}

.project-priority {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.priority-crítica, .priority-critica {
    background: rgba(220, 53, 69, 0.15);
    color: var(--danger);
}

.priority-alta {
    background: rgba(255, 193, 7, 0.15);
    color: #d39e00;
}

.priority-media {
    background: rgba(23, 162, 184, 0.15);
    color: var(--info);
}

.project-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.project-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.project-timeline {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.project-progress {
    margin-top: auto;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.progress-value {
    font-weight: 600;
    color: var(--text-primary);
}

.progress {
    height: 8px;
    border-radius: 4px;
    background: var(--bg-tertiary);
}

.progress-bar {
    border-radius: 4px;
    transition: width 0.5s ease;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.project-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.project-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

.status-completed {
    background: rgba(40, 167, 69, 0.15);
    color: var(--success);
}

.status-in_progress {
    background: rgba(255, 193, 7, 0.15);
    color: #d39e00;
}

.status-planning {
    background: rgba(23, 162, 184, 0.15);
    color: var(--info);
}

.project-actions {
    display: flex;
    gap: 0.5rem;
}

/* Area Header */
.area-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.area-header-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.area-header-info {
    flex: 1;
}

.area-header-info h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.area-header-info p {
    color: var(--text-muted);
    margin: 0;
}

/* Insights Card */
.insights-card, .activity-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.insights-header, .activity-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.insights-header h3, .activity-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    color: var(--text-primary);
}

.insights-body, .activity-body {
    padding: 1rem 1.25rem;
}

.insight-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.insight-item:last-child {
    border-bottom: none;
}

.insight-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.insight-icon.success {
    background: rgba(40, 167, 69, 0.15);
    color: var(--success);
}

.insight-icon.warning {
    background: rgba(255, 193, 7, 0.15);
    color: #d39e00;
}

.insight-icon.info {
    background: rgba(23, 162, 184, 0.15);
    color: var(--info);
}

.insight-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.insight-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 60px;
}

.activity-content strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.activity-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* Data Table Card */
.data-table-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.table {
    margin: 0;
}

.table th {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
}

.table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

/* Stats Card */
.stat-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-info .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.stat-info .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Filters Bar */
.filters-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.filter-group .form-select {
    min-width: 140px;
}

.view-toggle {
    display: flex;
    gap: 0.25rem;
    background: var(--bg-tertiary);
    padding: 0.25rem;
    border-radius: var(--border-radius-sm);
}

.view-toggle .btn {
    padding: 0.4rem 0.75rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
}

.view-toggle .btn.active {
    background: var(--bg-secondary);
    color: var(--argenpesos-primary);
    box-shadow: var(--shadow-sm);
}

/* Gantt Chart */
.gantt-chart {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.gantt-header {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-tertiary);
    margin-bottom: 1rem;
}

.gantt-project-col {
    font-weight: 600;
    color: var(--text-primary);
}

.gantt-months {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.gantt-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.gantt-project-name {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.gantt-bar-container {
    background: var(--bg-tertiary);
    border-radius: 4px;
    position: relative;
    height: 24px;
}

.gantt-bar {
    position: absolute;
    height: 100%;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    transition: var(--transition-normal);
}

/* Page Title */
.page-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    color: var(--text-primary);
}

/* Section Title */
.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    color: var(--text-primary);
}

/* Sidebar Overlay (mobile) */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Sidebar Toggle */
.sidebar-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
}

/* Responsive */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: flex;
    }
    
    .header-search {
        display: none;
    }
    
    .welcome-section {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .welcome-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }
    
    .areas-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-bar {
        flex-wrap: wrap;
    }
    
    .quick-stat {
        padding: 0.75rem 1rem;
    }
}

/* Animation Delays */
.animate__animated {
    animation-delay: calc(var(--animation-order, 0) * 0.1s);
}

/* Print Styles */
@media print {
    .sidebar,
    .main-header,
    .sidebar-overlay {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .dashboard-content {
        padding: 0 !important;
    }
}
/* ===========================
   NEW COMPONENTS - Home Dashboard
   =========================== */

/* Section Tabs */
.section-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.tab-btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-btn:hover {
    background: var(--bg-tertiary);
    color: var(--argenpesos-primary);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--argenpesos-primary), var(--argenpesos-primary-dark));
    color: white;
    box-shadow: var(--shadow-md);
}

.section-content {
    display: none;
}

.section-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Metric Cards */
.metric-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    height: 100%;
}

.metric-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.metric-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.info-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-btn:hover {
    background: var(--argenpesos-primary);
    color: white;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.metric-trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.metric-trend.positive {
    color: var(--success);
}

.metric-trend.negative {
    color: var(--danger);
}

.trend-period {
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 0.25rem;
}

/* Abandono Grid */
.abandono-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

.abandono-item {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
}

.abandono-item.warning {
    background: rgba(255, 193, 7, 0.1);
}

.abandono-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.abandono-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Age Distribution */
.age-distribution {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.age-bucket {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bucket-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.bucket-label {
    color: var(--text-secondary);
}

.bucket-percent {
    font-weight: 600;
    color: var(--argenpesos-primary);
}

.bucket-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.age-bucket .progress {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.age-bucket .progress-bar {
    background: linear-gradient(90deg, var(--argenpesos-primary), var(--argenpesos-accent));
    border-radius: 3px;
}

/* Screen Stats */
.screen-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Screen Stats List - Top Pantallas */
.screen-stats-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.screen-stat-item {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
}

.screen-stat-item:hover {
    background: rgba(0, 153, 204, 0.08);
}

.screen-rank {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
    border: 2px solid var(--bg-tertiary);
}

.screen-stat-item:first-child .screen-rank {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    border-color: #FFD700;
}

.screen-stat-item:nth-child(2) .screen-rank {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
    color: white;
    border-color: #C0C0C0;
}

.screen-stat-item:nth-child(3) .screen-rank {
    background: linear-gradient(135deg, #CD7F32, #B87333);
    color: white;
    border-color: #CD7F32;
}

.screen-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.screen-info .screen-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.screen-bar {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.screen-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--argenpesos-primary), var(--argenpesos-accent));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.screen-stat-item .screen-metrics {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    min-width: 100px;
}

.screen-stat-item .screen-time {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.screen-stat-item .screen-views {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--argenpesos-primary);
}

.screen-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
}

.screen-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.screen-metrics {
    display: flex;
    gap: 1rem;
}

.screen-time, .screen-views {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Campaign Stats */
.campaign-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.stat-value {
    font-weight: 600;
    color: var(--text-primary);
}

.stat-value.highlight {
    color: var(--argenpesos-primary);
    font-size: 1.1rem;
}

/* Fatiga Indicator */
.fatiga-indicator {
    text-align: center;
    padding: 1rem;
}

.fatiga-level {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-weight: 600;
}

.fatiga-level.bajo {
    background: rgba(40, 167, 69, 0.15);
    color: var(--success);
}

.fatiga-level.medio {
    background: rgba(255, 193, 7, 0.15);
    color: var(--warning);
}

.fatiga-level.alto {
    background: rgba(220, 53, 69, 0.15);
    color: var(--danger);
}

/* Top List */
.top-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.top-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
}

.top-rank {
    width: 24px;
    height: 24px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

.top-item:first-child .top-rank {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
}

.top-name {
    flex: 1;
    font-size: 0.9rem;
}

.top-value {
    font-weight: 600;
    color: var(--argenpesos-primary);
}

/* PowerBI Card */
.powerbi-card {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
}

.powerbi-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.powerbi-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.powerbi-link:hover {
    background: var(--argenpesos-primary);
    color: white;
    transform: translateX(5px);
}

.powerbi-link i {
    width: 24px;
    color: var(--argenpesos-primary);
}

.powerbi-link:hover i {
    color: white;
}

/* Data Dictionary Modal */
.dd-item {
    margin-bottom: 1rem;
}

.dd-item label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.dd-item p {
    margin: 0;
    color: var(--text-primary);
}

.dd-item code {
    display: block;
    padding: 0.5rem;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
}

/* ===========================
   Usuarios Page
   =========================== */

/* Gradient Card Themes - Pastel con texto oscuro */
.metric-card.gradient-primary {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid rgba(0, 153, 204, 0.2);
}

.metric-card.gradient-primary .metric-icon {
    color: var(--argenpesos-primary);
}

.metric-card.gradient-primary .metric-value {
    color: #0277bd;
}

.metric-card.gradient-primary .metric-title {
    color: #01579b;
}

.metric-card.gradient-primary .metric-trend {
    color: #0288d1;
}

.metric-card.gradient-primary .info-btn {
    background: rgba(0, 153, 204, 0.15);
    color: var(--argenpesos-primary);
}

.metric-card.gradient-success {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.metric-card.gradient-success .metric-icon {
    color: #2e7d32;
}

.metric-card.gradient-success .metric-value {
    color: #1b5e20;
}

.metric-card.gradient-success .metric-title {
    color: #2e7d32;
}

.metric-card.gradient-success .metric-trend {
    color: #388e3c;
}

.metric-card.gradient-success .info-btn {
    background: rgba(40, 167, 69, 0.15);
    color: #2e7d32;
}

.metric-card.gradient-warning {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.metric-card.gradient-warning .metric-icon {
    color: #f57c00;
}

.metric-card.gradient-warning .metric-value {
    color: #e65100;
}

.metric-card.gradient-warning .metric-title {
    color: #ef6c00;
}

.metric-card.gradient-warning .abandono-value {
    color: #e65100;
}

.metric-card.gradient-warning .abandono-label {
    color: #6d4c41;
}

.metric-card.gradient-warning .info-btn {
    background: rgba(255, 152, 0, 0.15);
    color: #ef6c00;
}

.metric-card.gradient-info {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    border: 1px solid rgba(23, 162, 184, 0.2);
}

.metric-card.gradient-info .metric-icon {
    color: #00838f;
}

.metric-card.gradient-info .metric-value {
    color: #006064;
}

.metric-card.gradient-info .metric-title {
    color: #00838f;
}

.metric-card.gradient-info .metric-trend {
    color: #0097a7;
}

.metric-card.gradient-info .info-btn {
    background: rgba(23, 162, 184, 0.15);
    color: #00838f;
}

.metric-card.gradient-danger {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.metric-card.gradient-danger .metric-icon {
    color: #c62828;
}

.metric-card.gradient-danger .metric-value {
    color: #b71c1c;
}

.metric-card.gradient-danger .metric-title {
    color: #c62828;
}
    color: white;
}

.metric-card.gradient-danger .info-btn {
    background: rgba(220, 53, 69, 0.15);
    color: #c62828;
}

.metric-card.gradient-secondary {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border: 1px solid rgba(108, 117, 125, 0.2);
}

.metric-card.gradient-secondary .metric-icon {
    color: #546e7a;
}

.metric-card.gradient-secondary .metric-value {
    color: #37474f;
}

.metric-card.gradient-secondary .metric-title {
    color: #546e7a;
}

.metric-card.gradient-secondary .info-btn {
    background: rgba(108, 117, 125, 0.15);
    color: #546e7a;
}

.user-avatar-table {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--argenpesos-primary), var(--argenpesos-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
}

/* User Avatar Small */
.user-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

.user-avatar-sm.bg-danger { background: linear-gradient(135deg, #dc3545, #e85d6d); }
.user-avatar-sm.bg-primary { background: linear-gradient(135deg, var(--argenpesos-primary), var(--argenpesos-primary-light)); }
.user-avatar-sm.bg-secondary { background: linear-gradient(135deg, #6c757d, #868e96); }
.user-avatar-sm.bg-success { background: linear-gradient(135deg, #28a745, #34ce57); }
.user-avatar-sm.bg-info { background: linear-gradient(135deg, #17a2b8, #20c997); }
.user-avatar-sm.bg-warning { background: linear-gradient(135deg, #ffc107, #ffcd39); color: #1a1a2e; }

/* ===========================
   Audiencias Page
   =========================== */
.segment-card {
    transition: var(--transition-normal);
}

.segment-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.tag-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.tag-clickable {
    cursor: pointer;
    transition: var(--transition-fast);
}

.tag-clickable:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.tags-selector {
    background: var(--bg-tertiary);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.activo {
    background: rgba(40, 167, 69, 0.15);
    color: var(--success);
}

.status-badge.inactivo {
    background: rgba(220, 53, 69, 0.15);
    color: var(--danger);
}

.status-badge.pendiente {
    background: rgba(255, 193, 7, 0.15);
    color: var(--warning);
}

/* ===========================
   Contenido Page
   =========================== */
.content-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.content-card:hover {
    box-shadow: var(--shadow-md);
}

.content-preview {
    position: relative;
    height: 150px;
    background: var(--bg-tertiary);
    overflow: hidden;
}

.content-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-status {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.content-status.activo {
    background: var(--success);
    color: white;
}

.content-status.inactivo {
    background: var(--danger);
    color: white;
}

.content-status.programado {
    background: var(--info);
    color: white;
}

.content-body {
    padding: 1rem;
}

.content-body h6 {
    margin-bottom: 0.25rem;
}

.content-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.campaign-id, .deep-link {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
    color: var(--text-muted);
}

.content-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bg-tertiary);
}

.content-stats .stat {
    text-align: center;
}

.content-stats .stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--argenpesos-primary);
}

.content-stats .stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.content-actions {
    padding: 1rem;
    border-top: 1px solid var(--bg-tertiary);
    display: flex;
    gap: 0.5rem;
}

/* Oferta Card */
.oferta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.oferta-descuento {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--danger);
}

/* ===========================
   Notificaciones Page
   =========================== */
.push-campaign-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.campaign-header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--bg-tertiary);
}

.campaign-info h5 {
    margin-bottom: 0.25rem;
}

.campaign-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.campaign-status.activa {
    background: rgba(40, 167, 69, 0.15);
    color: var(--success);
}

.campaign-status.pausada {
    background: rgba(255, 193, 7, 0.15);
    color: var(--warning);
}

.campaign-status.completada {
    background: rgba(108, 117, 125, 0.15);
    color: var(--text-muted);
}

.campaign-status.programada {
    background: rgba(23, 162, 184, 0.15);
    color: var(--info);
}

.campaign-preview {
    padding: 1rem;
    background: var(--bg-tertiary);
}

.push-preview {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.push-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--argenpesos-primary), var(--argenpesos-accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.push-content strong {
    display: block;
    font-size: 0.9rem;
}

.push-content p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.campaign-details {
    padding: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
}

.detail-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.detail-value {
    font-size: 0.85rem;
}

.campaign-metrics {
    display: flex;
    justify-content: space-around;
    padding: 1rem;
    background: var(--bg-tertiary);
}

.campaign-metrics .metric {
    text-align: center;
}

.campaign-metrics .metric-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.campaign-metrics .metric-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.campaign-actions {
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ===========================
   Configuración Page
   =========================== */
.health-status {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.health-status.healthy {
    color: var(--success);
}

.health-status.warning {
    color: var(--warning);
}

.health-status.error {
    color: var(--danger);
}

.version-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.version-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--bg-tertiary);
}

.version-label {
    color: var(--text-muted);
}

.version-value {
    font-weight: 600;
}

.version-dist {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.version-dist span:first-child {
    min-width: 60px;
}

.version-dist span:last-child {
    min-width: 40px;
    text-align: right;
}

/* ===========================
   Projects Page - Kanban
   =========================== */
.kanban-board {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.kanban-column {
    min-width: 300px;
    flex: 1;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 250px);
}

.kanban-column-header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.kanban-column-header h6 {
    margin: 0;
    display: flex;
    align-items: center;
}

.kanban-column-header.backlog {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
}

.kanban-column-header.in-progress {
    background: linear-gradient(135deg, var(--argenpesos-primary), var(--argenpesos-primary-dark));
    color: white;
}

.kanban-column-header.review {
    background: linear-gradient(135deg, #fd7e14, #e65c00);
    color: white;
}

.kanban-column-header.done {
    background: linear-gradient(135deg, var(--success), #1e7e34);
    color: white;
}

.kanban-cards {
    flex: 1;
    padding: 0.75rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.kanban-cards.drag-over {
    background: rgba(0, 153, 204, 0.1);
}

.kanban-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.kanban-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.kanban-card.dragging {
    opacity: 0.5;
}

.kanban-card.completed {
    opacity: 0.7;
}

.card-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.project-key {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.priority-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-badge.alta {
    background: rgba(220, 53, 69, 0.15);
    color: var(--danger);
}

.priority-badge.media {
    background: rgba(255, 193, 7, 0.15);
    color: var(--warning);
}

.priority-badge.baja {
    background: rgba(40, 167, 69, 0.15);
    color: var(--success);
}

.card-title {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.card-description {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.card-meta {
    margin-bottom: 0.5rem;
}

.team-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-weight: 500;
}

.progress-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.progress-info .progress {
    flex: 1;
    background: var(--bg-tertiary);
}

.progress-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--argenpesos-primary);
}

.card-footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--bg-tertiary);
}

.assignees {
    display: flex;
    margin-left: -5px;
}

.assignee-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--argenpesos-primary), var(--argenpesos-accent));
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-secondary);
    margin-left: -5px;
}

.assignee-more {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-secondary);
    margin-left: -5px;
}

.time-info {
    display: flex;
    gap: 0.25rem;
    font-size: 0.75rem;
}

.time-logged {
    color: var(--argenpesos-primary);
    font-weight: 500;
}

.time-estimate {
    color: var(--text-muted);
}

/* Team Summary Card */
.team-summary-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.team-header {
    padding: 1rem;
    border-left: 4px solid;
}

.team-header h6 {
    margin: 0;
}

.team-stats {
    padding: 1rem;
}

.team-members {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.member-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
}

.team-workload {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.workload-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ===========================
   Project Detail Page
   =========================== */
.project-header-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.project-header-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.project-key-large {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
    color: var(--text-muted);
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.project-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.meta-item {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Task List */
.task-list {
    display: flex;
    flex-direction: column;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--bg-tertiary);
    transition: var(--transition-fast);
}

.task-item:hover {
    background: var(--bg-tertiary);
}

.task-item.completed .task-title {
    text-decoration: line-through;
    color: var(--text-muted);
}

.task-checkbox {
    flex-shrink: 0;
}

.task-content {
    flex: 1;
}

.task-title {
    font-weight: 500;
}

.task-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.25rem;
}

.task-assignee {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.assignee-avatar-sm {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--argenpesos-primary);
    color: white;
    font-size: 0.55rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-hours {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Activity Feed */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    gap: 0.75rem;
}

.activity-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    flex-shrink: 0;
}

.activity-content p {
    margin: 0;
    font-size: 0.9rem;
}

/* Time Tracking Circle */
.time-tracking-summary {
    text-align: center;
}

.time-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
}

.time-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: var(--bg-tertiary);
    stroke-width: 3;
}

.circle-progress {
    fill: none;
    stroke: var(--argenpesos-primary);
    stroke-width: 3;
    stroke-linecap: round;
    transition: var(--transition-normal);
}

.time-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.time-text .logged {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--argenpesos-primary);
}

.time-text .estimated {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.time-stats {
    display: flex;
    justify-content: space-around;
}

.time-stat {
    text-align: center;
}

.time-stat .label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.time-stat .value {
    font-weight: 600;
}

/* Assignees List */
.assignees-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.assignee-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.assignee-avatar-lg {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.assignee-info .name {
    display: block;
    font-weight: 500;
}

.assignee-info .team {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Worklog */
.worklog-list {
    display: flex;
    flex-direction: column;
}

.worklog-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--bg-tertiary);
}

.worklog-user {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    flex-shrink: 0;
}

.worklog-info {
    flex: 1;
}

.worklog-hours {
    font-weight: 700;
    color: var(--argenpesos-primary);
}

.worklog-desc {
    display: block;
    font-size: 0.85rem;
}

.worklog-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Period Selector */
.period-selector .form-select {
    border-color: var(--argenpesos-primary);
    color: var(--argenpesos-primary);
}

/* Notification Dropdown */
.notifications-dropdown {
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon.warning {
    background: rgba(255, 193, 7, 0.15);
    color: var(--warning);
}

.notification-icon.success {
    background: rgba(40, 167, 69, 0.15);
    color: var(--success);
}

.notification-icon.danger {
    background: rgba(220, 53, 69, 0.15);
    color: var(--danger);
}

.notification-icon.info {
    background: rgba(23, 162, 184, 0.15);
    color: var(--info);
}

.notification-content p {
    margin: 0;
    font-size: 0.85rem;
}

.notification-content small {
    color: var(--text-muted);
}

/* User Header */
.header-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.header-user:hover {
    background: var(--argenpesos-primary);
    color: white;
}

.user-avatar-sm {
    width: 32px;
    height: 32px;
    background: var(--argenpesos-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.header-user:hover .user-avatar-sm {
    background: white;
    color: var(--argenpesos-primary);
}

/* ===========================
   Funnel de Onboarding
   =========================== */
.funnel-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.funnel-step {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
}

.funnel-step:hover {
    background: var(--bg-secondary);
    box-shadow: var(--shadow-sm);
}

.funnel-bar-container {
    background: rgba(0, 153, 204, 0.1);
    border-radius: 6px;
    height: 36px;
    position: relative;
    overflow: hidden;
}

.funnel-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--argenpesos-primary), var(--argenpesos-accent));
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.75rem;
    transition: width 0.5s ease;
    min-width: 60px;
}

.funnel-users {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.funnel-info {
    display: flex;
    flex-direction: column;
    min-width: 180px;
}

.funnel-step-name {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.funnel-percent {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--argenpesos-primary);
}

.funnel-drop {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.funnel-drill {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    opacity: 0;
    transition: var(--transition-fast);
}

.funnel-step:hover .funnel-drill {
    opacity: 1;
}

.funnel-insight {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

/* ===========================
   App Store Ratings
   =========================== */
.store-card-google {
    background: linear-gradient(135deg, #e8f5e9 0%, #e3f2fd 100%);
    border: 1px solid rgba(52, 168, 83, 0.2);
}

.store-card-google .metric-icon {
    color: #34A853;
}

.store-card-google .rating-value {
    color: #1a1a2e;
}

.store-card-google .metric-title {
    color: #4285F4;
    font-weight: 600;
}

.store-card-apple {
    background: linear-gradient(135deg, #f3f4f6 0%, #e8eef5 100%);
    border: 1px solid rgba(0, 122, 255, 0.2);
}

.store-card-apple .metric-icon {
    color: #1d1d1f;
}

.store-card-apple .rating-value {
    color: #1a1a2e;
}

.store-card-apple .metric-title {
    color: #007AFF;
    font-weight: 600;
}

.rating-display {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.rating-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.rating-stars {
    display: flex;
    gap: 0.125rem;
    color: #FFB800;
    font-size: 1rem;
}

.store-version {
    font-size: 0.7rem;
    background: rgba(0, 0, 0, 0.08);
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    color: var(--text-secondary);
}

.store-stats {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.store-stat {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===========================
   Social Mentions
   =========================== */
.social-breakdown {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-item {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255,255,255,0.9);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    background: rgba(255,255,255,0.15);
}

.social-item.twitter i {
    color: #1DA1F2;
}

.social-item.instagram i {
    color: #E4405F;
}

.social-item.facebook i {
    color: #1877F2;
}

/* Store Card Social (Menciones) */
.store-card-social {
    background: linear-gradient(135deg, #fff5f5 0%, #fff0e6 100%);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.store-card-social .metric-icon {
    color: #dc3545;
}

.store-card-social .metric-value {
    color: #c92a2a;
    font-size: 2.5rem;
}

.store-card-social .metric-title {
    color: #e85d04;
    font-weight: 600;
}

.store-card-social.alert-level {
    background: linear-gradient(135deg, #ffe5e5 0%, #ffd6cc 100%);
    border: 1px solid rgba(220, 53, 69, 0.35);
}

/* Social Negative Grid */
.social-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.social-neg-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0.25rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.social-neg-item:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.social-neg-item i {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.social-neg-item.twitter i { color: #1DA1F2; }
.social-neg-item.instagram i { color: #E4405F; }
.social-neg-item.facebook i { color: #1877F2; }
.social-neg-item.tiktok i { color: #000000; }

.neg-count {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
}

/* Social Network Cards (Modal) */
.social-network-card {
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-md);
    padding: 1.25rem;
    height: 100%;
}

.social-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sentiment-bar-container {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.sentiment-bar {
    transition: width 0.3s ease;
}

.sentiment-bar.positive {
    background: var(--success);
}

.sentiment-bar.neutral {
    background: #6c757d;
}

.sentiment-bar.negative {
    background: var(--danger);
}

.sentiment-legend small {
    font-size: 0.7rem;
}

.sentiment-legend i {
    font-size: 0.5rem;
    vertical-align: middle;
}

.top-issues {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.issue-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
}

.issue-text {
    color: var(--text-secondary);
    font-style: italic;
}

/* ===========================
   Heatmaps de Pantallas
   =========================== */
.heatmap-container {
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-md);
    padding: 1rem;
}

.heatmap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.heatmap-title {
    font-weight: 600;
    color: var(--text-primary);
}

.heatmap-clicks {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Phone Mockup */
.phone-mockup {
    background: #1a1a2e;
    border-radius: 32px;
    padding: 8px;
    position: relative;
    max-width: 220px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.phone-notch {
    width: 80px;
    height: 24px;
    background: #1a1a2e;
    border-radius: 0 0 16px 16px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.phone-screen {
    background: #f5f5f5;
    border-radius: 24px;
    aspect-ratio: 9/19;
    position: relative;
    overflow: hidden;
}

.phone-button {
    width: 40px;
    height: 4px;
    background: #444;
    border-radius: 2px;
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
}

/* App Screen Content */
.app-screen-content {
    width: 100%;
    height: 100%;
    position: relative;
}

.app-screen-content.home_screen {
    background: linear-gradient(180deg, #0099CC 0%, #0099CC 15%, #f5f5f5 15%);
}

.app-screen-content.home_screen::before {
    content: '';
    position: absolute;
    top: 18%;
    left: 10%;
    right: 10%;
    height: 15%;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 8px;
}

.app-screen-content.home_screen::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    width: 35%;
    height: 12%;
    background: #00D4FF;
    border-radius: 8px;
}

.app-screen-content.loans_screen {
    background: linear-gradient(180deg, #0099CC 0%, #0099CC 12%, #ffffff 12%);
}

.app-screen-content.loans_screen::before {
    content: '';
    position: absolute;
    top: 18%;
    left: 15%;
    right: 15%;
    height: 8%;
    background: linear-gradient(90deg, #e0e0e0 0%, #0099CC 60%, #e0e0e0 60%);
    border-radius: 10px;
}

.app-screen-content.loans_screen::after {
    content: '';
    position: absolute;
    top: 55%;
    left: 20%;
    right: 20%;
    height: 10%;
    background: #0099CC;
    border-radius: 20px;
}

.app-screen-content.coupons_screen {
    background: linear-gradient(180deg, #0099CC 0%, #0099CC 10%, #FFF8E7 10%);
}

.app-screen-content.coupons_screen::before {
    content: '';
    position: absolute;
    top: 25%;
    left: 8%;
    width: 38%;
    height: 18%;
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    border-radius: 8px;
}

.app-screen-content.coupons_screen::after {
    content: '';
    position: absolute;
    top: 25%;
    right: 8%;
    width: 38%;
    height: 18%;
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    border-radius: 8px;
}

/* Heatspots */
.heatspot {
    position: absolute;
    width: 30px;
    height: 30px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 5;
}

.heatspot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(var(--intensity) * 0.35px);
    height: calc(var(--intensity) * 0.35px);
    min-width: 15px;
    min-height: 15px;
    max-width: 35px;
    max-height: 35px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(255, 0, 0, calc(var(--intensity) / 100)) 0%, 
        rgba(255, 165, 0, calc(var(--intensity) / 150)) 40%, 
        rgba(255, 255, 0, calc(var(--intensity) / 300)) 70%, 
        transparent 100%);
    animation: pulse-heat 2s ease-in-out infinite;
}

.heatspot-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 100, 0, 0.8);
}

@keyframes pulse-heat {
    0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

/* Heatmap Legend */
.heatmap-legend {
    margin-top: 1rem;
}

.legend-gradient {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.gradient-bar {
    width: 100px;
    height: 8px;
    background: linear-gradient(90deg, #00ff00, #ffff00, #ff8c00, #ff0000);
    border-radius: 4px;
}

/* Top Areas */
.heatmap-top-areas {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.top-area-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
}

.area-rank {
    width: 20px;
    height: 20px;
    background: var(--argenpesos-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
}

.area-name {
    flex: 1;
    color: var(--text-secondary);
}

.area-clicks {
    font-weight: 600;
    color: var(--argenpesos-primary);
}

/* Sentiment Gauge */
.sentiment-gauge {
    display: flex;
    justify-content: center;
    margin: 0.5rem 0;
}

.gauge-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid;
    background: var(--bg-secondary);
}

.gauge-circle.good {
    border-color: var(--success);
}

.gauge-circle.medium {
    border-color: var(--warning);
}

.gauge-circle.bad {
    border-color: var(--danger);
}

.gauge-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
}

.sentiment-label {
    text-align: center;
    font-size: 0.85rem;
}

/* Responsive adjustments for funnel */
@media (max-width: 768px) {
    .funnel-step {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .funnel-info {
        flex-direction: row;
        gap: 1rem;
        align-items: center;
    }
    
    .funnel-drill {
        opacity: 1;
        width: 100%;
    }
}