/* ============================================
   CRM DASHBOARD REVOLUCIONARIO - GPT-5.1
   ============================================ */

/* ============================================
   STATS DASHBOARD ULTRA-MODERNO
   ============================================ */

.stats-dashboard {
    padding: var(--spacing-sm) 0;
    margin-top: 56px;
}

.stats-grid-modern {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-xs);
}

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

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

.stat-card-modern {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

.stat-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.stat-card-modern:hover::before {
    transform: scaleX(1);
}

.stat-card-modern.card-highlight::before {
    background: var(--gradient-cosmic);
}

.stat-card-modern.card-success::before {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-icon-modern {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

.stat-content-modern {
    position: relative;
    z-index: 1;
}

.stat-value-modern {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 2px;
}

.stat-label-modern {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: var(--spacing-xs);
}

.stat-trend-modern {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 700;
}

.trend-up {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.2) 100%);
    color: #10b981;
}

.trend-down {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%);
    color: #ef4444;
}

.trend-icon {
    font-size: 1rem;
}

.stat-sparkline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: linear-gradient(180deg, transparent 0%, rgba(102, 126, 234, 0.1) 100%);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* ============================================
   FILTROS MODERNOS
   ============================================ */

.filters-section-modern {
    padding: var(--spacing-xs) 0;
    position: sticky;
    top: 56px;
    z-index: 90;
    background: var(--bg-primary);
}

.filters-container-modern {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    align-items: center;
}

.filters-container-modern .filter-group-modern {
    flex: 1;
    min-width: 150px;
    max-width: 220px;
}

.filters-container-modern .filter-group-modern:first-child {
    flex: 2;
    max-width: 300px;
}

@media (max-width: 768px) {
    .filters-container-modern {
        flex-direction: column;
    }
    
    .filters-container-modern .filter-group-modern {
        width: 100%;
        max-width: none;
    }
}

.filter-group-modern {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-xs) var(--spacing-sm);
    transition: all var(--transition-base);
}

.filter-group-modern:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
}

.filter-icon {
    font-size: 0.9rem;
}

.filter-input-modern,
.filter-select-modern {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 500;
}

.filter-input-modern::placeholder {
    color: var(--text-tertiary);
}

.filter-select-modern {
    cursor: pointer;
}

/* ============================================
   GPT-5.1 BANNER
   ============================================ */

.gpt51-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-sm) var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.gpt51-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.banner-icon {
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.banner-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.banner-content h3 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.banner-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

.banner-badge {
    position: relative;
    z-index: 1;
}

.banner-badge span {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
}

/* ============================================
   TABS CRM MODERNO
   ============================================ */

.crm-section-modern {
    padding: var(--spacing-sm) 0 var(--spacing-xl) 0;
}

.tabs-nav-modern {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
    overflow-x: auto;
    padding-bottom: var(--spacing-xs);
}

.tabs-nav-modern::-webkit-scrollbar {
    height: 4px;
}

.tabs-nav-modern::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
}

.tabs-nav-modern::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: var(--radius-full);
}

.tab-btn-modern {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.tab-btn-modern:hover {
    border-color: var(--color-primary);
    background: var(--glass-bg-hover);
    transform: translateY(-2px);
}

.tab-btn-modern.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.tab-icon {
    font-size: 1rem;
}

.tab-label {
    font-weight: 700;
}

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
}

.tab-btn-modern.active .tab-count {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* ============================================
   TAB PANELS
   ============================================ */

.tabs-content-modern {
    position: relative;
}

.tab-panel-modern {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.tab-panel-modern.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.prospects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-sm);
}

@media (min-width: 1400px) {
    .prospects-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1800px) {
    .prospects-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ============================================
   PROSPECT CARDS CRM
   ============================================ */

.prospect-card-crm {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.prospect-card-crm::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.prospect-card-crm:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.prospect-card-crm:hover::before {
    transform: scaleX(1);
}

.card-header-crm {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-sm);
}

.card-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 700;
}

.badge-enriquecido {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
}

.badge-candidato {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.badge-aceptado {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.card-actions-crm {
    display: flex;
    gap: var(--spacing-xs);
}

.action-btn-crm {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.action-btn-crm:hover {
    background: var(--color-primary);
    color: white;
    transform: scale(1.1);
}

.card-title-crm {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
    line-height: 1.3;
}

.card-location-crm {
    color: var(--text-secondary);
    font-size: 0.7rem;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-scores-crm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xs);
    margin: var(--spacing-sm) 0;
}

.score-item-crm {
    text-align: center;
    padding: var(--spacing-xs);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.score-label-crm {
    font-size: 0.6rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}

.score-value-crm {
    font-size: 1rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-ai-info-crm {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-left: 2px solid #8b5cf6;
    border-radius: var(--radius-sm);
}

.ai-model-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.ai-model-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #8b5cf6;
}

/* Badges de análisis en cards */
.card-analyses-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: var(--spacing-xs) 0;
    align-items: center;
}

.analysis-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    transition: all 0.2s ease;
}

.analysis-badge:hover {
    transform: scale(1.15);
    background: var(--color-primary);
}

.analysis-count {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-tertiary);
    margin-left: 4px;
}

/* Score badge en header de card */
.card-score-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
}

.card-score-badge.badge-high {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.card-score-badge.badge-medium {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.card-score-badge.badge-low {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

/* Recomendación badge */
.card-rec-badge-crm {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 600;
    color: #ef4444;
    margin-bottom: var(--spacing-xs);
}

/* Grid de scores mini */
.card-scores-grid-crm {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin: var(--spacing-xs) 0;
}

.mini-score-crm {
    text-align: center;
    padding: 4px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.mini-score-crm .mini-label {
    display: block;
    font-size: 0.55rem;
    color: var(--text-tertiary);
    margin-bottom: 2px;
}

.mini-score-crm .mini-value {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Summary y beneficios */
.card-summary-crm {
    margin: var(--spacing-xs) 0;
    padding: var(--spacing-xs);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.card-summary-crm p {
    margin: 0;
}

.card-benefits-crm,
.card-opps-crm {
    margin-top: var(--spacing-xs);
}

.benefits-label,
.opps-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-tertiary);
    display: block;
    margin-bottom: 4px;
}

.benefits-tags,
.opps-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.benefit-tag-crm {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.6rem;
    color: #10b981;
}

.opp-tag-crm {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.6rem;
    color: #818cf8;
}

/* Botón ver análisis */
.btn-view-crm {
    width: 100%;
    padding: 8px 12px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: auto;
}

.btn-view-crm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* ============================================
   LOADING OVERLAY
   ============================================ */

.loading-overlay-modern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loading-spinner-modern {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    margin-top: var(--spacing-lg);
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state-crm {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-2xl);
}

.empty-state-icon {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.empty-state-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* ============================================
   MODAL DETAILED VIEW
   ============================================ */

.detailed-view-modern {
    padding: var(--spacing-xl);
}

.detail-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 2px solid var(--border-color);
}

.detail-header-modern h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
}

.detail-header-modern p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.detail-score-large {
    text-align: center;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(
        var(--color-primary) 0deg,
        var(--color-primary) calc(var(--score) * 3.6deg),
        var(--bg-tertiary) calc(var(--score) * 3.6deg),
        var(--bg-tertiary) 360deg
    );
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    position: relative;
}

.score-circle::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--bg-primary);
    border-radius: 50%;
}

.score-number {
    position: relative;
    z-index: 1;
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.score-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
}

.ai-analysis-section {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-left: 4px solid #8b5cf6;
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.ai-analysis-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.ai-model-info {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.model-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.5rem 1rem;
    background: var(--gradient-cosmic);
    border-radius: var(--radius-lg);
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
}

.reasoning-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    border-radius: var(--radius-lg);
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
}

.ai-summary {
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 1rem;
}

.detail-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.detail-stat {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
}

.detail-stat .stat-label {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-sm);
}

.detail-stat .stat-value {
    font-size: 1.5rem;
    font-weight: 900;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.opportunities-section {
    margin-bottom: var(--spacing-2xl);
}

.opportunities-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
}

.opportunities-grid {
    display: grid;
    gap: var(--spacing-md);
}

.opportunity-item {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-secondary);
    border-left: 3px solid var(--color-success);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.modal-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-end;
    padding-top: var(--spacing-xl);
    border-top: 2px solid var(--border-color);
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--color-primary);
}

/* Grid de 4 botones principales */
.modal-actions-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
    margin: var(--spacing-lg) 0;
}

@media (max-width: 900px) {
    .modal-actions-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .modal-actions-grid-4 {
        grid-template-columns: 1fr;
    }
}

.btn-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 90px;
}

.btn-action .btn-icon {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.btn-action .btn-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
}

.btn-action .btn-desc {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
}

.btn-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Colores de botones */
.btn-full-analysis {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.btn-trends {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.btn-visual {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.btn-pitch {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* Acciones secundarias */
.modal-actions-secondary-row {
    display: flex;
    gap: var(--spacing-xs);
    justify-content: center;
    margin-bottom: var(--spacing-sm);
}

.modal-actions-secondary {
    display: flex;
    gap: var(--spacing-xs);
    justify-content: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.btn-secondary-small {
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary-small:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.btn-outline-small {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline-small:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* Barra de progreso de análisis */
.analysis-progress {
    margin: var(--spacing-md) 0;
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.analysis-progress.hidden {
    display: none;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.progress-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.progress-status {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.progress-bar-container {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
    width: 0%;
}

.progress-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.progress-step {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
}

.progress-step.completed {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.progress-step.active {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
}

.progress-step.pending {
    color: var(--text-tertiary);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .stats-grid-modern {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .prospects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .tabs-nav-modern {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .stats-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .filters-container-modern {
        grid-template-columns: 1fr;
    }
    
    .prospects-grid {
        grid-template-columns: 1fr;
    }
    
    .gpt51-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .banner-content h3 {
        font-size: 1.25rem;
    }
}

/* ============================================
   🎯 PROPUESTA LANDING PAGE - ESTILOS
   ============================================ */

.proposal-result {
    max-width: 900px;
}

.proposal-badge {
    display: flex;
    align-items: center;
}

.badge-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.proposal-preview {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.preview-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
}

.preview-section h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--primary-color, #6366f1);
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.preview-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.preview-item .label {
    font-size: 0.75rem;
    color: var(--text-secondary, #9ca3af);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-item .value {
    font-size: 0.9rem;
    color: var(--text-primary, #fff);
    font-weight: 500;
}

.colors-preview {
    display: flex;
    gap: 6px;
    align-items: center;
}

.color-dot {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: transform 0.2s;
}

.color-dot:hover {
    transform: scale(1.2);
}

.json-section {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
}

.json-section h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--primary-color, #6366f1);
}

.btn-copy {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-copy:hover {
    background: rgba(99, 102, 241, 0.4);
}

.json-viewer {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    line-height: 1.6;
    color: #10b981;
    white-space: pre-wrap;
    word-break: break-word;
}

.json-viewer::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.json-viewer::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.json-viewer::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.5);
    border-radius: 3px;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary, #fff);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Responsive para propuesta */
@media (max-width: 768px) {
    .preview-grid {
        grid-template-columns: 1fr;
    }
    
    .json-viewer {
        font-size: 0.65rem;
        max-height: 300px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions button {
        width: 100%;
    }
}

/* ============================================
   TARJETAS DE PROSPECTOS MEJORADAS - CRM
   ============================================ */

.card-score-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.8rem;
}

.card-score-badge.badge-high {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.card-score-badge.badge-medium {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.card-score-badge.badge-low {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
}

.card-rec-badge-crm {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    margin: 8px 0;
}

.card-scores-grid-crm {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin: 10px 0;
}

.mini-score-crm {
    display: flex;
    flex-direction: column;
    padding: 6px;
    background: var(--bg-tertiary, rgba(0,0,0,0.2));
    border-radius: 6px;
    text-align: center;
}

.mini-score-crm .mini-label {
    font-size: 0.65rem;
    color: var(--text-tertiary, #9ca3af);
}

.mini-score-crm .mini-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
}

.card-summary-crm {
    margin: 10px 0;
    padding: 8px;
    background: var(--bg-tertiary, rgba(0,0,0,0.2));
    border-left: 3px solid var(--color-primary, #6366f1);
    border-radius: 6px;
}

.card-summary-crm p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-secondary, #d1d5db);
    line-height: 1.4;
}

.card-benefits-crm,
.card-opps-crm {
    margin: 8px 0;
}

.benefits-label,
.opps-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-tertiary, #9ca3af);
    display: block;
    margin-bottom: 4px;
}

.benefits-tags,
.opps-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.benefit-tag-crm {
    font-size: 0.65rem;
    padding: 2px 8px;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border-radius: 10px;
}

.opp-tag-crm {
    font-size: 0.65rem;
    padding: 2px 8px;
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border-radius: 10px;
}

.btn-view-crm {
    width: 100%;
    padding: 8px;
    margin-top: 10px;
    background: linear-gradient(135deg, var(--color-primary, #6366f1), var(--color-secondary, #8b5cf6));
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-view-crm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Botón de Make */
.btn-make {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-make:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4);
}

/* Info box para Make */
.make-info-box {
    padding: 12px 16px;
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid #f59e0b;
    border-radius: 6px;
    margin-bottom: 16px;
}

.make-info-box p {
    margin: 4px 0;
    font-size: 0.85rem;
    color: var(--text-secondary, #d1d5db);
}

/* Container JSON con botón de copiar */
.json-container {
    position: relative;
}

.btn-copy {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    background: var(--color-primary, #6366f1);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    z-index: 10;
}

.btn-copy:hover {
    background: var(--color-secondary, #8b5cf6);
}

.badge-info {
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.8rem;
}

/* ============================================
   ANÁLISIS DE TENDENCIAS DEL MERCADO
   ============================================ */

.btn-trends {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-trends:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.badge-trends {
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(239, 68, 68, 0.2));
    color: #f59e0b;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.8rem;
}

.trends-result {
    max-height: 80vh;
    overflow-y: auto;
}

.trends-section {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.1));
}

.trends-section h3 {
    font-size: 1.1rem;
    margin: 0 0 12px 0;
    color: var(--text-primary, #fff);
}

.summary-box {
    padding: 16px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(239, 68, 68, 0.1));
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary, #d1d5db);
}

/* Tendencias Grid */
.trends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.trend-card {
    padding: 12px;
    background: var(--bg-tertiary, rgba(0,0,0,0.2));
    border-radius: 8px;
}

.trend-adoption {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.trend-adoption.alto { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.trend-adoption.medio { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.trend-adoption.bajo { background: rgba(107, 114, 128, 0.2); color: #9ca3af; }

.trend-desc {
    font-size: 0.85rem;
    margin: 4px 0;
    color: var(--text-primary, #fff);
}

.trend-card small {
    font-size: 0.75rem;
    color: var(--text-tertiary, #9ca3af);
}

.market-direction {
    margin-top: 12px;
    padding: 10px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 6px;
    font-size: 0.85rem;
}

/* Estrategias */
.strategies-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.strategy-card {
    padding: 14px;
    background: var(--bg-tertiary, rgba(0,0,0,0.2));
    border-radius: 10px;
    border-left: 3px solid #10b981;
}

.strategy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.strategy-header strong {
    font-size: 0.95rem;
    color: var(--text-primary, #fff);
}

.roi-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.roi-badge.roi-alto { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.roi-badge.roi-medio { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.roi-badge.roi-bajo { background: rgba(107, 114, 128, 0.2); color: #9ca3af; }

.strategy-card p {
    font-size: 0.85rem;
    color: var(--text-secondary, #d1d5db);
    margin: 6px 0;
}

.why-works {
    font-style: italic;
    background: rgba(99, 102, 241, 0.1);
    padding: 8px;
    border-radius: 6px;
}

.strategy-meta {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-tertiary, #9ca3af);
    margin-top: 8px;
}

/* Oportunidades Grid */
.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.opportunity-card-full {
    padding: 14px;
    background: var(--bg-tertiary, rgba(0,0,0,0.2));
    border-radius: 10px;
    border-left: 3px solid #6366f1;
}

.opportunity-card-full h4 {
    font-size: 0.95rem;
    margin: 0 0 8px 0;
    color: var(--text-primary, #fff);
}

.opp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.opp-meta span {
    font-size: 0.7rem;
    padding: 2px 8px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    color: var(--text-secondary, #d1d5db);
}

.impact.impact-alto { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.impact.impact-medio { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.impact.impact-bajo { background: rgba(107, 114, 128, 0.2); color: #9ca3af; }

.actions-list {
    margin: 8px 0 0 16px;
    padding: 0;
}

.actions-list li {
    font-size: 0.8rem;
    color: var(--text-secondary, #d1d5db);
    margin: 4px 0;
}

/* Gaps de mercado */
.gaps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.gap-card {
    padding: 14px;
    background: var(--bg-tertiary, rgba(0,0,0,0.2));
    border-radius: 10px;
    border-left: 3px solid #8b5cf6;
    position: relative;
}

.gap-card.first-mover {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), transparent);
}

.first-mover-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.7rem;
    padding: 2px 8px;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-radius: 10px;
}

.gap-card h4 {
    font-size: 0.9rem;
    margin: 0 0 6px 0;
    color: var(--text-primary, #fff);
}

.gap-card p {
    font-size: 0.8rem;
    color: var(--text-secondary, #d1d5db);
    margin: 4px 0;
}

.how-exploit {
    font-style: italic;
    padding: 8px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 6px;
}

/* Plan de acción */
.action-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 768px) {
    .action-plan-grid {
        grid-template-columns: 1fr;
    }
}

.action-column {
    padding: 12px;
    border-radius: 10px;
}

.action-column.immediate {
    background: rgba(239, 68, 68, 0.1);
    border-top: 3px solid #ef4444;
}

.action-column.short-term {
    background: rgba(245, 158, 11, 0.1);
    border-top: 3px solid #f59e0b;
}

.action-column.medium-term {
    background: rgba(99, 102, 241, 0.1);
    border-top: 3px solid #6366f1;
}

.action-column h4 {
    font-size: 0.9rem;
    margin: 0 0 10px 0;
    color: var(--text-primary, #fff);
}

.action-item {
    padding: 8px;
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
    margin-bottom: 8px;
}

.action-text {
    font-size: 0.8rem;
    color: var(--text-primary, #fff);
    display: block;
    margin-bottom: 6px;
}

.action-meta {
    display: flex;
    gap: 8px;
}

.effort, .impact {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 8px;
}

.effort.effort-bajo { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.effort.effort-medio { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.effort.effort-alto { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

/* ============================================
   BOTONES DE ACCIONES REORGANIZADOS
   ============================================ */

.modal-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

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

.btn-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-action .btn-icon {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.btn-action .btn-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.btn-action .btn-desc {
    font-size: 0.7rem;
    opacity: 0.8;
    margin-top: 4px;
    color: rgba(255,255,255,0.8);
}

.btn-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Colores de cada botón */
.btn-action.btn-trends {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.btn-action.btn-visual {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.btn-action.btn-make {
    background: linear-gradient(135deg, #10b981, #059669);
}

.btn-action.btn-view {
    background: linear-gradient(135deg, #6366f1, #3b82f6);
}

/* Botones secundarios */
.modal-actions-secondary {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color, rgba(255,255,255,0.1));
}

.btn-secondary-small {
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-secondary, #d1d5db);
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary-small:hover {
    background: rgba(255,255,255,0.15);
}

.btn-outline-small {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border-color, rgba(255,255,255,0.2));
    color: var(--text-tertiary, #9ca3af);
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline-small:hover {
    border-color: var(--text-secondary, #d1d5db);
    color: var(--text-secondary, #d1d5db);
}

/* ============================================
   ANÁLISIS VISUAL
   ============================================ */

.visual-result {
    max-height: 80vh;
    overflow-y: auto;
}

.visual-section {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.1));
}

.visual-section h3 {
    font-size: 1rem;
    margin: 0 0 12px 0;
    color: var(--text-primary, #fff);
}

.badge-visual {
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    color: #a78bfa;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Paleta de colores */
.color-palette {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.color-swatch {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.color-swatch .color-label {
    font-size: 0.7rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.color-swatch .color-hex {
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.color-mood {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary, #d1d5db);
}

/* Branding info */
.branding-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.branding-item {
    display: flex;
    gap: 8px;
}

.branding-item .label {
    font-weight: 600;
    color: var(--text-secondary, #d1d5db);
    min-width: 120px;
}

.branding-item .value {
    color: var(--text-primary, #fff);
}

/* Style grid */
.style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.style-item {
    padding: 12px;
    background: var(--bg-tertiary, rgba(0,0,0,0.2));
    border-radius: 8px;
}

.style-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-tertiary, #9ca3af);
    margin-bottom: 4px;
}

.style-value {
    font-size: 0.9rem;
    color: var(--text-primary, #fff);
}

/* Foto analizada */
.analyzed-photo {
    max-width: 100%;
    max-height: 300px;
    border-radius: 12px;
    object-fit: cover;
}

/* ============================================
   JSON PARA MAKE
   ============================================ */

.make-json-result {
    max-height: 80vh;
    overflow-y: auto;
}

.analyses-status {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-tertiary, rgba(0,0,0,0.2));
    border-radius: 12px;
}

.analyses-status h4 {
    margin: 0 0 12px 0;
    font-size: 0.9rem;
    color: var(--text-secondary, #d1d5db);
}

.status-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.included {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.status-badge.missing {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.warning-text {
    margin-top: 12px;
    font-size: 0.8rem;
    color: #f59e0b;
}

/* ============================================
   VER TODOS LOS ANÁLISIS
   ============================================ */

.all-analyses-view {
    max-height: 80vh;
    overflow-y: auto;
}

.analyses-overview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .analyses-overview {
        grid-template-columns: 1fr;
    }
}

.analysis-card {
    padding: 16px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.analysis-card.available {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.analysis-card.unavailable {
    background: rgba(107, 114, 128, 0.1);
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.analysis-icon {
    font-size: 1.5rem;
}

.analysis-name {
    font-weight: 600;
    color: var(--text-primary, #fff);
}

.analysis-status {
    font-size: 0.8rem;
    color: var(--text-secondary, #d1d5db);
}

.analysis-date {
    font-size: 0.7rem;
    color: var(--text-tertiary, #9ca3af);
}

.btn-view-detail {
    margin-top: 8px;
    padding: 6px 16px;
    background: var(--color-primary, #6366f1);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-view-detail:hover {
    background: var(--color-secondary, #8b5cf6);
}

.analysis-detail-content {
    margin-top: 16px;
}

.detail-section {
    padding: 16px;
    background: var(--bg-tertiary, rgba(0,0,0,0.2));
    border-radius: 12px;
}

.detail-section h3 {
    margin: 0 0 12px 0;
    font-size: 1rem;
}

/* Color palette mini */
.color-palette-mini {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.color-swatch-mini {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.btn-copy-small {
    padding: 4px 12px;
    background: var(--color-primary, #6366f1);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    margin-bottom: 12px;
}

/* ============================================
   GRID DE 3 BOTONES PRINCIPALES (NUEVO)
   ============================================ */

.modal-actions-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .modal-actions-grid-3 {
        grid-template-columns: 1fr;
    }
}

.modal-actions-grid-3 .btn-action {
    padding: 20px 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.modal-actions-grid-3 .btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.modal-actions-grid-3 .btn-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.modal-actions-grid-3 .btn-text {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.modal-actions-grid-3 .btn-desc {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-bottom: 8px;
}

/* Badge de precio */
.modal-actions-grid-3 .btn-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-actions-grid-3 .btn-badge.free {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.modal-actions-grid-3 .btn-badge.premium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* Colores de botones principales */
.btn-action.btn-web-analysis {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.btn-action.btn-full-analysis {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.btn-action.btn-pitch {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Badge de análisis en modal de progreso */
.analysis-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.analysis-badge.gratis {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.analysis-badge.premium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

/* ============================================
   GRID DE 4 BOTONES (LEGACY)
   ============================================ */

.modal-actions-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

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

.modal-actions-grid-4 .btn-action {
    padding: 16px 12px;
}

.modal-actions-grid-4 .btn-icon {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.modal-actions-grid-4 .btn-text {
    font-size: 0.85rem;
    font-weight: 600;
}

.modal-actions-grid-4 .btn-desc {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Fila de acciones secundarias */
.modal-actions-secondary-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.modal-actions-secondary-row .btn-secondary-small {
    flex: 1;
    padding: 8px 12px;
    background: var(--bg-tertiary, rgba(0,0,0,0.2));
    border: 1px solid var(--border-color, rgba(255,255,255,0.1));
    border-radius: 8px;
    color: var(--text-secondary, #d1d5db);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-actions-secondary-row .btn-secondary-small:hover {
    background: var(--bg-secondary, rgba(0,0,0,0.3));
    border-color: var(--color-primary, #6366f1);
}

/* ============================================
   BARRA DE PROGRESO DE ANÁLISIS
   ============================================ */

.analysis-progress {
    background: var(--bg-tertiary, rgba(0,0,0,0.3));
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color, rgba(255,255,255,0.1));
}

.analysis-progress.hidden {
    display: none;
}

.analysis-progress.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-title {
    font-weight: 600;
    color: var(--text-primary, #fff);
}

.progress-status {
    font-size: 0.8rem;
    color: var(--text-secondary, #d1d5db);
}

.progress-bar-container {
    height: 8px;
    background: var(--bg-secondary, rgba(0,0,0,0.2));
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-bar.complete {
    background: linear-gradient(90deg, #10b981, #059669);
}

.progress-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

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

.step-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    background: var(--bg-secondary, rgba(0,0,0,0.2));
    border-radius: 6px;
    font-size: 0.75rem;
}

.step-item.in-progress {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
}

.step-item.completed {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.step-item.warning {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.step-item.error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.step-icon {
    font-size: 1rem;
}

.step-name {
    flex: 1;
    color: var(--text-secondary, #d1d5db);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.step-status {
    font-size: 0.9rem;
}

/* ============================================
   PITCH DE VENTAS
   ============================================ */

.pitch-result {
    max-height: 80vh;
    overflow-y: auto;
}

.pitch-section {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.1));
}

.pitch-section h3 {
    font-size: 1rem;
    margin: 0 0 12px 0;
    color: var(--text-primary, #fff);
}

.pitch-section.highlight-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    padding: 16px;
    border-radius: 12px;
    border: none;
}

.opening-hook {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-primary, #fff);
    line-height: 1.6;
}

.value-prop {
    font-size: 1rem;
    color: var(--text-secondary, #d1d5db);
    line-height: 1.6;
}

/* Pain points grid */
.pain-points-grid {
    display: grid;
    gap: 12px;
}

.pain-point-card {
    padding: 12px;
    background: var(--bg-tertiary, rgba(0,0,0,0.2));
    border-radius: 8px;
    border-left: 3px solid #ef4444;
}

.pain-point-card .pain {
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin-bottom: 6px;
}

.pain-point-card .solution {
    font-size: 0.85rem;
    color: #10b981;
    margin-bottom: 4px;
}

.pain-point-card .proof {
    font-size: 0.8rem;
    color: var(--text-tertiary, #9ca3af);
}

/* Objections list */
.objections-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.objection-item {
    padding: 12px;
    background: var(--bg-tertiary, rgba(0,0,0,0.2));
    border-radius: 8px;
}

.objection-item .objection {
    color: #ef4444;
    font-style: italic;
    margin-bottom: 8px;
}

.objection-item .response {
    color: #10b981;
    font-size: 0.9rem;
}

/* Template tabs */
.template-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.template-tab {
    padding: 8px 16px;
    background: var(--bg-tertiary, rgba(0,0,0,0.2));
    border: 1px solid var(--border-color, rgba(255,255,255,0.1));
    border-radius: 8px;
    color: var(--text-secondary, #d1d5db);
    cursor: pointer;
    transition: all 0.2s;
}

.template-tab:hover {
    background: var(--bg-secondary, rgba(0,0,0,0.3));
}

.template-tab.active {
    background: var(--color-primary, #6366f1);
    border-color: var(--color-primary, #6366f1);
    color: white;
}

.template-content {
    background: var(--bg-tertiary, rgba(0,0,0,0.3));
    border-radius: 8px;
    padding: 16px;
}

.template-content pre {
    margin: 0 0 12px 0;
    white-space: pre-wrap;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--text-secondary, #d1d5db);
    line-height: 1.6;
}

.btn-copy {
    padding: 6px 12px;
    background: var(--color-primary, #6366f1);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
}

.btn-copy:hover {
    opacity: 0.9;
}

/* Follow up grid */
.follow-up-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.follow-up-item {
    padding: 10px 12px;
    background: var(--bg-tertiary, rgba(0,0,0,0.2));
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.follow-up-item .label {
    font-weight: 600;
    font-size: 0.85rem;
}

.follow-up-item .action {
    font-size: 0.8rem;
    color: var(--text-secondary, #d1d5db);
}

.follow-up-item.interested { border-left: 3px solid #10b981; }
.follow-up-item.hesitant { border-left: 3px solid #f59e0b; }
.follow-up-item.not-interested { border-left: 3px solid #ef4444; }

/* ============================================
   ANÁLISIS VISUAL PROFUNDO
   ============================================ */

.visual-deep-result {
    max-height: 80vh;
    overflow-y: auto;
}

.visual-section {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.1));
}

.visual-section h3 {
    font-size: 1rem;
    margin: 0 0 12px 0;
    color: var(--text-primary, #fff);
}

/* Color palette display */
.color-palette-display {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color-swatch {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.color-swatch .color-hex {
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.color-swatch .color-name {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.8);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.color-harmony {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary, #d1d5db);
}

/* Branding grid */
.branding-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (max-width: 600px) {
    .branding-grid {
        grid-template-columns: 1fr;
    }
}

.branding-item {
    padding: 12px;
    background: var(--bg-tertiary, rgba(0,0,0,0.2));
    border-radius: 8px;
}

.branding-item .label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-tertiary, #9ca3af);
    margin-bottom: 4px;
}

.branding-item .value {
    font-size: 0.9rem;
    color: var(--text-primary, #fff);
}

/* Web recommendations */
.web-rec-item {
    margin-bottom: 16px;
}

.web-rec-item h4 {
    font-size: 0.9rem;
    margin: 0 0 6px 0;
    color: var(--text-primary, #fff);
}

.web-rec-item p {
    font-size: 0.85rem;
    color: var(--text-secondary, #d1d5db);
    margin: 0;
    line-height: 1.5;
}

.web-rec-item ul {
    margin: 0;
    padding-left: 16px;
}

.web-rec-item li {
    font-size: 0.85rem;
    color: var(--text-secondary, #d1d5db);
    margin: 4px 0;
}

/* Highlight list */
.highlight-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.highlight-list li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-primary, #fff);
    border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.05));
}

/* Content ideas grid */
.content-ideas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.content-idea-card {
    padding: 12px;
    background: var(--bg-tertiary, rgba(0,0,0,0.2));
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.content-idea-card .idea-type {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--color-primary, #6366f1);
    font-weight: 600;
}

.content-idea-card .idea-desc {
    font-size: 0.85rem;
    color: var(--text-secondary, #d1d5db);
}

/* ============================================
   BADGES DE ANÁLISIS EN CARDS
   ============================================ */

.card-analyses-badges {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 8px 0;
    padding: 6px 8px;
    background: var(--bg-tertiary, rgba(0,0,0,0.2));
    border-radius: 8px;
    flex-wrap: wrap;
}

.analysis-badge {
    font-size: 0.9rem;
    padding: 2px 4px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 4px;
    cursor: help;
    transition: transform 0.2s;
}

.analysis-badge:hover {
    transform: scale(1.2);
}

.analysis-count {
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--text-tertiary, #9ca3af);
    font-weight: 600;
}

/* ============================================
   MEJORAS DE BOTONES
   ============================================ */

.btn-action:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-action.loading {
    position: relative;
    color: transparent;
}

.btn-action.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================
   INDICADOR DE CACHÉ
   ============================================ */

.cache-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 12px;
    font-size: 0.7rem;
    color: #10b981;
}

.cache-indicator::before {
    content: '📦';
}

/* ============================================
   TOAST DE ANÁLISIS COMPLETADO
   ============================================ */

.analysis-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 10000;
    animation: slideInRight 0.3s ease;
}

.analysis-toast.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   DISEÑO DE LOGO
   ============================================ */

.logo-section {
    border: 2px solid var(--border-color, rgba(255,255,255,0.1));
    border-radius: 16px;
    padding: 20px;
}

.logo-section.needs-logo {
    border-color: rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(245, 158, 11, 0.1));
}

.logo-section.has-logo {
    border-color: rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(16, 185, 129, 0.1));
}

.existing-logo-info {
    padding: 12px;
    background: var(--bg-tertiary, rgba(0,0,0,0.2));
    border-radius: 8px;
}

.logo-status {
    margin-bottom: 8px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.good {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.status-badge.needs-improvement {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.logo-description {
    font-size: 0.9rem;
    color: var(--text-secondary, #d1d5db);
    margin: 8px 0;
}

.logo-recommendation {
    font-size: 0.85rem;
    color: var(--text-primary, #fff);
}

/* Logo Design Proposal */
.logo-design-proposal {
    margin-top: 16px;
}

.logo-concept-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.logo-concept-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary, #fff);
}

.logo-style-badge {
    padding: 4px 12px;
    background: var(--color-primary, #6366f1);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.logo-details-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
}

.logo-detail-item {
    padding: 12px;
    background: var(--bg-tertiary, rgba(0,0,0,0.2));
    border-radius: 8px;
}

.logo-detail-item .label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-tertiary, #9ca3af);
    margin-bottom: 6px;
}

.logo-detail-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-primary, #fff);
    line-height: 1.5;
}

.font-suggestions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.font-tag {
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--color-primary, #6366f1);
    font-family: 'JetBrains Mono', monospace;
}

/* Logo Colors */
.logo-colors {
    margin-bottom: 16px;
}

.logo-colors h5 {
    font-size: 0.9rem;
    margin: 0 0 12px 0;
    color: var(--text-primary, #fff);
}

.logo-color-swatches {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.logo-color-swatch {
    width: 100px;
    height: 80px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.logo-color-swatch .color-label {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.7);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    text-transform: uppercase;
}

.logo-color-swatch .color-hex {
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    font-family: 'JetBrains Mono', monospace;
}

/* Logo Variations */
.logo-variations {
    margin-bottom: 16px;
}

.logo-variations h5 {
    font-size: 0.9rem;
    margin: 0 0 12px 0;
    color: var(--text-primary, #fff);
}

.variations-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.variation-item {
    display: flex;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg-tertiary, rgba(0,0,0,0.2));
    border-radius: 8px;
    align-items: center;
}

.variation-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary, #fff);
    min-width: 140px;
}

.variation-desc {
    font-size: 0.8rem;
    color: var(--text-secondary, #d1d5db);
}

/* Logo Rationale */
.logo-rationale {
    padding: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 12px;
    border-left: 4px solid var(--color-primary, #6366f1);
}

.logo-rationale h5 {
    font-size: 0.9rem;
    margin: 0 0 8px 0;
    color: var(--text-primary, #fff);
}

.logo-rationale p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary, #d1d5db);
    line-height: 1.6;
    font-style: italic;
}

/* Brand Kit */
.brand-kit-section {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 16px;
}

.brand-kit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.brand-color {
    height: 60px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px;
    font-size: 0.65rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.brand-color.light {
    color: #1f2937;
    text-shadow: none;
}

.brand-color span:first-child {
    font-weight: 600;
    text-transform: uppercase;
}

.brand-color span:last-child {
    font-family: 'JetBrains Mono', monospace;
}

.btn-copy-kit {
    width: 100%;
    padding: 10px;
    background: var(--color-primary, #6366f1);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-copy-kit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Photo Assessment */
.photo-assessment {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 600px) {
    .photo-assessment {
        grid-template-columns: 1fr;
    }
}

.assessment-item {
    padding: 12px;
    background: var(--bg-tertiary, rgba(0,0,0,0.2));
    border-radius: 8px;
    text-align: center;
}

.assessment-item .label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-tertiary, #9ca3af);
    margin-bottom: 6px;
}

.assessment-item .value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary, #fff);
}

.assessment-item .value.badge-alta {
    color: #10b981;
}

.assessment-item .value.badge-media {
    color: #f59e0b;
}

.assessment-item .value.badge-baja {
    color: #ef4444;
}

/* Typography Grid */
.typography-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.typography-grid div {
    padding: 8px 12px;
    background: var(--bg-tertiary, rgba(0,0,0,0.2));
    border-radius: 6px;
    font-size: 0.85rem;
}

.typography-grid strong {
    color: var(--text-tertiary, #9ca3af);
    margin-right: 8px;
}

/* Color Mood */
.color-mood {
    font-size: 0.85rem;
    color: var(--text-secondary, #d1d5db);
    font-style: italic;
    margin-top: 8px;
}

/* ============================================
   GOOGLE TRENDS - DATOS REALES
   ============================================ */

.google-trends-section {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.1), rgba(52, 168, 83, 0.1));
    border: 2px solid rgba(66, 133, 244, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.real-data-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(52, 168, 83, 0.2);
    border: 1px solid rgba(52, 168, 83, 0.4);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #34a853;
    margin-bottom: 16px;
}

.badge-real-data {
    background: linear-gradient(135deg, #34a853, #4285f4);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-right: 8px;
}

.trends-summary-card {
    background: var(--bg-tertiary, rgba(0,0,0,0.3));
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.trends-summary-card.growing {
    border-left: 4px solid #34a853;
}

.trends-summary-card.declining {
    border-left: 4px solid #ea4335;
}

.trends-summary-card.stable {
    border-left: 4px solid #fbbc04;
}

.trend-direction {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.direction-icon {
    font-size: 2rem;
}

.direction-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
    text-transform: capitalize;
}

.change-percentage {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 8px;
}

.change-percentage.positive {
    background: rgba(52, 168, 83, 0.2);
    color: #34a853;
}

.change-percentage.negative {
    background: rgba(234, 67, 53, 0.2);
    color: #ea4335;
}

.trend-interpretation {
    font-size: 0.9rem;
    color: var(--text-secondary, #d1d5db);
    line-height: 1.5;
    margin-bottom: 16px;
}

.trend-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.trend-metrics .metric {
    text-align: center;
    padding: 12px;
    background: var(--bg-secondary, rgba(0,0,0,0.2));
    border-radius: 8px;
}

.metric-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-tertiary, #9ca3af);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.metric-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
}

/* Related Searches */
.related-searches {
    margin-top: 16px;
}

.related-searches h4 {
    font-size: 0.9rem;
    color: var(--text-primary, #fff);
    margin-bottom: 12px;
}

.rising-searches,
.top-searches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
}

.search-tag.rising {
    background: rgba(52, 168, 83, 0.15);
    border: 1px solid rgba(52, 168, 83, 0.3);
}

.search-tag.top {
    background: rgba(66, 133, 244, 0.15);
    border: 1px solid rgba(66, 133, 244, 0.3);
}

.search-query {
    color: var(--text-primary, #fff);
    font-weight: 500;
}

.search-growth {
    color: #34a853;
    font-weight: 700;
    font-size: 0.7rem;
}

.search-interest {
    color: #4285f4;
    font-weight: 600;
    font-size: 0.7rem;
}

/* Seasonality */
.seasonality-info {
    margin-top: 16px;
    padding: 16px;
    background: rgba(251, 188, 4, 0.1);
    border: 1px solid rgba(251, 188, 4, 0.3);
    border-radius: 12px;
}

.seasonality-info h4 {
    font-size: 0.9rem;
    color: var(--text-primary, #fff);
    margin-bottom: 8px;
}

.seasonality-info p {
    font-size: 0.85rem;
    color: var(--text-secondary, #d1d5db);
    margin: 0;
}

.seasonality-rec {
    margin-top: 8px !important;
    font-style: italic;
    color: #fbbc04 !important;
}

/* Region Interest */
.region-interest {
    margin-top: 16px;
}

.region-interest h4 {
    font-size: 0.9rem;
    color: var(--text-primary, #fff);
    margin-bottom: 12px;
}

.regions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.region-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: var(--bg-tertiary, rgba(0,0,0,0.2));
    border-radius: 8px;
}

.region-rank {
    font-size: 0.75rem;
    font-weight: 700;
    color: #4285f4;
    min-width: 24px;
}

.region-name {
    font-size: 0.85rem;
    color: var(--text-primary, #fff);
    min-width: 120px;
}

.region-bar {
    flex: 1;
    height: 8px;
    background: linear-gradient(90deg, #4285f4, #34a853);
    border-radius: 4px;
    max-width: 100%;
}

.region-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary, #d1d5db);
    min-width: 30px;
    text-align: right;
}

/* ============================================
   MENÚ DE EXPORTACIÓN
   ============================================ */

.export-dropdown {
    position: relative;
    display: inline-block;
}

.export-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-secondary, #1f2937);
    border: 1px solid var(--border-color, rgba(255,255,255,0.1));
    border-radius: 12px;
    padding: 8px;
    min-width: 180px;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    margin-top: 8px;
}

.export-menu.show {
    display: block;
    animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.export-menu button {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: var(--text-primary, #fff);
    font-size: 0.85rem;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.export-menu button:hover {
    background: var(--accent-primary, #6366f1);
    color: white;
}

/* ============================================
   BOTÓN ANÁLISIS COMPLETO
   ============================================ */

.btn-full-analysis {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-full-analysis:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-full-analysis:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   INDICADOR DE ATAJOS DE TECLADO
   ============================================ */

.keyboard-shortcuts-hint {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--bg-secondary, rgba(0,0,0,0.8));
    border: 1px solid var(--border-color, rgba(255,255,255,0.1));
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.75rem;
    color: var(--text-tertiary, #9ca3af);
    z-index: 100;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.keyboard-shortcuts-hint:hover {
    opacity: 1;
}

.keyboard-shortcuts-hint kbd {
    display: inline-block;
    padding: 2px 6px;
    background: var(--bg-tertiary, rgba(255,255,255,0.1));
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    margin: 0 2px;
}

/* ============================================
   BOTÓN COPIAR EN ANÁLISIS
   ============================================ */

.btn-copy-analysis {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    color: #818cf8;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy-analysis:hover {
    background: rgba(99, 102, 241, 0.3);
    color: white;
}

/* ============================================
   ANÁLISIS DE HORARIOS
   ============================================ */

.hours-result {
    max-height: 80vh;
    overflow-y: auto;
}

.hours-section {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.1));
}

.hours-section h3 {
    font-size: 1rem;
    margin: 0 0 12px 0;
    color: var(--text-primary, #fff);
}

/* Horas pico grid */
.peak-hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.peak-hour-card {
    padding: 12px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(245, 158, 11, 0.1));
    border-left: 3px solid #ef4444;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.peak-day {
    font-weight: 600;
    color: var(--text-primary, #fff);
    font-size: 0.85rem;
}

.peak-time {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ef4444;
}

.peak-reason {
    font-size: 0.75rem;
    color: var(--text-tertiary, #9ca3af);
}

/* Low hours list */
.low-hours-list {
    margin: 0;
    padding-left: 20px;
}

.low-hours-list li {
    color: var(--text-secondary, #d1d5db);
    margin: 4px 0;
}

.tip {
    margin-top: 8px;
    font-size: 0.8rem;
    color: #10b981;
    font-style: italic;
}

/* Marketing schedule */
.marketing-schedule {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.schedule-item {
    padding: 12px;
    background: var(--bg-tertiary, rgba(0,0,0,0.2));
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.schedule-item.morning { border-left: 3px solid #f59e0b; }
.schedule-item.afternoon { border-left: 3px solid #ef4444; }
.schedule-item.evening { border-left: 3px solid #8b5cf6; }
.schedule-item.weekend { border-left: 3px solid #10b981; }

.schedule-icon {
    font-size: 1.2rem;
}

.schedule-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary, #fff);
}

.schedule-strategy {
    font-size: 0.8rem;
    color: var(--text-secondary, #d1d5db);
}

/* ============================================
   ANÁLISIS DE WEBSITE
   ============================================ */

.website-result {
    max-height: 80vh;
    overflow-y: auto;
}

.website-section {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.1));
}

.website-section h3 {
    font-size: 1rem;
    margin: 0 0 12px 0;
    color: var(--text-primary, #fff);
}

.website-link {
    font-size: 0.8rem;
    color: #3b82f6;
    text-decoration: none;
}

.website-link:hover {
    text-decoration: underline;
}

.badge-score {
    padding: 8px 16px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
}

/* Checklist grid */
.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}

.check-item {
    padding: 8px 12px;
    background: var(--bg-tertiary, rgba(0,0,0,0.2));
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary, #d1d5db);
}

.check-item.yes {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.check-item.no {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Two cols */
.website-section.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .website-section.two-cols {
        grid-template-columns: 1fr;
    }
}

.website-section.two-cols .col h4 {
    font-size: 0.9rem;
    margin: 0 0 8px 0;
}

.website-section.two-cols .col ul {
    margin: 0;
    padding-left: 16px;
}

.website-section.two-cols .col li {
    font-size: 0.8rem;
    color: var(--text-secondary, #d1d5db);
    margin: 4px 0;
}

/* Recommendations */
.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recommendation-item {
    padding: 10px 12px;
    background: var(--bg-tertiary, rgba(0,0,0,0.2));
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recommendation-item.priority-alta {
    border-left: 3px solid #ef4444;
}

.recommendation-item.priority-media {
    border-left: 3px solid #f59e0b;
}

.recommendation-item.priority-baja {
    border-left: 3px solid #10b981;
}

.priority-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-alta .priority-badge {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.priority-media .priority-badge {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.priority-baja .priority-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.rec-text {
    font-size: 0.85rem;
    color: var(--text-primary, #fff);
}

/* ============================================
   ANÁLISIS DE PRESENCIA DIGITAL
   ============================================ */

.digital-result {
    max-height: 80vh;
    overflow-y: auto;
}

.digital-section {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.1));
}

.digital-section h3 {
    font-size: 1rem;
    margin: 0 0 12px 0;
    color: var(--text-primary, #fff);
}

/* Channels grid */
.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.channel-item {
    padding: 12px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.channel-item.active {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.channel-item.inactive {
    background: rgba(107, 114, 128, 0.1);
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.channel-icon {
    font-size: 1.3rem;
}

.channel-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary, #fff);
}

.channel-status {
    font-size: 0.7rem;
    color: var(--text-secondary, #d1d5db);
}

/* Maturity */
.maturity-level {
    color: #f59e0b;
    text-transform: capitalize;
}

.maturity-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .maturity-details {
        grid-template-columns: 1fr;
    }
}

.maturity-col h4 {
    font-size: 0.85rem;
    margin: 0 0 8px 0;
}

.maturity-col ul {
    margin: 0;
    padding-left: 16px;
}

.maturity-col li {
    font-size: 0.8rem;
    color: var(--text-secondary, #d1d5db);
    margin: 4px 0;
}

/* Quick wins */
.quick-wins {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(16, 185, 129, 0.1));
    padding: 16px;
    border-radius: 12px;
    border: none;
}

.quick-wins-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.quick-wins-list li {
    padding: 6px 0;
    font-size: 0.85rem;
    color: var(--text-primary, #fff);
}

/* Action timeline */
.action-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timeline-item {
    padding: 12px;
    background: var(--bg-tertiary, rgba(0,0,0,0.2));
    border-radius: 8px;
}

.timeline-item.immediate {
    border-left: 3px solid #ef4444;
}

.timeline-item.this-week {
    border-left: 3px solid #f59e0b;
}

.timeline-item.this-month {
    border-left: 3px solid #10b981;
}

.timeline-label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--text-primary, #fff);
}

.timeline-item ul {
    margin: 0;
    padding-left: 16px;
}

.timeline-item li {
    font-size: 0.8rem;
    color: var(--text-secondary, #d1d5db);
    margin: 4px 0;
}

/* Summary section */
.summary-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    padding: 16px;
    border-radius: 12px;
    border: none;
}

.summary-section p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary, #d1d5db);
}

/* ============================================
   ANÁLISIS COMPLETO - MODAL DE PROGRESO
   ============================================ */

.analysis-progress-modal {
    text-align: center;
    padding: 24px;
}

.analysis-progress-modal h2 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
}

.progress-subtitle {
    color: var(--text-secondary, #9ca3af);
    margin: 0 0 24px 0;
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background: var(--bg-tertiary, rgba(0,0,0,0.3));
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #a855f7);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.progress-percent {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary, #6366f1);
    margin: 0 0 24px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

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

.step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 12px;
    background: var(--bg-tertiary, rgba(0,0,0,0.2));
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.step-card.running {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.15);
    animation: pulse-border 1.5s infinite;
}

.step-card.success {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.15);
}

.step-card.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

.step-card.warning {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
}

@keyframes pulse-border {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(99, 102, 241, 0); }
}

.step-icon {
    font-size: 1.5rem;
}

.step-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary, #9ca3af);
}

.step-status {
    font-size: 1.25rem;
}

.current-step {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary, rgba(0,0,0,0.2));
    border-radius: 12px;
    font-size: 1rem;
    margin-bottom: 24px;
}

.current-step .spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Completeness bar for analyses view */
.completeness-bar {
    position: relative;
    width: 100%;
    height: 24px;
    background: var(--bg-tertiary, rgba(0,0,0,0.3));
    border-radius: 12px;
    overflow: hidden;
    margin-top: 12px;
}

.completeness-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #6366f1);
    border-radius: 12px;
    transition: width 0.5s ease;
}

.completeness-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
