/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #334155;
    line-height: 1.6;
}

/* Variables CSS */
:root {
    --primary-blue: #0ea5e9;
    --primary-blue-dark: #0284c7;
    --primary-blue-light: #38bdf8;
    --secondary-blue: #e0f2fe;
    --success-green: #10b981;
    --warning-amber: #f59e0b;
    --danger-red: #ef4444;
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Layout Principal */
.app-container {
    display: flex;
    min-height: 100vh;
    background: var(--neutral-50);
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 30;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--neutral-200);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: white;
}

.sidebar-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    margin-bottom: 0.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--neutral-700);
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
}

.nav-link:hover {
    background: var(--neutral-100);
    transform: translateX(4px);
    border-color: var(--neutral-200);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--secondary-blue) 0%, #bae6fd 100%);
    color: var(--primary-blue-dark);
    font-weight: 600;
    border-color: var(--primary-blue-light);
    box-shadow: var(--shadow-sm);
}

.nav-link .icon {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    width: 1.5rem;
    text-align: center;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    background: var(--neutral-50);
}

.content-area {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Mobile Header */
.mobile-header {
    display: none;
    background: white;
    padding: 1rem;
    border-bottom: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 20;
}

.mobile-header h1 {
    font-size: 1.25rem;
    color: var(--primary-blue-dark);
    font-weight: 700;
}

.mobile-menu-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--neutral-100);
}

/* Sections */
.content-section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--neutral-200);
}

.section-header {
    margin-bottom: 2rem;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue-dark);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--neutral-600);
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

/* Grid Systems */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Cards */
.info-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.info-card.primary {
    border-left: 4px solid var(--primary-blue);
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
}

.info-card.success {
    border-left: 4px solid var(--success-green);
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.info-card.warning {
    border-left: 4px solid var(--warning-amber);
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
}

.info-card.danger {
    border-left: 4px solid var(--danger-red);
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.card-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neutral-800);
}

.card-content {
    color: var(--neutral-600);
    line-height: 1.6;
}

.card-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.card-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: bold;
    width: 1rem;
}

/* Statistics Cards */
.stat-card {
    background: linear-gradient(135deg, white 0%, #f8fafc 100%);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.stat-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--neutral-800);
    margin-bottom: 0.5rem;
}

.stat-description {
    font-size: 0.875rem;
    color: var(--neutral-500);
    line-height: 1.5;
}

/* Chart Container */
.chart-container {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
    margin: 2rem 0;
}

.chart-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    height: 400px;
}

/* Strategy Section */
.strategy-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.strategy-btn {
    padding: 1rem 1.5rem;
    background: white;
    border: 2px solid var(--neutral-200);
    border-radius: var(--border-radius);
    font-weight: 600;
    color: var(--neutral-700);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.strategy-btn:hover {
    border-color: var(--primary-blue-light);
    background: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.strategy-btn.active {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: white;
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
}

.strategy-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-md);
}

/* Hub & Spoke Diagram */
.hub-spoke-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hub-spoke-diagram {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}

.hub {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-lg);
    border: 3px solid white;
}

.spoke {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 3px;
    background: linear-gradient(90deg, var(--neutral-300) 0%, var(--neutral-400) 100%);
    transform-origin: 0 0;
    z-index: 1;
}

.spoke-label {
    position: absolute;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 2px solid var(--neutral-200);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--neutral-700);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    z-index: 5;
}

/* ROI Calculator */
.roi-calculator {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-md);
}

.calculator-controls {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-label {
    font-weight: 600;
    color: var(--neutral-800);
    font-size: 1rem;
}

.control-description {
    font-size: 0.875rem;
    color: var(--neutral-500);
    margin-bottom: 0.5rem;
}

.control-input {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slider {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: var(--neutral-200);
    outline: none;
    transition: var(--transition);
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    border: 3px solid white;
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: var(--shadow-md);
}

.control-value {
    font-weight: 700;
    color: var(--primary-blue-dark);
    font-size: 1.125rem;
    min-width: 80px;
    text-align: center;
}

.roi-result-card {
    background: linear-gradient(135deg, var(--secondary-blue) 0%, #bae6fd 100%);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    border: 2px solid var(--primary-blue-light);
    box-shadow: var(--shadow-lg);
}

.roi-value {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary-blue-dark);
    margin: 1rem 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.roi-description {
    color: var(--neutral-600);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.roi-breakdown {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--neutral-200);
    text-align: left;
}

.roi-breakdown h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--neutral-800);
}

.roi-breakdown p {
    margin-bottom: 0.5rem;
    color: var(--neutral-600);
}

.roi-formula {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--neutral-500);
    background: var(--neutral-100);
    padding: 0.5rem;
    border-radius: 4px;
    margin-top: 1rem;
}

/* Action Plan */
.action-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.action-step {
    display: flex;
    align-items: flex-start;
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
    transition: var(--transition);
}

.action-step:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.step-number {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: white;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    box-shadow: var(--shadow-md);
}

.step-content {
    flex: 1;
    color: var(--neutral-600);
    line-height: 1.6;
}

.step-content strong {
    color: var(--neutral-800);
}

/* Alerts & Callouts */
.alert {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid;
    margin: 1.5rem 0;
}

.alert.info {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: var(--primary-blue);
    color: var(--primary-blue-dark);
}

.alert.warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: var(--warning-amber);
    color: #92400e;
}

.alert.success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: var(--success-green);
    color: #166534;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .content-area {
        padding: 1rem;
    }
    
    .section-card {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-value {
        font-size: 2.5rem;
    }
    
    .roi-value {
        font-size: 3rem;
    }
    
    .hub-spoke-diagram {
        width: 280px;
        height: 280px;
    }
    
    .hub {
        width: 100px;
        height: 100px;
        font-size: 0.8rem;
    }
    
    .spoke {
        width: 120px;
    }
    
    .strategy-selector {
        flex-direction: column;
        align-items: center;
    }
    
    .strategy-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 40;
    display: none;
}

.mobile-menu-overlay.open {
    display: block;
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none !important; }
.visible { display: block !important; }

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-up {
    animation: slideUp 0.5s ease-in-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Print Styles */
@media print {
    .sidebar,
    .mobile-header,
    .mobile-menu-overlay {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .content-section {
        display: block !important;
        page-break-after: always;
    }
    
    .section-card {
        box-shadow: none;
        border: 1px solid var(--neutral-300);
    }
} 