:root {
            --primary: #4f46e5;
            --primary-hover: #4338ca;
            --secondary: #0ea5e9;
            --dark: #0f172a;
            --dark-light: #1e293b;
            --light: #f8fafc;
            --gray: #64748b;
            --light-gray: #e2e8f0;
            --success: #10b981;
            --danger: #ef4444;
            --border-radius: 12px;
            --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
            --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
            --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
            --transition: all 0.2s ease-in-out;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', sans-serif;
        }
        
        body {
            background-color: #f1f5f9;
            color: var(--dark);
            line-height: 1.6;
        }

        /* navbar-infographic */
        .navbar-infographic {
            background: white;
            padding: 1rem 2rem;
            box-shadow: var(--shadow-sm);
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .logo {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--primary);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            text-decoration: none;
        }

        /* Contenedor Principal */
        .container {
            max-width: 1400px;
            margin: 2rem auto;
            padding: 0 1.5rem;
        }

        .header-actions {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
            justify-content: flex-end;
        }

        /* Botones */
        .btn {
            padding: 0.6rem 1.2rem;
            border-radius: 8px;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            border: none;
            font-size: 0.95rem;
        }
        
        .btn-primary { background: var(--primary); color: white; }
        .btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
        .btn-outline { background: white; color: var(--primary); border: 1px solid var(--primary); }
        .btn-outline:hover { background: #eff6ff; }
        .btn-sm { padding: 0.4rem 0.8rem; font-size: 0.85rem; }

        /* Layout del Generador */
        .generator-grid {
            display: grid;
            grid-template-columns: 350px 1fr;
            gap: 2rem;
            margin-bottom: 4rem;
        }

        @media (max-width: 1024px) {
            .generator-grid { grid-template-columns: 1fr; }
        }

        /* Panel de Control */
        .control-panel {
            background: white;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow-md);
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            gap: 2rem;
            height: fit-content;
        }

        .panel-section h3 {
            font-size: 1.1rem;
            margin-bottom: 1rem;
            color: var(--dark-light);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            border-bottom: 2px solid var(--light-gray);
            padding-bottom: 0.5rem;
        }

        /* Subida de Archivos */
        .file-upload {
            border: 2px dashed #cbd5e1;
            border-radius: var(--border-radius);
            padding: 2rem 1rem;
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
            background: #f8fafc;
        }
        
        .file-upload:hover { border-color: var(--primary); background: #eff6ff; }
        .file-upload i { font-size: 2.5rem; color: var(--gray); margin-bottom: 1rem; }
        .file-upload h4 { font-size: 1rem; margin-bottom: 0.25rem; }
        .file-upload p { font-size: 0.85rem; color: var(--gray); }

        .sample-data-container {
            margin-top: 1rem;
            text-align: center;
        }

        /* Vista previa de datos */
        .data-preview {
            margin-top: 1rem;
            max-height: 200px;
            overflow: auto;
            border: 1px solid var(--light-gray);
            border-radius: 8px;
            background: white;
        }
        
        table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
        th, td { padding: 0.5rem 0.75rem; text-align: left; border-bottom: 1px solid var(--light-gray); white-space: nowrap; }
        th { background: #f1f5f9; font-weight: 600; position: sticky; top: 0; }

        /* Selector de Gráficos */
        .chart-selector {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.75rem;
        }
        
        .chart-option {
            background: white;
            border: 1px solid var(--light-gray);
            border-radius: 8px;
            padding: 1rem;
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .chart-option:hover { border-color: var(--primary); background: #eff6ff; }
        .chart-option.active { border-color: var(--primary); background: #eff6ff; box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2); }
        .chart-option i { font-size: 1.5rem; color: var(--primary); margin-bottom: 0.5rem; }
        .chart-option p { font-size: 0.85rem; font-weight: 500; }

        /* Formularios */
        .form-group { margin-bottom: 1rem; }
        .form-group label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.4rem; color: var(--dark-light); }
        .form-control {
            width: 100%;
            padding: 0.6rem;
            border: 1px solid var(--light-gray);
            border-radius: 6px;
            font-size: 0.9rem;
            transition: var(--transition);
        }
        .form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); }
        
        input[type="color"].form-control {
            padding: 0.2rem;
            height: 40px;
            cursor: pointer;
        }

        /* Área de Infografía */
        .preview-area {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .preview-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: white;
            padding: 1rem 1.5rem;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow-sm);
        }

        .infographic-canvas-wrapper {
            background: #e2e8f0;
            padding: 2rem;
            border-radius: var(--border-radius);
            display: flex;
            justify-content: center;
            overflow-x: auto;
        }

        .infographic-content {
            background: white;
            width: 100%;
            max-width: 800px;
            min-height: 600px;
            box-shadow: var(--shadow-lg);
            display: flex;
            flex-direction: column;
            position: relative;
            overflow: hidden;
        }

        .info-header {
            background: var(--primary);
            color: white;
            padding: 2.5rem 2rem;
            text-align: center;
        }
        .info-header h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 0.5rem; }
        .info-header p { font-size: 1.1rem; opacity: 0.9; }

        .info-body {
            padding: 3rem 2rem;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .chart-container {
            position: relative;
            height: 400px;
            width: 100%;
        }

        .placeholder-msg {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            color: var(--gray);
        }
        .placeholder-msg i { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }

        .info-footer {
            background: #f8fafc;
            padding: 1.5rem 2rem;
            text-align: center;
            border-top: 1px solid var(--light-gray);
            font-size: 0.85rem;
            color: var(--gray);
            display: flex;
            justify-content: space-between;
        }

        /* Secciones de Contenido (Guía y Artículo) */
        .content-section {
            background: white;
            border-radius: var(--border-radius);
            padding: 3rem;
            margin-bottom: 3rem;
            box-shadow: var(--shadow-md);
        }

        .section-title {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 2rem;
            color: var(--dark);
            text-align: center;
        }

        /* Guía de Uso */
        .guide-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
        }

        .guide-step {
            text-align: center;
            padding: 1.5rem;
            border-radius: 12px;
            background: #f8fafc;
            border: 1px solid var(--light-gray);
        }

        .guide-icon {
            width: 60px;
            height: 60px;
            background: var(--primary);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            margin: 0 auto 1rem auto;
        }

        .guide-step h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
        .guide-step p { font-size: 0.9rem; color: var(--gray); }

        /* Artículo */
        .article-content {
            max-width: 800px;
            margin: 0 auto;
        }
        .article-content p { margin-bottom: 1.2rem; font-size: 1.05rem; color: #334155; }
        .article-content h4 { font-size: 1.3rem; margin: 2rem 0 1rem 0; color: var(--dark); }
        .article-quote {
            border-left: 4px solid var(--primary);
            padding: 1rem 1.5rem;
            background: #eff6ff;
            font-style: italic;
            margin: 2rem 0;
            border-radius: 0 8px 8px 0;
        }

        /* Footer */
        footer {
            background: var(--dark);
            color: white;
            text-align: center;
            padding: 2rem;
            margin-top: 4rem;
        }

        /* Notificaciones */
        .toast {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: var(--dark);
            color: white;
            padding: 1rem 1.5rem;
            border-radius: 8px;
            box-shadow: var(--shadow-lg);
            display: flex;
            align-items: center;
            gap: 0.75rem;
            transform: translateY(150%);
            transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            z-index: 1000;
        }
        .toast.show { transform: translateY(0); }
        .toast.error { background: var(--danger); }
        .toast.success { background: var(--success); }



        /* ===== ARTICLE SPECIFIC STYLES - NO BODY STYLES ===== */
    #dataviz-guide-article {
      width: 95%;
      margin: 0 auto;
      padding: 2rem 1.5rem 3rem 1.5rem;
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }

    /* Hero Section */
    .dataviz-guide-hero {
      text-align: center;
      margin-bottom: 2.5rem;
      padding: 2rem 1.5rem;
      background: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 100%);
      border-radius: 32px;
      box-shadow: 0 12px 30px rgba(79, 70, 229, 0.3);
    }

    .dataviz-guide-hero h2 {
      font-size: 2.6rem;
      font-weight: 800;
      color: white;
      margin-bottom: 1rem;
      letter-spacing: -0.02em;
      font-family: 'Playfair Display', serif;
    }

    .dataviz-guide-hero .dataviz-hero-sub {
      font-size: 1.2rem;
      color: rgba(255, 255, 255, 0.9);
      max-width: 720px;
      margin: 0 auto;
      line-height: 1.5;
    }

    .dataviz-guide-meta {
      display: flex;
      justify-content: center;
      gap: 2rem;
      color: rgba(255, 255, 255, 0.8);
      font-weight: 500;
      margin-top: 1.2rem;
      flex-wrap: wrap;
    }

    .dataviz-guide-meta span i {
      margin-right: 0.5rem;
    }

    /* Main Content */
    .dataviz-main-content {
      background: white;
      border-radius: 28px;
      padding: 2rem 2rem 2.5rem 2rem;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
      border: 1px solid rgba(79, 70, 229, 0.15);
    }

    .dataviz-main-content h2 {
      font-size: 1.8rem;
      font-weight: 700;
      margin-top: 2rem;
      margin-bottom: 1rem;
      color: #4f46e5;
      border-left: 5px solid #0ea5e9;
      padding-left: 1rem;
      font-family: 'Playfair Display', serif;
    }

    .dataviz-main-content h2:first-of-type {
      margin-top: 0;
    }

    .dataviz-main-content h3 {
      font-size: 1.35rem;
      font-weight: 600;
      margin: 1.5rem 0 0.75rem 0;
      color: #0ea5e9;
    }

    .dataviz-main-content p {
      font-size: 1.05rem;
      color: #2d3748;
      margin-bottom: 1.2rem;
      line-height: 1.6;
    }

    .dataviz-main-content ul, .dataviz-main-content ol {
      margin: 1rem 0 1.2rem 1.8rem;
      color: #2d3748;
      line-height: 1.6;
    }

    .dataviz-main-content li {
      margin-bottom: 0.5rem;
    }

    .dataviz-highlight-box {
      background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(14, 165, 233, 0.05));
      border-left: 6px solid #0ea5e9;
      padding: 1.25rem 1.5rem;
      border-radius: 20px;
      margin: 1.75rem 0;
    }

    .dataviz-pro-tip {
      background: rgba(14, 165, 233, 0.1);
      border-radius: 20px;
      padding: 1.2rem 1.5rem;
      margin: 1.5rem 0;
      display: flex;
      gap: 1rem;
      align-items: flex-start;
      border: 1px solid rgba(79, 70, 229, 0.3);
    }

    .dataviz-pro-tip i {
      font-size: 1.8rem;
      color: #4f46e5;
    }

    .dataviz-stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1.2rem;
      margin: 2rem 0;
    }

    .dataviz-stat-card {
      background: #f5f7fa;
      border-radius: 20px;
      padding: 1.2rem;
      text-align: center;
      transition: all 0.2s;
      border: 1px solid rgba(79, 70, 229, 0.2);
    }

    .dataviz-stat-card .stat-number {
      font-size: 2rem;
      font-weight: 800;
      color: #4f46e5;
      margin-bottom: 0.25rem;
    }

    .dataviz-quote-block {
      background: #f5f7fa;
      padding: 1.5rem;
      border-radius: 24px;
      text-align: center;
      font-style: italic;
      margin: 1.5rem 0;
      border: 1px solid rgba(79, 70, 229, 0.2);
    }

    .dataviz-quote-block i {
      font-size: 2rem;
      color: #0ea5e9;
      margin-bottom: 0.5rem;
      display: inline-block;
    }

    .dataviz-table-wrapper {
      overflow-x: auto;
      margin: 1.5rem 0;
    }

    .dataviz-chart-table {
      width: 100%;
      border-collapse: collapse;
      background: #f5f7fa;
      border-radius: 16px;
      overflow: hidden;
    }

    .dataviz-chart-table th, .dataviz-chart-table td {
      padding: 12px 16px;
      text-align: left;
      border-bottom: 1px solid rgba(79, 70, 229, 0.2);
    }

    .dataviz-chart-table th {
      background: rgba(79, 70, 229, 0.1);
      font-weight: 600;
      color: #4f46e5;
    }

    .dataviz-chart-table tr:hover {
      background: rgba(14, 165, 233, 0.05);
    }

    .dataviz-best-practices-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.2rem;
      margin: 1.5rem 0;
    }

    .dataviz-practice-card {
      background: #f5f7fa;
      border-radius: 16px;
      padding: 1.2rem;
      border: 1px solid rgba(79, 70, 229, 0.2);
      transition: all 0.2s;
    }

    .dataviz-practice-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 20px rgba(79, 70, 229, 0.1);
    }

    .dataviz-practice-title {
      font-weight: 700;
      color: #4f46e5;
      margin-bottom: 0.5rem;
      font-size: 1.1rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .dataviz-footer-note {
      margin-top: 2.5rem;
      text-align: center;
      font-size: 0.85rem;
      color: #718096;
      border-top: 1px solid #e2e8f0;
      padding-top: 2rem;
    }

    @media (max-width: 768px) {
      .dataviz-guide-hero h2 {
        font-size: 2rem;
      }
      .dataviz-main-content {
        padding: 1.5rem;
      }
      #dataviz-guide-article {
        padding: 1rem;
      }
    }